diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..32efa3c1b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/completion/* linguist-generated +/tests/expected/* linguist-vendored +/tests/fixtures/* linguist-vendored +box export-ignore diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..9e17bae91 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,34 @@ +### Output + +``` +... +``` + + +### Expected Result + +``` +... +``` + +### Command + +Paste your phpbrew install command here (be sure to install with `--debug` flag, e.g. `phpbrew --debug install`) + + phpbrew --debug install php-5.x.x +openssl -- --.... + +### Build Log + + gist here + +### Platform + +OS: + + e.g. OS X 10.7, Ubuntu 14.04 + +Running PHP: + +Installing PHP: + + diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..83b25f37c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: +- package-ecosystem: composer + directory: "/" + schedule: + interval: daily + time: "10:00" + open-pull-requests-limit: 10 + reviewers: + - c9s + - morozov + assignees: + - morozov + labels: + - Dependencies + versioning-strategy: increase diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..3a6d81bc0 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,86 @@ +name: Release + +on: + push: + branches: [ main, master ] + pull_request: + release: + types: [ created ] + +jobs: + build-phar: + runs-on: ubuntu-latest + name: Build PHAR + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + ini-values: phar.readonly=0 + tools: composer + coverage: none + + - name: Install Composer dependencies + uses: ramsey/composer-install@v2 + + - name: Install Box + run: composer global require --dev humbug/box + + - name: Build PHAR + run: | + make phpbrew + mv phpbrew bin/phpbrew.phar + + # Smoke test + - name: Ensure the PHAR works + run: bin/phpbrew.phar --version + + - name: Import GPG key + if: github.event_name == 'release' + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{secrets.GPG_KEY }} + + - name: Sign the PHAR + if: github.event_name == 'release' + run: | + gpg --local-user peter279k@gmail.com \ + --batch \ + --yes \ + --detach-sign \ + --armor \ + --output bin/phpbrew.asc \ + bin/phpbrew.phar + + - uses: actions/upload-artifact@v3 + name: Upload the PHAR artifact + with: + name: phpbrew-phar + path: | + bin/phpbrew.phar + bin/phpbrew.asc + + publish-phar: + runs-on: ubuntu-latest + name: Publish PHAR + needs: + - build-phar + if: github.event_name == 'release' + steps: + - uses: actions/download-artifact@v4 + with: + name: phpbrew-phar + path: . + + - name: Upload phpbrew.phar + uses: softprops/action-gh-release@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: | + phpbrew.phar + phpbrew.asc diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml new file mode 100644 index 000000000..cd3d4c5b3 --- /dev/null +++ b/.github/workflows/security.yaml @@ -0,0 +1,28 @@ +name: Security + +on: + push: + branches: [ main, master ] + pull_request: + release: + types: [ created ] + +jobs: + security: + runs-on: ubuntu-latest + name: Audit Dependencies + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Cache the vulnerability database + uses: actions/cache@v3 + id: cache-db + with: + path: ~/.symfony/cache + key: db + + - name: Checks dependencies for known vulnerabilities + uses: symfonycorp/security-checker-action@v4 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 000000000..e39582a99 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,63 @@ +name: Tests + +on: + push: + branches: [ main, master ] + pull_request: + release: + types: [ created ] + +jobs: + unit-tests: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php-versions: + - '7.2' + - '7.3' + - '7.4' + - '8.0' + - '8.1' + - '8.2' + - '8.3' + name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, intl, zip, xml + coverage: none + + - name: Install dependencies + uses: ramsey/composer-install@v2 + + - name: Update PHPUnit + run: composer update phpunit/phpunit --with-dependencies + + - name: Run test suite + run: vendor/bin/phpunit --exclude-group mayignore --coverage-clover build/logs/clover.xml + + + # This is a "trick", a meta task which does not change, and we can use in + # the protected branch rules as opposed to the tests one above which + # may change regularly. + validate-tests: + name: Tests status + runs-on: ubuntu-latest + needs: + - unit-tests + if: always() + steps: + - name: Successful run + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + + - name: Failing run + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 diff --git a/.gitignore b/.gitignore index e57be95b0..19104135d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -.onion -vendor +/vendor +.phpbrew +.phpcs.cache +/build diff --git a/.pharcc.yml b/.pharcc.yml deleted file mode 100644 index 369914d51..000000000 --- a/.pharcc.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: phpbrew.phar -main: bin/phpbrew -include: - - src/ - - vendor -exclude: - - /[Tt]ests?/ - - Test\.php$ - - example - - .*\.(xml|md|json|lock|ini)$ - - LICENSE - - Doxyfile - - vendor/composer/installed.json - - vendor/cbednarski - - vendor/corneltek/phpunit-testmore - - vendor/corneltek/universal - - vendor/symfony/console - - vendor/symfony/finder - - vendor/symfony/yaml \ No newline at end of file diff --git a/.prettyci.composer.json b/.prettyci.composer.json new file mode 100644 index 000000000..af94b7c36 --- /dev/null +++ b/.prettyci.composer.json @@ -0,0 +1,5 @@ +{ + "require-dev": { + "squizlabs/php_codesniffer": "^3.5" + } +} diff --git a/.travis.yml b/.travis.yml index 7b31bb9a0..d43e11bc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,129 @@ language: php -php: - - 5.3 - - 5.4 +dist: precise -before_script: - - phpenv rehash - - curl http://install.onionphp.org/ | bash - - curl -O https://raw.github.com/c9s/Onion/master/onion - - composer install --dev +branches: + only: + - master + +services: +- mysql +- postgresql +matrix: + fast_finish: true + allow_failures: + - php: nightly +env: + global: + - MAKEFLAGS=-j$(nproc) + +php: +- 5.3 +- 5.4 +- 5.5 +- 5.6 +- 7.0 +- 7.1 +- 7.2 +- 7.3 +# - nightly +sudo: required +addons: + apt: + packages: + - ctags + - language-pack-de + - libaspell-dev + - libenchant-dev + - libgmp-dev + - libicu-dev + - libmcrypt-dev + - libpspell-dev + - librecode-dev + - libsasl2-dev + - libt1-dev + - libtidy-dev + - libxpm-dev + - locales + - re2c + # packages for gd variant + - libfreetype6 + - libfreetype6-dev + - libpng12-0 + - libpng12-dev + - libjpeg-dev + - libjpeg8-dev + - libjpeg8 + # - libgd-dev this package doesn't exist on Ubuntu 12.04 + # - libgd3 doesn't exists on Travis CI + - libxpm4 + # packages for intl variant + - libicu-dev + # packages for openssl variant + - libssl-dev + - openssl + # packages for apxs2 + - apache2 +install: + - composer install + - composer config --unset platform + - composer update phpunit/phpunit --with-dependencies +before_script: +# see if ccache is working +- export USE_CCACHE=1 +- export PATH=/usr/lib/ccache:$PATH +- phpenv rehash +- export PATH=$PATH:$PWD/vendor/bin/ +- mkdir -p -v .phpbrew/build .phpbrew/distfiles .phpbrew/php +- rm phpbrew +- cp -v shell/bashrc .phpbrew/ script: - - source phpbrew.sh - - phpunit --debug -# notifications: -# webbooks: http://wireroom.extremedev.org/=/travis-ci/Hall + - source shell/bashrc + - mkdir -p build/logs + - vendor/bin/phpunit --exclude-group mayignore --coverage-clover build/logs/clover.xml +after_success: + - ccache -s + - wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.1.0/coveralls.phar + - travis_retry php coveralls.phar -v +cache: + apt: true + ccache: true + directories: + - ".phpbrew/distfiles" + - ".phpbrew/cache" + - "$HOME/.ccache" + - "$HOME/.composer/cache" +before_deploy: +- make build +deploy: +- provider: s3 + access_key_id: AKIAJCOXUMKVDHFVNS6Q + secret_access_key: + secure: FKUkXHugu4zB4hs6LEv399z6neV8jGZpJP/cTCvKsTiKiomZKnOznxMwZhYIXOAr6CzQvW+9zCp0IzZCZcIo6x7HBdgsiEfF/1yPx2zUuJbaiqa7XCkfFd5p1nKmNcprL/KXwvXOueZ5J7QhV67+x3kVArbt+uvm9glXBX/aHmM= + bucket: phpbrew + acl: public_read + upload-dir: travis-build/master + local_dir: build + skip_cleanup: true + on: + repo: phpbrew/phpbrew + branch: 'master' +- provider: s3 + access_key_id: AKIAJCOXUMKVDHFVNS6Q + secret_access_key: + secure: FKUkXHugu4zB4hs6LEv399z6neV8jGZpJP/cTCvKsTiKiomZKnOznxMwZhYIXOAr6CzQvW+9zCp0IzZCZcIo6x7HBdgsiEfF/1yPx2zUuJbaiqa7XCkfFd5p1nKmNcprL/KXwvXOueZ5J7QhV67+x3kVArbt+uvm9glXBX/aHmM= + bucket: phpbrew + acl: public_read + upload-dir: travis-build/develop + local_dir: build + skip_cleanup: true + on: + repo: phpbrew/phpbrew + branch: 'develop' +notifications: + webhooks: + urls: + - https://webhooks.gitter.im/e/8a279012c99e209a89ae + on_success: change # options: [always|never|change] default: always + on_failure: always # options: [always|never|change] default: always + on_start: never # options: [always|never|change] default: always diff --git a/CHANGES.md b/CHANGES.md index e29c4fa71..a88b577b5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,360 @@ CHANGES ======= -Version 1.11.3 - Sun Dec 8 14:38:14 2013 +### Version 1.24.0 + +Please see the [release notes](https://github.com/phpbrew/phpbrew/releases) on GitHub. + +### Version 1.23.1 +- Use default cURL timeouts in Downloader to avoid accidental installation failures (c9s/CurlKit#3). +- Fixed a PHP notice in --debug mode (#919). +- Improved handling of invalid arguments in `phpbrew use` (#822). +- Removed the warning about rootless mode in macOS (#879). +- Fixed handling failure to create a temporary file (#937). +- Fixed handling `$PATH`s containing whitespaces (#823). + +### Version 1.23.0 +- Changed the semantics of the `each` command (#888). Prior to this release, the arguments were interpreted as internal PHPBrew command (e.g. `phpbrew each install xdebug` would install the Xdebug extensions on all available builds). As of this release, the command is interpreted as a shell command, i.e. the previously mentioned command will now look like `phpbrew each phpbrew ext install xdebug`. This change opens the possibility to run shell commands like `phpbrew each phpunit` and internal PHPBrew commands implemented in shell like `phpbrew each phpbrew fpm restart`. +- Added support for php pre-release versions, including alpha, beta and RC (#915) +- Improved the "ext enable" command (#911) + - Added support for bundled shared extension / pre-built extension + - Generate absolute path for zend extension for php lower than 5.5 +- Fixed proxy auth problem for wget downloader (#897) +- Fixed problems when installing packages with os or architecture dependency (#917, phpbrew/PEARX#8) +- Added the LDAP variant (#906) +- Use bundled GD if no prefix provided (#907) +- Fixed cURL extension being silently dropped if dependencies not found (#913) + + +### Version 1.22.8 +- Use sha256 instead of md5 for newer release (#884) +- Implemented purging multiple PHP builds at one time (#881) +- Added phpcbf to App store (#853) +- Improved user experience (#880) + + +### Version 1.22.7 +- Updated App store (#850) +- Improved warning messages about environment check + - Added check for ctype for parsing yaml file (#819) + - Added rootless check and tips for osX 10.11+ (#824) + - Removed check for curl extension +- Fixed fish shell compatibility problems (#810, #860) +- Fixed --cache-file option escape +- Improved user experience (#798, #792) + +### Version 1.22.6 +- Fixed .phpbrew lookup in parent directories (#775) +- Improved MySQL socket path detection on Ubuntu +- Added psysh to app store +- Removed openssl extension requirement +- Improved user experience (#799, #807) + +### Version 1.22.5 +- Fixed downloading historic version from museum (#769) +- Fixed wget downloader failure when some special chars presents + +### Version 1.22.4 + +- Fixed extension installer exception with Buildable interface. +- Added getBuildLogPath() method to Buildable interface. +- Check sd-daemon.h header for --with-fpm-systemd option. + +### Version 1.22.2 + +- Refined init command to support --root option. +- Fixed is_writable check in fpm setup command. +- Fixed few bugs in fpm setup --initd option, there are some limitation: + - The generated init.d script depends on lsb-base >= 4.0. + - If initctl is based on upstart, the init.d script will not be executed. + To check, please run /sbin/initctl --version in the command-line. + +### Version 1.22.1 + +- The install command now patches the default listen path defined in php-fpm/www.conf + for each different build. + +- Fixed pgsql base dir finder + + +### Version 1.22.0 + +- Added fpm setup command: + + To setup systemctl service config for the current php: + + phpbrew fpm setup --systemctl + + To setup launchctl service config for the current php: + + phpbrew fpm setup --launchctl + + To setup init.d script for the current php: + + phpbrew fpm setup --initd + + To setup scripts for other php builds: + + phpbrew fpm setup --initd 5.6 + +- Added fpm which command to show which php-fpm will be used. + + +### Version 1.21.6 + +- Moved dtrace to variant option. +- Fixed downloader option +- Added options for `phpbrew ext known` +- Added --downloader support for PeclDownloader + +### Version 1.21.5 + +- Fixed readline variant prefix +- Fixed lookup prefix ordering (prefer libraries from macports, homebrew, then system) +- Fixed build exception catching + +### Version 1.21.4 + +- Fixed GithubProvider curl setup. +- Fixed PhpCurlDownloader options object singleton. +- Removed `tee` when using stdout, it doesn't report exit status when using pipe. +- Added more variant tests. +- Supported prefix from `brew --prefix pcre`. +- Fixed gettext prefix detection. +- Fixed curl prefix with curl-config. + + +### Version 1.21.3 + +- `mysql_config` lookup is improved. +- Added `pg_config` support for pgsql prefix. +- Improved `pdo_pgsql` prefix. +- readline will now prefered over editline and the two libraries conflicts. + + Users might prefer readline over libedit + + because only readline supports readline_list_history() + (http://www.php.net/readline-list-history). On the other hand we want + libedit to be the default because its license is compatible with PHP's + which means PHP can be distributable. + + related issue https://github.com/phpbrew/phpbrew/issues/497 + +- Deprecated icu variant, search for icu directory in +intl variant. +- Fixed extra options serialization +- Replaced "system" with "exec" +- Fixed timezone grepping issue for #557 +- Fixed PHPBREW_BIN issue for #335 + +Bash + +- Replaced "cd" with "builtin cd" +- Added "fpm current" command for #248 + +### Version 1.21.1 + +- Fixed BSD make issue - prefer gmake over make. remove --quiet flag when os == bsd +- Added more path detection for apxs2 +- Added more path detection for gettext +- Added --with-mysql-sock option autodetection +- Run pkg-config only when pkg-config is found. + +### Version 1.21.0 - Wed Apr 27 23:19:33 2016 + +- Refactored patch classes +- Supported new diff-based patches and regexp-based patches +- Added some default options for 5.3, 5.4, 5.5 and 5.6 separately +- Added BeforeConfigureTask and AfterConfigureTask to separate build phases. + +Patches +- Added multiple-sapi patch for 5.3.29 + +### Version 1.20.8 - Sat Apr 23 01:41:37 2016 + +- Fixed openssl build issue on darwin https://github.com/phpbrew/phpbrew/issues/636 +- Replaced ':' with `PATH_SEPARATOR` to make the path generation indenpendant. +- Few fixes + +### Version 1.20.7 - Sun Apr 17 18:13:29 2016 + +- Commit e1fc2a4: Merge pull request #683 from Simplesmente/master + + add file README.pt-br.md and translating + +- Commit 7ad9da5: Merge pull request #701 from zvook/master + + Network is unreachable php.net fix + +- Commit f1fdd1d: Merge pull request #703 from jhdxr/develop + + fix issues about known command + +- Commit 5ca79aa: Merge pull request #653 from jhdxr/feature/down + + refactor downloading related part ( #571 ) + +- Commit 1475c8c: Merge pull request #652 from jhdxr/feature/fish + + bugfix and improvements for fish + +- Commit 2e41279: Merge pull request #637 from morozov/virtual-variant-value + + Do not override explicitly specified values with the default from virtual variants + +### Version 1.20.6 - Fri Mar 4 13:41:32 2016 + +phpbrewrc: + +- Improved .phpbrewrc searching effiency and fixed a bug related to $PWD. +- Added help message about enabling .phpbrewrc in init command. +- .phpbrewrc searching will be disabled by default and have to be enabled manually. + +command improvement: +- Added arginfo to env command +- Fixed phar file for dump() function by updating package dependencies to avoid + compiling packages from require-dev section (cliframework) +- Allow user value of variants contains dot character + +fish: +- Added proper redirect to STDERR for Fish shell + + +### Version 1.20.4 - Mon Dec 14 19:37:01 2015 + +- Commit 2e41279: Merge pull request #637 from morozov/virtual-variant-value + + Do not override explicitly specified values with the default from virtual variants + +- Commit 728ff9b: Merge pull request #634 from kurotaky/fix-phpbrew-bin-path-connection + + Does not connect the phpbrew bin path when `$PHPBREW_BIN` is blank + +- Commit 3c5d6d8: Merge pull request #631 from Dexus/Dexus-patch-1 + + Fix ReleaseList.php and Options forwarding + +### Version 1.20.3 - Mon Dec 7 23:56:32 2015 + +- Fixed duplicated getBuild method in SystemCommandException +- Fixed class loading for symfony yaml component with new cliframework + +### Version 1.20.2 - Mon Dec 7 09:15:23 2015 + +- added better php7 build support. +- fixed apxs2 patch for php7. +- improved travis-ci build speed. +- improved build process error message by dumping the last 5 lines of log to + console directly. +- moved built phpbrew phar file into build/phpbrew +- created a symbol link 'phpbrew' under the root of project directory and make + it pointing to 'build/phpbrew' + +### Version 1.20.1 - Thu Jul 27 16:30:27 2015 + +- sensibly forces redownload when using wget #554 +- adds MSSQL extension to php src bundled extensions list #551 + +### Version 1.20.0 - Thu Jul 16 00:11:58 2015 + +- Added php app store. + +### Version 1.19.7 - Fri Jun 26 16:50:20 2015 -0300 + +- dries `ext clean` + gives status in all failure cases +- update completion +- fixes --old flag for known and update commands closes #526 improves + description of --connect-timeout +- command download: update argument completion +- fix zsh completion: avoid single quote + +Merged pull requests: + +- Commit 060c6e0: Merge pull request #531 from jhdxr/fix/530 + + update doc for known command, add --http-proxy and --http-proxy-auth + +- Commit ae15d68: Merge pull request #525 from jhdxr/fix/524 + + self-update download to a tmp file first instead of overwrite the exi… + +### Version 1.19.1 - Tue May 19 23:05:20 2015 + +- Fixed OS X compatibility regarding `whereis -b` #503 + +### Version 1.19.0 - Mon May 18 21:17:13 2015 + +- PHP7 (next unstable version) install support +- Updadted completion scripts thanks to awesome CliFramework +- Fixed false failure of ./buildconf step +- Fixed PHP 5.3 error with JSON_PRETTY_PRINT +- Fixed phpbrew prepends $PATH on every cd command #487 +- Deprecated php-releases.json use php.net json endpoint from now on +- Fix bug in variant parser #495 +- List installed php versions in decrescent order +- Improved URL policy to locate older minor releases whenever URLs are altered +- Allow overriding PHP when runnning phpbrew #94 + +### Version 1.18.5 - Wed Apr 22 22:28:47 2015 + +- Always make sure phpbrew root/home exists for issue #475 +- Added options to speicfy phpbrew root/home for install command. +- Fixed `use` command argument validation for supporting 'latest' +- Merged pull request #466 from vasiliy-pdk/error_during_tests_fix +- CONNECT_TIMEOUT env variable and --connect_timeout option was added. Fatal Error during tests fixed +- Added more variants to `+everything` #457 +- Use log tail hint with "tail -F" instead of "tail -f" +- added support for SPL_Types extension install #456 +- Use cp insteaad of mv on Makefile install task +- Removed redundant if statements in UrlDownloader. +- Merged pull request #444 from shinnya/fix/download_always_fai + +### Version 1.15 - Tue Oct 14 20:23:54 2014 + +- Used CurlKit instead of command line curl or wget to download the distribution files. +- Added more options to the install command, added options: + - `--no-clean` + - `--no-install` + - `--no-patch` + - `--build-dir=DIR` + - `--make-jobs=N` is now renamed to `--jobs=N` + + Please run `phpbrew help install` to see the details of the command options. + +- Directory for the downloaded distribution files is now separated. +- date.timezone and phar.readonly ini file patch is fixed. +- Error redirection is now improved. +- Use JSON meta data for PHP releases. +- Added `--update` option to `known` command, this can update the release meta data: + + phpbrew known --update + +- Improve command help generator. +- Since the release meta info is stored in the cache, known command is now faster. +- Included the multi-arch libdir fix. +- Use some of the default variants if `+default` is not set. +- Fix getoptionkit bug for variant parsing: https://github.com/phpbrew/phpbrew/issues/353 +- Fix use, switch commands for switching to an aliased build. + +Development updates: + +- Variant info is refactored into BuildSettings class. +- VariantParser is refactored and simplified. +- Builder class is removed. +- Install command class is refactored with the `Build` class. +- Upgraded CLIFramework to 2.0.x +- Upgraded CurlKit to 1.0 +- Upgraded PEARX 1.0.3 to fix 404 page not found when distribution file does not exist. + +### Version 1.12 - Wed Dec 11 09:56:22 2013 + +- Install command now run commands below after installations: + + pear config-set temp_dir $HOME/.phpbrew/tmp/pear/temp + pear config-set cache_dir $HOME/.phpbrew/tmp/pear/cache_dir + pear config-set download_dir $HOME/.phpbrew/tmp/pear/download_dir + pear config-set auto_discover 1 + +### Version 1.11.3 - Sun Dec 8 14:38:14 2013 - Fixed libdir detection - Enabled `xml` variant by default @@ -9,7 +362,7 @@ Version 1.11.3 - Sun Dec 8 14:38:14 2013 - Fix +iconv variant ( --with-iconv=/usr won't be compiled on systems with gnu iconv ) - Fix +gd variant ( --with-gd=/usr won't be compiled, --with-gd=shared,$prefix works) -Version 1.11 - Wed Dec 4 13:28:00 2013 +### Version 1.11 - Wed Dec 4 13:28:00 2013 - Added platform prefix setup command: @@ -25,23 +378,23 @@ Version 1.11 - Wed Dec 4 13:28:00 2013 +gd=shared should work for Mac OS platform -- platform libdir is supported, now supports for include/lib paths under +- platform libdir is supported, now supports for include/lib paths under $prefix/i386-linux-gnu/ $prefix/x86_64-linux-gnu/ -Version 1.10 - Tue Dec 3 22:55:22 2013 +### Version 1.10 - Tue Dec 3 22:55:22 2013 - Added 'opcache' variant. - Added fpm management support. - Added quick commands to switch between directories. - Added phpbrew/bin directory to install shared executables, e.g. composer, phpunit, onion ...etc -Version 1.8.22 - Mon Nov 18 17:23:29 2013 +### Version 1.8.22 - Mon Nov 18 17:23:29 2013 - Copy php-fpm default config to {php-version}/etc/ -Version 1.8.3 - Sat Mar 9 19:38:22 2013 +### Version 1.8.3 - Sat Mar 9 19:38:22 2013 - Add new extension installer. - Fix extension enable feature. @@ -50,19 +403,20 @@ Version 1.8.3 - Sat Mar 9 19:38:22 2013 - Show variants and options when listing phps - Provide a patch for php5.3 msgformat libstdc++ bug on 64bit machines. -Version 1.3.3 - 一 4/30 11:27:09 2012 +### Version 1.3.3 - 一 4/30 11:27:09 2012 + - Added posix variant. - Added calendar variant. - Improve install-ext command. -Version 1.3.1 - 三 3/14 02:20:08 2012 +### Version 1.3.1 - 三 3/14 02:20:08 2012 - Fixed bash shell redirection bug. - Added install-ext command. - Added iconv variant. - Added PHP version info prompt. -Version 1.2.0 - 二 3/ 6 10:50:51 2012 +### Version 1.2.0 - 二 3/ 6 10:50:51 2012 - SAPI confliction check. - show tail command usage. @@ -70,7 +424,7 @@ Version 1.2.0 - 二 3/ 6 10:50:51 2012 - show default variants with star. - Add bz2, fpm, cgi, cli variants. -Version 1.1.0 +### Version 1.1.0 - openssl variant - variant command diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..9c5d1f4da --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,22 @@ +Contribution Guideline +======================= + +1. Please see "Trouble Shooting" page before you open a bug or issue: + L. +2. If you encountered some installation issue, please also attach your build log file (build.log) to improve the diagnosis process. for example: + + $ phpbrew ext install pdo_dblib + ===> Installing pdo_dblib extension... + Log stored at: /home/user/.phpbrew/build/php-5.4.39/ext/pdo_dblib/build.log + +3. If the error message is not clear enough, you may add an extra option `--debug` after the program name in the command line, e.g., + + $ phpbrew --debug ext install ... + $ phpbrew --debug install ... +4. Before you send the pull request, please rebase & squash your commits. See this guide for details: https://git-scm.com/book/zh-tw/v2/Git-Tools-Rewriting-History + +5. If the PR is for the releasing version, please use the following steps to create related PR: + + - Ensuring the extra branch-alias setting is matched for releasing version in the composer.json. + - Editing the src/PhpBrew/Console.php to modify the VERSION variable. + - Using the `make sign` command to create the Phar file and make the GPG sign with local GPG key. diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md deleted file mode 100644 index a7b65a0bf..000000000 --- a/CONTRIBUTORS.md +++ /dev/null @@ -1,26 +0,0 @@ -Contributors -=============== - -Sort alphabatically: - -* Daniele Orlando -* Gasol Wu -* Henrik Bjørnskov -* Jace Ju -* Mark Wu -* Márcio Almada -* Pedro -* Rack Lin -* ScarWu -* Yi-Feng Tzeng -* Yo-An Lin -* Zhang Erning -* chadrien -* huglester -* jlas -* kazusuke sasezaki -* keitaoouchi -* makoto_kw -* rado-h -* shelling -* ujihisa diff --git a/Doxyfile b/Doxyfile deleted file mode 100644 index 941bc951a..000000000 --- a/Doxyfile +++ /dev/null @@ -1,1792 +0,0 @@ -# Doxyfile 1.8.1.1 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" "). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or sequence of words) that should -# identify the project. Note that if you do not use Doxywizard you need -# to put quotes around the project name if it contains spaces. - -PROJECT_NAME = "PHPBrew" - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer -# a quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is -# included in the documentation. The maximum height of the logo should not -# exceed 55 pixels and the maximum width should not exceed 200 pixels. -# Doxygen will copy the logo to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = build/doxygen - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful if your file system -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = YES - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 8 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding -# "class=itcl::class" will allow you to use the command class in the -# itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this -# tag. The format is ext=language, where ext is a file extension, and language -# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, -# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make -# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions -# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. - -EXTENSION_MAPPING = inc=PHP php=PHP - -# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all -# comments according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you -# can mix doxygen, HTML, and XML commands with Markdown formatting. -# Disable only in case of backward compatibilities issues. - -MARKDOWN_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also makes the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and -# unions are shown inside the group in which they are included (e.g. using -# @ingroup) instead of on a separate page (for HTML and Man pages) or -# section (for LaTeX and RTF). - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and -# unions with only public data fields will be shown inline in the documentation -# of the scope in which they are defined (i.e. file, namespace, or group -# documentation), provided this scope is documented. If set to NO (the default), -# structs, classes, and unions are shown on a separate page (for HTML and Man -# pages) or section (for LaTeX and RTF). - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penalty. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will roughly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -SYMBOL_CACHE_SIZE = 0 - -# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be -# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given -# their name and scope. Since this can be an expensive process and often the -# same symbol appear multiple times in the code, doxygen keeps a cache of -# pre-resolved symbols. If the cache is too small doxygen will become slower. -# If the cache is too large, memory is wasted. The cache size is given by this -# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = NO - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespaces are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = NO - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to -# do proper type resolution of all parameters of a function it will reject a -# match between the prototype and the implementation of a member function even -# if there is only one candidate or it is obvious which candidate to choose -# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen -# will still accept a match between prototype and implementation in such cases. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or macro consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and macros in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. -# This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files -# containing the references data. This must be a list of .bib files. The -# .bib extension is automatically appended if omitted. Using this command -# requires the bibtex tool to be installed. See also -# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style -# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this -# feature you need bibtex and perl available in the search path. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = YES - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# The WARN_NO_PARAMDOC option can be enabled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = src vendor - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh -# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py -# *.f90 *.f *.for *.vhd *.vhdl - -FILE_PATTERNS = *.php - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. -# If FILTER_PATTERNS is specified, this tag will be -# ignored. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. -# Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. -# The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty or if -# non of the patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) -# and it is also possible to disable source filtering for a specific pattern -# using *.ext= (so without naming a filter). This option only has effect when -# FILTER_SOURCE_FILES is enabled. - -FILTER_SOURCE_PATTERNS = - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C, C++ and Fortran comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. -# Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = YES - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. Note that when using a custom header you are responsible -# for the proper inclusion of any scripts and style sheets that doxygen -# needs, which is dependent on the configuration options used. -# It is advised to generate a default header using "doxygen -w html -# header.html footer.html stylesheet.css YourConfigFile" and then modify -# that header. Note that the header is subject to change so you typically -# have to redo this when upgrading to a newer version of doxygen or when -# changing the value of configuration settings such as GENERATE_TREEVIEW! - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# style sheet in the HTML output directory as well, or it will be erased! - -HTML_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that -# the files will be copied as-is; there are no commands or markers available. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the style sheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of -# entries shown in the various tree structured indices initially; the user -# can expand and collapse entries dynamically later on. Doxygen will expand -# the tree to such a level that at most the specified number of entries are -# visible (unless a fully collapsed tree already exceeds this amount). -# So setting the number of entries 1 will produce a full collapsed tree by -# default. 0 is a special value representing an infinite number of entries -# and will result in a full expanded tree by default. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) -# at top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. Since the tabs have the same information as the -# navigation tree you can set this option to NO if you already set -# GENERATE_TREEVIEW to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. -# Since the tree basically has the same information as the tab index you -# could consider to set DISABLE_INDEX to NO when enabling this option. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values -# (range [0,1..20]) that doxygen will group on one line in the generated HTML -# documentation. Note that a value of 0 will completely suppress the enum -# values from appearing in the overview section. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax -# (see http://www.mathjax.org) which uses client side Javascript for the -# rendering instead of using prerendered bitmaps. Use this if you do not -# have LaTeX installed or if you want to formulas look prettier in the HTML -# output. When enabled you may also need to install MathJax separately and -# configure the path to it using the MATHJAX_RELPATH option. - -USE_MATHJAX = NO - -# When MathJax is enabled you need to specify the location relative to the -# HTML output directory using the MATHJAX_RELPATH option. The destination -# directory should contain the MathJax.js script. For instance, if the mathjax -# directory is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to -# the MathJax Content Delivery Network so you can quickly see the result without -# installing MathJax. -# However, it is strongly recommended to install a local -# copy of MathJax from http://www.mathjax.org before deployment. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension -# names that should be enabled during MathJax rendering. - -MATHJAX_EXTENSIONS = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = YES - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be -# implemented using a PHP enabled web server instead of at the web client -# using Javascript. Doxygen will generate the search PHP script and index -# file to put on the web server. The advantage of the server -# based approach is that it scales better to large projects and allows -# full text search. The disadvantages are that it is more difficult to setup -# and does not have live searching capabilities. - -SERVER_BASED_SEARCH = NO - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = YES - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = latex - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = makeindex - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = NO - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, letter, legal and -# executive. If left blank a4wide will be used. - -PAPER_TYPE = a4 - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for -# the generated latex document. The footer should contain everything after -# the last chapter. If it is left blank doxygen will generate a -# standard footer. Notice: only use this tag if you know what you are doing! - -LATEX_FOOTER = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = YES - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = YES - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = NO - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include -# source code with syntax highlighting in the LaTeX output. -# Note that which sources are shown also depends on other settings -# such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -# The LATEX_BIB_STYLE tag can be used to specify the style to use for the -# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See -# http://en.wikipedia.org/wiki/BibTeX for more info. - -LATEX_BIB_STYLE = plain - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = NO - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = NO - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load style sheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = NO - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = NO - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. -# This is useful -# if you want to understand what is going on. -# On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = NO - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = NO - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# pointed to by INCLUDE_PATH will be searched when a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = vendor/pear - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition that -# overrules the definition found in the source code. - -EXPAND_AS_DEFINED = - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all references to function-like macros -# that are alone on a line, have an all uppercase name, and do not end with a -# semicolon, because these will confuse the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. For each -# tag file the location of the external documentation should be added. The -# format of a tag file without this location is as follows: -# -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths -# or URLs. Note that each tag file must have a unique name (where the name does -# NOT include the path). If a tag file is not located in the directory in which -# doxygen is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option also works with HAVE_DOT disabled, but it is recommended to -# install and use dot, since it yields more powerful graphs. - -CLASS_DIAGRAMS = YES - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = YES - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = NO - -# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is -# allowed to run in parallel. When set to 0 (the default) doxygen will -# base this on the number of processors available in the system. You can set it -# explicitly to a value larger than 0 to get control over the balance -# between CPU load and processing speed. - -DOT_NUM_THREADS = 0 - -# By default doxygen will use the Helvetica font for all dot files that -# doxygen generates. When you want a differently looking font you can specify -# the font name using DOT_FONTNAME. You need to make sure dot is able to find -# the font, which can be done by putting it in a standard location or by setting -# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the -# directory containing the font. - -DOT_FONTNAME = Helvetica - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the Helvetica font. -# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to -# set the path where dot can find it. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = NO - -# If the UML_LOOK tag is enabled, the fields and methods are shown inside -# the class node. If there are many fields or methods and many nodes the -# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS -# threshold limits the number of items for each type to make the size more -# managable. Set this to 0 for no limit. Note that the threshold may be -# exceeded by 50% before the limit is enforced. - -UML_LIMIT_NUM_FIELDS = 10 - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = NO - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will generate a graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are svg, png, jpg, or gif. -# If left blank png will be used. If you choose svg you need to set -# HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible in IE 9+ (other browsers do not have this requirement). - -DOT_IMAGE_FORMAT = png - -# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to -# enable generation of interactive SVG images that allow zooming and panning. -# Note that this requires a modern browser other than Internet Explorer. -# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you -# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible. Older versions of IE do not have SVG support. - -INTERACTIVE_SVG = NO - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The MSCFILE_DIRS tag can be used to specify one or more directories that -# contain msc files that are included in the documentation (see the -# \mscfile command). - -MSCFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = NO - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/HACKING.md b/HACKING.md deleted file mode 100644 index 2082c5161..000000000 --- a/HACKING.md +++ /dev/null @@ -1,44 +0,0 @@ -Hacking -========== - - -Install Onion first: - - $ curl http://install.onionphp.org/ | sh - -Install dependencies: - - $ onion -d install - -Initialize - - $ php bin/phpbrew init - -To hack with phpbrew shell script: - - $ vim phpbrew.sh - -And then update the init script to the command class: - - $ ./scripts/update-init-script - -List known versions: - - $ php bin/phpbrew known - -Test your command through the `bin/phpbrew`: - - $ php bin/phpbrew -d install --no-test 5.4.0RC7 - -To show which phpbrew is running: - - $ unset -f phpbrew - $ which phpbrew - -Re-compile phar file for testing: - - $ scripts/compile - -Add yourself to the contributor list in README.md - -Then send pull request. diff --git a/LICENSE b/LICENSE index 618ff9e90..d99536bab 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013 Yo-An Lin +Copyright (c) 2013-2015 Yo-An Lin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..bfcd8cc62 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +TARGET = phpbrew +SIGNATURE = $(TARGET).asc +CP = cp +INSTALL_PATH = /usr/local/bin +TEST = phpunit + +$(TARGET): vendor $(shell find bin/ shell/ src/ -type f) box.json.dist .git/HEAD + box compile + touch -c $@ + +vendor: composer.lock + composer install + touch $@ + +.PHONY: sign +sign: $(SIGNATURE) + +$(SIGNATURE): $(TARGET) + gpg --armor --detach-sign $(TARGET) + +install: $(TARGET) + $(CP) $(TARGET) $(INSTALL_PATH) + +update/completion: + bin/phpbrew zsh --bind phpbrew --program phpbrew > completion/zsh/_phpbrew + bin/phpbrew bash --bind phpbrew --program phpbrew > completion/bash/_phpbrew + +test: + $(TEST) + +clean: + git checkout -- $(TARGET) diff --git a/README.cn.md b/README.cn.md new file mode 100644 index 000000000..9ed9274e1 --- /dev/null +++ b/README.cn.md @@ -0,0 +1,513 @@ +PHPBrew +======= + +*本文档其它语言:[English](README.md), [Português - BR](README.pt-br.md), [日本語](README.ja.md), [中文](README.cn.md).* + +[![Build Status](https://travis-ci.org/phpbrew/phpbrew.svg?branch=master)](https://travis-ci.org/phpbrew/phpbrew) +[![Coverage Status](https://img.shields.io/coveralls/phpbrew/phpbrew.svg)](https://coveralls.io/r/phpbrew/phpbrew) +[![Gitter](https://badges.gitter.im/phpbrew/phpbrew.svg)](https://gitter.im/phpbrew/phpbrew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) + +phpbrew 是一个构建、安装多版本 PHP 到用户根目录的工具。 + +phpbrew 能做什么? + +- 配置选项简化为「Variants」,无需担心路径问题。 +- 支持使用 PDO,mysql,sqlite,debug 等不同「Variants」编译 PHP。 +- 针对不同版本,分别编译 apache php 模块,互不冲突。 +- 无需 root 权限将 PHP 安装到用户根目录。 +- 集成至 bash / zsh shell 等,易于切换版本。 +- 支持自动特性检测。 +- 易于安装、启用 PHP 扩展。 +- 支持在系统环境下安装多个 PHP。 +- 路径检测针对 HomeBrew 以及 MacPorts 进行了优化。 + + + + +## 安装需求 + +在开始之前,请先查看:[Requirement](https://github.com/phpbrew/phpbrew/wiki/Requirement)(英文)。 +确保已安装依赖包的开发版本用于编译 PHP。 + +## 安装 + +```bash +curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar +chmod +x phpbrew.phar + +# Move the file to some directory within your $PATH +sudo mv phpbrew.phar /usr/local/bin/phpbrew +``` + +## 快速入门 + +急不可待?请直接查看:[Quick Start](https://github.com/phpbrew/phpbrew/wiki/Quick-Start)(英文)。 + +## 开始使用 + +接下来,我们假定你有充足的时间来学习,这将会是一个循序渐进的教程——教你如何配置 phpbrew。 + +### 初始设置 + +首先,初始化 Bash Shell 脚本: + +```bash +phpbrew init +``` + +接着在 `.bashrc` 或 `.zshrc` 文件增加如下行: + +```bash +[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc +``` + +对于 Fish shell 用户,在 `~/.config/fish/config.fish` 文件增加如下行: + +```fish +source ~/.phpbrew/phpbrew.fish +``` + +若需要在系统全局(非用户目录)使用 phpbrew,请设置共享的 phpbrew 根目录,例如: + +```bash +mkdir -p /opt/phpbrew +phpbrew init --root=/opt/phpbrew +``` + +### 库路径设置 + +其次,请设置用于查找库文件的默认前缀,可选值有 `macports`,`homebrew`,`debian`,`ubuntu` 或是自定义路径。 + +对于 Homebrew 用户: + +```bash +phpbrew lookup-prefix homebrew +``` + +对于 Macports 用户: + +```bash +phpbrew lookup-prefix macports +``` + +## 基础用法 + +列出已知 PHP 版本: + +```bash +phpbrew known + +7.0: 7.0.3, 7.0.2, 7.0.1, 7.0.0 ... +5.6: 5.6.18, 5.6.17, 5.6.16, 5.6.15, 5.6.14, 5.6.13, 5.6.12, 5.6.11 ... +5.5: 5.5.32, 5.5.31, 5.5.30, 5.5.29, 5.5.28, 5.5.27, 5.5.26, 5.5.25 ... +5.4: 5.4.45, 5.4.44, 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38 ... +5.3: 5.3.29, 5.3.28 ... +``` + +列出更多次要版本: + +```bash +$ phpbrew known --more +``` + +刷新 PHP 发布信息: + +```bash +$ phpbrew update +``` + +刷新旧版本(低于5.4): + +> 请注意:我们不保证能够正确编译 PHP 官方停止维护的版本,请不要提交关于编译旧版本的 Issus,此类 Issue 将不会修复。 + +```bash +$ phpbrew update --old +``` + +列出已知的旧版本(低于5.4): + +```bash +$ phpbrew known --old +``` + +## 编译属于你的 PHP + +使用默认参数编译安装 PHP 非常简单: + +```bash +$ phpbrew install 5.4.0 +default +``` + +这里我们推荐使用已包含绝大多数公共参数的 `default`(默认)参数集合。如果你需要「最小安装」,删掉`default`执行即可。 + +你可以使用`-j`或`--jobs`选项启用并行编译,例如: + +```bash +$ phpbrew install -j $(nproc) 5.4.0 +default +``` + +编译完成后执行测试用例: + +```bash +$ phpbrew install --test 5.4.0 +``` + +测试环境,且包含调试信息: + +```bash +$ phpbrew -d install --test 5.4.0 +``` + +安装旧版本(低于5.3): + +```bash +$ phpbrew install --old 5.2.13 +``` + +安装给定主要版本的最新次要版本: + +```bash +$ phpbrew install 5.6 +``` + +安装预览版本: + +```bash +$ phpbrew install 7.2.0alpha1 +$ phpbrew install 7.2.0beta2 +$ phpbrew install 7.2.0RC3 +``` + +通过指定的 GitHub tag 或 branch 安装: + +```bash +$ phpbrew install github:php/php-src@PHP-7.2 as php-7.2.0-dev +``` + +安装下一个(非稳定)版本: + +```bash +$ phpbrew install next as php-7.3.0-dev +``` + +## 清除编译目录 + +```bash +$ phpbrew clean php-5.4.0 +``` + +## Variants + +PHPBrew 已经将配置选项整理、合并为「Variants」,你只需简单地指定某个 Variant 即可,phpbrew 会自动在配置过程中检测引用目录、编译选项等。 + +PHPBrew 提供默认的 Variant ,以及一些虚拟 Variants。 +「Default Variant」包含绝大多数公共 Variants; +「Virtual Variants」可包含多个 Variants,使用一个虚拟 Variant 即可一次性启用多个 Variants。 + +只需执行`variants`子命令,即可列出它们。 + +在 Variant 前添加`+`前缀,代表启用此 Variant,例如: + + +mysql + +在 Variant 前添加`-`前缀,代表禁用此 Variant,例如: + + -mysql + +举个例子,假设你使用默认 Variant,并且需要启用数据库支持(mysql,sqlite,postgresql)编译 PHP,只需执行: + +```bash +$ phpbrew install 5.4.5 +default+dbs +``` + +也可以: + +```bash +$ phpbrew install 5.3.10 +mysql+sqlite+cgi + +$ phpbrew install 5.3.10 +mysql+debug+pgsql +apxs2 + +$ phpbrew install 5.3.10 +pdo +mysql +pgsql +apxs2=/usr/bin/apxs2 +``` + +将 pgsql (PostgreSQL) 扩展编译进 PHP: + +```bash +$ phpbrew install 5.4.1 +pgsql+pdo +``` + +若你的 Mac 上已经安装 postgresql,也可以指定特定目录编译 pgsql 扩展: + +```bash +$ phpbrew install 5.4.1 +pdo+pgsql=/opt/local/lib/postgresql91/bin +``` + +pgsql 的路径即为`pg_config`所在目录,你可以在`/opt/local/lib/postgresql91/bin`找到它。 + +另外,你可以使用名为`neutral`的 Variant 来纯净编译 PHP: + +```bash +$ phpbrew install 5.4.1 +neutral +``` + +`neutral`意味着 phpbrew 不会增加包括`--disable-all`在内的任何额外编译参数,但部分用于安装`pear`的参数(例如`--enable-libxml`)依旧会被添加。 + +更多细节,请移步:[PHPBrew Cookbook](https://github.com/phpbrew/phpbrew/wiki)(英文)。 + +## 拓展配置选项 + +如果想要传递更多拓展配置变量,你可以这么做: + +```bash +$ phpbrew install 5.3.10 +mysql +sqlite -- \ + --enable-ftp --apxs2=/opt/local/apache2/bin/apxs +``` + +## 切换 PHP 版本 + +临时切换 PHP 版本: + +```bash +$ phpbrew use 5.4.22 +``` + +切换默认 PHP 版本: + +```bash +$ phpbrew switch 5.4.18 +``` + +关闭 phpbrew: + +```bash +$ phpbrew off +``` + +若需要启用 Apache PHP 模块,请注释或移除以下设置项: + +```bash +$ sudo vim /etc/httpd/conf/httpd.conf +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.21.so +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.20.so +``` + +## 扩展安装器 + +请查看:[Extension Installer](https://github.com/phpbrew/phpbrew/wiki/Extension-Installer)(英文)。 + +## 配置 php.ini + +配置当前 PHP 版本的 php.ini 文件,只需执行如下命令即可: + +```bash +$ phpbrew config +``` + +如需切换编辑器,可执行如下命令指定 EDITOR 环境变量: + +```bash +export EDITOR=vim +phpbrew config +``` + +## 升级 phpbrew + +执行 `self-update` 即可从 GitHub 的 `master` 分支安装 phpbrew 最新版本。 + +```bash +$ phpbrew self-update +``` + +## 已安装的 PHP + +列出已安装的 PHP: + +```bash +$ phpbrew list +``` + +你可以在 `~/.phpbrew/php` 目录找到已安装的 PHP。例如,5.4.20 版本位于: + + ~/.phpbrew/php/5.4.20/bin/php + +你可以手动修改其 php.ini: + + ~/.phpbrew/php/5.4.20/etc/php.ini + +而 PHP 扩展的配置文件位于: + + ~/.phpbrew/php/5.4.20/var/db + ~/.phpbrew/php/5.4.20/var/db/xdebug.ini + ~/.phpbrew/php/5.4.20/var/db/apc.ini + ~/.phpbrew/php/5.4.20/var/db/memcache.ini + 等等... + +## 一键切换目录 + +切换至 PHP 编译目录: + +```bash +$ phpbrew build-dir +``` + +切换至 PHP dist 目录: + +```bash +$ phpbrew dist-dir +``` + +切换至 PHP etc 目录: + +```bash +$ phpbrew etc-dir +``` + +切换至 PHP var 目录: + +```bash +$ phpbrew var-dir +``` + +## PHP FPM + +phpbrew 内置一些有用的命令用于管理 php-fpm。使用它们之前,请确认在 PHP 编译时启用了 `+fpm`。 + +启动 php-fpm: + +```bash +$ phpbrew fpm start +``` + +停止 php-fpm: + +```bash +$ phpbrew fpm stop +``` + +列出 php-fpm 模块: + +```bash +phpbrew fpm module +``` + +测试 php-fpm 配置: + +```bash +phpbrew fpm test +``` + +编辑 php-fpm 配置: + +```bash +phpbrew fpm config +``` + +> 已安装的 `php-fpm` 位于 `~/.phpbrew/php/php-*/sbin` 目录。 +> +> 对应的 `php-fpm.conf` 文件位于 `~/.phpbrew/php/php-*/etc/php-fpm.conf.default` 目录。 +> +> 你可以把默认配置复制到自定义路径再使用,例如: +> +> cp -v ~/.phpbrew/php/php-*/etc/php-fpm.conf.default +> ~/.phpbrew/php/php-*/etc/php-fpm.conf +> +> php-fpm --php-ini {php config file} --fpm-config {fpm config file} + +## 安装拓展应用 + +phpbrew 内置了用来获取部分 PHP 应用的 app 命令。 + +### 安装 Composer + +```bash +$ phpbrew app get composer +``` + +### 安装 PHPUnit + +```bash +phpbrew app get phpunit +``` + +## 启用版本信息 Prompt + +使用`"PHPBREW_SET_PROMPT=1"`变量可将 PHP 版本信息加入 Shell Prompt。 + +此变量默认值为`"PHPBREW_SET_PROMPT=0"`(即禁用),将如下行加入`~/.bashrc`文件,确保其在`source ~/.phpbrew/bashrc`之前,即可启用此功能: + +```bash +export PHPBREW_SET_PROMPT=1 +``` + +使用`.phpbrew/bashrc`内定义的`phpbrew_current_php_version`函数,可将版本信息嵌入到 Shell Prompt。你可以将版本信息设置到 `PS1` 变量内,例如: + +```bash +PS1=" \$(phpbrew_current_php_version) \$ " +``` + + +已知问题 +------------ + +- 对于 PHP-5.3+ 版本,"Building intl 64-bit fails on OS X" + +- 将 GD 扩展编译进 PHP,你需要指定 libpng 目录、libjpeg 目录,例如: + + $ phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2 \ + -- --with-libdir=lib/x86_64-linux-gnu \ + --with-gd=shared \ + --enable-gd-natf \ + --with-jpeg-dir=/usr \ + --with-png-dir=/usr + + +故障排查 +------------------- + +请移步:[TroubleShooting](https://github.com/phpbrew/phpbrew/wiki/TroubleShooting)(英文)。 + + +常见问答 +------------------------- + +Q: 如何使用不同的参数编译相同 PHP 版本? + +A: 截至目前,你可以安装 php-5.x.x 并重命名其目录 /Users/phpbrew/.phpbrew/php/php-5.x.x(例如:php-5.x.x-super),并安装另一个 php5.x.x。 + + +参与贡献 +------------------ +请移步:[Contribution](https://github.com/phpbrew/phpbrew/wiki/Contribution)(英文)。 + + +文档 +------------- +请移步:[Wiki](https://github.com/phpbrew/phpbrew/wiki)(英文)。 + + +作者 +------ + +- Yo-An Lin (c9s) +- Márcio Almad + + +授权 +-------- + +请查看:[LICENSE](LICENSE) 文件。 + +翻译 +-------- +- [@wi1dcard](https://github.com/wi1dcard) +- [@蝦米](https://github.com/jhdxr) +- Waiting for you... + +希望大家共同参与到翻译工作中;如有不当,烦请指正! + + +[t-link]: https://travis-ci.org/phpbrew/phpbrew "Travis Build" +[s-link]: https://scrutinizer-ci.com/g/phpbrew/phpbrew/?branch=master "Code Quality" +[p-link]: https://packagist.org/packages/marc/phpbrew "Packagist" +[sl-link]: https://insight.sensiolabs.com/projects/02d1fd01-8a70-4fe4-a550-381a3c0e33f3 "Sensiolabs Insight" +[c-badge]: https://coveralls.io/repos/phpbrew/phpbrew/badge.png?branch=master diff --git a/README.ja.md b/README.ja.md index da28b7738..c63419e27 100644 --- a/README.ja.md +++ b/README.ja.md @@ -1,412 +1,512 @@ -PHPBrew -========== - -PHPBrewは異なるバージョンのPHPをホームディレクトリにビルド(build)とインストールすることができます。 - -環境変数の管理もでき、個人の需要に応じてバージョンを切り替えて使うことが出来ます。 - -PHPBrewのできること:: - -- PDO、mysql、sqlite、debugなど様々なバリアント(variant)を持つPHPをビルドします。 -- apacheモジュールをコンパイルし、バージョンごとに分けます。 -- 異なるバージョンのphpをホームディレクトリにインストールするので、ルートパーミッション(root permission)は必要なくなります。 -- 簡単にバージョンを切り替えることができます。しかもbash/zshシェルと統合されました。 -- 自動機能検知。 -- system-wide環境に複数のPHPバージョンをインストールできます。 - - - - - - -## 動作確認環境 (support OS) - -* Mac OS 10.5+ -* Ubuntu -* Debian - -## 必要環境 - -* PHP5.3 -* curl -* gcc, binutil, autoconf, libxml, zlib, readline - -### Mac OS X - -MacPorts: - -```bash -port install curl automake autoconf icu $(port echo depof:php5) -``` - -HomeBrew: - -```bash -brew install automake autoconf curl pcre re2c mhash libtool icu4c gettext jpeg libxml2 mcrypt gmp libevent -brew link icu4c -``` - -### Ubuntu/Debian - -```bash -sudo apt-get install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev -sudo apt-get build-dep php5 -``` - -### Cent OS - -Cent OSの設定 - -```bash -sudo rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm - -# phpがない場合 -sudo yum install --enablerepo=webtatic php php-xml -wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm -sudo rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm -sudo yum install --enablerepo=rpmforge re2c libmhash -``` - -参照: http://matome.naver.jp/odai/2133887830324055901 - -## PHPBrewのインストール - -PHPBrewをダウンロードしてください: - -```bash -curl -O https://raw.github.com/c9s/phpbrew/master/phpbrew -chmod +x phpbrew -sudo cp phpbrew /usr/bin/phpbrew -``` - - -## 基本的な使い方 - -まずはシェル環境にbash scriptをInitします。 - -```bash -$ phpbrew init -``` - -そして次の行を`.bashrc` または`.zshrc` ファイルに追加します: - -```bash -$ source ~/.phpbrew/bashrc -``` - -既知のバージョンを一覧表示します: - -```bash -$ phpbrew known -Available stable versions: - php-5.3.10 - php-5.3.9 - php-5.3.8 - php-5.3.7 -``` - -既知のsvnを含んだバージョンを一覧表示します: - -```bash -$ phpbrew known --svn -``` - -古いバージョン(5.3以前)を一覧表示します: - -```bash -$ phpbrew known --old -``` - -## ビルド(build)とインストール - -簡易にデフォルトバリアントのPHPをビルドとインストールします: - -```bash -$ phpbrew install php-5.4.0 +default -``` - -こちらでは`default` VARIANTセットをお薦めします。デフォルトセットは常用のVARIANTクラスを収録しています。最小限インストールの場合、`default` VARIANTセットを削除してください。 - - -テスト: - -```bash -$ phpbrew install --test php-5.4.0 -``` - -debugメッセージ: - -```bash -$ phpbrew -d install --test php-5.4.0 -``` - - - - - -## バリアント(variants) - -PHPBrewはConfigureオプションを管理します。VARIANTのクラス名を指定するだけで、PHPBrewはincludeパスとオプションを検知します。 - -PHPBrewは常用のVARIANTクラスを収録し、デフォルトのVARIANTセットを提供しています。 -収録されているVARIANTクラスを確認するには、簡単にサブコマンド`variants`を実行して一覧表示を確認できます: - -```bash -$ phpbrew variants - -Variants: - pear - mysql - debug - sqlite - pgsql - cli - apxs2 - cgi - soap - pcntl - ... (etc) -``` - -最新のPHPBrewは2つのVARIANTセットを提供しています: - -1. default (最も常用のバリアント, 例えば:filter bcmath ctype fileinfo pdo posix ipc pcntl bz2 cli intl fpm calendar sockets readline, zip) -2. dbs (sqlite, mysql, pgsql, pdo) - -例: - - $ phpbrew install php-5.4.5 +default+dbs - -それ以外のVARIANTクラスのPHPをビルドすることも可能です: - - $ phpbrew install php-5.3.10 +mysql+sqlite+cgi - - $ phpbrew install php-5.3.10 +mysql+debug+pgsql +apxs2 - - $ phpbrew install php-5.3.10 +mysql +pgsql +apxs2=/usr/bin/apxs2 - -PDOはデフォルトで有効です。 - -PHPとpgSQL (Postgresql)拡張モジュールをビルドします: - - $ phpbrew install php-5.4.1 +pgsql - -あるいはpostgresqlのベースディレクトリを生成してpgSQL拡張モジュールをビルドします: - - $ phpbrew install php-5.4.1 +pgsql=/opt/local/lib/postgresql91 - - -注意点: - -> 1. apacheのphpモジュールをビルドする場合、 -> モジュールディレクトリのパーミッションを書き込み可能に変更してください。 -> 例: `/opt/local/apache2/modules/`。 -> PHPBrewはパーミッションを変更します。 -> インストールした後、httpd.conf設定ファイルを確認し、PHPモジュールを切り替えてください。 -> -> 2. 現在、PHPBrewはapxs2 (apache2) しかサポートしません。 -複数のPHPをインストールした環境の下で`apxs2` VARIANTを有効化したなら、apacheのconfファイルは以下のように設定されています: - - # LoadModule php5_module modules/libphp5.3.10.so - # LoadModule php5_module modules/libphp5.4.0.so - # LoadModule php5_module modules/libphp5.4.0RC8.so - # LoadModule php5_module modules/libphp5.4.0RC7.so - # LoadModule php5_module modules/libphp5.4.1RC2.so - # LoadModule php5_module modules/libphp5.4.1.so - # LoadModule php5_module modules/libphp5.4.2.so - LoadModule php5_module modules/libphp5.4.4.so - -コメントイン、コメントアウトをして簡単にphp5 -apacheモジュールを無効化/有効化にすることができます。 -編集したあとは必ずapache http サーバーを再起動してください:) - -## 追加オプション - -configureスクリプトに追加の引数を渡すには、以下のようにしてください: - - $ phpbrew install php-5.3.10 +mysql +sqlite -- \ - --enable-ftp --apxs2=/opt/local/apache2/bin/apxs - -## 使用(use)と切り替え(switch) - -use (一時的なバージョンの切り替え。現在のシェルのみで有効です。): - -```bash -$ phpbrew use php-5.4.0RC7 -``` - -switch (特定のバージョンをデフォルトとして使用します。): - -```bash -$ phpbrew switch php-5.4.0 -``` - -終了 (useやswitchをやめシステムのPHPを使用します。): - -```bash -$ phpbrew off -``` - -## インストールされたPHPを一覧表示します - -```bash -$ phpbrew list -``` - -## PHPの拡張モジュールをビルド、インストールする - -(インストール手順の後): - - phpbrew ext install pdo - phpbrew ext install xdebug - phpbrew ext install mcrypt --with-mcrypt=/opt/local - -## 拡張モジュールを有効にします - - pecl install mongo - phpbrew enable mongo - - `enable` コマンドはconfig {current php base}/var/db/{extension name}.iniを作成し、拡張モジュールを有効にします。 - -## PHPBrewのアップグレード - -PHPBrewをアップグレードする場合、 `self-update` コマンドを実行するだけで済みます。 -このコマンドは最新バージョンのgithubの`master` branchをインストールすることができます: - - $ phpbrew self-update - -## インストールされたPHPファイル - -インストールされたPHPファイルは`~/.phpbrew/php`に置かれます。例えば、php 5.4.0RC7の場合は: - - ~/.phpbrew/php/5.4.0RC7/bin/php - -設定ファイルは以下の位置に置く必要があります: - - ~/.phpbrew/php/5.4.0RC7/etc/php.ini - -拡張モジュールの設定ファイルは以下の位置に置く必要があります: - - ~/.phpbrew/php/5.4.0RC7/var/db - ~/.phpbrew/php/5.4.0RC7/var/db/xdebug.ini - ~/.phpbrew/php/5.4.0RC7/var/db/apc.ini - ~/.phpbrew/php/5.4.0RC7/var/db/memcache.ini - ... etc - -## system-wide環境のPHPBrewインストール: - -まずは、sudoをルートユーザにする、またはルートユーザでログインします: - - sudo -i - -そしてPHPBrewのbashrcを初期化します: - - phpbrew init - -PHPBrewのパスを指定のパスにエクスポート(export)してから、 -`~/.phpbrew/init` を編集してください。 - - export PHPBREW_ROOT=/opt/phpbrew - -PHPBrew bashrcをソース(source)する。 - - source ~/.phpbrew/bashrc - -インストールsystem-wide PHP: - - phpbrew install php-5.4.5 +default +dbs - -これでPHPファイルは /opt/phpbrew の下にインストールされました。 -PHPBrewがビルドしたPHPをユーザーに使用させるには、bashユーザーがphpbrew/bashrcを読み込む前に`PHPBREW_ROOT` 環境を/etc/bashrc または/etc/profile.d/phpbrewにエクスポートする必要があります。 - - export PHPBREW_ROOT=/opt/phpbrew - source /opt/phpbrew/bashrc - -システムの安定を保つため、`root`を使ってPHPをインストールしてください。 - -非ルートのユーザーは新しいPHPをインストールまたは切り替えることができません。 - -ファイルは非ルートユーザーでインストールする場合、パーミッションを修正してください。 - - chown -R root: /opt/phpbrew - - -## バージョン情報プロンプトの有効化 - -PHPバージョン情報をシェルプロンプトに追加するには、`"PHPBREW_SET_PROMPT=1"` 変数を利用してください。 - -デフォルトは`"PHPBREW_SET_PROMPT=0"` (無効)です。 有効化にする場合、`~/.phpbrew/bashrc`をソースする前に、下記の行を`~/.bashrc` ファイルに追加してください。 - -```sh - export PHPBREW_SET_PROMPT=1 -``` - -バージョン情報をプロンプトに埋め込む場合、`current_php_version` シェル関数を利用してください。この関数は`.phpbrew/bashrc`の中に定義されています。 -そしてバージョン情報を`PS1`変数に設定することができます。 -例: - -```sh - PHP_VERSION=$(current_php_version) - PS1=" $PHP_VERSION \$ " -``` - - -既知の問題点: --------------- - -- For PHP-5.3+ versions, "Building intl 64-bit fails on OS X" - - -ハッキング(Hacking): -------- -まずはOnionをインストールしてください: - - $ curl http://install.onionphp.org/ | sh - -依存性(dependency)インストール: - - $ onion -d install - -初期化: - - $ php bin/phpbrew init - -既知のバージョンを一覧表示にします: - - $ php bin/phpbrew known - -インストール: - - $ php bin/phpbrew -d install --no-test 5.4.0RC7 - -PHPBrewが実行している動作を表示します: - - $ unset -f phpbrew - $ which phpbrew - -pharファイルをリコンパイルします: - - $ bash scripts/compile - -PHP配布先 --------------------- - -- http://snaps.php.net/ -- http://tw2.php.net/releases/ -- http://downloads.php.net/stas/ - -コミュニティ ---------- - -お気軽にirc.freenode.netにて#php-twの話題に参加してください。 - -協力者 ------------- - -* yftzeng -* Gasol - -開発者 ------- -Yo-An Lin (c9s) - +PHPBrew +========== + +*他の言語でもお読み頂けます: [English](README.md), [Português - BR](README.pt-br.md), [日本語](README.ja.md).* + +[![Build Status](https://travis-ci.org/phpbrew/phpbrew.svg?branch=master)](https://travis-ci.org/phpbrew/phpbrew) +[![Coverage Status](https://img.shields.io/coveralls/phpbrew/phpbrew.svg)](https://coveralls.io/r/phpbrew/phpbrew) +[![Gitter](https://badges.gitter.im/phpbrew/phpbrew.svg)](https://gitter.im/phpbrew/phpbrew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) + +phpbrewは異なるバージョンのPHPを`$HOME`ディレクトリにビルドしてインストールすることができます。 + +phpbrewがあなたのためにやってくれること: + +- configureスクリプトのオプションはバリアント(variant)へとシンプル化されているので、パスに悩まされることはもうありません! +- PDO、mysql、sqlite、debugなど様々なバリアント(variant)を持つPHPをビルドしてくれます。 +- apacheのPHPモジュールをコンパイルし、異なるバージョンごとに分けて管理してくれます。 +- PHPをビルドしてホームディレクトリにインストールするので、root権限が必要ありません。 +- bash/zshといったシェルに統合されていて、バージョン間の切り替えがとても簡単です。 +- 自動的に機能を検知します。 +- PHP拡張モジュールを現在の環境にインストールして有効化することが簡単にできます。 +- システムワイドな環境に複数のPHPをインストールすることができます。 +- HomeBrewとMacPorts向けにパスの検知が最適化されています。 + + + + +## 必要要件 + +始める前に[Requirement](https://github.com/phpbrew/phpbrew/wiki/Requirement)をご覧ください。 +PHPをビルドするための開発用パッケージをインストールする必要があります。 + +## クイックスタート + +あなたがせっかちな人なら [Quick Start](https://github.com/phpbrew/phpbrew/wiki/Quick-Start) をご覧ください :-p + +## GETTING STARTED + +OK、あなたに取り組むための十分な時間があるみたいですので、始めるのに役に立つチュートリアルを順に見ていきましょう。 + +### インストール + +```bash +curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar +chmod +x phpbrew.phar + +# $PATH の通っているディレクトリにファイルを移動します +sudo mv phpbrew.phar /usr/local/bin/phpbrew +``` + +シェルで bash スクリプトを初期化します: + +```bash +phpbrew init +``` + +`.bashrc` や `.zshrc` に以下の行を追加します: + +```bash +[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc +``` + +fish シェルを使っている人たちは、`~/.config/fish/config.fish` に以下の行を追加します: + +```fish +source ~/.phpbrew/phpbrew.fish +``` + +システムワイドに phpbrew を使うつもりなら、例えば以下のように、共有の phpbrew ルートディレクトリを準備します: + +```bash +mkdir -p /opt/phpbrew +phpbrew init --root=/opt/phpbrew +``` + +### ライブラリ探索用のプレフィックスをセットアップする + +ライブラリを探索するためのデフォルトプレフィックスを好きなようにセットアップすることができます。利用可能なオプションは `macports`, `homebrew`, `debian`, `ubuntu`, カスタムパスです。 + +Homebrew を使っている場合: + +```bash +phpbrew lookup-prefix homebrew +``` + +Macports を使っている場合: + +```bash +phpbrew lookup-prefix macports +``` + +## 基本的な使い方 + +PHP のバージョンを一覧する: + +```bash +phpbrew known + +7.0: 7.0.3, 7.0.2, 7.0.1, 7.0.0 ... +5.6: 5.6.18, 5.6.17, 5.6.16, 5.6.15, 5.6.14, 5.6.13, 5.6.12, 5.6.11 ... +5.5: 5.5.32, 5.5.31, 5.5.30, 5.5.29, 5.5.28, 5.5.27, 5.5.26, 5.5.25 ... +5.4: 5.4.45, 5.4.44, 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38 ... +5.3: 5.3.29, 5.3.28 ... +``` + +マイナーバージョンまで表示するには: + +```bash +$ phpbrew known --more +``` + +リリース情報を更新するには: + +```bash +$ phpbrew update +``` + +5.4 未満の古いバージョンを取得するには: + +> 公式でサポートされていない PHP のバージョンのビルドが成功することを phpbrew +> は保証しないことを覚えておいてください。また、古いバージョンに関する issue を +> レポートしてこないようにしてください。その issue は修正されません。 + +```bash +$ phpbrew update --old +``` + +5.4 未満の古いバージョンを一覧する: + +```bash +$ phpbrew known --old +``` + +## 自分用の PHP のビルドを始める + +シンプルに default バリアントで PHP をビルドしてインストールするには: + +```bash +$ phpbrew install 5.4.0 +default +``` + +`default` バリアントセットをおすすめします。なぜならこのバリアントセットは +最もよく使われているバリアントを含んでいるからです。 + +もし最小構成でのインストールを求めているなら、`default` バリアントセットの指定を外してください。 + +`-j` or `--jobs` オプションを渡すことで並行ビルドを有効にできあます。例えば以下のように: + +```bash +$ phpbrew install -j $(nproc) 5.4.0 +default +``` + +テストを実行する場合: + +```bash +$ phpbrew install --test 5.4.0 +``` + +debugメッセージを表示する場合: + +```bash +$ phpbrew -d install --test 5.4.0 +``` + +5.3 未満の古いバージョンをインストールするには: + +```bash +$ phpbrew install --old 5.2.13 +``` + +あるリリースバージョンの最新のパッチバージョンをインストールする場合: + +```bash +$ phpbrew install 5.6 +``` + +プレリリース状態のバージョンをインストールする場合: + +```bash +$ phpbrew install 7.2.0alpha1 +$ phpbrew install 7.2.0beta2 +$ phpbrew install 7.2.0RC3 +``` + +GitHub のタグやブランチ名でインストールする場合: + +```bash +$ phpbrew install github:php/php-src@PHP-7.2 as php-7.2.0-dev +``` + +次の(不安定)バージョンをインストールする場合: + +```bash +$ phpbrew install next as php-7.3.0-dev +``` + +## ビルドをクリーンする + + +```bash +$ phpbrew clean php-5.4.0 +``` + +## バリアント (variants) + +PHPBrew は `configure` スクリプトのオプションをあなたの代わりに管理してくれます。 +シンプルにバリアント名を指定してください。そうすると、PHPBrew が include パスとビルドオプションを検知してくれます。 + +PHPBrew は `default` バリアントといくつかの「仮想バリアント」(Virtual variants)を提供します。 +`default` バリアントは最もよく使われているバリアントを含んでいます。 +仮想バリアントはいくつものバリアントのセットを定義するもので、ひとつの仮想バリアントを使用するだけで、一度に複数のバリアントを有効化します。 + +これらのバリアントに何が含まれているかを調べるには、`phpbrew variants` コマンドを実行して一覧を表示します。 + +バリアントを有効化するには、`+`をバリアント名の前に付けます。 +例えば、 + + +mysql + +バリアントを無効化するには、`-`をバリアント名の前に付けます。 +例えば、 + + -debug + +以下に例を挙げます。`default` オプションとデータベースサポート(mysql, sqlite, postgresql)を有効にしてPHPをビルドしたい場合、以下を実行します: + +```bash +$ phpbrew install 5.4.5 +default+dbs +``` + +さらに追加のオプションを指定してPHPをビルドすることもできます: + +```bash +$ phpbrew install 5.3.10 +mysql+sqlite+cgi + +$ phpbrew install 5.3.10 +mysql+debug+pgsql +apxs2 + +$ phpbrew install 5.3.10 +pdo +mysql +pgsql +apxs2=/usr/bin/apxs2 +``` + +pgsql(PostgreSQL)拡張を有効にしてPHPをビルドするには: + +```bash +$ phpbrew install 5.4.1 +pgsql+pdo +``` + +Mac OS XでPostgreSQLのディレクトリを指定してpgsql拡張をビルドするには: + +```bash +$ phpbrew install 5.4.1 +pdo+pgsql=/opt/local/lib/postgresql91/bin +``` + +pgsqlパス指定は`pg_config`の位置で、`pg_config`は /opt/local/lib/postgresql91/bin で見つけられるでしょう。 + + +ニュートラル(中立的)なコンパイルオプションでPHPをビルドするには、`neutral` 仮想バリアントを指定します。 +`neutral` 仮想バリアントは `--disable-all` も含めて余計なコンパイルオプションを極力追加しません。 +しかし、`pear`のインストールをサポートするために、いくつかのオプション(例えば `--enable-libxml`)は自動的に追加されます。 + +`neutral` variantでPHPをビルドするには: + +```bash +$ phpbrew install 5.4.1 +neutral +``` + + +そのほかの詳細は[PHPBrew Cookbook](https://github.com/phpbrew/phpbrew/wiki)をご覧ください。 + + +## 追加オプション + +configure スクリプトに追加の引数を渡すには、以下のようにしてください: + +```bash +$ phpbrew install 5.3.10 +mysql +sqlite -- \ + --enable-ftp --apxs2=/opt/local/apache2/bin/apxs +``` + +## 使用(use)と切り替え(switch) + +use (一時的なバージョンの切り替え): + +```bash +$ phpbrew use 5.4.22 +``` + +switch (デフォルトで使用するバージョンを切り替える): + +```bash +$ phpbrew switch 5.4.18 +``` + +phpbrewを使用するのをやめる: + +```bash +$ phpbrew off +``` + +apache モジュールを有効にしている場合、忘れずにその設定もコメントアウトするか削除するかしてください。 + +```bash +$ sudo vim /etc/httpd/conf/httpd.conf +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.21.so +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.20.so +``` + +## Extention Installer + +[Extension Installer](https://github.com/phpbrew/phpbrew/wiki/Extension-Installer) をご覧ください。 + +### 現在利用中の PHP バージョンに合わせて php.ini を設定する + +シンプルに以下を実行します: + +```bash +$ phpbrew config +``` + +好きなエディタを EDITOR 環境変数に指定することもできます: + +```bash +export EDITOR=vim +phpbrew config +``` + +## phpbrew をアップグレードする + +phpbrew をアップグレードするには、シンプルに `self-update` コマンドを実行します。 +このコマンドで、GitHub から `master` ブランチの最新バージョンをインストールできます。 + +```bash +$ phpbrew self-update +``` + +## インストール済みのPHPを一覧表示する + +```bash +$ phpbrew list +``` + +インストール済みの PHP は `~/.phpbrew/php` に置かれます。例えば、PHP 5.4.20 は、 + + ~/.phpbrew/php/5.4.20/bin/php + +に置かれます。 + +設定ファイルは、 + + ~/.phpbrew/php/5.4.20/etc/php.ini + +に置くべきです。 + +extension 向けの設定ファイルは、 + + ~/.phpbrew/php/5.4.20/var/db + ~/.phpbrew/php/5.4.20/var/db/xdebug.ini + ~/.phpbrew/php/5.4.20/var/db/apc.ini + ~/.phpbrew/php/5.4.20/var/db/memcache.ini + ... etc + +に置くべきです。 + +## ディレクトリを切り替えるお手軽なコマンド + +PHPのbuildディレクトリに移動します。 + +```bash +$ phpbrew build-dir +``` + +PHPのdistディレクトリに移動します。 + +```bash +$ phpbrew dist-dir +``` + +PHPのetcディレクトリに移動します。 + +```bash +$ phpbrew etc-dir +``` + +PHPのvarディレクトリに移動します。 + +```bash +$ phpbrew var-dir +``` + +## PHP FPM + +phpbrew は fpm を管理するための便利なサブコマンドも提供しています。 +それらを使うには、PHP をビルドする際に `+fpm` を有効化しておくことを覚えておいてください。 + +php-fpm を起動します: + +```bash +$ phpbrew fpm start +``` + +php-fpm を停止します: + +```bash +$ phpbrew fpm stop +``` + +php-fpm モジュールを表示します: + +```bash +phpbrew fpm module +``` + +php-fpm の設定をテストします: + +```bash +phpbrew fpm test +``` + +php-fpm の設定を編集します: + +```bash +phpbrew fpm config +``` + +> インストールされた `php-fpm` は `~/.phpbrew/php/php-*/sbin` にあります。 +> +> 対応する `php-fpm.conf` は `~/.phpbrew/php/php-*/etc/php-fpm.conf.default` にあります。 +> デフォルトの設定ファイルをお好みの場所にコピーできます。例えば、 +> +> cp -v ~/.phpbrew/php/php-*/etc/php-fpm.conf.default +> ~/.phpbrew/php/php-*/etc/php-fpm.conf +> +> php-fpm --php-ini {php config file} --fpm-config {fpm config file} + +## プロンプトにバージョン情報を表示する + +PHP のバージョン情報をシェルプロンプトに追加するには、`"PHPBREW_SET_PROMPT=1"`変数を使うことができます。 + +デフォルト値は `"PHPBREW_SET_PROMPT=0"` (無効)です。有効化するには、`~/.bashrc`ファイルで `~/.phpbrew/bashrc`をsourceする前に以下の行を追加します。 + +```bash +export PHPBREW_SET_PROMPT=1 +``` + +プロンプトにバージョン情報を埋め込むには、`phpbrew_current_php_version`シェル関数が利用可能です。 +これは`.phpbrew/bashrc`で定義されていて、`PS1`変数にバージョン情報を設定することができます。 + +例えば、 + +```bash +PS1=" \$(phpbrew_current_php_version) \$ " +``` + + +既知の問題点: +-------------- + +- PHP-5.3 以上のバージョンで、OS X で64bit 版 intl のビルドが失敗する + +- GD 拡張を指定して PHP をビルドするには、`libpng dir` と `libjpeg dir` を指定する必要があります。 + 例えば、 + + $ phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2 \ + -- --with-libdir=lib/x86_64-linux-gnu \ + --with-gd=shared \ + --enable-gd-natf \ + --with-jpeg-dir=/usr \ + --with-png-dir=/usr + +トラブルシューティング +------------------- + +[TroubleShooting](https://github.com/phpbrew/phpbrew/wiki/TroubleShooting) をご覧ください。 + + +FAQ +------------------------- + +Q: 同じバージョンで異なるコンパイルオプションを指定したPHPをインストールすることはできますか? + +A: 今のところ、php5.x.x をインストールして `/Users/phpbrew/.phpbrew/php/php-5.x.x` フォルダを別の名前にリネームすることで実現可能です。例えば、php-5.x.x-super にリネームして新しく php-5.3.3 をインストールする、といったように。 + + +貢献するには +------------------ + +[Contribution](https://github.com/phpbrew/phpbrew/wiki/Contribution) をご覧ください。 + + +ドキュメンテーション +------------- + +[Wiki](https://github.com/phpbrew/phpbrew/wiki) をご覧ください。 + + +Author +------ + +- Yo-An Lin (c9s) +- Márcio Almad + + +ライセンス +-------- + +[LICENSE](LICENSE)をご覧ください。 + + + +[t-link]: https://travis-ci.org/phpbrew/phpbrew "Travis Build" +[s-link]: https://scrutinizer-ci.com/g/phpbrew/phpbrew/?branch=master "Code Quality" +[p-link]: https://packagist.org/packages/marc/phpbrew "Packagist" +[sl-link]: https://insight.sensiolabs.com/projects/02d1fd01-8a70-4fe4-a550-381a3c0e33f3 "Sensiolabs Insight" +[c-badge]: https://coveralls.io/repos/phpbrew/phpbrew/badge.png?branch=master diff --git a/README.md b/README.md index 841406dc5..bb5beed71 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,142 @@ PHPBrew -========== +======= -phpbrew builds and installs multiple version php(s) in your $HOME directory. +*Read this in other languages: [English](README.md), [Português - BR](README.pt-br.md), [日本語](README.ja.md), [中文](README.cn.md).* + +[![build](https://github.com/phpbrew/phpbrew/actions/workflows/build.yml/badge.svg)](https://github.com/phpbrew/phpbrew/actions/workflows/build.yml) +[![Coverage Status](https://img.shields.io/coveralls/phpbrew/phpbrew.svg)](https://coveralls.io/r/phpbrew/phpbrew) +[![Gitter](https://badges.gitter.im/phpbrew/phpbrew.svg)](https://gitter.im/phpbrew/phpbrew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) -phpbrew also manage the environment variables, so you can `use`, `switch` php -version whenever you need. +phpbrew builds and installs multiple version php(s) in your $HOME directory. What phpbrew can do for you: +- Configure options are simplified into variants, no worries about the path anymore! - Build php with different variants like PDO, mysql, sqlite, debug ...etc. -- Compile apache php module and seperate them by different versions. +- Compile apache php module and separate them by different versions. - Build and install php(s) in your home directory, so you don't need root permission. - Switch versions very easily and is integrated with bash/zsh shell. - Automatic feature detection. - Install & enable php extensions into current environment with ease. - Install multiple php into system-wide environment. +- Path detection optimization for HomeBrew and MacPorts. - + + ## Requirement -Please see [Requirement](https://github.com/c9s/phpbrew/wiki/Requirement) +Please see [Requirement](https://github.com/phpbrew/phpbrew/wiki/Requirement) before you get started. you need to install some development packages for building PHP. -## Install phpbrew +## QUICK START + +Please see [Quick Start](https://github.com/phpbrew/phpbrew/wiki/Quick-Start) if you're impatient. :-p -Just download it: +## GETTING STARTED + +OK, I assume you have more time to work on this, this is a step-by-step +tutorial that helps you get started. + +### Installation ```bash -curl -O https://raw.github.com/c9s/phpbrew/master/phpbrew -chmod +x phpbrew -sudo cp phpbrew /usr/bin/phpbrew -``` +curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar +chmod +x phpbrew.phar -## Basic usage +# Move the file to some directory within your $PATH +sudo mv phpbrew.phar /usr/local/bin/phpbrew +``` Init a bash script for your shell environment: ```bash -$ phpbrew init +phpbrew init +``` + +Add these lines to your `.bashrc` or `.zshrc` file: + +```bash +[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc +``` + +* Specifically for `fish` shell users, add following lines to your `~/.config/fish/config.fish` file*: + +```fish +source ~/.phpbrew/phpbrew.fish ``` -Then add these lines to your `.bashrc` or `.zshrc` file: +If you're using system-wide phpbrew, you may setup a shared phpbrew root, for example: ```bash -$ source ~/.phpbrew/bashrc +mkdir -p /opt/phpbrew +phpbrew init --root=/opt/phpbrew ``` -You may setup your prefered default prefix for looking up libraries, available +### Setting up lookup prefix + +You may setup your preferred default prefix for looking up libraries, available options are `macports`, `homebrew`, `debian`, `ubuntu` or a custom path: For Homebrew users: ```bash -$ phpbrew lookup-prefix homebrew +phpbrew lookup-prefix homebrew ``` For Macports users: ```bash -$ phpbrew lookup-prefix macports +phpbrew lookup-prefix macports ``` +## Basic usage To list known versions: ```bash -$ phpbrew known -Available stable versions: - php-5.3.10 - php-5.3.9 - php-5.3.8 - php-5.3.7 +phpbrew known + +8.2: 8.2.4, 8.2.3, 8.2.2, 8.2.1, 8.2.0 ... +8.1: 8.1.17, 8.1.16, 8.1.15, 8.1.14, 8.1.13, 8.1.12, 8.1.11, 8.1.10 ... +8.0: 8.0.28, 8.0.27, 8.0.26, 8.0.25, 8.0.24, 8.0.23, 8.0.22, 8.0.21 ... +7.4: 7.4.33, 7.4.32, 7.4.30, 7.4.29, 7.4.28, 7.4.27, 7.4.26, 7.4.25 ... +7.3: 7.3.33, 7.3.32, 7.3.31, 7.3.30, 7.3.29, 7.3.28, 7.3.27, 7.3.26 ... +7.2: 7.2.34, 7.2.33, 7.2.32, 7.2.31, 7.2.30, 7.2.29, 7.2.28, 7.2.27 ... +7.1: 7.1.33, 7.1.32, 7.1.31, 7.1.30, 7.1.29, 7.1.28, 7.1.27, 7.1.26 ... +7.0: 7.0.33, 7.0.32 ... +``` + +To show more minor versions: + +```bash +$ phpbrew known --more ``` -To list known subversion versions: +To update the release info: + +```bash +$ phpbrew update +``` + +To get older versions (less than 5.4) + +> Please note that we don't guarantee that you can build the php versions that +> are not supported by offical successfully, please don't fire any issue about +> the older versions, these issues won't be fixed. ```bash -$ phpbrew known --svn +$ phpbrew update --old ``` -To list known older versions (less than 5.3): +To list known older versions (less than 5.4) ```bash $ phpbrew known --old ``` -## Build And Install +## Starting Building Your Own PHP Simply build and install PHP with default variant: @@ -98,6 +147,12 @@ $ phpbrew install 5.4.0 +default Here we suggest `default` variant set, which includes most commonly used variants, if you need a minimum install, just remove the `default` variant set. +You can enable parallel compilation by passing `-j` or `--jobs` option and +the following is an example: + +```bash +$ phpbrew install -j $(nproc) 5.4.0 +default +``` With tests: @@ -117,13 +172,37 @@ To install older versions (less than 5.3): $ phpbrew install --old 5.2.13 ``` -## Clean up build +To install the latest patch version of a given release: + +```bash +$ phpbrew install 5.6 +``` + +To install a pre-release version: + +```bash +$ phpbrew install 7.2.0alpha1 +$ phpbrew install 7.2.0beta2 +$ phpbrew install 7.2.0RC3 +``` + +To install from a GitHub tag or branch name: + +```bash +$ phpbrew install github:php/php-src@PHP-7.2 as php-7.2.0-dev +``` +To install the next (unstable) version: ```bash -$ phpbrew clean +$ phpbrew install next as php-7.3.0-dev ``` +## Cleaning up build directory + +```bash +$ phpbrew clean php-5.4.0 +``` ## Variants @@ -135,43 +214,18 @@ to the default variants, which includes the most commonly used variants, to the virtual variants, which defines a variant set, you may use one virtual variant to enable multiple variants at one time. -To check out what is included in these variants, simply run `variants` -subcommand to list these variants: - -```bash -$ phpbrew variants -Variants: - all, apxs2, bcmath, bz2, calendar, cgi, cli, ctype, dba, debug, dom, embed, - exif, fileinfo, filter, fpm, ftp, gcov, gd, gettext, hash, iconv, icu, - imap, intl, ipc, ipv6, json, kerberos, mbregex, mbstring, mcrypt, mhash, - mysql, openssl, pcntl, pcre, pdo, pgsql, phar, posix, readline, session, - soap, sockets, sqlite, tidy, tokenizer, xml_all, xmlrpc, zip, zlib - - -Virtual variants: - dbs: sqlite, mysql, pgsql, pdo - mb: mbstring, mbregex - default: filter, dom, bcmath, ctype, mhash, fileinfo, pdo, posix, ipc, - pcntl, bz2, zip, cli, json, mbstring, mbregex, calendar, sockets, readline, - xml_all +To check out what is included in these variants, run `phpbrew variants` +to list these variants. -Using variants to build PHP: - - phpbrew install 5.3.10 +default - phpbrew install 5.3.10 +mysql +pdo - phpbrew install 5.3.10 +mysql +pdo +apxs2 - phpbrew install 5.3.10 +mysql +pdo +apxs2=/usr/bin/apxs2 -``` - -To enable one variant, simply add a prefix `+` before the variant name, eg +To enable one variant, add a prefix `+` before the variant name, eg +mysql -To disable one variant, simply add a prefix `-` before the variant name. +To disable one variant, add a prefix `-` before the variant name. -debug -For example, if we want to build PHP with the default options and +For example, if we want to build PHP with the default options and database supports (mysql, sqlite, postgresql), you may simply run: ```bash @@ -188,7 +242,7 @@ $ phpbrew install 5.3.10 +mysql+debug+pgsql +apxs2 $ phpbrew install 5.3.10 +pdo +mysql +pgsql +apxs2=/usr/bin/apxs2 ``` -To build PHP with pgsql (Postgresql) extension: +To build PHP with pgsql (PostgreSQL) extension: ```bash $ phpbrew install 5.4.1 +pgsql+pdo @@ -202,9 +256,16 @@ $ phpbrew install 5.4.1 +pdo+pgsql=/opt/local/lib/postgresql91/bin The pgsql path is the location of `pg_config`, you could find `pg_config` in the /opt/local/lib/postgresql91/bin +To build PHP with neutral compile options, you can specify `neutral` virtual variant, which means that phpbrew +doesn't add any additional compile options including `--disable-all`. But some options(for example `--enable-libxml`) +are still automatically added to support `pear` installation. +You can build PHP with `neutral`: -For more details, please check out [PHPBrew Cookbook](https://github.com/c9s/phpbrew/wiki). +```bash +$ phpbrew install 5.4.1 +neutral +``` +For more details, please check out [PHPBrew Cookbook](https://github.com/phpbrew/phpbrew/wiki). ## Extra Configure Options @@ -235,72 +296,17 @@ Turn Off: $ phpbrew off ``` -## List installed PHP +If you enable apache PHP modules, remember to comment out or remove the settings. ```bash -$ phpbrew list +$ sudo vim /etc/httpd/conf/httpd.conf +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.21.so +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.20.so ``` - - ## The Extension Installer -You can also install PHP extension with ease, either the extensions shipped -with PHP source code or even from PECL. - -If the extension directory is found in PHP source, PHPBrew automatically switch into -the PHP source directory and install the extension. - -If the extension directory is not found in PHP source, PHPBrew fetch the extension -package from PECL . - -PHPBrew also creates extension config to enable the installed extension, so you -don't need to write the config file to enable it by hands. The extension config -directory is in: - - ~/.phpbrew/php/php-{version}/var/db - -### Installing Extension - The Most Simple Way - -```bash -$ phpbrew ext install APC -$ phpbrew ext install memcache -``` - -### Installing Extension With Version - -To install extensions with stability tag: - -```bash -$ phpbrew ext install xdebug stable -$ phpbrew ext install xdebug latest -$ phpbrew ext install xdebug beta -``` - -To install extensions with version name: - -```bash -$ phpbrew ext install xdebug 2.0.1 -``` - -To install extensions with customized options: - -```bash -$ phpbrew ext install yaml -- --with-yaml=/opt/local -``` - -### Enabling Extension - -You can also install extension via PECL and enable it manually: - -```bash -pecl install mongo -phpbrew ext enable mongo -``` - -The `ext enable` command allows you to create a config {current php base}/var/db/{extension name}.ini -to enable the extension. - +See [Extension Installer](https://github.com/phpbrew/phpbrew/wiki/Extension-Installer) ### Configuring the php.ini for current php version @@ -321,7 +327,7 @@ phpbrew config To upgrade phpbrew, you may simply run the `self-update` command, this command enables you to install the latest version of -`master` branch from github: +`master` branch from GitHub: ```bash $ phpbrew self-update @@ -329,7 +335,13 @@ $ phpbrew self-update ## The Installed PHP(s) -The installed phps are located in `~/.phpbrew/php`, for example, php 5.4.0RC7 is located at: +To list all installed php(s), you could run: + +```bash +$ phpbrew list +``` + +The installed phps are located in `~/.phpbrew/php`, for example, php 5.4.20 is located at: ~/.phpbrew/php/5.4.20/bin/php @@ -376,6 +388,19 @@ $ phpbrew var-dir phpbrew also provides useful fpm managing sub-commands. to use them, please remember to enable `+fpm` variant when building your own php. +To setup the system FPM service, type one of commands: + +```bash +# Typing the following command when systemctl is available in the Linux distribution. +$ phpbrew fpm setup --systemctl + +# It is available in the Linux distribution. +$ phpbrew fpm setup --initd + +# It is available in the macOS. +$ phpbrew fpm setup --launchctl +``` + To start php-fpm, simply type: ```bash @@ -407,30 +432,15 @@ phpbrew fpm config ``` > The installed `php-fpm` is located in `~/.phpbrew/php/php-*/sbin`. -> -> The correspond `php-fpm.conf` is lcoated in `~/.phpbrew/php/php-*/etc/php-fpm.conf.default`, +> +> The correspond `php-fpm.conf` is located in `~/.phpbrew/php/php-*/etc/php-fpm.conf.default`, > you may copy the default config file to the desired location. e.g., -> +> > cp -v ~/.phpbrew/php/php-*/etc/php-fpm.conf.default > ~/.phpbrew/php/php-*/etc/php-fpm.conf -> +> > php-fpm --php-ini {php config file} --fpm-config {fpm config file} - -## Installing Extra Component - -### Installing composer - -```bash -$ phpbrew install-composer -``` - -### Installing phpunit - -```bash -phpbrew install-phpunit -``` - ## Enabling Version Info Prompt To add PHP version info in your shell prompt, you can use @@ -445,13 +455,12 @@ export PHPBREW_SET_PROMPT=1 ``` To embed version info in your prompt, you can use -`current_php_version` shell function, which is defined in `.phpbrew/bashrc`. +`phpbrew_current_php_version` shell function, which is defined in `.phpbrew/bashrc`. and you can set the version info in your `PS1` var. e.g. ```bash -PHP_VERSION=$(current_php_version) -PS1=" $PHP_VERSION \$ " +PS1=" \$(phpbrew_current_php_version) \$ " ``` Known Issues @@ -473,39 +482,48 @@ Known Issues Troubleshooting ------------------- -Please see [TroubleShooting](https://github.com/c9s/phpbrew/wiki/TroubleShooting) +Please see [TroubleShooting](https://github.com/phpbrew/phpbrew/wiki/TroubleShooting) FAQ ------------------------- Q: How do I have the same version with different compile option? -A: Currently, you can install php5.x.x and rename the /Users/c9s/.phpbrew/php/php-5.x.x folder to the new name, for example, php-5.x.x-super , and install another php-5.3.3 +A: Currently, you can install php-5.x.x and rename the /Users/phpbrew/.phpbrew/php/php-5.x.x folder to the new name, for example, php-5.x.x-super , and install another php-5.x.x Contribution ------------------ -Please see [Contribution](https://github.com/c9s/phpbrew/wiki/Contribution) +Please see [Contribution](https://github.com/phpbrew/phpbrew/wiki/Contribution) Documentation ------------- -Please see [Wiki](https://github.com/c9s/phpbrew/wiki) +Please see [Wiki](https://github.com/phpbrew/phpbrew/wiki) -Community ---------- +Founder and Contributors +----------------------- +only listing 1k+ lines contributors, names are sorted in alphabetical order -Join us on #php-tw on irc.freenode.net - -Author ------- - -Yo-An Lin (c9s) +- @c9s +- @GM-Alex +- @jhdxr +- @marcioAlmada +- @morozov +- @markwu +- @peter279k +- @racklin +- @shinnya License -------- -See LICENSE file. +See [LICENSE](LICENSE) file. + +[s-link]: https://scrutinizer-ci.com/g/phpbrew/phpbrew/?branch=master "Code Quality" +[p-link]: https://packagist.org/packages/marc/phpbrew "Packagist" +[sl-link]: https://insight.sensiolabs.com/projects/02d1fd01-8a70-4fe4-a550-381a3c0e33f3 "Sensiolabs Insight" +[c-badge]: https://coveralls.io/repos/phpbrew/phpbrew/badge.png?branch=master diff --git a/README.pt-br.md b/README.pt-br.md new file mode 100644 index 000000000..547979d20 --- /dev/null +++ b/README.pt-br.md @@ -0,0 +1,540 @@ +PHPBrew +======= + +*Leia este documento em outros idiomas: [English](README.md), [Português - BR](README.pt-br.md), [日本語](README.ja.md).* + +[![Build Status](https://travis-ci.org/phpbrew/phpbrew.svg?branch=master)](https://travis-ci.org/phpbrew/phpbrew) +[![Coverage Status](https://img.shields.io/coveralls/phpbrew/phpbrew.svg)](https://coveralls.io/r/phpbrew/phpbrew) + +phpbrew contrói e instala multiplas versões do php no seu diretório $HOME. + +O que phpbrew pode fazer para você: + +- As configurações são feitas dentro de variaveis, não se preocupe mais com caminhos. +- Construa php com diferentes variaveis como PDO, mysql, sqlite, debug etc... +- Compile modulos php do apache e separe eles por diferentes versões. +- Construa e instale php(s) no seu diretório home, assim não irá precisar de permissão de root. +- Troque de versões muito facilmente pois é integrado com bash/zsh shell. +- Detecção automática de recurso. +- Instale & abilite extenssões php no ambiente atual com facilidade. +- Instale multiplas versões php em todo ambiente do sistema. +- Detecção de caminho otimizado para HomeBrew e MacPorts. + + + +## Requisitos + +Por favor veja [Requisitos](https://github.com/phpbrew/phpbrew/wiki/Requirement) +antes de você começar. Você precisa instalar alguns pacotes de desenvolvimentos para +desenvolvimento php. + +## Instale phpbrew + +Faça isso: + +```bash +curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar +chmod +x phpbrew.phar +``` + +Instale dento da pasta bin do seu sistema: + +```sh +sudo mv phpbrew.phar /usr/local/bin/phpbrew +``` + +Confirme se `/usr/local/bin` está nas `$PATH` variaveis de ambiente do sistema. + + +## Configurando + +Inicie um script no seu ambiente (Terminal) shell + +```bash +$ phpbrew init +``` + +Então adicione essas linhas para seu arquivo `.bashrc` ou `.zshrc` ou `.bash_profile`: + +```bash +[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc +``` + +### Configurar prefixo de pesquisa + +Você pode configurar seus prefixos de preferências padrões para procurar bibliotecas, +as opções disponivéis são `macports`, `homebrew`, `debian`, `ubuntu` ou um caminho customizado: + +Para usuários Homebrew: + +```bash +$ phpbrew lookup-prefix homebrew +``` + +Para usuários Macports: + +```bash +$ phpbrew lookup-prefix macports +``` + +## Uso básico + +Para listar versões conhecidas: + +```bash +$ phpbrew known +7.0: 7.0.3, 7.0.2, 7.0.1, 7.0.0 ... +5.6: 5.6.18, 5.6.17, 5.6.16, 5.6.15, 5.6.14, 5.6.13, 5.6.12, 5.6.11 ... +5.5: 5.5.32, 5.5.31, 5.5.30, 5.5.29, 5.5.28, 5.5.27, 5.5.26, 5.5.25 ... +5.4: 5.4.45, 5.4.44, 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38 ... +5.3: 5.3.29, 5.3.28 ... +``` + +Para listar versões antigas conhecidas (menor que 5.3): + +```bash +$ phpbrew known --old +``` + +Para atualizar a informações de release: + +```bash +$ phpbrew update +``` + +## Contruir e instalar + +Simplesmente construa e instale php com a variante padrão: + +```bash +$ phpbrew install 5.4.0 +default +``` + +Here we suggest `default` variant set, which includes most commonly used +variants, if you need a minimum install, just remove the `default` variant set. + +You can enable parallel compilation by passing `-j` or `--jobs` option and +the following is an example: + +```bash +$ phpbrew install -j $(nproc) 5.4.0 +default +``` + +With tests: + +```bash +$ phpbrew install --test 5.4.0 +``` + +With debug messages: + +```bash +$ phpbrew -d install --test 5.4.0 +``` + +To install older versions (less than 5.3): + +```bash +$ phpbrew install --old 5.2.13 +``` + +To install the next (unstable) version: + +```bash +$ phpbrew install next as php-7.1.0 +``` + +To install from a github tag: +```bash +$ phpbrew install github:php/php-src@PHP-7.0 as php-7.0.0 +``` + +## Clean up build + + +```bash +$ phpbrew clean php-5.4.0 +``` + + +## Variants + +PHPBrew arranges configure options for you, you can simply specify variant +name, and phpbrew will detect include paths and build options for configuring. + +PHPBrew provides default variants and some virtual variants, +to the default variants, which includes the most commonly used variants, +to the virtual variants, which defines a variant set, you may use one virtual variant +to enable multiple variants at one time. + +To check out what is included in these variants, run `phpbrew variants` +to list these variants. + +To enable one variant, add a prefix `+` before the variant name, eg + + +mysql + +To disable one variant, add a prefix `-` before the variant name. + + -debug + +For example, if we want to build PHP with the default options and +database supports (mysql, sqlite, postgresql), you may simply run: + +```bash +$ phpbrew install 5.4.5 +default+dbs +``` + +You may also build PHP with extra variants: + +```bash +$ phpbrew install 5.3.10 +mysql+sqlite+cgi + +$ phpbrew install 5.3.10 +mysql+debug+pgsql +apxs2 + +$ phpbrew install 5.3.10 +pdo +mysql +pgsql +apxs2=/usr/bin/apxs2 +``` + +To build PHP with pgsql (PostgreSQL) extension: + +```bash +$ phpbrew install 5.4.1 +pgsql+pdo +``` + +Or build pgsql extension with postgresql base dir on Mac OS X: + +```bash +$ phpbrew install 5.4.1 +pdo+pgsql=/opt/local/lib/postgresql91/bin +``` + +The pgsql path is the location of `pg_config`, you could find `pg_config` in the /opt/local/lib/postgresql91/bin + + +To build PHP with neutral compile options, you can specify `neutral` virtual variant, which means that phpbrew +doesn't add any additional compile options including `--disable-all`. But some options(for example `--enable-libxml`) +are still automatically added to support `pear` installation. +You can build PHP with `neutral`: + +```bash +$ phpbrew install 5.4.1 +neutral +``` + + +For more details, please check out [PHPBrew Cookbook](https://github.com/phpbrew/phpbrew/wiki). + + +## Extra Configure Options + +To pass extra configure arguments, you can do this: + +```bash +$ phpbrew install 5.3.10 +mysql +sqlite -- \ + --enable-ftp --apxs2=/opt/local/apache2/bin/apxs +``` + +## Use And Switch + +Use (switch version temporarily): + +```bash +$ phpbrew use 5.4.22 +``` + +Switch PHP version (switch default version) + +```bash +$ phpbrew switch 5.4.18 +``` + +Turn Off: + +```bash +$ phpbrew off +``` + +If you enable apache PHP modules, remember to comment out or remove the settings. + +```bash +$ sudo vim /etc/httpd/conf/httpd.conf +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.21.so +# LoadModule php5_module /usr/lib/httpd/modules/libphp5.3.20.so +``` + +## List installed PHP + +```bash +$ phpbrew list +``` + + + +## The Extension Installer + +You can also install PHP extension with ease, either the extensions shipped +with PHP source code or even from PECL. + +If the extension directory is found in PHP source, PHPBrew automatically switch into +the PHP source directory and install the extension. + +If the extension directory is not found in PHP source, PHPBrew fetch the extension +package from PECL . + +PHPBrew also creates extension config to enable the installed extension, so you +don't need to write the config file to enable it by hands. The extension config +directory is in: + + ~/.phpbrew/php/php-{version}/var/db + +### Installing Extension - The Most Simple Way + +```bash +$ phpbrew ext install APC +$ phpbrew ext install memcache +``` + +### Installing Extension With Version + +To install extensions with stability tag: + +```bash +$ phpbrew ext install xdebug stable +$ phpbrew ext install xdebug latest +$ phpbrew ext install xdebug beta +``` + +To install extensions with version name: + +```bash +$ phpbrew ext install xdebug 2.0.1 +``` + +To install extensions with customized options: + +```bash +$ phpbrew ext install yaml -- --with-yaml=/opt/local +``` + +### Enabling Extension + +You can also install extension via PECL and enable it manually: + +```bash +pecl install mongo +phpbrew ext enable mongo +``` + +The `ext enable` command allows you to create a config {current php base}/var/db/{extension name}.ini +to enable the extension. + + +### Configuring the php.ini for current php version + +Simply run: + +```bash +$ phpbrew config +``` + +You may specify the EDITOR environment variable to your favorite editor: + +```bash +export EDITOR=vim +phpbrew config +``` + +## Upgrade phpbrew + +To upgrade phpbrew, you may simply run the `self-update` command, +this command enables you to install the latest version of +`master` branch from GitHub: + +```bash +$ phpbrew self-update +``` + +## The Installed PHP(s) + +The installed phps are located in `~/.phpbrew/php`, for example, php 5.4.20 is located at: + + ~/.phpbrew/php/5.4.20/bin/php + +And you should put your configuration file in: + + ~/.phpbrew/php/5.4.20/etc/php.ini + +Extension configuration files should be put in: + + ~/.phpbrew/php/5.4.20/var/db + ~/.phpbrew/php/5.4.20/var/db/xdebug.ini + ~/.phpbrew/php/5.4.20/var/db/apc.ini + ~/.phpbrew/php/5.4.20/var/db/memcache.ini + ... etc + +## Quick commands to switch between directories + +Switching to PHP build directory + +```bash +$ phpbrew build-dir +``` + +Switching to PHP dist directory + +```bash +$ phpbrew dist-dir +``` + +Switching to PHP etc directory + +```bash +$ phpbrew etc-dir +``` + +Switching to PHP var directory + +```bash +$ phpbrew var-dir +``` + +## PHP FPM + +phpbrew also provides useful fpm managing sub-commands. to use them, please +remember to enable `+fpm` variant when building your own php. + +To start php-fpm, simply type: + +```bash +$ phpbrew fpm start +``` + +To stop php-fpm, type: + +```bash +$ phpbrew fpm stop +``` + +To show php-fpm modules: + +```bash +phpbrew fpm module +``` + +To test php-fpm config: + +```bash +phpbrew fpm test +``` + +To edit php-fpm config: + +```bash +phpbrew fpm config +``` + +> The installed `php-fpm` is located in `~/.phpbrew/php/php-*/sbin`. +> +> The correspond `php-fpm.conf` is lcoated in `~/.phpbrew/php/php-*/etc/php-fpm.conf.default`, +> you may copy the default config file to the desired location. e.g., +> +> cp -v ~/.phpbrew/php/php-*/etc/php-fpm.conf.default +> ~/.phpbrew/php/php-*/etc/php-fpm.conf +> +> php-fpm --php-ini {php config file} --fpm-config {fpm config file} + + +## Installing Extra Apps + +phpbrew provides app command to fetch some php apps. + +### Installing composer + +```bash +$ phpbrew app get composer +``` + +### Installing phpunit + +```bash +phpbrew app get phpunit +``` + +## Enabling Version Info Prompt + +To add PHP version info in your shell prompt, you can use +`"PHPBREW_SET_PROMPT=1"` variable. + +The default is `"PHPBREW_SET_PROMPT=0"` (disable). To enable it, you can add this +line to your `~/.bashrc` file and put this line before you source +`~/.phpbrew/bashrc`. + +```bash +export PHPBREW_SET_PROMPT=1 +``` + +To embed version info in your prompt, you can use +`phpbrew_current_php_version` shell function, which is defined in `.phpbrew/bashrc`. +and you can set the version info in your `PS1` var. +e.g. + +```bash +PS1=" \$(phpbrew_current_php_version) \$ " +``` + +Known Issues +------------ + +- For PHP-5.3+ versions, "Building intl 64-bit fails on OS X" + +- To build PHP with GD extension, you need to specify your libpng dir and libjpeg dir, for example, + + $ phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2 \ + -- --with-libdir=lib/x86_64-linux-gnu \ + --with-gd=shared \ + --enable-gd-natf \ + --with-jpeg-dir=/usr \ + --with-png-dir=/usr + + + + +Troubleshooting +------------------- +Please see [TroubleShooting](https://github.com/phpbrew/phpbrew/wiki/TroubleShooting) + +FAQ +------------------------- + +Q: How do I have the same version with different compile option? + +A: Currently, you can install php5.x.x and rename the /Users/phpbrew/.phpbrew/php/php-5.x.x folder to the new name, for example, php-5.x.x-super , and install another php-5.3.3 + + + +Contribution +------------------ +Please see [Contribution](https://github.com/phpbrew/phpbrew/wiki/Contribution) + + +Documentation +------------- +Please see [Wiki](https://github.com/phpbrew/phpbrew/wiki) + + +Author +------ + +- Yo-An Lin (c9s) +- Márcio Almad + +License +-------- + +See [LICENSE](LICENSE) file. + + + +[t-link]: https://travis-ci.org/phpbrew/phpbrew "Travis Build" +[s-link]: https://scrutinizer-ci.com/g/phpbrew/phpbrew/?branch=master "Code Quality" +[p-link]: https://packagist.org/packages/marc/phpbrew "Packagist" +[sl-link]: https://insight.sensiolabs.com/projects/02d1fd01-8a70-4fe4-a550-381a3c0e33f3 "Sensiolabs Insight" +[c-badge]: https://coveralls.io/repos/phpbrew/phpbrew/badge.png?branch=master diff --git a/bin/phpbrew b/bin/phpbrew index 853512906..6c0b25f36 100755 --- a/bin/phpbrew +++ b/bin/phpbrew @@ -1,5 +1,30 @@ #!/usr/bin/env php run( $argv ); + +if (PHP_VERSION_ID < 70200 && function_exists('posix_isatty') && posix_isatty(STDOUT)) { + fwrite(STDOUT, "\033[33mWarning! The usage of PHP older than 7.2.0 as the interpreter is deprecated.\n"); + fwrite(STDOUT, "Please set the system interpreter using \033[0m'phpbrew system '\033[33m.\n"); + fwrite(STDOUT, "See https://github.com/phpbrew/phpbrew/wiki/System-Interpreter for details.\033[0m\n"); +} + +$includeIfExists = function($file) +{ + return file_exists($file) ? include $file : false; +}; + +if ( + (!$loader = $includeIfExists(__DIR__.'/../vendor/autoload.php')) + && (!$loader = $includeIfExists(__DIR__.'/../../../autoload.php')) +) { + echo 'You must set up the project dependencies, run the following commands:'.PHP_EOL. + 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL. + 'php composer.phar install'.PHP_EOL; + exit(1); +} + +$console = PhpBrew\Console::getInstance(); +if (isset($argv)) { + if (!$console->runWithTry($argv)) { + exit(-1); + } +} diff --git a/box.json.dist b/box.json.dist new file mode 100644 index 000000000..fc7d0c913 --- /dev/null +++ b/box.json.dist @@ -0,0 +1,10 @@ +{ + "output": "phpbrew", + "compactors": [ + "KevinGH\\Box\\Compactor\\Json", + "KevinGH\\Box\\Compactor\\Php" + ], + "directories-bin": [ + "shell" + ] +} diff --git a/build.xml b/build.xml deleted file mode 100644 index 8ad546256..000000000 --- a/build.xml +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/completion/bash/_phpbrew b/completion/bash/_phpbrew index acc004491..beb945788 100644 --- a/completion/bash/_phpbrew +++ b/completion/bash/_phpbrew @@ -1,68 +1,6522 @@ #!/bin/bash -# Author: @marcioAlmada -# TLDR: bash completion for phpbrew -# NOTICE: this script must be updated with any changes to, or additions to phpbrew commands. - -_phpbrew_comp() -{ - local cur prev prev_prev opts - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - prev_prev="${COMP_WORDS[COMP_CWORD-2]}" - opts="help init known install list use switch info env ext variants config download clean self-update remove purge" - - case "${prev}" in - init|known|list|env|variants|config|self-update) - return 0 - ;; - esac - - case "${prev}" in - use|switch|download|clean|remove|purge) - # list installed php versions (system wide not included) - opts="$(ls $PHPBREW_HOME/php/ | cut -d '-' -f 2)" - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 - ;; - esac - - case "${prev}" in - ext) - # list extension commands - opts="install enable disable" - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 - ;; - esac - - case "${prev}" in - install|disable|enable) - - # case "${prev_prev}" in - # phpbrew) - # # list known php versions - # COMPREPLY=( $(compgen -W "$(phpbrew known | grep php)" -- ${cur}) ) - # return 0 - # ;; - # esac - case "${prev_prev}" in - ext) - # list available extensions - opts="$(cd $PHPBREW_HOME/build/$PHPBREW_PHP/ext/ && ls -d */ | cut -d '/' -f 1)" - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 - ;; - esac - esac - - case "${cur}" in - *) - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 - ;; - esac - - return 0 -} && -complete -F _phpbrew_comp phpbrew +# bash completion script generated by CLIFramework +# Web: http://github.com/c9s/php-CLIFramework +# THIS IS AN AUTO-GENERATED FILE, PLEASE DON'T MODIFY THIS FILE DIRECTLY. + +# This function can be used to access a tokenized list of words +# on the command line: +# +# __demo_reassemble_comp_words_by_ref '=:' +# if test "${words_[cword_-1]}" = -w +# then +# ... +# fi +# +# The argument should be a collection of characters from the list of +# word completion separators (COMP_WORDBREAKS) to treat as ordinary +# characters. +# +# This is roughly equivalent to going back in time and setting +# COMP_WORDBREAKS to exclude those characters. The intent is to +# make option types like --date= and : easy to +# recognize by treating each shell word as a single token. +# +# It is best not to set COMP_WORDBREAKS directly because the value is +# shared with other completion scripts. By the time the completion +# function gets called, COMP_WORDS has already been populated so local +# changes to COMP_WORDBREAKS have no effect. +# +# Output: words_, cword_, cur_. + +__demo_reassemble_comp_words_by_ref() +{ + local exclude i j first + # Which word separators to exclude? + exclude="${1//[^$COMP_WORDBREAKS]}" + cword_=$COMP_CWORD + if [ -z "$exclude" ]; then + words_=("${COMP_WORDS[@]}") + return + fi + # List of word completion separators has shrunk; + # re-assemble words to complete. + for ((i=0, j=0; i < ${#COMP_WORDS[@]}; i++, j++)); do + # Append each nonempty word consisting of just + # word separator characters to the current word. + first=t + while + [ $i -gt 0 ] && + [ -n "${COMP_WORDS[$i]}" ] && + # word consists of excluded word separators + [ "${COMP_WORDS[$i]//[^$exclude]}" = "${COMP_WORDS[$i]}" ] + do + # Attach to the previous token, + # unless the previous token is the command name. + if [ $j -ge 2 ] && [ -n "$first" ]; then + ((j--)) + fi + first= + words_[$j]=${words_[j]}${COMP_WORDS[i]} + if [ $i = $COMP_CWORD ]; then + cword_=$j + fi + if (($i < ${#COMP_WORDS[@]} - 1)); then + ((i++)) + else + # Done. + return + fi + done + words_[$j]=${words_[j]}${COMP_WORDS[i]} + if [ $i = $COMP_CWORD ]; then + cword_=$j + fi + done +} + +if ! type _get_comp_words_by_ref >/dev/null 2>&1; then +_get_comp_words_by_ref () +{ + local exclude cur_ words_ cword_ + if [ "$1" = "-n" ]; then + exclude=$2 + shift 2 + fi + __demo_reassemble_comp_words_by_ref "$exclude" + cur_=${words_[cword_]} + while [ $# -gt 0 ]; do + case "$1" in + cur) + cur=$cur_ + ;; + prev) + prev=${words_[$cword_-1]} + ;; + words) + words=("${words_[@]}") + ;; + cword) + cword=$cword_ + ;; + esac + shift + done +} +fi + + +# Generates completion reply, appending a space to possible completion words, +# if necessary. +# It accepts 1 to 4 arguments: +# 1: List of possible completion words. +# 2: A prefix to be added to each possible completion word (optional). +# 3: Generate possible completion matches for this word (optional). +# 4: A suffix to be appended to each possible completion word (optional). +__mycomp () +{ + local cur_="${3-$cur}" + + case "$cur_" in + --*=) + ;; + *) + local c i=0 IFS=$' \t\n' + for c in $1; do + c="$c${4-}" + if [[ $c == "$cur_"* ]]; then + case $c in + --*=*|*.) ;; + *) c="$c " ;; + esac + COMPREPLY[i++]="${2-}$c" + fi + done + ;; + esac +} + +__mycompappend () +{ + local i=${#COMPREPLY[@]} + for x in $1; do + if [[ "$x" == "$3"* ]]; then + COMPREPLY[i++]="$2$x$4" + fi + done +} +__complete_meta () +{ + local app="phpbrew" + local command_signature=$1 + local complete_for=$2 + local arg=$3 # could be "--dir", 0 for argument index + local complete_type=$4 + local IFS=$' +' + + # When completing argument valid values, we need to eval + lines=($($app meta --bash --flat $command_signature $complete_for $arg $complete_type)) + + # Get the first line to return the compreply + # Complete the rest lines as words + COMPREPLY=($(compgen -W "${lines[*]:1}" -- $cur)) +} + +___phpbrew_complete_help () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--dev"]="1" ) +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_zsh () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--bind"]="1" ["--program"]="1" ) +options_require_value=(["--bind"]="1" ["--program"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_bash () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--bind"]="1" ["--program"]="1" ) +options_require_value=(["--bind"]="1" ["--program"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_meta () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--flat"]="1" ["--zsh"]="1" ["--bash"]="1" ["--json"]="1" ) +options_require_value=() +local argument_min_length=4 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + ;; + 1) + ;; + 2) + ;; + 3) + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_compile () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--classloader"]="1" ["--bootstrap"]="1" ["--executable"]="1" ["--lib"]="1" ["--include"]="1" ["--exclude"]="1" ["--output"]="1" ["-c"]="1" ["--compress"]="1" ["--no-compress"]="1" ) +options_require_value=(["--lib"]="1" ["--include"]="1" ["--exclude"]="1" ["--output"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_archive () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-d"]="1" ["--working-dir"]="1" ["-c"]="1" ["--composer"]="1" ["--vendor"]="1" ["--bootstrap"]="1" ["--executable"]="1" ["--compress"]="1" ["--no-compress"]="1" ["--add"]="1" ["--exclude"]="1" ["--no-classloader"]="1" ["--app-bootstrap"]="1" ) +options_require_value=(["-d"]="1" ["--working-dir"]="1" ["-c"]="1" ["--composer"]="1" ["--vendor"]="1" ["--bootstrap"]="1" ["--add"]="1" ["--exclude"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_github:build-topics () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--ns"]="1" ["--dir"]="1" ["--update"]="1" ) +options_require_value=(["--ns"]="1" ["--dir"]="1" ) +local argument_min_length=2 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + ;; + 1) + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_init () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-c"]="1" ["--config"]="1" ["--root"]="1" ) +options_require_value=(["-c"]="1" ["--config"]="1" ["--root"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_known () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-m"]="1" ["--more"]="1" ["-o"]="1" ["--old"]="1" ["-u"]="1" ["--update"]="1" ["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_install () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--test"]="1" ["--name"]="1" ["--post-clean"]="1" ["--production"]="1" ["--build-dir"]="1" ["--root"]="1" ["--home"]="1" ["--no-config-cache"]="1" ["--no-clean"]="1" ["--no-patch"]="1" ["--no-configure"]="1" ["--no-install"]="1" ["-n"]="1" ["--nice"]="1" ["--patch"]="1" ["--old"]="1" ["--user-config"]="1" ["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ["-f"]="1" ["--force"]="1" ["-d"]="1" ["--dryrun"]="1" ["--like"]="1" ["-j"]="1" ["--jobs"]="1" ["--stdout"]="1" ["--sudo"]="1" ) +options_require_value=(["--name"]="1" ["--build-dir"]="1" ["-n"]="1" ["--nice"]="1" ["--patch"]="1" ["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ["--like"]="1" ["-j"]="1" ["--jobs"]="1" ) +local argument_min_length=2 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + *) + __complete_meta "$command_signature" "arg" 1 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_list () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-d"]="1" ["--dir"]="1" ["-v"]="1" ["--variants"]="1" ) +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_use () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_switch () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_each () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_config () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-s"]="1" ["--sapi"]="1" ) +options_require_value=(["-s"]="1" ["--sapi"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_info () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_env () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.enable () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-s"]="1" ["--sapi"]="1" ) +options_require_value=(["-s"]="1" ["--sapi"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.install () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--pecl"]="1" ["--redownload"]="1" ["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.disable () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-s"]="1" ["--sapi"]="1" ) +options_require_value=(["-s"]="1" ["--sapi"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.config () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-s"]="1" ["--sapi"]="1" ) +options_require_value=(["-s"]="1" ["--sapi"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.clean () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-p"]="1" ["--purge"]="1" ) +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.show () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--download"]="1" ) +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension.known () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=(["enable"]="Enable PHP extension" ["install"]="Install PHP extension" ["disable"]="Disable PHP extension" ["config"]="Edit extension-specific configuration file" ["clean"]="Clean up the compiled objects in the extension source directory." ["show"]="Show information of a PHP extension" ["known"]="List known versions" ) +subcommand_alias=() +subcommand_signs=(["enable"]="extension.enable" ["install"]="extension.install" ["disable"]="extension.disable" ["config"]="extension.config" ["clean"]="extension.clean" ["show"]="extension.show" ["known"]="extension.known" ) +options=(["-so"]="1" ["--show-options"]="1" ["-sp"]="1" ["--show-path"]="1" ) +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_extension () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=(["enable"]="Enable PHP extension" ["install"]="Install PHP extension" ["disable"]="Disable PHP extension" ["config"]="Edit extension-specific configuration file" ["clean"]="Clean up the compiled objects in the extension source directory." ["show"]="Show information of a PHP extension" ["known"]="List known versions" ) +subcommand_alias=() +subcommand_signs=(["enable"]="extension.enable" ["install"]="extension.install" ["disable"]="extension.disable" ["config"]="extension.config" ["clean"]="extension.clean" ["show"]="extension.show" ["known"]="extension.known" ) +options=(["-so"]="1" ["--show-options"]="1" ["-sp"]="1" ["--show-path"]="1" ) +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_variants () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_path () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + COMPREPLY=( $(compgen -W "root +home +build +bin +include +etc +ext +ext-src +extension-src +extension-dir +config-scan +dist" -- $cur) ) + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_cd () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + COMPREPLY=( $(compgen -W "var +etc +build +dist" -- $cur) ) + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_download () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-f"]="1" ["--force"]="1" ["--old"]="1" ["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_clean () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-a"]="1" ["--all"]="1" ) +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_update () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["-o"]="1" ["--old"]="1" ["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_ctags () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm.restart () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm.setup () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--systemctl"]="1" ["--initd"]="1" ["--launchctl"]="1" ["--stdout"]="1" ) +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm.start () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm.stop () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=(["restart"]="Restart FPM server" ["setup"]="Generate and setup FPM startup config" ["start"]="Start FPM server" ["stop"]="Stop FPM server" ) +subcommand_alias=() +subcommand_signs=(["restart"]="fpm.restart" ["setup"]="fpm.setup" ["start"]="fpm.start" ["stop"]="fpm.stop" ) +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_fpm () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=(["restart"]="Restart FPM server" ["setup"]="Generate and setup FPM startup config" ["start"]="Start FPM server" ["stop"]="Stop FPM server" ) +subcommand_alias=() +subcommand_signs=(["restart"]="fpm.restart" ["setup"]="fpm.setup" ["start"]="fpm.start" ["stop"]="fpm.stop" ) +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_list-ini () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_self-update () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=(["--downloader"]="1" ["--continue"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +options_require_value=(["--downloader"]="1" ["--http-proxy"]="1" ["--http-proxy-auth"]="1" ["--connect-timeout"]="1" ) +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_remove () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_purge () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + *) + __complete_meta "$command_signature" "arg" 0 "valid-values" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_off () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_switch-off () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_system () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=1 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument +if [[ $argument_min_length > 0 ]] ; then + case $argument_index in + 0) + __complete_meta "$command_signature" "arg" 0 "suggestions" + return + ;; + esac + fi + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_system-off () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=() +subcommand_alias=() +subcommand_signs=() +options=() +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; +___phpbrew_complete_phpbrew () +{ +local comp_prefix=___phpbrew + + local cur words cword prev + _get_comp_words_by_ref -n =: cur words cword prev + + local command_signature=$1 + local command_index=$2 + + ((command_index++)) + + # Output application command alias mapping + # aliases[ alias ] = command + declare -A subcommand_alias + + # Define the command names + declare -A subcommands + + declare -A subcommand_signs + + # option names defines the available options of this command + declare -A options + # options_require_value: defines the required completion type for each + # option that requires a value. + declare -A options_require_value + subcommands=(["help"]="Show help message of a command" ["zsh"]="This function generate a zsh-completion script automatically" ["bash"]="This command generate a bash completion script automatically" ["meta"]="Return the meta data of a commands." ["compile"]="compile current source into Phar format library file." ["archive"]="Build executable phar file from composer.json" ["github:build-topics"]="Build topic classes from the wiki of a GitHub Project." ["init"]="Initialize phpbrew config file." ["known"]="List known PHP versions" ["install"]="Install php" ["list"]="List installed PHPs" ["use"]="Use php, switch version temporarily" ["switch"]="Switch default php version." ["each"]="Iterate and run a given shell command over all php versions managed by PHPBrew." ["config"]="Edit your current php.ini in your favorite $EDITOR" ["info"]="Show current PHP information" ["env"]="Export environment variables" ["extension"]="List extensions or execute extension subcommands" ["variants"]="List php variants" ["path"]="Show paths of the current PHP." ["cd"]="Change to directories" ["download"]="Download php" ["clean"]="Clean up the source directory of a PHP distribution" ["update"]="Update PHP release source file" ["ctags"]="Run ctags at current php source dir for extension development." ["fpm"]="fpm commands" ["list-ini"]="List loaded ini config files." ["self-update"]="Self-update, default to master version" ["remove"]="Remove installed php build." ["purge"]="Remove installed php version and config files." ["off"]="Temporarily go back to the system php" ["switch-off"]="Definitely go back to the system php" ["system"]="Get or set the internally used PHP binary" ["system-off"]="Use the currently effective PHP binary internally" ) +subcommand_alias=(["a"]="archive" ["ar"]="archive" ["i"]="install" ["ins"]="install" ["ext"]="extension" ) +subcommand_signs=(["help"]="help" ["zsh"]="zsh" ["bash"]="bash" ["meta"]="meta" ["compile"]="compile" ["archive"]="archive" ["github:build-topics"]="github:build-topics" ["init"]="init" ["known"]="known" ["install"]="install" ["list"]="list" ["use"]="use" ["switch"]="switch" ["each"]="each" ["config"]="config" ["info"]="info" ["env"]="env" ["extension"]="extension" ["variants"]="variants" ["path"]="path" ["cd"]="cd" ["download"]="download" ["clean"]="clean" ["update"]="update" ["ctags"]="ctags" ["fpm"]="fpm" ["list-ini"]="list-ini" ["self-update"]="self-update" ["remove"]="remove" ["purge"]="purge" ["off"]="off" ["switch-off"]="switch-off" ["system"]="system" ["system-off"]="system-off" ) +options=(["-v"]="1" ["--verbose"]="1" ["-d"]="1" ["--debug"]="1" ["-q"]="1" ["--quiet"]="1" ["-h"]="1" ["--help"]="1" ["--version"]="1" ["-p"]="1" ["--profile"]="1" ["--log-path"]="1" ["--no-interact"]="1" ["--no-progress"]="1" ) +options_require_value=() +local argument_min_length=0 + + # Get the command name chain of the current input, e.g. + # + # app asset install [arg1] [arg2] [arg3] + # app commit add + # + # The subcommand dispatch should be done in the command complete function, + # not in the root completion function. + # We should pass the argument index to the complete function. + + # command_index=1 start from the first argument, not the application name + # Find the command position + local argument_index=0 + local i + local command + local found_options=0 + + # echo "[DEBUG] command_index: [$command_signature] [$command_index]" + + while [ $command_index -lt $cword ]; do + i="${words[command_index]}" + case "$i" in + # Ignore options + --=*) found_options=1 ;; + --*) found_options=1 ;; + -*) found_options=1 ;; + *) + # looks like my command, that's break the loop and dispatch to the next complete function + if [[ -n "$i" && -n "${subcommands[$i]}" ]] ; then + command="$i" + break + elif [[ -n "$i" && -n "${subcommand_alias[$i]}" ]] ; then + command="$i" + break + elif [[ $command_index -gt 1 ]] ; then + # If the command is not found, check if the previous argument is an option expecting a value + # or it is an argument + + # the previous argument (might be) + p="${words[command_index-1]}" + + # not an option value, push to the argument list + if [[ -z "${options_require_value[$p]}" ]] ; then + # echo "[DEBUG] argument_index++ because of [$i]" + ((argument_index++)) + fi + fi + ;; + esac + ((command_index++)) + done + + # If the first command name is not found, we do complete... + if [[ -z "$command" ]] ; then + case "$cur" in + # If the current argument $cur looks like an option, then we should complete + -*) + __mycomp "${!options[*]}" + return + ;; + *) + # The argument here can be an option value. e.g. --output-dir /tmp + # The the previous one... + if [[ -n "$prev" && -n "${options_require_value[$prev]}" ]] ; then + # TODO: local complete_type="${options_require_value[$prev]"} + __complete_meta "$command_signature" "opt" "${prev##*(-)}" "valid-values" + return + fi + # If the command requires at least $argument_min_length to run, we check the argument + + # If there is no argument support, then user is supposed to give a subcommand name or an option + __mycomp "${!options[*]} ${!subcommands[*]} ${!subcommand_alias[*]}" + return + ;; + esac + + else + # We just found the first command, we are going to dispatch the completion handler to the next level... + # Rewrite command alias to command name to get the correct response + if [[ -n "${subcommand_alias[$command]}" ]] ; then + command="${subcommand_alias[$command]}" + fi + + if [[ -n "${subcommand_signs[$command]}" ]] ; then + local suffix="${subcommand_signs[$command]}" + local completion_func="${comp_prefix}_complete_${suffix//-/_}" + + # Declare the completion function name and dispatch rest arguments to the complete function + command_signature="${command_signature}.${command}" + declare -f $completion_func >/dev/null && \ + $completion_func $command_signature $command_index && return + else + echo "Command '$command' not found" + fi + fi +}; + +___phpbrew_main_wrapper() +{ + ___phpbrew_complete_phpbrew "app" 0 +} +complete -o bashdefault -o default -o nospace -F ___phpbrew_main_wrapper phpbrew 2>/dev/null diff --git a/completion/zsh/_phpbrew b/completion/zsh/_phpbrew index db1725a67..49c824c4a 100644 --- a/completion/zsh/_phpbrew +++ b/completion/zsh/_phpbrew @@ -1,67 +1,495 @@ -#compdef phpbrew - -_phpbrew_comp() { - local curcontext="$curcontext" state line - typeset -A opt_args - - local -A variants_args - - phps_args='php-5.3.24 php-5.4.14 php-5.4.13 php-5.4.12 php-5.4.10 php-5.4.9' - - variants_args='+all +apxs2 +bcmath +bz2 +calendar +cgi +cli +ctype - +dba +debug +dom +embed +exif +fileinfo +filter +fpm - +ftp +gcov +gd +gettext +hash +iconv +icu +imap +intl - +ipc +ipv6 +json +kerberos +mbregex +mbstring +mcrypt - +mhash +mysql +openssl +pcntl +pcre +pdo +pgsql +phar - +posix +readline +session +soap +sockets +sqlite +tidy - +tokenizer +xml_all +xmlrpc +zip +zlib +dbs +default' - - _arguments -C \ - '(-)--help[print help information]' \ - '(- *)--version[print version information]' \ - '1: :->cmds' \ - '*:: :->args' && ret=0 - - case $state in - cmds) - # _arguments '1:Countries:(France Germany Italy)' - _arguments '1:Commands:(( - init\:initialize\ phpbrew\ config - install\:install\ php - list\:list\ installed\ phps - known\:list\ known\ phps - ext\:extension\ commands - variants\:list\ variants - use\:use\ php\ version - switch\:switch\ php\ version - clean\:clean\ php\ build - remove\:remove\ installed\ php - pure\:remove\ installed\ php\ and\ source\ files - download\:download\ php - self-update - info - env - ))' +# phpbrew zsh completion script generated by CLIFramework +# Web: http://github.com/c9s/php-CLIFramework +# THIS IS AN AUTO-GENERATED FILE, PLEASE DON'T MODIFY THIS FILE DIRECTLY. +___phpbrewmeta () { + local curcontext=$curcontext state line ret=1 + typeset -A opt_args + typeset -A val_args + declare -a lines + declare -a args + local ret=1 + local desc=$1 + local cmdsig=$2 + local valtype=$3 + local pos=$4 + local completion=$5 + output=$(phpbrew meta --zsh $cmdsig $valtype $pos $completion) + lines=("${(@f)output}") + output_type=${lines[1]} + if [[ $lines[1] == "#groups" ]] ; then + eval $output + for tag in ${(k)groups} ; do + complete_values=(${(z)${groups[$tag]}}) + label=${labels[$tag]} + if [[ -z $label ]] ; then + label=$tag + fi + _describe -t $tag $label complete_values && ret=0 + done + elif [[ $lines[1] == "#values" ]] ; then + args=(${lines:1}) + _values "$desc" ${=args} && ret=0 + elif [[ $lines[1] == "#descriptions" ]] ; then + args=(${lines:1}) + _describe "$desc" args && ret=0 + else + _values "$desc" ${=lines} && ret=0 + fi + return ret +} +_phpbrew() { +local curcontext=$curcontext state line +typeset -A opt_args +local ret=1 + _arguments -C \ + '(-v --verbose)'{-v,--verbose}'[Print verbose message.]' \ + '(-d --debug)'{-d,--debug}'[Print debug message.]' \ + '(-q --quiet)'{-q,--quiet}'[Be quiet.]' \ + '(-h --help)'{-h,--help}'[Show help.]' \ + '--version[Show version.]' \ + '(-p --profile)'{-p,--profile}'[Display timing and memory usage information.]' \ + '--log-path[The path of a log file.]' \ + '--no-interact[Do not ask any interactive question.]' \ + '--no-progress[Do not display progress bar.]' \ + ': :->cmds' \ + '*:: :->option-or-argument' \ + && return + case $state in + (cmds) + local commands; commands=( + help:'Show help message of a command' + zsh:'This function generate a zsh-completion script automatically' + bash:'This command generate a bash completion script automatically' + meta:'Return the meta data of a commands.' + compile:'compile current source into Phar format library file.' + archive:'Build executable phar file from composer.json' + github:build-topics:'Build topic classes from the wiki of a GitHub Project.' + init:'Initialize phpbrew config file.' + known:'List known PHP versions' + install:'Install php' + list:'List installed PHPs' + use:'Use php, switch version temporarily' + switch:'Switch default php version.' + each:'Iterate and run a given shell command over all php versions managed by PHPBrew.' + config:'Edit your current php.ini in your favorite $EDITOR' + info:'Show current PHP information' + env:'Export environment variables' + extension:'List extensions or execute extension subcommands' + variants:'List php variants' + path:'Show paths of the current PHP.' + cd:'Change to directories' + download:'Download php' + clean:'Clean up the source directory of a PHP distribution' + update:'Update PHP release source file' + ctags:'Run ctags at current php source dir for extension development.' + fpm:'fpm commands' + list-ini:'List loaded ini config files.' + self-update:'Self-update, default to master version' + remove:'Remove installed php build.' + purge:'Remove installed php version and config files.' + off:'Temporarily go back to the system php' + switch-off:'Definitely go back to the system php' + system:'Get or set the internally used PHP binary' + system-off:'Use the currently effective PHP binary internally' + ) + _describe -t commands 'command' commands && ret=0 ;; - *) - case $words[1] in - install) - _arguments "1:phps:(($phps_args))" \ - "*:variants:(($variants_args))" - # compadd "$@" php-5.3.24 php-5.4.14 php-5.4.13 php-5.4.12 php-5.4.10 php-5.4.9 - ;; - use|switch|remove|purge|clean) - for dir in $PHPBREW_HOME/php/* ; do - if [[ -d $dir ]] ; then - php_name=$(basename $dir) - compadd "$@" "$php_name" - fi - done - ;; - *) - _files - esac - esac + (option-or-argument) + curcontext=${curcontext%:*}-$line[1]: + case $line[1] in + (help) + _arguments -w -S -s \ + '--dev[Show development commands]' \ + && ret=0 + + ;; + (zsh) + _arguments -w -S -s \ + '--bind=[bind complete to command]' \ + '--program=[programe name]' \ + && ret=0 + + ;; + (bash) + _arguments -w -S -s \ + '--bind=[bind complete to command]' \ + '--program=[programe name]' \ + && ret=0 + + ;; + (meta) + _arguments -w -S -s \ + '--flat[flat list format. work for both zsh and bash.]' \ + '--zsh[output for zsh]' \ + '--bash[output for bash]' \ + '--json[output in JSON format (un-implemented)]' \ + ':commandlist' \ + ':type' \ + ':arg' \ + ':attr' \ + && ret=0 + + ;; + (compile) + _arguments -w -S -s \ + '--classloader[embed classloader source file]' \ + '--bootstrap[bootstrap or executable source file]' \ + '--executable[is a executable script ?]' \ + '--lib=[library path]' \ + '--include=[include path]' \ + '--exclude=[exclude pattern]' \ + '--output=[output]' \ + '(-c --compress)'{-c,--compress}'[phar file compress type\: gz, bz2]' \ + '--no-compress[do not compress phar file.]' \ + && ret=0 + + ;; + (archive) + _arguments -w -S -s \ + '(-d --working-dir)'{-d,--working-dir=}'[If specified, use the given directory as working directory.]:dir:_directories' \ + '(-c --composer)'{-c,--composer=}'[The composer.json file. If --working-dir is ignored, dirname of the composer.json will be used.]:file:_files' \ + '--vendor=[Vendor directory name]' \ + '--bootstrap[bootstrap or executable php file]:file:_files' \ + '--executable[make the phar file executable]:boolean' \ + '--compress[compress type\: gz, bz2]::("gz" "bz2")' \ + '--no-compress[do not compress phar file.]' \ + '--add=[add a path respectively]' \ + '--exclude=[exclude pattern]' \ + '--no-classloader[do not embed a built-in classloader in the generated phar file.]' \ + '--app-bootstrap[Include CLIFramework bootstrap script.]' \ + ':phar-file' \ + && ret=0 + + ;; + (github:build-topics) + _arguments -w -S -s \ + '--ns=[Class namespace]' \ + '--dir=[Output directory]' \ + '--update[Update wiki repository]' \ + ':user' \ + ':repo' \ + && ret=0 + + ;; + (init) + _arguments -w -S -s \ + '(-c --config)'{-c,--config=}'[The YAML config file which should be copied into phpbrew home.The config file is used for creating custom virtual variants. For more details, please see https\://github.com/phpbrew/phpbrew/wiki/Setting-up-Configuration]:file:_files' \ + '--root=[Override the default PHPBREW_ROOT path setting.This option is usually used to load system-wide build pool. e.g. phpbrew init --root=/opt/phpbrew ]:dir:_directories' \ + && ret=0 + + ;; + (known) + _arguments -w -S -s \ + '(-m --more)'{-m,--more}'[Show more older versions]' \ + '(-o --old)'{-o,--old}'[List old phps (less than 5.3)]' \ + '(-u --update)'{-u,--update}'[Update release list]' \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + && ret=0 + + ;; + (install) + _arguments -w -S -s \ + '--test[Run tests after the installation.]' \ + '--name=[The name of the installation. By default the installed path is equal to the release version name (php-5.x.x), however you can specify a custom name instead of the default `php-5.x.x`. For example, `myphp-5.3.2-dbg`]' \ + '--post-clean[Run make clean after the installation.]' \ + '--production[Use production configuration file. this installer will copy the php-production.ini into the etc directory.]' \ + '--build-dir=[Specify the build directory. the distribution tarball will be extracted to the directory you specified instead of $PHPBREW_ROOT/build/{name}.]:dir:_directories' \ + '--root[Specify PHPBrew root instead of PHPBREW_ROOT]' \ + '--home[Specify PHPBrew home instead of PHPBREW_HOME]' \ + '--no-config-cache[Do not use config.cache for configure script.]' \ + '--no-clean[Do not clean previously compiled objects before building PHP. By default phpbrew will run `make clean` before running the configure script to ensure everything is cleaned up.]' \ + '--no-patch[Do not apply any patch]' \ + '--no-configure[Do not run configure script]' \ + '--no-install[Do not install, just run build the target]' \ + '(-n --nice)'{-n,--nice=}'[Runs build processes at an altered scheduling priority. The priority can be adjusted over a range of -20 (the highest) to 20 (the lowest).]' \ + '--patch=[Apply patch before build.]:file:_files' \ + '--old[Install phpbrew incompatible phps (< 5.3)]' \ + '--user-config[Allow users create their own config file (php.ini or extension config init files)]' \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + '(-f --force)'{-f,--force}'[Force the installation (redownloads source).]' \ + '(-d --dryrun)'{-d,--dryrun}'[Do not build, but run through all the tasks.]' \ + '--like=[Inherit variants from an existing build. This option would require an existing build directory from the {version}.]' \ + '(-j --jobs)'{-j,--jobs=}'[Specifies the number of jobs to run build simultaneously (make -jN).]' \ + '--stdout[Outputs install logs to stdout.]' \ + '--sudo[sudo to run install command.]' \ + ':version:{___phpbrewmeta "version" install arg 0 suggestions}' \ + '*:variants:{___phpbrewmeta "variants" install arg 1 suggestions}' \ + && ret=0 + + ;; + (list) + _arguments -w -S -s \ + '(-d --dir)'{-d,--dir}'[Show php directories.]' \ + '(-v --variants)'{-v,--variants}'[Show used variants.]' \ + && ret=0 + + ;; + (use) + _arguments -w -S -s \ + ':PHP version:{___phpbrewmeta "PHP version" use arg 0 valid-values}' \ + && ret=0 + + ;; + (switch) + _arguments -w -S -s \ + ':PHP version:{___phpbrewmeta "PHP version" switch arg 0 valid-values}' \ + && ret=0 + + ;; + (each) + + ;; + (config) + _arguments -w -S -s \ + '(-s --sapi)'{-s,--sapi=}'[Edit php.ini for SAPI name.]:string' \ + && ret=0 + + ;; + (info) + + ;; + (env) + _arguments -w -S -s \ + ':PHP build:{___phpbrewmeta "PHP build" env arg 0 valid-values}' \ + && ret=0 + + ;; + (extension) + _arguments -C \ + '(-so --show-options)'{-so,--show-options}'[Show extension configure options]' \ + '(-sp --show-path)'{-sp,--show-path}'[Show extension config.m4 path]' \ + ': :->cmds' \ + '*:: :->option-or-argument' \ + && return + case $state in + (cmds) + local commands; commands=( + enable:'Enable PHP extension' + install:'Install PHP extension' + disable:'Disable PHP extension' + config:'Edit extension-specific configuration file' + clean:'Clean up the compiled objects in the extension source directory.' + show:'Show information of a PHP extension' + known:'List known versions' + ) + _describe -t commands 'command' commands && ret=0 + ;; + (option-or-argument) + curcontext=${curcontext%:*}-$line[1]: + case $line[1] in + (enable) + _arguments -w -S -s \ + '(-s --sapi)'{-s,--sapi=}'[Enable extension for SAPI name.]:string' \ + ':extensions:{___phpbrewmeta "extensions" extension.enable arg 0 suggestions}' \ + && ret=0 + + ;; + (install) + _arguments -w -S -s \ + '--pecl[Try to download from PECL even when ext source is bundled with php-src.]' \ + '--redownload[Force to redownload extension source even if it is already available.]' \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + ':extensions:{___phpbrewmeta "extensions" extension.install arg 0 suggestions}' \ + && ret=0 + + ;; + (disable) + _arguments -w -S -s \ + '(-s --sapi)'{-s,--sapi=}'[Disable extension for SAPI name.]:string' \ + ':extensions:{___phpbrewmeta "extensions" extension.disable arg 0 suggestions}' \ + && ret=0 + + ;; + (config) + _arguments -w -S -s \ + '(-s --sapi)'{-s,--sapi=}'[Edit extension for SAPI name.]:string' \ + ':extensions:{___phpbrewmeta "extensions" extension.config arg 0 suggestions}' \ + && ret=0 + + ;; + (clean) + _arguments -w -S -s \ + '(-p --purge)'{-p,--purge}'[Remove all the source files.]' \ + ':extensions:{___phpbrewmeta "extensions" extension.clean arg 0 suggestions}' \ + && ret=0 + + ;; + (show) + _arguments -w -S -s \ + '--download[Download the extension source if extension not found.]' \ + ':extension:{___phpbrewmeta "extension" extension.show arg 0 suggestions}' \ + && ret=0 + + ;; + (known) + _arguments -w -S -s \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + ':extensions:{___phpbrewmeta "extensions" extension.known arg 0 suggestions}' \ + && ret=0 + + ;; + esac + ;; + esac + + ;; + (variants) + _arguments -w -S -s \ + ':version' \ + && ret=0 + + ;; + (path) + _arguments -w -S -s \ + ':type:("root" "home" "build" "bin" "include" "etc" "ext" "ext-src" "extension-src" "extension-dir" "config-scan" "dist")' \ + && ret=0 + + ;; + (cd) + _arguments -w -S -s \ + ':directory:("var" "etc" "build" "dist")' \ + && ret=0 + + ;; + (download) + _arguments -w -S -s \ + '(-f --force)'{-f,--force}'[Force extraction]' \ + '--old[enable old phps (less than 5.3)]' \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + ':version:{___phpbrewmeta "version" download arg 0 suggestions}' \ + && ret=0 + + ;; + (clean) + _arguments -w -S -s \ + '(-a --all)'{-a,--all}'[Remove all the files in the source directory of the PHP distribution.]' \ + ':PHP build:{___phpbrewmeta "PHP build" clean arg 0 valid-values}' \ + && ret=0 + + ;; + (update) + _arguments -w -S -s \ + '(-o --old)'{-o,--old}'[List versions older than PHP 7.0]' \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + && ret=0 + + ;; + (ctags) + _arguments -w -S -s \ + ':PHP build:{___phpbrewmeta "PHP build" ctags arg 0 valid-values}' \ + && ret=0 + + ;; + (fpm) + _arguments -C \ + ': :->cmds' \ + '*:: :->option-or-argument' \ + && return + case $state in + (cmds) + local commands; commands=( + restart:'Restart FPM server' + setup:'Generate and setup FPM startup config' + start:'Start FPM server' + stop:'Stop FPM server' + ) + _describe -t commands 'command' commands && ret=0 + ;; + (option-or-argument) + curcontext=${curcontext%:*}-$line[1]: + case $line[1] in + (restart) + + ;; + (setup) + _arguments -w -S -s \ + '--systemctl[Generate systemd service entry. This option only works for systemd-based Linux. To use this option, be sure to compile PHP with --with-fpm-systemd option. Start from 1.22, phpbrew automatically add --with-fpm-systemd when systemd is detected.]' \ + '--initd[Generate init.d script. The generated init.d script depends on lsb-base >= 4.0. If initctl is based on upstart, the init.d script will not be executed. To check, please run /sbin/initctl --version in the command-line.]' \ + '--launchctl[Generate plist for launchctl (OS X)]' \ + '--stdout[Print config to STDOUT instead of writing to the file.]' \ + ':buildName' \ + && ret=0 + + ;; + (start) + + ;; + (stop) + + ;; + esac + ;; + esac + + ;; + (list-ini) + + ;; + (self-update) + _arguments -w -S -s \ + '--downloader=[Use alternative downloader.]' \ + '--continue[Continue getting a partially downloaded file.]' \ + '--http-proxy=[HTTP proxy address]' \ + '--http-proxy-auth=[HTTP proxy authentication]' \ + '--connect-timeout=[Connection timeout]' \ + && ret=0 + + ;; + (remove) + _arguments -w -S -s \ + ':installed php:{___phpbrewmeta "installed php" remove arg 0 valid-values}' \ + && ret=0 + + ;; + (purge) + _arguments -w -S -s \ + '*:PHP build:{___phpbrewmeta "PHP build" purge arg 0 valid-values}' \ + && ret=0 + + ;; + (off) + + ;; + (switch-off) + + ;; + (system) + _arguments -w -S -s \ + ':php version:{___phpbrewmeta "php version" system arg 0 suggestions}' \ + && ret=0 + + ;; + (system-off) + + ;; + esac + ;; + esac + +return ret } - -_phpbrew_comp "$@" +compdef _phpbrew phpbrew diff --git a/composer.json b/composer.json index a063b80fd..fc4cdcf00 100644 --- a/composer.json +++ b/composer.json @@ -1,26 +1,48 @@ { - "name": "corneltek\/phpbrew", + "name": "phpbrew/phpbrew", "description": "PHPBrew API library", + "license": "MIT", "authors": [ { "name": "c9s", "email": "cornelius.howl@gmail.com" + }, + { + "name": "Márcio Almada", + "email": "marcio3w@gmail.com", + "homepage": "https://github.com/marcioAlmada/" + } + ], + "config" : { + "platform": { + "php": "7.2.5" } + }, + "bin": [ + "bin/phpbrew" ], + "minimum-stability": "dev", + "prefer-stable": true, "require": { - "corneltek\/cliframework": "~1.5", - "corneltek\/pearx": "dev-master", - "symfony\/process": "~2.3" + "php": "^7.2.5 || ^8.0", + "corneltek/pearx": "^1.3.5", + "corneltek/curlkit": "^1.0.11", + "ext-simplexml": "*", + "symfony/yaml": "^5.4", + "corneltek/cliframework": "3.0.x-dev#0e69e4d9d8ee6c8b5abb7ebf0cf846e47d93b656" }, "require-dev": { - "corneltek\/phpunit-testmore": "dev-master", - "corneltek\/universal": "*", - "cbednarski\/pharcc": "0.2.*" + "php-vcr/php-vcr": "^1.5.4", + "phpunit/phpunit": "^8.5.33" }, - "autoload": { - "psr-0": { - "PhpBrew": "src" + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" } }, - "version": "1.11.7" -} \ No newline at end of file + "autoload": { + "psr-4": { + "PhpBrew\\": "src/PhpBrew/" + } + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 000000000..dc62c92c0 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2907 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "f0122eaa7927d9d203c014d9be531f26", + "packages": [ + { + "name": "corneltek/class-template", + "version": "2.1.2", + "source": { + "type": "git", + "url": "https://github.com/c9s/ClassTemplate.git", + "reference": "4bdb46a6b1a5245118e7bf08b4cdacdfdaadb77b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/c9s/ClassTemplate/zipball/4bdb46a6b1a5245118e7bf08b4cdacdfdaadb77b", + "reference": "4bdb46a6b1a5245118e7bf08b4cdacdfdaadb77b", + "shasum": "" + }, + "require": { + "corneltek/codegen": "^2", + "php": ">=5.3.0", + "twig/twig": "^1" + }, + "require-dev": { + "corneltek/phpunit-testmore": "dev-master" + }, + "type": "library", + "autoload": { + "psr-4": { + "ClassTemplate\\": "src/ClassTemplate/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "yoanlin93@gmail.com", + "homepage": "http://c9s.me" + } + ], + "description": "Class template Utilities", + "homepage": "http://github.com/c9s/ClassTemplate", + "support": { + "issues": "https://github.com/c9s/ClassTemplate/issues", + "source": "https://github.com/c9s/ClassTemplate/tree/master" + }, + "time": "2015-09-06T05:04:14+00:00" + }, + { + "name": "corneltek/cliframework", + "version": "3.0.x-dev", + "source": { + "type": "git", + "url": "https://github.com/c9s/CLIFramework.git", + "reference": "0e69e4d9d8ee6c8b5abb7ebf0cf846e47d93b656" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/c9s/CLIFramework/zipball/0e69e4d9d8ee6c8b5abb7ebf0cf846e47d93b656", + "reference": "0e69e4d9d8ee6c8b5abb7ebf0cf846e47d93b656", + "shasum": "" + }, + "require": { + "corneltek/class-template": "^2", + "corneltek/codegen": "^2", + "corneltek/getoptionkit": "^2", + "corneltek/universal": ">= 1.4", + "php": ">=7.2", + "pimple/pimple": "*", + "symfony/class-loader": "^2.7", + "symfony/finder": "^2.7" + }, + "require-dev": { + "corneltek/phpunit-testmore": "dev-master", + "ext-intl": "*", + "phpunit/phpunit": "^8.5 || ^9.5", + "satooshi/php-coveralls": "^1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "CLIFramework\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "cornelius.howl@gmail.com", + "homepage": "http://c9s.me" + } + ], + "description": "Command-line framework for PHP", + "homepage": "http://github.com/c9s/CLIFramework", + "keywords": [ + "command", + "command-line", + "completion", + "framework", + "getopt", + "zsh" + ], + "support": { + "issues": "https://github.com/c9s/CLIFramework/issues", + "source": "https://github.com/c9s/CLIFramework/tree/3.0" + }, + "time": "2023-04-20T14:05:15+00:00" + }, + { + "name": "corneltek/codegen", + "version": "2.7.1", + "source": { + "type": "git", + "url": "https://github.com/c9s/CodeGen.git", + "reference": "265b089d07e73ebd1a4057a1e760ae519969e245" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/c9s/CodeGen/zipball/265b089d07e73ebd1a4057a1e760ae519969e245", + "reference": "265b089d07e73ebd1a4057a1e760ae519969e245", + "shasum": "" + }, + "require": { + "doctrine/inflector": "*", + "php": ">=5.3.0", + "twig/twig": "^1 >=1.21" + }, + "require-dev": { + "corneltek/phpunit-testmore": "dev-master" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.8.x-dev" + } + }, + "autoload": { + "psr-4": { + "CodeGen\\": "src/CodeGen/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "yoanlin93@gmail.com", + "homepage": "http://c9s.me" + } + ], + "description": "PHP Code Generation Library", + "homepage": "http://github.com/c9s/CodeGen", + "support": { + "issues": "https://github.com/c9s/CodeGen/issues", + "source": "https://github.com/c9s/CodeGen/tree/master" + }, + "time": "2016-03-26T06:55:39+00:00" + }, + { + "name": "corneltek/curlkit", + "version": "1.0.11", + "source": { + "type": "git", + "url": "https://github.com/c9s/CurlKit.git", + "reference": "5f0765bd6e81d66ec6f71d24c6312a1509e65c5f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/c9s/CurlKit/zipball/5f0765bd6e81d66ec6f71d24c6312a1509e65c5f", + "reference": "5f0765bd6e81d66ec6f71d24c6312a1509e65c5f", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "corneltek/phpunit-testmore": "dev-master", + "phpunit/phpunit": "^4.0||^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "CurlKit\\": "src/CurlKit/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Curl Kit", + "support": { + "issues": "https://github.com/c9s/CurlKit/issues", + "source": "https://github.com/c9s/CurlKit/tree/master" + }, + "time": "2019-12-03T23:37:27+00:00" + }, + { + "name": "corneltek/getoptionkit", + "version": "2.7.2", + "source": { + "type": "git", + "url": "https://github.com/c9s/GetOptionKit.git", + "reference": "aab2728de80175217cab0d7a4d078c3eb907e2c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/c9s/GetOptionKit/zipball/aab2728de80175217cab0d7a4d078c3eb907e2c0", + "reference": "aab2728de80175217cab0d7a4d078c3eb907e2c0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7.x-dev" + } + }, + "autoload": { + "psr-4": { + "GetOptionKit\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "yoanlin93@gmail.com" + } + ], + "description": "Powerful command-line option toolkit", + "homepage": "http://github.com/c9s/GetOptionKit", + "support": { + "issues": "https://github.com/c9s/GetOptionKit/issues", + "source": "https://github.com/c9s/GetOptionKit/tree/2.7.2" + }, + "time": "2023-04-14T03:35:14+00:00" + }, + { + "name": "corneltek/pearx", + "version": "1.3.5", + "source": { + "type": "git", + "url": "https://github.com/phpbrew/PEARX.git", + "reference": "2c5b5da4abd46bae9585f0f4ceeeaad2651e5cf6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbrew/PEARX/zipball/2c5b5da4abd46bae9585f0f4ceeeaad2651e5cf6", + "reference": "2c5b5da4abd46bae9585f0f4ceeeaad2651e5cf6", + "shasum": "" + }, + "require": { + "corneltek/curlkit": "^1.0.11", + "php": ">=5.3.0" + }, + "require-dev": { + "corneltek/cachekit": "^1", + "corneltek/phpunit-testmore": "dev-master", + "phpunit/phpunit": "^4.8||^5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "PEARX\\": "src/PEARX/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "cornelius.howl@gmail.com", + "homepage": "http://c9s.me" + } + ], + "description": "PEAR channel client", + "homepage": "http://github.com/phpbrew/PEARX", + "support": { + "issues": "https://github.com/phpbrew/PEARX/issues", + "source": "https://github.com/phpbrew/PEARX/tree/1.3.5" + }, + "time": "2019-12-21T06:37:25+00:00" + }, + { + "name": "corneltek/universal", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://github.com/corneltek/Universal.git", + "reference": "7b69d656be18d6b1d01a5a672141c80b43b5c2f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/corneltek/Universal/zipball/7b69d656be18d6b1d01a5a672141c80b43b5c2f3", + "reference": "7b69d656be18d6b1d01a5a672141c80b43b5c2f3", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "corneltek/phpunit-testmore": "dev-master", + "satooshi/php-coveralls": "^1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Universal\\": "src/Universal/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Yo-An Lin", + "email": "yoanlin93@gmail.com" + } + ], + "description": "Universal library for PHP", + "homepage": "http://github.com/corneltek/Universal", + "support": { + "issues": "https://github.com/corneltek/Universal/issues", + "source": "https://github.com/corneltek/Universal/tree/master" + }, + "time": "2016-06-11T11:51:45+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.6", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.6" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2022-10-20T09:10:12+00:00" + }, + { + "name": "pimple/pimple", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/silexphp/Pimple.git", + "reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/a94b3a4db7fb774b3d78dad2315ddc07629e1bed", + "reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1 || ^2.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^5.4@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Pimple": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Pimple, a simple Dependency Injection Container", + "homepage": "https://pimple.symfony.com", + "keywords": [ + "container", + "dependency injection" + ], + "support": { + "source": "https://github.com/silexphp/Pimple/tree/v3.5.0" + }, + "time": "2021-10-28T11:13:42+00:00" + }, + { + "name": "psr/container", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "2ae37329ee82f91efadc282cc2d527fd6065a5ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/2ae37329ee82f91efadc282cc2d527fd6065a5ef", + "reference": "2ae37329ee82f91efadc282cc2d527fd6065a5ef", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.1" + }, + "time": "2021-03-24T13:40:57+00:00" + }, + { + "name": "symfony/class-loader", + "version": "v2.8.52", + "source": { + "type": "git", + "url": "https://github.com/symfony/class-loader.git", + "reference": "8194721a1e2768cfb95079581889c41eec7a5959" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/class-loader/zipball/8194721a1e2768cfb95079581889c41eec7a5959", + "reference": "8194721a1e2768cfb95079581889c41eec7a5959", + "shasum": "" + }, + "require": { + "php": ">=5.3.9", + "symfony/polyfill-apcu": "~1.1" + }, + "require-dev": { + "symfony/finder": "^2.0.5|~3.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\ClassLoader\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony ClassLoader Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/class-loader/tree/v2.8.52" + }, + "time": "2018-11-11T11:18:13+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/finder", + "version": "v2.8.52", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "1444eac52273e345d9b95129bf914639305a9ba4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/1444eac52273e345d9b95129bf914639305a9ba4", + "reference": "1444eac52273e345d9b95129bf914639305a9ba4", + "shasum": "" + }, + "require": { + "php": ">=5.3.9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v2.8.50" + }, + "time": "2018-11-11T11:18:13+00:00" + }, + { + "name": "symfony/polyfill-apcu", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-apcu.git", + "reference": "6e7f6ed2168779a2b3927e606a9768860a8bdfa0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/6e7f6ed2168779a2b3927e606a9768860a8bdfa0", + "reference": "6e7f6ed2168779a2b3927e606a9768860a8bdfa0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Apcu\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "apcu", + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-apcu/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/yaml", + "version": "v5.4.21", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "3713e20d93e46e681e51605d213027e48dab3469" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3713e20d93e46e681e51605d213027e48dab3469", + "reference": "3713e20d93e46e681e51605d213027e48dab3469", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.3" + }, + "require-dev": { + "symfony/console": "^5.3|^6.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v5.4.21" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-02-21T19:46:44+00:00" + }, + { + "name": "twig/twig", + "version": "v1.44.7", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "0887422319889e442458e48e2f3d9add1a172ad5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/0887422319889e442458e48e2f3d9add1a172ad5", + "reference": "0887422319889e442458e48e2f3d9add1a172ad5", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/phpunit-bridge": "^4.4.9|^5.0.9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.44-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Twig Team", + "role": "Contributors" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "support": { + "issues": "https://github.com/twigphp/Twig/issues", + "source": "https://github.com/twigphp/Twig/tree/v1.44.7" + }, + "funding": [ + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/twig/twig", + "type": "tidelift" + } + ], + "time": "2022-09-28T08:38:36+00:00" + } + ], + "packages-dev": [ + { + "name": "beberlei/assert", + "version": "v3.3.2", + "source": { + "type": "git", + "url": "https://github.com/beberlei/assert.git", + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "php": "^7.0 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "*", + "phpstan/phpstan": "*", + "phpunit/phpunit": ">=6.0.0", + "yoast/phpunit-polyfills": "^0.1.0" + }, + "suggest": { + "ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles" + }, + "type": "library", + "autoload": { + "files": [ + "lib/Assert/functions.php" + ], + "psr-4": { + "Assert\\": "lib/Assert" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de", + "role": "Lead Developer" + }, + { + "name": "Richard Quadling", + "email": "rquadling@gmail.com", + "role": "Collaborator" + } + ], + "description": "Thin assertion library for input validation in business models.", + "keywords": [ + "assert", + "assertion", + "validation" + ], + "support": { + "issues": "https://github.com/beberlei/assert/issues", + "source": "https://github.com/beberlei/assert/tree/v3.3.2" + }, + "time": "2021-12-16T21:41:27+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-12-30T00:15:36+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "php-vcr/php-vcr", + "version": "1.5.4", + "source": { + "type": "git", + "url": "https://github.com/php-vcr/php-vcr.git", + "reference": "042549510784889e75ca8803d87dcf6b8c6c4681" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-vcr/php-vcr/zipball/042549510784889e75ca8803d87dcf6b8c6c4681", + "reference": "042549510784889e75ca8803d87dcf6b8c6c4681", + "shasum": "" + }, + "require": { + "beberlei/assert": "^3.2.5", + "ext-curl": "*", + "php": ">=7.2", + "symfony/event-dispatcher": "^2.4|^3.0|^4.0|^5.0", + "symfony/yaml": "~2.1|^3.0|^4.0|^5.0" + }, + "require-dev": { + "editorconfig-checker/editorconfig-checker": "^10.3", + "friendsofphp/php-cs-fixer": "^3.0", + "guzzlehttp/guzzle": "^7", + "mikey179/vfsstream": "^1.6.10", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1", + "phpstan/phpstan-beberlei-assert": "^1", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^8.5", + "thecodingmachine/phpstan-strict-rules": "^1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.5": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "VCR\\": "src/VCR/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adrian Philipp", + "email": "mail@adrian-philipp.com" + } + ], + "description": "Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.", + "support": { + "issues": "https://github.com/php-vcr/php-vcr/issues", + "source": "https://github.com/php-vcr/php-vcr/tree/1.5.4" + }, + "time": "2022-12-19T18:43:34+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "7.0.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "819f92bba8b001d4363065928088de22f25a3a48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/819f92bba8b001d4363065928088de22f25a3a48", + "reference": "819f92bba8b001d4363065928088de22f25a3a48", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": ">=7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.1.3 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.15" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-07-26T12:20:09+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:42:26+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:20:02+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "3.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "9c1da83261628cb24b6a6df371b6e312b3954768" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9c1da83261628cb24b6a6df371b6e312b3954768", + "reference": "9c1da83261628cb24b6a6df371b6e312b3954768", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "abandoned": true, + "time": "2021-07-26T12:15:06+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "8.5.33", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.4", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.5", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.5", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.33" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2023-02-27T13:04:50+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:31:48+00:00" + }, + { + "name": "sebastian/diff", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:59:04+00:00" + }, + { + "name": "sebastian/environment", + "version": "4.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:53:42+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:00:17+00:00" + }, + { + "name": "sebastian/global-state", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-10T06:55:38+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:40:27+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:37:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:34:24+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:30:19+00:00" + }, + { + "name": "sebastian/type", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/1.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:25:11+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-05T16:45:39+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": { + "corneltek/cliframework": 20 + }, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^7.2.5 || <9.0", + "ext-simplexml": "*" + }, + "platform-dev": [], + "platform-overrides": { + "php": "7.2.5" + }, + "plugin-api-version": "2.6.0" +} diff --git a/doc/test_plan.md b/doc/test_plan.md deleted file mode 100644 index 11aac7c6f..000000000 --- a/doc/test_plan.md +++ /dev/null @@ -1,7 +0,0 @@ -Test Plan -========= - -1. Test variant builder, variant detection and variant set to configure options.. -2. Provide an API to get available php list (binaries) -3. Use these builted php to test features (depends on those variants we set.) - diff --git a/package.ini b/package.ini deleted file mode 100644 index 7aeb39bee..000000000 --- a/package.ini +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = PhpBrew -version = 1.8.18 -desc = PhpBrew command utility -author = Yo-An Lin -channel = pear.corneltek.com -stability = stable - -[require] -php = 5.3 -pearinstaller = 1.4 -pear.corneltek.com/Universal = 0 -pear.corneltek.com/CLIFramework = 0 -pear.corneltek.com/PEARX = 1.2.3 - -[roles] -bin/phpbrew = script diff --git a/package.xml b/package.xml deleted file mode 100644 index c3e5c57aa..000000000 --- a/package.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - PhpBrew - pear.corneltek.com - PhpBrew command utility - PhpBrew command utility - - Yo-An Lin - - cornelius.howl@gmail.com - yes - - 2013-03-21 - - - 1.8.18 - 1.8.18 - - - stable - stable - - PHP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.3 - - - 1.4 - - - Universal - pear.corneltek.com - 0.0.0 - - - CLIFramework - pear.corneltek.com - 0.0.0 - - - PEARX - pear.corneltek.com - 1.2.3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpbrew b/phpbrew index 069757c04..35f16c54b 100755 Binary files a/phpbrew and b/phpbrew differ diff --git a/phpbrew.asc b/phpbrew.asc new file mode 100644 index 000000000..78052e71a --- /dev/null +++ b/phpbrew.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEErvZRWWgFmfqayi5vPycAveJdSEoFAmQ47DQACgkQPycAveJd +SEqWCw/+IkNsSmrj/ihSy7YMmTvey7uSGIyrJuUZcjpbwmgfz6MwYbGZGWfxaUwx +VHSDlhyB+S+BDFhNET/UG+UPlvCYGkH8Cgh3IfeyFaDPNUeev+K16HY7nxggtaia +mlA2Eo6cEzjcqNI4FhK7+e3IvT/98PfzEovab13az8x0pvtjybxHvKjuYFNv08Lj +aBIP+PrL4YuDJWy5pXn2ADzUgN3Ft5gaXHn6sPLMNWPm+rmmsr+cDZj5Yg4jTYMj ++V/npKe9FRTk5CDyNvZVjYM+wSY022DI6I63T/FR4S8xQMcXlwZSYo6fkFk2PEKE +5W4D+LDZ0KKFIsTX+mmyLwJpGPiCcUCykqYXA5l5/gJKNY0Kp6aRuhRuEEnUJKLh +pkpVGxnL4B2IUJVH28MSuXLm6BXCuhfHJIRbpeQ8xFKYN2j3KaeejZTe1gbrBw5G +lNE1tp8QFe6DS6Ume27Qk1PWm970YyyRAFyS/7TYTi4CvY8iILaR0XFNz8ivHZp9 +AtAzNVh/5yCZTSI84JG+Y2g8SjUwsu1QORAZoBK96HVTfgYJf4Tbe3cD3Gqz8va1 +4h5uPnVuckZC+rSRsk9BFcMmNRxr9nq3xYE3QluRQUi+W/YOpSjGQzRftOxvJGLE +1117xQDXywD7ID0v1KjzlSDu/oSiT7OF47RpakhehhkPyjy/+Kc= +=C7iZ +-----END PGP SIGNATURE----- diff --git a/phpbrew.sh b/phpbrew.sh deleted file mode 100755 index 16cba5cc0..000000000 --- a/phpbrew.sh +++ /dev/null @@ -1,422 +0,0 @@ -#!/bin/bash -# Brought from gugod's perlbrew. -# Author: Yo-An Lin -# NOTICE: This script is for local testing, to release updated script, -# please also modify the src/PhpBrew/Command/InitCommand.php - -# default phpbrew root and phpbrew home path - - -# PHPBREW_HOME: contains the phpbrew config (for users) -# PHPBREW_ROOT: contains installed php(s) and php source files. -# PHPBREW_SKIP_INIT: if you need to skip loading config from the init file. -# PHPBREW_PHP: the current php version. -# PHPBREW_PATH: the bin path of the current php. - -[[ -z "$PHPBREW_HOME" ]] && export PHPBREW_HOME="$HOME/.phpbrew" - -if [[ -z "$PHPBREW_SKIP_INIT" ]]; then - # load user-defined config - if [[ -f $PHPBREW_HOME/init ]]; then - . $PHPBREW_HOME/init - export PATH=$PHPBREW_PATH:$PATH - fi -fi - -[[ -z "$PHPBREW_ROOT" ]] && export PHPBREW_ROOT="$HOME/.phpbrew" -[[ -z "$PHPBREW_BIN" ]] && export PHPBREW_BIN="$PHPBREW_ROOT/.phpbrew/bin" - -[[ -e "$PHPBREW_ROOT" ]] || mkdir $PHPBREW_ROOT -[[ -e "$PHPBREW_HOME" ]] || mkdir $PHPBREW_HOME - -[[ ! -e $PHPBREW_BIN ]] && mkdir -p $PHPBREW_BIN - - -function __phpbrew_set_lookup_prefix () -{ - case $1 in - debian|ubuntu|linux) - # echo /usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu - echo /usr - ;; - macosx) - echo /usr - ;; - macports) - echo /opt/local - ;; - homebrew) - echo /usr/local/Cellar:/usr/local - ;; - *) - if [[ -e $1 ]] ; then - echo $1 - else - echo /usr - fi - ;; - esac -} - - -function phpbrew () -{ - # Check bin/phpbrew if we are in PHPBrew source directory, - # This is only for development - if [[ -e bin/phpbrew ]] ; then - BIN='bin/phpbrew' - else - BIN='phpbrew' - fi - - local exit_status - local short_option - export SHELL - if [[ `echo $1 | awk 'BEGIN{FS=""}{print $1}'` = '-' ]] - then - short_option=$1 - shift - else - short_option="" - fi - - - case $1 in - use) if [[ -z "$2" ]] - then - if [[ -z "$PHPBREW_PHP" ]] - then - echo "Currently using system php" - else - echo "Currently using $PHPBREW_PHP" - fi - else - if [[ $2 =~ ^php- ]] - then - _PHP_VERSION=$2 - else - _PHP_VERSION="php-$2" - fi - - # checking php version exists? - NEW_PHPBREW_PHP_PATH="$PHPBREW_ROOT/php/$_PHP_VERSION" - if [ -d $NEW_PHPBREW_PHP_PATH ]; then - code=$(command $BIN env $_PHP_VERSION) - if [ -z "$code" ] - then - exit_status=1 - else - eval $code - __phpbrew_set_path - fi - else - echo "php version: $_PHP_VERSION not exists." - fi - fi - ;; - switch) - if [[ -z "$2" ]] - then - echo "Please specify the php version." - else - __phpbrew_reinit $2 - fi - ;; - lookup-prefix) - if [[ -z "$2" ]] ; then - if [[ -n $PHPBREW_LOOKUP_PREFIX ]] ; then - echo $PHPBREW_LOOKUP_PREFIX - fi - else - export PHPBREW_LOOKUP_PREFIX=$(__phpbrew_set_lookup_prefix $2) - echo $PHPBREW_LOOKUP_PREFIX - __phpbrew_update_config - fi - ;; - install-phpunit) - pear channel-discover pear.phpunit.de - pear install -a phpunit/PHPUnit - hash -r - ;; - install-composer) - echo "Installing composer..." - cd $PHPBREW_BIN - wget --no-check-certificate -c --no-verbose http://getcomposer.org/composer.phar -O composer - chmod +x $PHPBREW_BIN/composer - cd - - hash -r - ;; - install-onion) - echo "Installing onion..." - cd $PHPBREW_BIN - wget --no-check-certificate -c --no-verbose https://raw.github.com/c9s/Onion/master/onion -O onion - chmod +x onion - cd - - hash -r - ;; - var-dir) - local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP/var - echo "Switching to $chdir" - cd $chdir - ;; - etc-dir) - local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP/etc - echo "Switching to $chdir" - cd $chdir - ;; - dist-dir) - local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP - echo "Switching to $chdir" - cd $chdir - ;; - build-dir) - local chdir=$PHPBREW_ROOT/build/$PHPBREW_PHP - echo "Switching to $chdir" - cd $chdir - ;; - config) - if [[ -n $EDITOR ]] ; then - $EDITOR $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini - else - echo "Please set EDITOR environment variable for your favor." - nano $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini - fi - ;; - clean) - local _VERSION=$2 - if [[ -z $_version ]] ; then - _VERSION=$PHPBREW_PHP - fi - echo "Cleaning up $_VERSION build directory..." - local build_dir=$PHPBREW_ROOT/build/$_VERSION - echo "build_dir=$build_dir" - if [[ -e $build_dir ]] ; then - cd $build_dir && make clean && cd - - fi - ;; - ext) - case $2 in - disable) - echo "Removing extension config..." - rm -fv $PHPBREW_ROOT/php/$PHPBREW_PHP/var/db/$3.ini - ;; - *) - command $BIN ${*:1} - ;; - esac - ;; - fpm) - PHPFPM_BIN=$PHPBREW_ROOT/php/$PHPBREW_PHP/sbin/php-fpm - PHPFPM_PIDFILE=$PHPBREW_ROOT/php/$PHPBREW_PHP/var/run/php-fpm.pid - mkdir -p $PHPBREW_ROOT/php/$PHPBREW_PHP/var/run - function fpm_start() - { - echo "Starting php-fpm..." - $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini \ - --fpm-config $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf \ - --pid $PHPFPM_PIDFILE \ - ${*:3} - if [[ $? != "0" ]] ; then - echo "php-fpm start failed." - fi - } - function fpm_stop() - { - if [[ -e $PHPFPM_PIDFILE ]] ; then - echo "Stopping php-fpm..." - kill $(cat $PHPFPM_PIDFILE) - rm -f $PHPFPM_PIDFILE - fi - } - case $2 in - start) - fpm_start - ;; - stop) - fpm_stop - ;; - restart) - fpm_stop - fpm_start - ;; - module) - $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini \ - --fpm-config $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf \ - -m | less - ;; - info) - $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini \ - --fpm-config $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf \ - -i - ;; - config) - if [[ -n $EDITOR ]] ; then - $EDITOR $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf - else - echo "Please set EDITOR environment variable for your favor." - nano $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf - fi - ;; - help) - $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini \ - --fpm-config $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf --help - ;; - test) - $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php.ini \ - --fpm-config $PHPBREW_ROOT/php/$PHPBREW_PHP/etc/php-fpm.conf --test - ;; - *) - echo "Usage: phpbrew fpm [start|stop|restart|module|test|help|config]" - ;; - esac - ;; - env) - # we don't check php path here, you should check path before you - # use env command to output the environment config. - if [[ -n "$2" ]]; then - export PHPBREW_PHP=$2 - fi - echo "export PHPBREW_ROOT=$PHPBREW_ROOT"; - echo "export PHPBREW_HOME=$PHPBREW_HOME"; - if [[ -n $PHPBREW_LOOKUP_PREFIX ]] ; then - echo "export PHPBREW_LOOKUP_PREFIX=$PHPBREW_LOOKUP_PREFIX"; - fi - if [[ -n $PHPBREW_PHP ]] ; then - echo "export PHPBREW_PHP=$PHPBREW_PHP"; - echo "export PHPBREW_PATH=$PHPBREW_ROOT/php/$PHPBREW_PHP/bin"; - fi - ;; - off) - unset PHPBREW_PHP - unset PHPBREW_PATH - eval `$BIN env` - __phpbrew_set_path - echo "phpbrew is turned off." - ;; - switch-off) - unset PHPBREW_PHP - unset PHPBREW_PATH - eval `$BIN env` - __phpbrew_set_path - __phpbrew_reinit - echo "phpbrew is switched off." - ;; - remove) - if [[ -z "$2" ]] - then - command $BIN help - else - __phpbrew_remove_purge $2 - fi - ;; - rehash) - echo "Rehashing..." - . ~/.phpbrew/bashrc - ;; - purge) - if [[ -z "$2" ]] - then - command $BIN help - else - __phpbrew_remove_purge $2 purge - fi - ;; - *) - command $BIN $short_option "$@" - exit_status=$? - ;; - esac - hash -r - return ${exit_status:-0} -} - -function __phpbrew_set_path () -{ - [[ -n $(alias php 2>/dev/null) ]] && unalias php 2> /dev/null - - if [[ -n $PHPBREW_ROOT ]] ; then - export PATH_WITHOUT_PHPBREW=$(perl -e 'print join ":", grep { index($_,$ENV{PHPBREW_ROOT}) } split/:/,$ENV{PATH};') - fi - - if [[ -z "$PHPBREW_PATH" ]] - then - export PATH=$PHPBREW_BIN:$PATH_WITHOUT_PHPBREW - else - export PATH=$PHPBREW_PATH:$PHPBREW_BIN:$PATH_WITHOUT_PHPBREW - fi - # echo "PATH => $PATH" -} - -function __phpbrew_update_config () -{ - local VERSION=$1 - echo '# DO NOT EDIT THIS FILE' >| "$PHPBREW_HOME/init" - command $BIN env $VERSION >> "$PHPBREW_HOME/init" - . "$PHPBREW_HOME/init" -} - -function __phpbrew_reinit () -{ - if [[ $1 =~ ^php- ]] - then - local _PHP_VERSION=$1 - else - local _PHP_VERSION="php-$1" - fi - if [[ ! -d "$PHPBREW_HOME" ]] - then - mkdir -p -p "$PHPBREW_HOME" - fi - __phpbrew_update_config $_PHP_VERSION - __phpbrew_set_path -} - -function __phpbrew_remove_purge () -{ - if [[ $1 =~ ^php- ]] - then - _PHP_VERSION=$1 - else - _PHP_VERSION="php-$1" - fi - - if [[ "$_PHP_VERSION" = "$PHPBREW_PHP" ]] - then - echo "php version: $_PHP_VERSION is already in used." - return 1 - fi - - _PHP_BIN_PATH=$PHPBREW_ROOT/php/$_PHP_VERSION - _PHP_SOURCE_FILE=$PHPBREW_ROOT/build/$_PHP_VERSION.tar.bz2 - _PHP_BUILD_PATH=$PHPBREW_ROOT/build/$_PHP_VERSION - - if [ -d $_PHP_BIN_PATH ]; then - - if [[ "$2" = "purge" ]] - then - rm -f $_PHP_SOURCE_FILE - rm -fr $_PHP_BUILD_PATH - rm -fr $_PHP_BIN_PATH - - echo "php version: $_PHP_VERSION is removed and purged." - else - rm -f $_PHP_SOURCE_FILE - rm -fr $_PHP_BUILD_PATH - - for FILE1 in $_PHP_BIN_PATH/* - do - if [[ "$FILE1" != "$_PHP_BIN_PATH/etc" ]] && [[ "$FILE1" != "$_PHP_BIN_PATH/var" ]] - then - rm -fr $FILE1; - fi - done - - echo "php version: $_PHP_VERSION is removed." - fi - - else - echo "php version: $_PHP_VERSION not installed." - fi - - return 0 -} diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 000000000..415a3a75a --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,22 @@ + + + + + + + + src + tests + + + + + + + tests/* + + + + src/PhpBrew/Utils.php + + diff --git a/phpdox.xml b/phpdox.xml deleted file mode 100644 index 824a28406..000000000 --- a/phpdox.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/phprelease.ini b/phprelease.ini deleted file mode 100644 index afc05cccd..000000000 --- a/phprelease.ini +++ /dev/null @@ -1,3 +0,0 @@ -; phprelease tool from http://github.com/c9s/PHPRelease -Steps = PHPUnit, scripts/update-init-script, BumpVersion, scripts/compile, GitCommit, GitTag, GitPush, GitPushTags -VersionFrom = src/PhpBrew/Console.php diff --git a/phpunit-ci.xml b/phpunit-ci.xml deleted file mode 100644 index 89a044827..000000000 --- a/phpunit-ci.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - src/ - - - - - - tests - - - - - - - - - diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index 7f89886b4..000000000 --- a/phpunit.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - tests - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 000000000..8bcc89c5d --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + tests + + + + + + src + + + + diff --git a/screenshots/01.png b/screenshots/01.png index 6d3b5cdfe..702350d75 100644 Binary files a/screenshots/01.png and b/screenshots/01.png differ diff --git a/screenshots/02.png b/screenshots/02.png index 00e9847ff..231b29a2b 100644 Binary files a/screenshots/02.png and b/screenshots/02.png differ diff --git a/screenshots/03.png b/screenshots/03.png index 194592445..1113f9347 100644 Binary files a/screenshots/03.png and b/screenshots/03.png differ diff --git a/scripts/bump-version b/scripts/bump-version deleted file mode 100755 index 78979ffc5..000000000 --- a/scripts/bump-version +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -VERSION=$(grep '^version' package.ini | sed -e 's/version *= *//') -NEWVERSION=$(echo $VERSION | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' ) -perl -i -pe "s/$VERSION/$NEWVERSION/g" package.ini -perl -i -pe "s/$VERSION/$NEWVERSION/g" src/PhpBrew/Console.php -git commit -a -m "Bump version to $NEWVERSION" diff --git a/scripts/compile b/scripts/compile deleted file mode 100755 index 4e349b500..000000000 --- a/scripts/compile +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -onion compile \ - --lib src \ - --lib vendor/corneltek/cliframework/src \ - --lib vendor/corneltek/pearx/src \ - --lib vendor/corneltek/getoptionkit/src \ - --lib vendor/corneltek/universal/src \ - --lib vendor/symfony/process \ - --classloader \ - --bootstrap scripts/phpbrew-emb.php \ - --executable \ - --output phpbrew.phar -mv phpbrew.phar phpbrew -chmod +x phpbrew \ No newline at end of file diff --git a/scripts/compile-pharcc b/scripts/compile-pharcc deleted file mode 100755 index a8b75f215..000000000 --- a/scripts/compile-pharcc +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env php -run(new \Symfony\Component\Console\Input\ArgvInput(), new \Symfony\Component\Console\Output\NullOutput()); - -$phar = new Phar('phpbrew.phar'); -$phar->compressFiles(Phar::GZ); -exec('mv phpbrew.phar phpbrew && chmod +x phpbrew'); \ No newline at end of file diff --git a/scripts/local-install b/scripts/local-install deleted file mode 100644 index 5dbc177c1..000000000 --- a/scripts/local-install +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -scripts/compile -onion build -sudo pear install -f package.xml diff --git a/scripts/phpbrew-emb.php b/scripts/phpbrew-emb.php deleted file mode 100644 index af2690d85..000000000 --- a/scripts/phpbrew-emb.php +++ /dev/null @@ -1,8 +0,0 @@ -run( $argv ); -} catch ( Exception $e ) { - echo $e->getMessage(), "\n"; - exit(-1); -} diff --git a/scripts/release b/scripts/release deleted file mode 100755 index 32b2c9755..000000000 --- a/scripts/release +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# scripts/bump-version -scripts/update-init-script -scripts/compile -onion build - -VERSION=$(grep '^version' package.ini | sed -e 's/version *= *//') -git commit -am "Releasing $VERSION" - -# get version -if [[ $1 == "--tag" ]] ; then - echo "Tagging..." - git tag -f $VERSION -m "Releasing $VERSION" - git remote | while read remote ; do - git push $remote master --tags - done -fi diff --git a/scripts/update-init-script b/scripts/update-init-script deleted file mode 100755 index ee6ce9683..000000000 --- a/scripts/update-init-script +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env perl - -open FH , "<" , "phpbrew.sh"; -local $/ = undef; -my $sh = ; -close FH; - -$sh =<<"END"; -// SHBLOCK {{{ - return <<<'EOS' -$sh -EOS; -// SHBLOCK }}} -END - - -open FH , "src/PhpBrew/Command/InitCommand.php"; -local $/ = undef; -my $php = ; -close FH; - -$php =~ s! -(//\s*SHBLOCK\s*{{{) - (.*) -(//\s*SHBLOCK\s*}}}) -!$sh!xmsg; - - -open OUT, ">", "src/PhpBrew/Command/InitCommand.php"; -print OUT $php; -close OUT; diff --git a/shell/bashrc b/shell/bashrc new file mode 100644 index 000000000..038993fcd --- /dev/null +++ b/shell/bashrc @@ -0,0 +1,606 @@ +#!/bin/bash +# Brought from gugod's perlbrew. +# Authors: +# - Yo-An Lin +# - Márcio Almada + +# PHPBrew defaults: +# PHPBREW_HOME: contains the phpbrew config (for users) +# PHPBREW_ROOT: contains installed php(s) and php source files. +# PHPBREW_SKIP_INIT: if you need to skip loading config from the init file. +# PHPBREW_PHP: the current php version. +# PHPBREW_PATH: the bin path of the current php. +# PHPBREW_SYSTEM_PHP: the path to the system php binary. + +[[ -z "$PHPBREW_ROOT" ]] && export PHPBREW_ROOT="$HOME/.phpbrew" +[[ -z "$PHPBREW_HOME" ]] && export PHPBREW_HOME="$HOME/.phpbrew" + +# The minimal PHP version that PhpBrew supports as interpreter +MIN_PHP_VERSION="7.2.0" +MIN_PHP_VERSION_ID=70200 + +# Returns the absolute path corresponding to the command excluding the alias +function __phpbrew_which() +{ + command which "$1" +} + +# Executes the given command via the PHP implementation +function __phpbrew_php_exec() +{ + local cmd + + # Check if we are in a PHPBrew source directory (this is only for development) + if [[ -e bin/phpbrew ]] ; then + cmd=bin/phpbrew + else + cmd="$(__phpbrew_which phpbrew)" + fi + + # Force the usage of the system PHP interpreter if it's set + if [[ -n "$PHPBREW_SYSTEM_PHP" ]] ; then + command "$PHPBREW_SYSTEM_PHP" "$cmd" "$@" + else + command "$cmd" "$@" + fi +} + +# Normalizes a PHP build by adding the "php-" prefix if it's missing +function __phpbrew_normalize_build() +{ + if [[ ! -d "$PHPBREW_ROOT/php/$1" && "$1" =~ ^([[:digit:]]+\.){2}[[:digit:]]+(-dev|((alpha|beta|RC)[[:digit:]]+))?$ ]] ; then + echo "php-$1" + else + echo "$1" + fi +} + +# Returns the PHP binary path for a given version +function __phpbrew_get_version_bin() +{ + if [[ ! "$1" == /* ]] ; then + echo "$PHPBREW_ROOT/php/$(__phpbrew_normalize_build $1)/bin/php" + else + echo "$1" + fi +} + +# Validates the PHP binary that is to be used as interpreter +function __phpbrew_validate_interpreter() +{ + if [[ -d "$1" ]] ; then + echo "$1 is a directory" + return 1 + fi + + if [[ ! -f "$1" ]] ; then + echo "$1 not found" + return 1 + fi + + if [[ ! -x "$1" ]] ; then + echo "$1 is not executable" + return 1 + fi + + local PHP_VERSION_ID=$(command "$1" -r "echo PHP_VERSION_ID;") + + if [[ $? -ne 0 ]] ; then + return 1 + fi + + if [[ $PHP_VERSION_ID -lt $MIN_PHP_VERSION_ID ]] ; then + echo "Only PHP $MIN_PHP_VERSION or newer can be used as PHPBrew interpreter" + return 1 + fi +} + +# Checks whether the given PHP build can be currently used or switched to +function __phpbrew_can_use_build() +{ + if [[ ! -z "$PHPBREW_SYSTEM_PHP" ]] ; then + # Can use any version since the system interpreter is set + return + fi + + __phpbrew_validate_interpreter "$(__phpbrew_get_version_bin $1)" + + if [[ $? -ne 0 ]] ; then + echo "The system interpreter is not currently set" + echo "Please execute 'phpbrew system' using PHP $MIN_PHP_VERSION or newer before using an older one" + return 1 + fi +} + +function __phpbrew_set_path() +{ + local PATH_WITHOUT_PHPBREW + + if [[ -n "$PHPBREW_ROOT" ]] ; then + PATH_WITHOUT_PHPBREW=$(p=$(echo $PATH | tr ":" "\n" | grep -v "^$PHPBREW_ROOT" | tr "\n" ":"); echo ${p%:}) + else + PATH_WITHOUT_PHPBREW=$PATH + fi + + if [[ -z "$PHPBREW_PATH" ]] + then + export PATH=$PATH_WITHOUT_PHPBREW + else + export PATH=$PHPBREW_PATH:$PATH_WITHOUT_PHPBREW + fi +} + +function __phpbrew_load_user_config() +{ + # load user-defined config + if [[ -f $PHPBREW_HOME/init ]]; then + . $PHPBREW_HOME/init + __phpbrew_set_path + fi +} + +if [[ -z "$PHPBREW_SKIP_INIT" ]]; then + __phpbrew_load_user_config +fi + +[[ -e "$PHPBREW_ROOT" ]] || mkdir "$PHPBREW_ROOT" +[[ -e "$PHPBREW_HOME" ]] || mkdir "$PHPBREW_HOME" + +# When setting lookup prefix, the alias name will be translated into the real +# path. +# +# Homebrew uses it's own prefix system with cellars, it's more dynamic then +# others. +# +# Detect package system automatically +function __phpbrew_set_lookup_prefix () +{ + case $1 in + debian|ubuntu|linux) + # echo /usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu + echo /usr + ;; + macosx) + echo /usr + ;; + macports) + echo /opt/local + ;; + homebrew) + # TODO: make this more dynamic. with brew --prefix call. + echo /usr/local/opt:/usr/local + ;; + *) + if [[ -e $1 ]] ; then + echo $1 + else + for dir in /opt/local /usr/local/Cellar /usr/local /usr ; do + if [[ -e $dir ]] ; then + echo $dir + return + fi + done + fi + ;; + esac +} + +function phpbrew () +{ + local short_option + if [[ `echo $1 | awk 'BEGIN{FS=""}{print $1}'` = '-' ]] + then + short_option=$1 + shift + else + short_option="" + fi + + case $1 in + use) + if [[ -z "$2" ]] ; then + if [[ -z "$PHPBREW_PHP" ]] + then + echo "Currently using system php" + else + echo "Currently using $PHPBREW_PHP" + fi + + return + fi + + if ! output="$(__phpbrew_php_exec env $(__phpbrew_normalize_build $2))"; then + echo "$output" + return 1 + fi + + eval "$output" + __phpbrew_set_path + ;; + cd-src) + local SOURCE_DIR=$PHPBREW_HOME/build/$PHPBREW_PHP + if [[ -d $SOURCE_DIR ]] ; then + builtin cd $SOURCE_DIR + fi + ;; + switch) + if [[ -z "$2" ]]; then + echo "Please specify the php version." + return 1 + fi + + __phpbrew_reinit $(__phpbrew_normalize_build $2) + ;; + lookup-prefix) + if [[ -z "$2" ]] ; then + if [[ -n $PHPBREW_LOOKUP_PREFIX ]] ; then + echo $PHPBREW_LOOKUP_PREFIX + fi + else + export PHPBREW_LOOKUP_PREFIX=$(__phpbrew_set_lookup_prefix $2) + echo $PHPBREW_LOOKUP_PREFIX + __phpbrew_update_config + fi + ;; + cd) + case $2 in + var) + local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP/var + ;; + etc) + local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP/etc + ;; + dist) + local chdir=$PHPBREW_ROOT/php/$PHPBREW_PHP + ;; + build) + local chdir=$PHPBREW_ROOT/build/$PHPBREW_PHP + ;; + *) + echo "$2 not found" + return 0 + ;; + esac + echo "Switching to $chdir, run 'cd -' to go back." + builtin cd $chdir + return 0 + ;; + each) + shift + __phpbrew_each "$@" + ;; + fpm) + if ! [[ -z $3 ]]; then + PHP_BUILD=$3 + else + PHP_BUILD=${PHPBREW_PHP} + fi + + mkdir -p ${PHPBREW_ROOT}/php/${PHP_BUILD}/var/run + PHPFPM_BIN=${PHPBREW_ROOT}/php/${PHP_BUILD}/sbin/php-fpm + PHPFPM_PIDFILE=${PHPBREW_ROOT}/php/${PHP_BUILD}/var/run/php-fpm.pid + + function fpm_start() + { + echo "Starting php-fpm..." + local regex="^php-5\.2.*" + + if [[ ${PHP_BUILD} =~ ${regex} ]]; then + ${PHPFPM_BIN} start + else + ${PHPFPM_BIN} --php-ini ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/fpm/php.ini \ + --fpm-config ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf \ + --pid ${PHPFPM_PIDFILE} \ + "$@" + fi + + if [[ $? != "0" ]] ; then + echo "php-fpm start failed." + fi + } + function fpm_stop() + { + local regex="^php-5\.2.*" + + if [[ ${PHPBREW_PHP} =~ ${regex} ]]; then + ${PHPFPM_BIN} stop + elif [[ -e ${PHPFPM_PIDFILE} ]] ; then + echo "Stopping php-fpm..." + kill $(cat ${PHPFPM_PIDFILE}) + rm -f ${PHPFPM_PIDFILE} + fi + } + case $2 in + start) + fpm_start "${@:4}" + ;; + stop) + fpm_stop + ;; + setup) + __phpbrew_php_exec $short_option "$@" + ;; + restart) + fpm_stop + fpm_start "${@:4}" + ;; + current) + if [[ -f $PHPFPM_PIDFILE ]] ; then + ps ux -p "$(cat $PHPFPM_PIDFILE)" + fi + ;; + module) + $PHPFPM_BIN --php-ini ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/fpm/php.ini \ + --fpm-config ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf \ + -m | less + ;; + info) + $PHPFPM_BIN --php-ini ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/fpm/php.ini \ + --fpm-config ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf \ + -i + ;; + config) + if [[ -n $EDITOR ]] ; then + $EDITOR ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf + else + echo "Please set EDITOR environment variable for your favor." + nano ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf + fi + ;; + which) + echo $PHPFPM_BIN + ;; + help) + $PHPFPM_BIN --php-ini ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/fpm/php.ini \ + --fpm-config ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf --help + ;; + test) + $PHPFPM_BIN --php-ini ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/fpm/php.ini \ + --fpm-config ${PHPBREW_ROOT}/php/${PHP_BUILD}/etc/php-fpm.conf --test + ;; + *) + echo "Usage: phpbrew fpm [start|stop|restart|module|test|config|setup|info|current|which|help]" + ;; + esac + ;; + info) + __phpbrew_php_exec info | php + ;; + off) + unset PHPBREW_PHP + unset PHPBREW_PATH + eval $(__phpbrew_php_exec env) + __phpbrew_set_path + ;; + switch-off) + unset PHPBREW_PHP + unset PHPBREW_PATH + eval $(__phpbrew_php_exec env) + __phpbrew_reinit + echo "phpbrew is switched off." + ;; + system) + if [[ -z "$2" ]] ; then + __phpbrew_php_exec system + else + local bin="$(__phpbrew_get_version_bin $2)" + + __phpbrew_validate_interpreter "$bin" || return 1 + + export PHPBREW_SYSTEM_PHP="$bin" + __phpbrew_update_config + fi + ;; + system-off) + __phpbrew_validate_interpreter "$(__phpbrew_which php)" + + if [[ $? -ne 0 ]] ; then + echo "The currently used PHP build $PHPBREW_PHP cannot be used as PhpBrew interpreter" + echo "Please execute `phpbrew switch` using PHP $MIN_PHP_VERSION or newer before switching the system interpreter off" + return 1 + fi + + unset PHPBREW_SYSTEM_PHP + __phpbrew_update_config + ;; + rehash) + echo "Rehashing..." + . ~/.phpbrew/bashrc + ;; + purge) + if [[ -z "$2" ]] + then + __phpbrew_php_exec help + else + shift + __phpbrew_purge "$@" + fi + ;; + *) + __phpbrew_php_exec $short_option "$@" + ;; + esac + + local exit_status=$? + + if [[ $exit_status -ne 0 ]]; then + return $exit_status + fi + + hash -r +} + +function __phpbrew_update_config () +{ + if ! output="$(__phpbrew_php_exec env $(__phpbrew_normalize_build $1))"; then + echo "$output" + return 1 + fi + + ( + echo "# DO NOT EDIT THIS FILE" + echo "$output" + ) > "$PHPBREW_HOME/init" + + . "$PHPBREW_HOME/init" +} + +function __phpbrew_reinit () +{ + __phpbrew_update_config "$@" && __phpbrew_set_path +} + +function __phpbrew_each() +{ + local result=0 + + current="$PHPBREW_PHP" + for build in ${PHPBREW_ROOT}/php/* ; do + if [ -x "$build/bin/php" ]; then + phpbrew use $(basename "$build") + eval "$@" || result=$? + fi + done; + + if ! [[ -z "$current" ]] + then + phpbrew use $current + else + phpbrew off + fi + + return $result +} + +function __phpbrew_purge() +{ + local result=0 + + for arg in "$@" + do + __phpbrew_purge_build "$arg" || result=$? + done + + return $result +} + +function __phpbrew_purge_build () +{ + local PHP_BUILD=$(__phpbrew_normalize_build $1) + + if [[ "$PHP_BUILD" = "$PHPBREW_PHP" ]] + then + echo "php version: $PHP_BUILD is already in use." + return 1 + fi + + local bin="$(__phpbrew_get_version_bin $PHP_BUILD)" + + if [[ "$bin" = "$PHPBREW_SYSTEM_PHP" ]] ; then + echo "PHP build $PHP_BUILD is used as the system interpreter" + return 1 + fi + + _PHP_BIN_PATH=$PHPBREW_ROOT/php/$PHP_BUILD + + if [ ! -d $_PHP_BIN_PATH ]; then + echo "php version: $PHP_BUILD not installed." + return 1 + fi + + _PHP_SOURCE_FILE=$PHPBREW_ROOT/build/$PHP_BUILD.tar.bz2 + _PHP_BUILD_PATH=$PHPBREW_ROOT/build/$PHP_BUILD + + rm -fr $_PHP_SOURCE_FILE $_PHP_BUILD_PATH $_PHP_BIN_PATH + + echo "php version: $PHP_BUILD is removed and purged." + + return 0 +} + +function phpbrew_current_php_version() { + if type "php" > /dev/null; then + local version=$(php -v | grep -E "PHP [578]" | sed 's/.*PHP \([^-]*\).*/\1/' | cut -c 1-6) + if [[ -z "$PHPBREW_PHP" ]]; then + echo "php:$version-system" + else + echo "php:$version-phpbrew" + fi + else + echo "php:not-installed" + fi +} + +if [[ -n "$PHPBREW_SET_PROMPT" && "$PHPBREW_SET_PROMPT" == "1" ]]; then + export PS1="\w > \u@\h [\$(phpbrew_current_php_version)]\n\\$ " +fi + +# the _phpbrewrc_load will be called after *every simple command* executed in bash, +# this will make the start up process slower if you have many commands to be run in your .bashrc or .zshrc +# so this function simply compares the directory and return if nothing neccessary to do. +# +# here is the description of trap from bash manual page: +# +# If one of the signals is DEBUG, the list of COMMANDS is executed after +# every simple command. +# +function _phpbrewrc_load () +{ + # check if working dir has changed + if [[ "$PWD" == "$PHPBREW_LAST_DIR" ]]; then + return + fi + local curr_dir="$PWD" + local prev_dir="" + local curr_fs=0 + local prev_fs=0 + + while [[ -n "$curr_dir" && -d "$curr_dir" ]] ; do + prev_fs=$curr_fs + curr_fs=$(stat -c %d "$curr_dir" 2>/dev/null) # GNU version + if [ $? -ne 0 ]; then + curr_fs=$(stat -f %d "$curr_dir" 2>/dev/null) # BSD version + fi + + # check if top level directory or filesystem boundary is reached + if [[ "$curr_dir" == "/" ]] || [ -z "$PHPBREW_RC_DISCOVERY_ACROSS_FILESYSTEM" -a $prev_fs -ne 0 -a $curr_fs -ne $prev_fs ]; then + # check if there's a previously loaded .phpbrewrc + if [[ ! -z "$PHPBREW_LAST_RC_DIR" ]]; then + unset PHPBREW_LAST_RC_DIR + __phpbrew_load_user_config + fi + break + fi + + # check if .phpbrewrc present + if [[ -r "$curr_dir/.phpbrewrc" ]]; then + # check if it's not the same .phpbrewrc which was previously loaded + if [[ "$curr_dir" != "$PHPBREW_LAST_RC_DIR" ]]; then + __phpbrew_load_user_config + PHPBREW_LAST_RC_DIR="$curr_dir" + source "$curr_dir/.phpbrewrc" + fi + break + fi + curr_dir=$(dirname "$curr_dir") + done + PHPBREW_LAST_DIR="$PWD" +} + +if [[ -n "$PHPBREW_RC_ENABLE" ]]; then + if [[ -n "$BASH_VERSION" ]]; then + trap "_phpbrewrc_load" DEBUG + fi + + # zsh has easy-to-extend cd hooks, so we migth as well use them instead + # of running _phpbrewrc_load after EVERY command. + if [[ -n "$ZSH_VERSION" ]]; then + if [[ -n "$chpwd_functions" ]]; then + if [[ ${chpwd_functions[(ie)_phpbrewrc_load]} -gt ${#chpwd_functions} ]]; then + chpwd_functions+=_phpbrewrc_load + fi + else + chpwd_functions=( _phpbrewrc_load ) + fi + fi +fi diff --git a/shell/phpbrew.fish b/shell/phpbrew.fish new file mode 100644 index 000000000..004878fc0 --- /dev/null +++ b/shell/phpbrew.fish @@ -0,0 +1,867 @@ +#!/usr/bin/env fish +# Authors: +# - Yo-An Lin +# - Márcio Almada +# - Rack Lin + +# PHPBrew defaults: +# PHPBREW_HOME: contains the phpbrew config (for users) +# PHPBREW_ROOT: contains installed php(s) and php source files. +# PHPBREW_SKIP_INIT: if you need to skip loading config from the init file. +# PHPBREW_PHP: the current php version. +# PHPBREW_PATH: the bin path of the current php. +# PHPBREW_SYSTEM_PHP: the path to the system php binary. + +# export alias for bourne shell compatibility. +# From PR https://github.com/fish-shell/fish-shell/pull/1833 +if not functions --query export + function export --description 'Set global variable. Alias for set -g, made for bash compatibility' + if test -z "$argv" + set + return 0 + end + for arg in $argv + set -l v (echo $arg|tr '=' \n) + set -l c (count $v) + switch $c + case 1 + set -gx $v $$v + case 2 + set -gx $v[1] $v[2] + end + end + end +end + +function __phpbrew_set_path + functions --query php ; and functions -e php + set PATH_WITHOUT_PHPBREW + + if set -q PHPBREW_ROOT + for i in $PATH + if [ (expr $i : $PHPBREW_ROOT) -eq 0 ] + set PATH_WITHOUT_PHPBREW $PATH_WITHOUT_PHPBREW $i + end + end + else + set PATH_WITHOUT_PHPBREW $PATH + end + + if set -q PHPBREW_PATH + set -gx PATH $PHPBREW_PATH $PATH_WITHOUT_PHPBREW + else + set -gx PATH $PATH_WITHOUT_PHPBREW + return 0 + end +end + +function __phpbrew_load_user_config + # load user-defined config + if [ -f $PHPBREW_HOME/init ] + source $PHPBREW_HOME/init + __phpbrew_set_path + end +end + +# The minimal PHP version that PhpBrew supports as interpreter +set MIN_PHP_VERSION "7.2.0" +set MIN_PHP_VERSION_ID 70200 + +# Returns the absolute path corresponding to the command excluding the alias +function __phpbrew_which + command which $argv +end + +# Executes the given command via the PHP implementation +function __phpbrew_php_exec + # Force the usage of the system PHP interpreter if it's set + if set -q PHPBREW_SYSTEM_PHP + set cmd $PHPBREW_SYSTEM_PHP + end + + # Check if we are in a PHPBrew source directory (this is only for development) + if [ -e bin/phpbrew ] + set -a cmd bin/phpbrew + else + set -a cmd (__phpbrew_which phpbrew) + end + + command $cmd $argv +end + +# Normalizes a PHP build by adding the "php-" prefix if it's missing +function __phpbrew_normalize_build + if begin ; [ ! -d "$PHPBREW_ROOT/php/$argv" ]; and echo $argv | egrep -q -e '^([[:digit:]]+\.){2}[[:digit:]]+(-dev|((alpha|beta|RC)[[:digit:]]+))?$'; end + echo "php-$argv" + else + echo $argv + end +end + +# Returns the PHP binary path for a given version +function __phpbrew_get_version_bin + if not string match -q "/*" $argv + set -l build (__phpbrew_normalize_build $argv) + echo "$PHPBREW_ROOT/php/$build/bin/php" + else + echo $argv + end +end + +# Validates the PHP binary that is to be used as interpreter +function __phpbrew_validate_interpreter + if [ -d $argv[1] ] + echo $argv[1] "is a directory" + return 1 + end + + if [ ! -f $argv[1] ] + echo $argv[1] "not found" + return 1 + end + + if [ ! -x $argv[1] ] + echo $argv[1] "is not executable" + return 1 + end + + set PHP_VERSION_ID (command $argv[1] -r "echo PHP_VERSION_ID;") + or return 1 + + if [ $PHP_VERSION_ID -lt $MIN_PHP_VERSION_ID ] + echo "Only PHP $MIN_PHP_VERSION or newer can be used as PHPBrew interpreter" + return 1 + end +end + +# Checks whether the given PHP build can be currently used or switched to +function __phpbrew_can_use_build + if set -q PHPBREW_SYSTEM_PHP + # Can use any version since the system interpreter is set + return + end + + if not __phpbrew_validate_interpreter (__phpbrew_get_version_bin $argv[1]) + echo "The system interpreter is not currently set" + echo "Please execute 'phpbrew system' using PHP $MIN_PHP_VERSION or newer before using an older one" + return 1 + end +end + +function __phpbrew_set_lookup_prefix + switch (echo $argv[1]) + case debian ubuntu linux + # echo /usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu + echo /usr + case macosx + echo /usr + case macports + echo /opt/local + case homebrew + echo /usr/local/Cellar:/usr/local + case '*' + if [ -e $argv[1] ] + echo $argv[1] + else + for dir in /opt/local /usr/local/Cellar /usr/local /usr + if [ -e $dir ] + echo $dir + return + end + end + end + end +end + +function phpbrew + set short_option + # export SHELL + if [ (echo $argv[1] | awk 'BEGIN{FS=""}{print $1}') = '-' ] + set short_option $argv[1] + set -e argv[1] + else + set short_option "" + end + + switch (echo $argv[1]) + case use + if [ (count $argv) -eq 1 ] + if [ -z "$PHPBREW_PHP" ] + echo "Currently using system php" + else + echo "Currently using $PHPBREW_PHP" + end + + return + end + + set -l IFS + if not set -l output (__phpbrew_php_exec env (__phpbrew_normalize_build $argv[2])) + echo $output + return 1 + end + + eval $output + __phpbrew_set_path + case cd-src + set -l SOURCE_DIR $PHPBREW_HOME/build/$PHPBREW_PHP + if [ -d $SOURCE_DIR ] + cd $SOURCE_DIR + end + case 'switch' + if [ (count $argv) -eq 1 ] + echo "Please specify the php version." + return 1 + end + + __phpbrew_reinit (__phpbrew_normalize_build $argv[2]) + case lookup-prefix + if [ (count $argv) -eq 1 ] + if [ -n "$PHPBREW_LOOKUP_PREFIX" ] + echo $PHPBREW_LOOKUP_PREFIX + end + else + set -gx PHPBREW_LOOKUP_PREFIX (__phpbrew_set_lookup_prefix $argv[2]) + echo $PHPBREW_LOOKUP_PREFIX + __phpbrew_update_config + end + case cd + if [ (count $argv) -eq 1 ]; return 0; end + + switch $argv[2] + case var + set chdir $PHPBREW_ROOT/php/$PHPBREW_PHP/var + case etc + set chdir $PHPBREW_ROOT/php/$PHPBREW_PHP/etc + case dist + set chdir $PHPBREW_ROOT/php/$PHPBREW_PHP + case build + set chdir $PHPBREW_ROOT/build/$PHPBREW_PHP + case '*' + echo "$argv[2] not found" + return 0 + end + echo "Switching to $chdir, run 'cd -' to go back." + cd $chdir + return 0 + + case each + __phpbrew_each $argv[2..-1] + + case fpm + if [ (count $argv) -ge 3 ] + set -g PHP_BUILD $argv[3] + else + set -g PHP_BUILD $PHPBREW_PHP + end + + mkdir -p $PHPBREW_ROOT/php/$PHP_BUILD/var/run + set -g PHPFPM_BIN $PHPBREW_ROOT/php/$PHP_BUILD/sbin/php-fpm + set -g PHPFPM_PIDFILE $PHPBREW_ROOT/php/$PHP_BUILD/var/run/php-fpm.pid + + function fpm_start + echo "Starting php-fpm..." + set -l regex '^php-5\.2.*' + + if [ (count $argv) -ge 4 ] + set _PHPFPM_APPEND $argv[4..-1] + else + set _PHPFPM_APPEND "" + end + + + if echo $PHP_BUILD | egrep -q -e $regex + eval $PHPFPM_BIN start + else + eval $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHP_BUILD/etc/fpm/php.ini --fpm-config $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf --pid $PHPFPM_PIDFILE $_PHPFPM_APPEND + end + + if [ "$status" != "0" ] + echo "php-fpm start failed." + end + end + + function fpm_stop + set -l regex '^php-5\.2.*' + + if echo $PHP_BUILD | egrep -q -e $regex + eval $PHPFPM_BIN stop + else if [ -e $PHPFPM_PIDFILE ] + echo "Stopping php-fpm..." + kill (cat $PHPFPM_PIDFILE) + rm -f $PHPFPM_PIDFILE + end + end + + [ (count $argv) -lt 2 ]; and $argv[2] = '' + + switch $argv[2] + case start + fpm_start $argv + case stop + fpm_stop + case restart + fpm_stop + fpm_start $argv + case module + eval $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHP_BUILD/etc/fpm/php.ini --fpm-config $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf -m | less + case info + eval $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHP_BUILD/etc/fpm/php.ini --fpm-config $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf -i + case config + if [ -n "$EDITOR" ] + eval $EDITOR $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf + else + echo "Please set EDITOR environment variable for your favor." + nano $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf + end + case help + eval $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHP_BUILD/etc/fpm/php.ini --fpm-config $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf --help + case test + eval $PHPFPM_BIN --php-ini $PHPBREW_ROOT/php/$PHP_BUILD/etc/fpm/php.ini --fpm-config $PHPBREW_ROOT/php/$PHP_BUILD/etc/php-fpm.conf --test + case '*' + echo "Usage: phpbrew fpm [start|stop|restart|module|test|help|config]" + end + + case info + __phpbrew_php_exec info | php + + case off + set -e PHPBREW_PHP + set -e PHPBREW_PATH + eval (__phpbrew_php_exec env) + __phpbrew_set_path + + case switch-off + set -e PHPBREW_PHP + set -e PHPBREW_PATH + eval (__phpbrew_php_exec env) + __phpbrew_reinit + echo "phpbrew is switched off." + + case system + if [ (count $argv) -lt 2 ] + __phpbrew_php_exec system + else + set -l bin (__phpbrew_get_version_bin $argv[2]) + __phpbrew_validate_interpreter $bin + or return 1 + + set -gx PHPBREW_SYSTEM_PHP $bin + __phpbrew_update_config + end + + case system-off + if not __phpbrew_validate_interpreter (__phpbrew_which php) + echo "The currently used PHP build $PHPBREW_PHP cannot be used as PhpBrew interpreter" + echo "Please execute `phpbrew switch` using PHP $MIN_PHP_VERSION or newer before switching the system interpreter off" + return 1 + end + + set -e PHPBREW_SYSTEM_PHP + __phpbrew_update_config + + case rehash + echo "Rehashing..." + source ~/.phpbrew/phpbrew.fish + + case purge + if [ (count $argv) -ge 2 ] + __phpbrew_purge $argv[2] purge + else + __phpbrew_php_exec help + end + + case '*' + if [ -z "$short_option" ] + __phpbrew_php_exec $argv + else + __phpbrew_php_exec $short_option $argv + end + ;; + end +end + +function __phpbrew_update_config + set -l IFS + if not set -l output (__phpbrew_php_exec env $argv) + echo $output + return 1 + end + + begin + echo "# DO NOT EDIT THIS FILE" + echo $output + end > "$PHPBREW_HOME/init" + + source "$PHPBREW_HOME/init" +end + +function __phpbrew_reinit + __phpbrew_update_config $argv && __phpbrew_set_path +end + +function __phpbrew_each + set result 0 + + if set -q PHPBREW_PHP + set current $PHPBREW_PHP + end + + for build in $PHPBREW_ROOT/php/* + if test -x $build/bin/php + phpbrew use (basename $build) + eval $argv || set result $status + end + end; + + if set -q current + phpbrew use $current + else + phpbrew off + end + + return $result +end + +function __phpbrew_purge + set -l PHP_BUILD (__phpbrew_normalize_build $argv[1]) + + if [ "$PHP_BUILD" = "$PHPBREW_PHP" ] + echo "php version: $PHP_BUILD is already in use." + return 1 + end + + set -l bin (__phpbrew_get_version_bin $PHP_BUILD) + + if [ "$bin" = "$PHPBREW_SYSTEM_PHP" ] + echo "PHP build $PHP_BUILD is used as the system interpreter" + return 1 + end + + set _PHP_BIN_PATH $PHPBREW_ROOT/php/$PHP_BUILD + set _PHP_SOURCE_FILE $PHPBREW_ROOT/build/$PHP_BUILD.tar.bz2 + set _PHP_BUILD_PATH $PHPBREW_ROOT/build/$PHP_BUILD + + if [ -d $_PHP_BIN_PATH ] + + if begin; [ (count $argv) -ge 2 ]; and [ "$argv[2]" = "purge" ]; end + rm -f $_PHP_SOURCE_FILE + rm -fr $_PHP_BUILD_PATH + rm -fr $_PHP_BIN_PATH + echo "php version: $PHP_BUILD is removed and purged." + else + rm -f $_PHP_SOURCE_FILE + rm -fr $_PHP_BUILD_PATH + + for FILE1 in $_PHP_BIN_PATH/* + if begin; [ "$FILE1" != "$_PHP_BIN_PATH/etc" ]; and [ "$FILE1" != "$_PHP_BIN_PATH/var" ]; end + rm -fr $FILE1 + end + end + + echo "php version: $PHP_BUILD is removed." + end + + else + echo "php version: $PHP_BUILD not installed." + end + + return 0 +end + +function phpbrew_current_php_version + if type "php" > /dev/null + set -l version (php -v | grep "PHP 5" | sed 's/.*PHP \([^-]*\).*/\1/' | cut -c 1-6) + if [ -z "$PHPBREW_PHP" ] + echo "php:$version-system" + else + echo "php:$version-phpbrew" + end + else + echo "php:not-installed" + end +end + +if begin ; [ -n "$PHPBREW_SET_PROMPT" ]; and [ "$PHPBREW_SET_PROMPT" = "1" ]; end + # export PS1="\w > \u@\h [$(phpbrew_current_php_version)]\n\\$ " + # non supports in fish now +end + +function _phpbrewrc_load --on-variable PWD --description 'Load configuration based on .phpbrewrc' + set -q PHPBREW_RC_ENABLE + or return + + status --is-command-substitution; + and return + + set curr_dir "$PWD" + set prev_dir "" + set curr_fs 0 + set prev_fs 0 + + while [ -n $curr_dir -a -d $curr_dir ] + set prev_fs $curr_fs + set curr_fs (stat -c %d $curr_dir 2>/dev/null) # GNU version + if [ $status -ne 0 ] + set curr_fs (stat -f %d $curr_dir 2>/dev/null) # BSD version + end + + # check if top level directory or filesystem boundary is reached + if begin; [ "$curr_dir" = "/" ]; or [ -z "$PHPBREW_RC_DISCOVERY_ACROSS_FILESYSTEM" -a $prev_fs -ne 0 -a $curr_fs -ne $prev_fs ]; end + # check if there's a previously loaded .phpbrewrc + if [ ! -z "$PHPBREW_LAST_RC_DIR" ] + set -e PHPBREW_LAST_RC_DIR + __phpbrew_load_user_config + end + break + end + + # check if .phpbrewrc present + if [ -r "$curr_dir/.phpbrewrc" ] + # check if it's not the same .phpbrewrc which was previously loaded + if [ "$curr_dir" != "$PHPBREW_LAST_RC_DIR" ] + __phpbrew_load_user_config + set -g PHPBREW_LAST_RC_DIR "$curr_dir" + source "$curr_dir/.phpbrewrc" + end + break + end + + set curr_dir (dirname "$curr_dir") + end +end + +### +# phpbrew completions +### +function __fish_phpbrew_command + set -l tokens (commandline -opc) + test (count $tokens) -le 1; and return 1 + set -l command + + for token in $tokens[2..-1] + switch $token + case "-*" + case "*" + set -a command "$token" + end + end + + test (count $command) -eq 0; and return 1 + + for token in $command + echo $token + end +end + +function __fish_phpbrew_needs_command + not __fish_phpbrew_command >/dev/null +end + +function __fish_phpbrew_using_command + set -l expected + set -l position 0 + set -l multiple + + for arg in $argv + switch $arg + case "--position=*" + string replace -- "--position=" "" "$arg" | read position + case "--multiple" + set multiple yes + case "*" + set -a expected "$arg" + end + end + + set -l exp_count (count $expected) + set exp_count (math "$exp_count+$position") + + set -l actual (__fish_phpbrew_command) + + if [ -n "$multiple" ] + if [ (count $actual) -lt $exp_count ] + return 1 + end + else + if [ (count $actual) -ne $exp_count ] + return 1 + end + end + + set -l slice $actual[1..(count $expected)] + + test "$slice" = "$expected" +end + +function __fish_phpbrew_arg_meta + __phpbrew_php_exec meta --flat $argv[1] arg $argv[2] $argv[3] | grep -v "^#" +end + +[ -z "$PHPBREW_ROOT" ]; and set -gx PHPBREW_ROOT "$HOME/.phpbrew" +[ -z "$PHPBREW_HOME" ]; and set -gx PHPBREW_HOME "$HOME/.phpbrew" + +if [ -z "$PHPBREW_SKIP_INIT" ] + __phpbrew_load_user_config +end + +[ -z "$PHPBREW_ROOT" ]; and set -gx PHPBREW_ROOT "$HOME/.phpbrew" + +[ ! -d "$PHPBREW_ROOT" ]; and mkdir $PHPBREW_ROOT +[ ! -d "$PHPBREW_HOME" ]; and mkdir $PHPBREW_HOME + +# top level options +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -s v -l verbose -d "Print verbose message" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -s d -l debug -d "Print debug message" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -s q -l quiet -d "Be quiet" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -s h -l help -d "Show help" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -l version -d "Show version" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -s p -l profile -d "Display timing and memory usage information" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -l log-path -d "The path of a log file" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -l no-interact -d "Do not ask any interactive question" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -l no-progress -d "Do not display progress bar" + +# commands +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a archive -d "Build executable phar file from composer.json" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a bash -d "This command generate a bash completion script automatically" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a cd -d "Change to directories" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a clean -d "Clean up the source directory of a PHP distribution" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a compile -d "compile current source into Phar format library file" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a config -d "Edit your current php.ini in your favorite $EDITOR" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a ctags -d "Run ctags at current php source dir for extension development" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a download -d "Download php" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a each -d "Iterate and run a given shell command over all php versions managed by PHPBrew" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a env -d "Export environment variables" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a ext -d "List extensions or execute extension subcommands" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a fpm -d "fpm commands" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a github:build-topics -d "Build topic classes from the wiki of a GitHub Project" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a help -d "Show help message of a command" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a info -d "Show current php information" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a init -d "Initialize phpbrew config file" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a install -d "Install php" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a known -d "List known PHP versions" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a list -d "List installed PHPs" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a list-ini -d "List loaded ini config files" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a meta -d "Return the meta data of a commands" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a off -d "Temporarily go back to the system php" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a path -d "Show paths of the current PHP" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a purge -d "Remove installed php version and config files" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a remove -d "Remove installed php build" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a self-update -d "Self-update, default to master version" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a switch -d "Switch default php version" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a switch-off -d "Definitely go back to the system php" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a system -d "Get or set the internally used PHP binary" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a system-off -d "Use the currently effective PHP binary internally" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a update -d "Update PHP release source file" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a use -d "Use php, switch version temporarily" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a variants -d "List php variants" +complete -f -c phpbrew -n "__fish_phpbrew_needs_command" -a zsh -d "This function generate a zsh-completion script automatically" + +# archive +complete -x -c phpbrew -n "__fish_phpbrew_using_command archive" -s d -l working-dir -d "If specified, use the given directory as working directory" +complete -x -c phpbrew -n "__fish_phpbrew_using_command archive" -s c -l composer -d "The composer.json file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command archive" -l vendor -d "Vendor directory name" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l bootstrap -d "bootstrap or executable php file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l executable -d "make the phar file executable" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -s c -l compress -d "compress type: gz, bz2" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l no-compress -d "do not compress phar file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l add -d "add a path respectively" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l exclude -d "exclude pattern" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l no-classloader -d "do not embed a built-in classloader in the generated phar file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command archive" -l app-bootstrap -d "Include CLIFramework bootstrap script" + +# bash +complete -x -c phpbrew -n "__fish_phpbrew_using_command bash" -l bind -d "bind complete to command" +complete -x -c phpbrew -n "__fish_phpbrew_using_command bash" -l program -d "programe name" + +# cd +complete -x -c phpbrew -n "__fish_phpbrew_using_command cd" -a "(__fish_phpbrew_arg_meta cd 0 valid-values)" + +# clean +complete -f -c phpbrew -n "__fish_phpbrew_using_command clean" -s a -l all -d "Remove all the files in the source directory of the PHP distribution" +complete -x -c phpbrew -n "__fish_phpbrew_using_command clean" -a "(__fish_phpbrew_arg_meta clean 0 valid-values)" + +# compile +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l classloader -d "embed classloader source file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l bootstrap -d "bootstrap or executable source file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l executable -d "is a executable script \?" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l lib -d "library path" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l include -d "include path" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l exclude -d "exclude pattern" +complete -x -c phpbrew -n "__fish_phpbrew_using_command compile" -l output -d "output" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -s c -l compress -d "phar file compress type: gz, bz2" +complete -f -c phpbrew -n "__fish_phpbrew_using_command compile" -l no-compress -d "do not compress phar file" + +# ctags +complete -x -c phpbrew -n "__fish_phpbrew_using_command ctags" -a "(__fish_phpbrew_arg_meta ctags 0 valid-values)" + +# download +complete -f -c phpbrew -n "__fish_phpbrew_using_command download" -s f -l force -d "Force extraction" +complete -f -c phpbrew -n "__fish_phpbrew_using_command download" -l old -d "enable old phps \(less than 5.3\)" +complete -x -c phpbrew -n "__fish_phpbrew_using_command download" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command download" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command download" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command download" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command download" -l connect-timeout -d "Connection timeout" +complete -x -c phpbrew -n "__fish_phpbrew_using_command download" -a "(__fish_phpbrew_arg_meta download 0 suggestions)" + +# env +complete -f -c phpbrew -n "__fish_phpbrew_using_command env" -a "(__fish_phpbrew_arg_meta env 0 valid-values)" + +# ext +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -s so -l show-options -d "Show extension configure options" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -s sp -l show-path -d "Show extension config.m4 path" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a clean -d "Clean up the compiled objects in the extension source directory" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a config -d "Edit extension-specific configuration file" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a disable -d "Disable PHP extension" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a enable -d "Enable PHP extension" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a install -d "Install PHP extension" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a known -d "List known versions" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext" -a show -d "Show information of a PHP extension" + +# ext clean +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext clean" -s p -l purge -d "Remove all the source files" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext clean" -a "(__fish_phpbrew_arg_meta extension.clean 0 suggestions)" + +# ext config +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext config" -a "(__fish_phpbrew_arg_meta extension.config 0 suggestions)" + +# ext disable +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext disable" -a "(__fish_phpbrew_arg_meta extension.disable 0 suggestions)" + +# ext enable +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext enable" -a "(__fish_phpbrew_arg_meta extension.enable 0 suggestions)" + +# ext install +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext install" -l pecl -d "Try to download from PECL even when ext source is bundled with php-src" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext install" -l redownload -d "Force to redownload extension source even if it is already available" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext install" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext install" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext install" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext install" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext install" -l connect-timeout -d "Connection timeout" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext install" -a "(__fish_phpbrew_arg_meta extension.install 0 suggestions)" + +# ext known +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext known" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext known" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext known" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext known" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext known" -l connect-timeout -d "Connection timeout" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext known" -a "(__fish_phpbrew_arg_meta extension.known 0 suggestions)" + +# ext show +complete -f -c phpbrew -n "__fish_phpbrew_using_command ext show" -l download -d "Download the extension source if extension not found" +complete -x -c phpbrew -n "__fish_phpbrew_using_command ext show" -a "(__fish_phpbrew_arg_meta extension.show 0 suggestions)" + +# fpm +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm" -a restart -d "Restart FPM server" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm" -a setup -d "Generate and setup FPM startup config" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm" -a start -d "Start FPM server" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm" -a stop -d "Stop FPM server" + +# fpm setup +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm setup" -l systemctl -d "Generate systemd service entry" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm setup" -l initd -d "Generate init.d script" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm setup" -l launchctl -d "Generate plist for launchctl \(OS X\)" +complete -f -c phpbrew -n "__fish_phpbrew_using_command fpm setup" -l stdout -d "Print config to STDOUT instead of writing to the file" + +# github:build-topics +complete -x -c phpbrew -n "__fish_phpbrew_using_command github:build-topics" -l ns -d "Class namespace" +complete -x -c phpbrew -n "__fish_phpbrew_using_command github:build-topics" -l dir -d "Output directory" +complete -f -c phpbrew -n "__fish_phpbrew_using_command github:build-topics" -l update -d "Update wiki repository" + +# help +complete -f -c phpbrew -n "__fish_phpbrew_using_command help" -l dev -d "Show development commands" + +# init +complete -x -c phpbrew -n "__fish_phpbrew_using_command init" -s c -l config -d "The YAML config file which should be copied into phpbrew home.The config file is used for creating custom virtual variants" +complete -x -c phpbrew -n "__fish_phpbrew_using_command init" -l root -d "Override the default PHPBREW_ROOT path setting.This option is usually used to load system-wide build pool" + +# install +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l test -d "Run tests after the installation" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l name -d "The name of the installation" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l post-clean -d "Run make clean after the installation" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l production -d "Use production configuration file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l build-dir -d "Specify the build directory" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l root -d "Specify PHPBrew root instead of PHPBREW_ROOT" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l home -d "Specify PHPBrew home instead of PHPBREW_HOME" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l no-config-cache -d "Do not use config.cache for configure script" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l no-clean -d "Do not clean previously compiled objects before building PHP" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l no-patch -d "Do not apply any patch" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l no-configure -d "Do not run configure script" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l no-install -d "Do not install, just run build the target" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -s n -l nice -d "Runs build processes at an altered scheduling priority" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l patch -d "Apply patch before build" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l old -d "Install phpbrew incompatible phps \(< 5.3\)" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l user-config -d "Allow users create their own config file \(php.ini or extension config init files\)" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l connect-timeout -d "Connection timeout" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -s f -l force -d "Force the installation \(redownloads source\)" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -s d -l dryrun -d "Do not build, but run through all the tasks" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -l like -d "Inherit variants from an existing build" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -s j -l jobs -d "Specifies the number of jobs to run build simultaneously \(make -jN\)" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l stdout -d "Outputs install logs to stdout" +complete -f -c phpbrew -n "__fish_phpbrew_using_command install" -l sudo -d "sudo to run install command" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install" -a "(__fish_phpbrew_arg_meta install 0 suggestions)" +complete -x -c phpbrew -n "__fish_phpbrew_using_command install --position=1 --multiple" -a "(__fish_phpbrew_arg_meta install 1 suggestions)" + +# known +complete -f -c phpbrew -n "__fish_phpbrew_using_command known" -s m -l more -d "Show more older versions" +complete -f -c phpbrew -n "__fish_phpbrew_using_command known" -s o -l old -d "List old phps \(less than 5.3\)" +complete -f -c phpbrew -n "__fish_phpbrew_using_command known" -s u -l update -d "Update release list" +complete -x -c phpbrew -n "__fish_phpbrew_using_command known" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command known" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command known" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command known" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command known" -l connect-timeout -d "Connection timeout" + +# list +complete -f -c phpbrew -n "__fish_phpbrew_using_command list" -s d -l dir -d "Show php directories" +complete -f -c phpbrew -n "__fish_phpbrew_using_command list" -s v -l variants -d "Show used variants" + +# meta +complete -f -c phpbrew -n "__fish_phpbrew_using_command meta" -l flat -d "flat list format" +complete -f -c phpbrew -n "__fish_phpbrew_using_command meta" -l zsh -d "output for zsh" +complete -f -c phpbrew -n "__fish_phpbrew_using_command meta" -l bash -d "output for bash" +complete -f -c phpbrew -n "__fish_phpbrew_using_command meta" -l json -d "output in JSON format \(un-implemented\)" + +# path +complete -x -c phpbrew -n "__fish_phpbrew_using_command path" -a "(__fish_phpbrew_arg_meta path 0 valid-values)" + +# purge +complete -x -c phpbrew -n "__fish_phpbrew_using_command purge --multiple" -a "(__fish_phpbrew_arg_meta purge 0 valid-values)" + +# remove +complete -x -c phpbrew -n "__fish_phpbrew_using_command remove" -a "(__fish_phpbrew_arg_meta remove 0 valid-values)" + +# self-update +complete -x -c phpbrew -n "__fish_phpbrew_using_command self-update" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command self-update" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command self-update" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command self-update" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command self-update" -l connect-timeout -d "Connection timeout" + +# switch +complete -x -c phpbrew -n "__fish_phpbrew_using_command switch" -a "(__fish_phpbrew_arg_meta switch 0 valid-values)" + +# system +complete -x -c phpbrew -n "__fish_phpbrew_using_command system" -a "(__fish_phpbrew_arg_meta system 0 suggestions)" + +# update +complete -f -c phpbrew -n "__fish_phpbrew_using_command update" -s o -l old -d "List old phps \(less than 5.3\)" +complete -x -c phpbrew -n "__fish_phpbrew_using_command update" -l downloader -d "Use alternative downloader" +complete -f -c phpbrew -n "__fish_phpbrew_using_command update" -l continue -d "Continue getting a partially downloaded file" +complete -x -c phpbrew -n "__fish_phpbrew_using_command update" -l http-proxy -d "HTTP proxy address" +complete -x -c phpbrew -n "__fish_phpbrew_using_command update" -l http-proxy-auth -d "HTTP proxy authentication" +complete -x -c phpbrew -n "__fish_phpbrew_using_command update" -l connect-timeout -d "Connection timeout" + +# use +complete -x -c phpbrew -n "__fish_phpbrew_using_command use" -a "(__fish_phpbrew_arg_meta use 0 valid-values)" + +# zsh +complete -x -c phpbrew -n "__fish_phpbrew_using_command zsh" -l bind -d "bind complete to command" +complete -x -c phpbrew -n "__fish_phpbrew_using_command zsh" -l program -d "programe name" diff --git a/src/PhpBrew/Build.php b/src/PhpBrew/Build.php index b8c9f3d61..a5d60d5f1 100644 --- a/src/PhpBrew/Build.php +++ b/src/PhpBrew/Build.php @@ -1,44 +1,106 @@ name = $name; + $this->version = $version; + $this->name = $name; + + if ($installPrefix) { + $this->setInstallPrefix($installPrefix); + } + + $this->setBuildSettings(new BuildSettings()); + $this->osName = php_uname('s'); + $this->osRelease = php_uname('r'); + $this->osArch = php_uname('m'); } - public function setVersion($version) + public function getName() { - $this->version = preg_replace('#^php-#','',$version); + return $this->name; } public function getVersion() @@ -48,186 +110,146 @@ public function getVersion() public function compareVersion($version) { - return version_compare($this->version,$version); + return version_compare($this->version, $version); } - public function enableVariant($name, $value = null) - { - $this->variants[$name] = $value ?: true; - } - - /** - * Disable variant. + * PHP Source directory, this method returns value only when source directory is set. */ - public function disableVariant($name) + public function setSourceDirectory($dir) { - $this->disabledVariants[$name] = true; + $this->sourceDirectory = $dir; } - public function resolveVariants() + public function getSourceDirectory() { - foreach( $this->disabledVariants as $n => $true ) { - if( $this->hasVariant($n) ) { - $this->removeVariant($n); - } + if ($this->sourceDirectory && !file_exists($this->sourceDirectory)) { + mkdir($this->sourceDirectory, 0755, true); } + + return $this->sourceDirectory; } - public function isDisabledVariant($name) + public function isBuildable() { - return isset($this->disabledVariants[$name]); + return file_exists($this->sourceDirectory . DIRECTORY_SEPARATOR . 'Makefile'); } - public function isEnabledVariant($name) + public function getBuildLogPath() { - return isset($this->variants[$name]); + $dir = $this->getSourceDirectory() . DIRECTORY_SEPARATOR . 'build.log'; + return $dir; } - - public function removeDisabledVariant($name) + public function setInstallPrefix($prefix) { - unset($this->disabledVariants[$name]); + $this->installPrefix = $prefix; } - /** - * Set enabled variants. - * - * @param array $variants - */ - public function setVariants($variants) + public function getBinDirectory() { - $this->variants = $variants; + return $this->installPrefix . DIRECTORY_SEPARATOR . 'bin'; } - - /** - * Check if we've enabled the variant - * - * @param string $name - * @return bool - */ - public function hasVariant($name) + public function getEtcDirectory() { - return isset($this->variants[$name]); + $etc = $this->installPrefix . DIRECTORY_SEPARATOR . 'etc'; + if (!file_exists($etc)) { + mkdir($etc, 0755, true); + } + + return $etc; } - /** - * Remove enabled variant. - */ - public function removeVariant($variantName) + public function getInstallPrefix() { - unset($this->variants[$variantName]); + return $this->installPrefix; } - - /** - * Get enabled variants - */ - public function getVariants() + public function getPath($subpath) { - return $this->variants; + return $this->installPrefix . DIRECTORY_SEPARATOR . $subpath; } - - - /** - * Get all disabled variants - */ - public function getDisabledVariants() + public function setBuildSettings(BuildSettings $settings) { - return $this->disabledVariants; + $this->settings = $settings; + if (!$this->getInstallPrefix()) { + return; + } + // TODO: in future, we only stores build meta information, and that + // also contains the variant info, + // but for backward compatibility, we still need a method to handle + // the variant info file.. + $variantFile = $this->getInstallPrefix() . DIRECTORY_SEPARATOR . 'phpbrew.variants'; + if (file_exists($variantFile)) { + $this->settings->loadVariantInfoFile($variantFile); + } } - - /** - * Returns variant user value + * Find a installed build by name, + * currently a $name is a php version, but in future we may have customized + * name for users. * - * @param string $n variant name - * @return string variant value + * @param string $name + * + * @return Build */ - public function getVariant($n) - { - if( isset($this->variants[$n]) ) - return $this->variants[$n]; - } - - - public function setSourceDirectory($dir) - { - $this->sourceDirectory = $dir; - } - - public function getSourceDirectory() - { - return $this->sourceDirectory; - } - - public function setInstallDirectory($dir) + public static function findByName($name) { - $this->installDirectory = $dir; - } + $prefix = Config::getVersionInstallPrefix($name); + if (file_exists($prefix)) { + // a installation exists + return new self($name, null, $prefix); + } - public function getInstallDirectory() - { - return $this->installDirectory; + return; } - public function setExtraOptions($options) + /** + * Where we store the last finished state, currently for:. + * + * - FALSE or NULL - nothing done yet. + * - "download" - distribution file was downloaded. + * - "extract" - distribution file was extracted to the build directory. + * - "configure" - configure was done. + * - "make" - make was done. + * - "install" - installation was done. + * + * Not used yet. + */ + public function getStateFile() { - $this->extraOptions = $options; + if ($dir = $this->getInstallPrefix()) { + return $dir . DIRECTORY_SEPARATOR . 'phpbrew_status'; + } } - public function getExtraOptions() + public function setState($state) { - return $this->extraOptions; + $this->state = $state; + if ($path = $this->getStateFile()) { + file_put_contents($path, $state); + } } - - /** - * Returns a build identifier. - */ - public function getIdentifier() + public function getState() { - $names = array('php'); - - $names[] = $this->version; - - if($this->variants) { - $keys = array_keys($this->variants); - sort($keys); - - foreach( $keys as $n ) { - $v = $this->getVariant($n); - if( is_bool($v) ) { - $names[] = $n; - } else { - $v = preg_replace( '#\W+#', '_', $v ); - $str = $n . '=' . $v; - $names[] = $str; - } + if ($this->state) { + return $this->state; + } + if ($path = $this->getStateFile()) { + if (file_exists($path)) { + return $this->state = intval(file_get_contents($path)) || self::STATE_NONE; } - } - if($this->phpEnvironment === self::ENV_PRODUCTION ) { - $names[] = 'prod'; - } elseif($this->phpEnvironment === self::ENV_DEVELOPMENT ) { - $names[] = 'dev'; - } - return join('-', $names); + return self::STATE_NONE; } - - public function getSourceExtensionDirectory() + public function __call($m, $a) { - return $this->sourceDirectory . DIRECTORY_SEPARATOR . 'ext'; + return call_user_func_array(array($this->settings, $m), $a); } - - - } - - - diff --git a/src/PhpBrew/BuildFinder.php b/src/PhpBrew/BuildFinder.php new file mode 100644 index 000000000..f446d472d --- /dev/null +++ b/src/PhpBrew/BuildFinder.php @@ -0,0 +1,44 @@ + + */ + private $enabledVariants = array(); + + /** + * @var array + */ + private $disabledVariants = array(); + + /** + * @var array + */ + private $extraOptions = array(); + + public function __construct(array $settings = array()) + { + if (isset($settings['enabled_variants'])) { + $this->enableVariants($settings['enabled_variants']); + } + if (isset($settings['disabled_variants'])) { + $this->disableVariants($settings['disabled_variants']); + } + if (isset($settings['extra_options'])) { + $this->extraOptions = array_merge($this->extraOptions, $settings['extra_options']); + } + } + + public function toArray() + { + return array( + 'enabled_variants' => $this->enabledVariants, + 'disabled_variants' => $this->disabledVariants, + 'extra_options' => $this->extraOptions, + ); + } + + public function enableVariants(array $settings) + { + foreach ($settings as $name => $value) { + $this->enableVariant($name, $value); + } + } + + public function enableVariant($name, $value = null) + { + $this->enabledVariants[$name] = $value; + } + + public function disableVariants(array $settings) + { + foreach ($settings as $name => $value) { + $this->disableVariant($name); + } + } + + /** + * Disable variant. + * + * @param string $name The variant name. + */ + public function disableVariant($name) + { + $this->disabledVariants[$name] = null; + } + + /** + * Remove the enabled the variants since we've disabled + * them. + */ + public function resolveVariants() + { + foreach ($this->disabledVariants as $name => $_) { + $this->removeVariant($name); + } + } + + public function isEnabledVariant($name) + { + return array_key_exists($name, $this->enabledVariants); + } + + public function isDisabledVariant($name) + { + return array_key_exists($name, $this->disabledVariants); + } + + /** + * Remove enabled variant. + */ + public function removeVariant($name) + { + unset($this->enabledVariants[$name]); + } + + /** + * Get enabled variants. + */ + public function getEnabledVariants() + { + return $this->enabledVariants; + } + + /** + * Get all disabled variants. + */ + public function getDisabledVariants() + { + return $this->disabledVariants; + } + + public function getExtraOptions() + { + return $this->extraOptions; + } + + /** + * Load and return the variant info from file. + */ + public function loadVariantInfoFile($variantFile) + { + if (!is_readable($variantFile)) { + throw new Exception( + "Can't load variant info! Variants file {$variantFile} is not readable." + ); + } + $variantInfo = unserialize(file_get_contents($variantFile)); + + $this->loadVariantInfo($variantInfo); + } + + public function writeVariantInfoFile($variantInfoFile) + { + return file_put_contents($variantInfoFile, serialize(array( + 'enabled_variants' => $this->enabledVariants, + 'disabled_variants' => $this->disabledVariants, + 'extra_options' => array_unique($this->extraOptions), + ))); + } + + public function loadVariantInfo(array $variantInfo) + { + if (isset($variantInfo['enabled_variants'])) { + foreach ($variantInfo['enabled_variants'] as $variant => $value) { + if ($value === true) { + // TRUE no longer indicates the absence of a prefix, NULL does + $this->enableVariant($variant); + } else { + $this->enableVariant($variant, $value); + } + } + } + + if (isset($variantInfo['disabled_variants'])) { + $this->disableVariants($variantInfo['disabled_variants']); + } + + if (isset($variantInfo['extra_options'])) { + $this->extraOptions = array_unique(array_merge($this->extraOptions, $variantInfo['extra_options'])); + } + + $this->resolveVariants(); + } +} diff --git a/src/PhpBrew/Buildable.php b/src/PhpBrew/Buildable.php new file mode 100644 index 000000000..36df70d36 --- /dev/null +++ b/src/PhpBrew/Buildable.php @@ -0,0 +1,21 @@ +targetDir = $targetDir; - $this->root = Config::getPhpbrewRoot(); - $this->buildDir = Config::getBuildDir(); - $this->version = $version; - chdir($targetDir); - } - - public function configure(\PhpBrew\Build $build) - { - $variantBuilder = new VariantBuilder; - - $extra = $build->getExtraOptions(); - - if( ! file_exists('configure') ) { - $this->logger->debug("configure file not found, running buildconf script..."); - system('./buildconf') !== false or die('buildconf error'); - } - - // build configure args - // XXX: support variants - - $cmd = new CommandBuilder('./configure'); - - putenv('CFLAGS=-O3'); - $prefix = $build->getInstallDirectory(); - $args[] = "--prefix=" . $prefix; - $args[] = "--with-config-file-path={$prefix}/etc"; - $args[] = "--with-config-file-scan-dir={$prefix}/var/db"; - $args[] = "--with-pear={$prefix}/lib/php"; - - // this is to support pear - $build->enableVariant('xml'); - - - $variantOptions = $variantBuilder->build($build); - if( $variantOptions ) - $args = array_merge( $args , $variantOptions ); - - $this->logger->debug('Enabled variants: ' . join(', ',array_keys($build->getVariants()) )); - $this->logger->debug('Disabled variants: ' . join(', ',array_keys($build->getDisabledVariants()) )); - - - if( $patchFile = $this->options->patch ) { - // copy patch file to here - $this->logger->info("===> Applying patch file from $patchFile ..."); - system("patch -p0 < $patchFile"); - } - - - /** - * https://bugs.php.net/bug.php?id=66198 - */ - $this->logger->info("===> Applying patch file for freetype include path bug..."); - $freetypeIncludePathPatch =<<<'PATCH' ---- configure 2013-12-04 17:55:13.000000000 +0800 -+++ configure.new 2013-12-04 17:54:54.000000000 +0800 -@@ -39213,6 +39213,11 @@ - FREETYPE2_INC_DIR=$i/include/freetype2 - break - fi -+ if test -f "$i/include/freetype2/freetype.h"; then -+ FREETYPE2_DIR=$i -+ FREETYPE2_INC_DIR=$i/include/freetype2 -+ break -+ fi - done - - if test -z "$FREETYPE2_DIR"; then -@@ -41390,6 +41395,11 @@ - FREETYPE2_INC_DIR=$i/include/freetype2 - break - fi -+ if test -f "$i/include/freetype2/freetype.h"; then -+ FREETYPE2_DIR=$i -+ FREETYPE2_INC_DIR=$i/include/freetype2 -+ break -+ fi - done - - if test -z "$FREETYPE2_DIR"; then -PATCH; - file_put_contents("freetype-include-path.patch", $freetypeIncludePathPatch); - system("patch -p0 < freetype-include-path.patch"); - - - // let's apply patch for libphp{php version}.so (apxs) - if( $build->isEnabledVariant('apxs2') ) { - $apxs2Checker = new \PhpBrew\Tasks\Apxs2CheckTask($this->logger); - $apxs2Checker->check($build); - $apxs2Patch = new \PhpBrew\Tasks\Apxs2PatchTask($this->logger); - $apxs2Patch->patch($build); - } - - foreach( $extra as $a ) { - $args[] = $a; - } - - $cmd->args($args); - - $this->logger->info("===> Configuring {$build->version}..."); - - $cmd->append = false; - $cmd->stdout = Config::getVersionBuildLogPath( $build->name ); - - echo "\n\n"; - echo "Use tail command to see what's going on:\n"; - echo " $ tail -f {$cmd->stdout}\n\n\n"; - - $this->logger->debug( $cmd->getCommand() ); - - if( $this->options->nice ) - $cmd->nice( $this->options->nice ); - - $cmd->execute() !== false or die('Configure failed.'); - - // Then patch Makefile for PHP 5.3.x on 64bit system. - if( Utils::support_64bit() && $build->compareVersion('5.4') == -1 ) { - $this->logger->info("===> Applying patch file for php5.3.x on 64bit machine."); - system('sed -i \'/^BUILD_/ s/\$(CC)/\$(CXX)/g\' Makefile'); - system('sed -i \'/EXTRA_LIBS = /s|$| -lstdc++|\' Makefile'); - } - } - - public function build() - { - - } - - public function test() - { - - } - - public function install() - { - - } - -} - - diff --git a/src/PhpBrew/Command/CdCommand.php b/src/PhpBrew/Command/CdCommand.php new file mode 100644 index 000000000..1e62e7539 --- /dev/null +++ b/src/PhpBrew/Command/CdCommand.php @@ -0,0 +1,28 @@ +add('directory') + ->isa('string') + ->validValues(explode('|', 'var|etc|build|dist')) + ; + } + + public function usage() + { + return 'phpbrew cd [var|etc|build|dist]'; + } +} diff --git a/src/PhpBrew/Command/CleanCommand.php b/src/PhpBrew/Command/CleanCommand.php index c13319bbb..b39e3c4f2 100644 --- a/src/PhpBrew/Command/CleanCommand.php +++ b/src/PhpBrew/Command/CleanCommand.php @@ -1,40 +1,58 @@ add('a|all', 'Remove all the files in the source directory of the PHP distribution.'); } - public function execute($version) + public function arguments($args) { - if( ! preg_match('/^php-/', $version) ) - $version = 'php-' . $version; - - $info = PhpSource::getVersionInfo( $version, $this->options->old ); - if( ! $info) - throw new Exception("Version $version not found."); + $args->add('PHP build') + ->validValues(function () { + return BuildFinder::findInstalledBuilds(); + }) + ; + } - $clean = new CleanTask($this->logger); - if( $clean->cleanByVersion($version) ) { - $this->logger->info("Distribution is cleaned up. Woof! "); + public function execute($version) + { + $buildDir = Config::getBuildDir() . DIRECTORY_SEPARATOR . $version; + if ($this->options->all) { + if (!file_exists($buildDir)) { + $this->logger->info('Source directory ' . $buildDir . ' does not exist.'); + } else { + $this->logger->info('Source directory ' . $buildDir . ' found, deleting...'); + Utils::recursive_unlink($buildDir, $this->logger); + } + } else { + $make = new MakeTask($this->logger); + $make->setQuiet(); + $build = new Build($version); + $build->setSourceDirectory($buildDir); + if ($make->clean($build)) { + $this->logger->info('Distribution is cleaned up. Woof! '); + } } } } - diff --git a/src/PhpBrew/Command/ConfigCommand.php b/src/PhpBrew/Command/ConfigCommand.php index 67e8a5855..892fb0c51 100644 --- a/src/PhpBrew/Command/ConfigCommand.php +++ b/src/PhpBrew/Command/ConfigCommand.php @@ -1,33 +1,37 @@ add('s|sapi:=string', 'Edit php.ini for SAPI name.'); + } + + public function execute() + { + $sapi = 'cli'; + if ($this->options->sapi) { + $sapi = $this->options->sapi; + } + + $file = Config::getVersionEtcPath(Config::getCurrentPhpName()) . '/' . $sapi . '/php.ini'; + + return Utils::editor($file) === 0; + } +} diff --git a/src/PhpBrew/Command/CtagsCommand.php b/src/PhpBrew/Command/CtagsCommand.php new file mode 100644 index 000000000..4e169424a --- /dev/null +++ b/src/PhpBrew/Command/CtagsCommand.php @@ -0,0 +1,73 @@ +add('PHP build') + ->validValues(function () { + return BuildFinder::findInstalledBuilds(); + }) + ; + } + + public function execute($versionName = null) + { + $args = func_get_args(); + array_shift($args); + + if ($versionName) { + $sourceDir = Config::getBuildDir() . DIRECTORY_SEPARATOR . $versionName; + } else { + if (!getenv('PHPBREW_PHP')) { + $this->logger->error(<<logger->error("$sourceDir does not exist."); + + return; + } + $this->logger->info('Scanning ' . $sourceDir); + + $cmd = new CommandBuilder('ctags'); + $cmd->arg('-R'); + $cmd->arg('-a'); + $cmd->arg('-h'); + $cmd->arg('.c.h.cpp'); + + $cmd->arg($sourceDir . DIRECTORY_SEPARATOR . 'main'); + $cmd->arg($sourceDir . DIRECTORY_SEPARATOR . 'ext'); + $cmd->arg($sourceDir . DIRECTORY_SEPARATOR . 'Zend'); + + foreach ($args as $a) { + $cmd->arg($a); + } + + $this->logger->debug($cmd->__toString()); + $cmd->execute(); + + $this->logger->info('Done'); + } +} diff --git a/src/PhpBrew/Command/DownloadCommand.php b/src/PhpBrew/Command/DownloadCommand.php index 65aecd2f2..80669faf0 100644 --- a/src/PhpBrew/Command/DownloadCommand.php +++ b/src/PhpBrew/Command/DownloadCommand.php @@ -1,57 +1,90 @@ add('version')->suggestions(function () { + $releaseList = ReleaseList::getReadyInstance(); + $releases = $releaseList->getReleases(); + + $collection = new ValueCollection(); + foreach ($releases as $major => $versions) { + $collection->group($major, "PHP $major", array_keys($versions)); + } + + $collection->group('pseudo', 'pseudo', array('latest', 'next')); + + return $collection; + }); + } + + /** + * @param OptionCollection $opts + */ public function options($opts) { - $opts->add('f|force','Force extraction'); - $opts->add('old','enable old phps (less than 5.3)'); + $opts->add('f|force', 'Force extraction'); + $opts->add('old', 'enable old phps (less than 5.3)'); + + DownloadFactory::addOptionsForCommand($opts); } public function execute($version) { - if( ! preg_match('/^php-/', $version) ) - $version = 'php-' . $version; - - $info = PhpSource::getVersionInfo( $version, $this->options->old ); - if( ! $info) + $version = preg_replace('/^php-/', '', $version); + $releaseList = ReleaseList::getReadyInstance($this->options); + $versionInfo = $releaseList->getVersion($version); + if (!$versionInfo) { throw new Exception("Version $version not found."); + } + $version = $versionInfo['version']; + $distUrlPolicy = new DistributionUrlPolicy(); + $distUrl = $distUrlPolicy->buildUrl($version, $versionInfo['filename'], $versionInfo['museum']); - $prepare = new PrepareDirectoryTask($this->logger); - $prepare->prepareForVersion($version); - - $buildDir = Config::getBuildDir(); + $prepare = new PrepareDirectoryTask($this->logger, $this->options); + $prepare->run(); - $dw = new DirectorySwitch; - $dw->cd($buildDir); + $distFileDir = Config::getDistFileDir(); - $download = new DownloadTask($this->logger); - $targetDir = $download->downloadByVersionString($version, $this->options->old , $this->options->force ); + $download = new DownloadTask($this->logger, $this->options); + $algo = 'md5'; + $hash = null; + if (isset($versionInfo['sha256'])) { + $algo = 'sha256'; + $hash = $versionInfo['sha256']; + } elseif (isset($versionInfo['md5'])) { + $algo = 'md5'; + $hash = $versionInfo['md5']; + } + $targetDir = $download->download($distUrl, $distFileDir, $algo, $hash); - if( ! file_exists( $targetDir ) ) { - throw new Exception("Download failed."); + if (!file_exists($targetDir)) { + throw new Exception('Download failed.'); } - $this->logger->info("Done, please look at: $buildDir/$targetDir"); - $dw->back(); + $this->logger->info("Done, please look at: $targetDir"); } } - diff --git a/src/PhpBrew/Command/EachCommand.php b/src/PhpBrew/Command/EachCommand.php new file mode 100644 index 000000000..aad3fd937 --- /dev/null +++ b/src/PhpBrew/Command/EachCommand.php @@ -0,0 +1,11 @@ +add('PHP build') + ->optional() + ->validValues(function () { + return BuildFinder::findInstalledBuilds(); + }) + ; + } - public function execute($version = null) + public function execute($buildName = null) { // get current version - if ( ! $version ) { - $version = getenv('PHPBREW_PHP'); + if (!$buildName) { + $buildName = getenv('PHPBREW_PHP'); } - // $currentVersion; - $root = Config::getPhpbrewRoot(); - $home = Config::getPhpbrewHome(); - $buildDir = Config::getBuildDir(); - $lookup = getenv('PHPBREW_LOOKUP_PREFIX'); - - // $versionBuildPrefix = Config::getVersionBuildPrefix($version); - // $versionBinPath = Config::getVersionBinPath($version); - - echo "export PHPBREW_ROOT=$root\n"; - echo "export PHPBREW_HOME=$home\n"; - echo "export PHPBREW_LOOKUP_PREFIX=$lookup\n"; - - - if ($version !== false) { - // checking php version exists - $targetPhpBinPath = Config::getVersionBinPath($version); - if (!is_dir($targetPhpBinPath)) { - throw new Exception("# php version: " . $version . " not exists."); + $this->export('PHPBREW_ROOT', Config::getRoot()); + $this->export('PHPBREW_HOME', Config::getHome()); + + $this->replicate('PHPBREW_LOOKUP_PREFIX'); + + if ($buildName !== false) { + $targetPhpBinPath = Config::getVersionBinPath($buildName); + + // checking php version existence + if (is_dir($targetPhpBinPath)) { + $this->export('PHPBREW_PHP', $buildName); + $this->export('PHPBREW_PATH', $targetPhpBinPath); } - echo 'export PHPBREW_PHP=' . $version . "\n"; - echo 'export PHPBREW_PATH=' . ($version ? Config::getVersionBinPath($version) : '') . "\n"; } + $this->replicate('PHPBREW_SYSTEM_PHP'); + + $this->logger->writeln('# Run this command to configure your shell:'); + $this->logger->writeln('# eval "$(phpbrew env)"'); + } + + private function export($varName, $value) + { + $this->logger->writeln(sprintf('export %s=%s', $varName, $value)); } + private function replicate($varName) + { + $value = getenv($varName); + + if ($value !== false && $value !== '') { + $this->export($varName, $value); + } + } } diff --git a/src/PhpBrew/Command/ExtCommand.php b/src/PhpBrew/Command/ExtCommand.php deleted file mode 100644 index 8d1f83c14..000000000 --- a/src/PhpBrew/Command/ExtCommand.php +++ /dev/null @@ -1,72 +0,0 @@ -registerCommand('enable','PhpBrew\\Command\\ExtCommand\\EnableCommand'); - $this->registerCommand('enable'); - $this->registerCommand('install'); - $this->registerCommand('disable'); - } - - public function execute() - { - $php = Config::getCurrentPhpName(); - $buildDir = Config::getBuildDir(); - $extDir = $buildDir . DIRECTORY_SEPARATOR . $php . DIRECTORY_SEPARATOR . 'ext'; - - // listing all local extensions - $loaded = array_map( 'strtolower' , get_loaded_extensions()); - - $this->logger->info( 'Available extensions:'); - $fp = opendir( $extDir ); - - - // list for exts not neabled - $exts = array(); - while( $file = readdir($fp) ) { - if ( $file === '.' || $file === '..' ) - continue; - - if ( is_file($extDir . DIRECTORY_SEPARATOR . $file) ) - continue; - - $n = strtolower(preg_replace('#-[\d\.]+$#', '', $file)); - if ( in_array($n,$loaded) ) - continue; - $exts[] = $n; - } - sort($loaded); - sort($exts); - - foreach( $loaded as $ext ) { - $this->logger->info(" [*] $ext"); - } - foreach( $exts as $ext ) { - $this->logger->info(" [ ] $ext"); - } - closedir($fp); - } -} - - - - - diff --git a/src/PhpBrew/Command/ExtCommand/DisableCommand.php b/src/PhpBrew/Command/ExtCommand/DisableCommand.php deleted file mode 100644 index bf5152a93..000000000 --- a/src/PhpBrew/Command/ExtCommand/DisableCommand.php +++ /dev/null @@ -1,36 +0,0 @@ -logger->debug("Found extension config file: $path"); - $lines = file($path); - foreach( $lines as &$line ) { - if ( preg_match('#^(?:zend_)?extension\s*=#', $line ) ) { - $line = '; ' . $line; - } - } - // write back - file_put_contents($path, join("\n",$lines)); - $this->logger->info("Extension $name is now disabled."); - } else { - $this->logger->info("Extension $name can not be disabled."); - } - } else { - $this->logger->info("Extension $name is already disabled."); - } - } -} diff --git a/src/PhpBrew/Command/ExtCommand/EnableCommand.php b/src/PhpBrew/Command/ExtCommand/EnableCommand.php deleted file mode 100644 index d423c7564..000000000 --- a/src/PhpBrew/Command/ExtCommand/EnableCommand.php +++ /dev/null @@ -1,23 +0,0 @@ -logger->debug("Writing extension config file: $path"); - $this->logger->info("$extensionName is enabled now."); - } else { - $this->logger->info("$extensionName is already enabled."); - } - } -} diff --git a/src/PhpBrew/Command/ExtCommand/InstallCommand.php b/src/PhpBrew/Command/ExtCommand/InstallCommand.php deleted file mode 100644 index 98f75ed5a..000000000 --- a/src/PhpBrew/Command/ExtCommand/InstallCommand.php +++ /dev/null @@ -1,71 +0,0 @@ -getLogger(); - $php = Config::getCurrentPhpName(); - $buildDir = Config::getBuildDir(); - $extDir = $buildDir . DIRECTORY_SEPARATOR . $php . DIRECTORY_SEPARATOR . 'ext'; - - // Install local extension - $path = $extDir . DIRECTORY_SEPARATOR . $extname; - if( file_exists( $path ) ) { - - $this->logger->info("===> Installing $extname extension..."); - $this->logger->debug("Extension path $path"); - - $installer = new \PhpBrew\ExtensionInstaller($this->logger); - $installedSo = $installer->runInstall($extname,$path,$options); - - $this->logger->info('===> Enabling extension'); - - $zendExtensions = array('opcache'); - Utils::enable_extension($extname, in_array($extname,$zendExtensions) ? $installedSo : ''); - - $this->logger->info("Done"); - } else { - chdir($extDir); - - $installer = new \PhpBrew\ExtensionInstaller($this->logger); - $installedSo = $installer->installFromPecl($extname, $version ,$options); - - $this->logger->info('===> Enabling extension'); - - $zendExtensions = array('xdebug','opcache','xhprof'); - - $configFile = Utils::enable_extension($extname, in_array($extname,$zendExtensions) ? $installedSo : ''); - if ( $configFile ) { - $this->logger->debug($configFile . ' is created.'); - } - - $this->logger->info("Done"); - } - } -} diff --git a/src/PhpBrew/Command/ExtensionCommand.php b/src/PhpBrew/Command/ExtensionCommand.php new file mode 100644 index 000000000..7f38a3706 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand.php @@ -0,0 +1,140 @@ +command('enable'); + $this->command('install'); + $this->command('disable'); + $this->command('config'); + $this->command('clean'); + $this->command('show'); + $this->command('known'); + } + + /** + * @param OptionCollection $opts + */ + public function options($opts) + { + $opts->add('so|show-options', 'Show extension configure options'); + $opts->add('sp|show-path', 'Show extension config.m4 path'); + } + + public function describeExtension(Extension $ext) + { + $this->logger->write(sprintf( + ' [%s] %-12s %-12s', + extension_loaded($ext->getExtensionName()) ? '*' : ' ', + $ext->getExtensionName(), + phpversion($ext->getExtensionName()) + )); + + if ($this->options->{'show-path'}) { + $this->logger->write(sprintf(' from %s', $ext->getConfigM4Path())); + } + $this->logger->newline(); + + // $this->logger->writeln(sprintf('config: %s', $ext->getConfigFilePath())); + + if ($this->options->{'show-options'}) { + $padding = ' '; + if ($ext instanceof M4Extension) { + $options = $ext->getConfigureOptions(); + if (!empty($options)) { + $this->logger->info($padding . 'Configure options:'); + foreach ($options as $option) { + $this->logger->info($padding . ' ' . sprintf( + '%-32s %s', + $option->option . ($option->valueHint ? '[=' . $option->valueHint . ']' : ''), + $option->desc + )); + } + } + } + } + } + + public function execute() + { + $buildDir = Config::getCurrentBuildDir(); + $extDir = $buildDir . DIRECTORY_SEPARATOR . 'ext'; + + // list for extensions which are not enabled + $extensions = array(); + $extensionNames = array(); + + // some extension source not in root directory + $lookupDirectories = array('', 'ext', 'extension'); + + if (file_exists($extDir) && is_dir($extDir)) { + $this->logger->debug("Scanning $extDir..."); + foreach (scandir($extDir) as $extName) { + if ($extName == '.' || $extName == '..') { + continue; + } + $dir = $extDir . DIRECTORY_SEPARATOR . $extName; + foreach ($lookupDirectories as $lookupDirectory) { + $extensionDir = $dir . (empty($lookupDirectory) ? '' : DIRECTORY_SEPARATOR . $lookupDirectory); + if ($m4files = ExtensionFactory::configM4Exists($extensionDir)) { + $this->logger->debug("Loading extension information $extName from $extensionDir"); + + foreach ($m4files as $m4file) { + try { + $ext = ExtensionFactory::createM4Extension($extName, $m4file); + // $ext = ExtensionFactory::createFromDirectory($extName, $dir); + $extensions[$ext->getExtensionName()] = $ext; + $extensionNames[] = $extName; + break; + } catch (Exception $e) { + } + } + + break; + } + } + } + } + + $this->logger->info('Loaded extensions:'); + foreach ($extensions as $extName => $ext) { + if (extension_loaded($extName)) { + $this->describeExtension($ext); + } + } + + $this->logger->info('Available local extensions:'); + foreach ($extensions as $extName => $ext) { + if (extension_loaded($extName)) { + continue; + } + $this->describeExtension($ext); + } + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/BaseCommand.php b/src/PhpBrew/Command/ExtensionCommand/BaseCommand.php new file mode 100644 index 000000000..7196285b0 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/BaseCommand.php @@ -0,0 +1,26 @@ +logger->error(<<add('p|purge', 'Remove all the source files.'); + } + + public function arguments($args) + { + $args->add('extensions') + ->suggestions(function () { + $extdir = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + + return array_filter( + scandir($extdir), + function ($d) use ($extdir) { + return $d != '.' && $d != '..' && is_dir($extdir . DIRECTORY_SEPARATOR . $d); + } + ); + }); + } + + public function execute($extensionName) + { + if ($ext = ExtensionFactory::lookup($extensionName)) { + $this->logger->info("Cleaning $extensionName..."); + $manager = new ExtensionManager($this->logger); + + if ($this->options->purge) { + $manager->purgeExtension($ext); + } else { + $manager->cleanExtension($ext); + } + $this->logger->info('Done'); + } + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/ConfigCommand.php b/src/PhpBrew/Command/ExtensionCommand/ConfigCommand.php new file mode 100644 index 000000000..ecf09c2c1 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/ConfigCommand.php @@ -0,0 +1,63 @@ +add('extensions') + ->suggestions(function () { + return array_map(function ($path) { + return basename(basename($path, '.disabled'), '.ini'); + }, glob(Config::getCurrentPhpDir() . '/var/db/*.{ini,disabled}', GLOB_BRACE)); + }); + } + + public function options($opts) + { + $opts->add('s|sapi:=string', 'Edit extension for SAPI name.'); + } + + public function execute($extensionName) + { + $sapi = null; + if ($this->options->sapi) { + $sapi = $this->options->sapi; + } + + $ext = ExtensionFactory::lookup($extensionName); + if (!$ext) { + return $this->error("Extension $extensionName not found."); + } + $file = $ext->getConfigFilePath($sapi); + $this->logger->info("Looking for {$file} file..."); + if (!file_exists($file)) { + $file .= '.disabled'; // try with ini.disabled file + $this->logger->info("Looking for {$file} file..."); + if (!file_exists($file)) { + $this->logger->warn( + "Sorry, I can't find the ini file for the requested extension: \"{$extensionName}\"." + ); + + return false; + } + } + + return Utils::editor($file) === 0; + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/DisableCommand.php b/src/PhpBrew/Command/ExtensionCommand/DisableCommand.php new file mode 100644 index 000000000..2776a367e --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/DisableCommand.php @@ -0,0 +1,46 @@ +add('s|sapi:=string', 'Disable extension for SAPI name.'); + } + + public function arguments($args) + { + $args->add('extensions') + ->suggestions(function () { + $extension = '.ini'; + + return array_map(function ($path) use ($extension) { + return basename($path, $extension); + }, glob(Config::getCurrentPhpDir() . "/var/db/*{$extension}")); + }); + } + + public function execute($extensionName) + { + $sapi = null; + if ($this->options->sapi) { + $sapi = $this->options->sapi; + } + $manager = new ExtensionManager($this->logger); + $manager->disable($extensionName, $sapi); + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/EnableCommand.php b/src/PhpBrew/Command/ExtensionCommand/EnableCommand.php new file mode 100644 index 000000000..063f7388b --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/EnableCommand.php @@ -0,0 +1,46 @@ +add('s|sapi:=string', 'Enable extension for SAPI name.'); + } + + public function arguments($args) + { + $args->add('extensions') + ->suggestions(function () { + $extension = '.ini.disabled'; + + return array_map(function ($path) use ($extension) { + return basename($path, $extension); + }, glob(Config::getCurrentPhpDir() . "/var/db/*{$extension}")); + }); + } + + public function execute($extensionName) + { + $sapi = null; + if ($this->options->sapi) { + $sapi = $this->options->sapi; + } + $manager = new ExtensionManager($this->logger); + $manager->enable($extensionName, $sapi); + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/InstallCommand.php b/src/PhpBrew/Command/ExtensionCommand/InstallCommand.php new file mode 100644 index 000000000..cb21a1ac2 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/InstallCommand.php @@ -0,0 +1,189 @@ +add('pecl', 'Try to download from PECL even when ext source is bundled with php-src.'); + $opts->add('redownload', 'Force to redownload extension source even if it is already available.'); + + DownloadFactory::addOptionsForCommand($opts); + } + + public function arguments($args) + { + $args->add('extensions') + ->suggestions(function () { + $extdir = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + + return array_filter( + scandir($extdir), + function ($d) use ($extdir) { + return $d != '.' && $d != '..' && is_dir($extdir . DIRECTORY_SEPARATOR . $d); + } + ); + }); + } + + protected function getExtConfig($args) + { + $version = null; + $options = array(); + + if (count($args) > 0) { + $pos = array_search('--', $args); + if ($pos !== false) { + $options = array_slice($args, $pos + 1); + } + + if ($pos === false || $pos == 1) { + $version = $args[0]; + } + } + + return (object) array( + 'version' => $version, + 'options' => $options, + ); + } + + public function prepare() + { + parent::prepare(); + + $buildDir = Config::getCurrentBuildDir(); + $extDir = $buildDir . DIRECTORY_SEPARATOR . 'ext'; + if (!is_dir($extDir)) { + $this->logger->error("Error: The ext directory '$extDir' does not exist."); + $this->logger->error( + "It looks like you don't have the PHP source in $buildDir or you didn't extract the tarball." + ); + $this->logger->error( + 'Suggestion: Please install at least one PHP with your prefered version and switch to it.' + ); + + return false; + } + + return true; + } + + public function execute($extName, $version = 'stable') + { + if (strtolower($extName) === 'apc' && version_compare(PHP_VERSION, '5.6.0') > 0) { + $this->logger->warn('apc is not compatible with php 5.6+ versions, install apcu instead.'); + } + + // Detect protocol + if ( + (preg_match('#^git://#', $extName) || preg_match('#\.git$#', $extName)) + && !preg_match('#github|bitbucket#', $extName) + ) { + $pathinfo = pathinfo($extName); + $repoUrl = $extName; + $extName = $pathinfo['filename']; + $extDir = Config::getBuildDir() + . DIRECTORY_SEPARATOR + . Config::getCurrentPhpName() + . DIRECTORY_SEPARATOR + . 'ext' + . DIRECTORY_SEPARATOR + . $extName; + + if (!file_exists($extDir)) { + passthru("git clone $repoUrl $extDir", $ret); + if ($ret != 0) { + $this->logger->error('Clone failed.'); + + return; + } + } + } + + // Expand extensionset from config + $extensions = array(); + if (substr($extName, 0, 1) === '+') { + $config = Config::getConfigParam('extensions'); + $extName = ltrim($extName, '+'); + if (isset($config[$extName])) { + foreach ($config[$extName] as $extensionName => $extOptions) { + $args = explode(' ', $extOptions); + $extensions[$extensionName] = $this->getExtConfig($args); + } + } else { + $this->logger->info('Extension set name not found. Have you configured it at the config.yaml file?'); + } + } else { + $args = array_slice(func_get_args(), 1); + $extensions[$extName] = $this->getExtConfig($args); + } + + $extensionList = new ExtensionList($this->logger, $this->options); + + $manager = new ExtensionManager($this->logger); + foreach ($extensions as $extensionName => $extConfig) { + $provider = $extensionList->exists($extensionName); + + if (!$provider) { + throw new Exception("Could not find provider for $extensionName."); + } + + $extensionName = $provider->getPackageName(); + $ext = ExtensionFactory::lookupRecursive($extensionName); + + $always_redownload = + $this->options->{'pecl'} || $this->options->{'redownload'} || (!$provider->isBundled($extensionName)); + + // Extension not found, use pecl to download it. + if (!$ext || $always_redownload) { + if (empty($extConfig->version)) { + $extConfig->version = $provider->getDefaultVersion(); + } + + $extensionDownloader = new ExtensionDownloader($this->logger, $this->options); + + $extensionDownloader->download($provider, $extConfig->version); + + // Reload the extension + if ($provider->shouldLookupRecursive()) { + $ext = ExtensionFactory::lookupRecursive($extensionName); + } else { + $ext = ExtensionFactory::lookup($extensionName); + } + + if ($ext) { + $extensionDownloader->renameSourceDirectory($ext); + } + } + if (!$ext) { + throw new Exception("$extensionName not found."); + } + $manager->installExtension($ext, $extConfig->options); + } + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/KnownCommand.php b/src/PhpBrew/Command/ExtensionCommand/KnownCommand.php new file mode 100644 index 000000000..146955434 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/KnownCommand.php @@ -0,0 +1,62 @@ +add('extensions') + ->suggestions(function () { + $extdir = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + + return array_filter( + scandir($extdir), + function ($d) use ($extdir) { + return $d != '.' && $d != '..' && is_dir($extdir . DIRECTORY_SEPARATOR . $d); + } + ); + }); + } + + public function execute($extensionName) + { + $extensionList = new ExtensionList($this->logger, $this->options); + + $provider = $extensionList->exists($extensionName); + + if ($provider) { + $extensionDownloader = new ExtensionDownloader($this->logger, $this->options); + $versionList = $extensionDownloader->knownReleases($provider); + $this->logger->info(PHP_EOL); + $this->logger->writeln(wordwrap(implode(', ', $versionList), 80, PHP_EOL)); + } else { + $this->logger->info("Can not determine host or unsupported of $extensionName " . PHP_EOL); + } + } +} diff --git a/src/PhpBrew/Command/ExtensionCommand/ShowCommand.php b/src/PhpBrew/Command/ExtensionCommand/ShowCommand.php new file mode 100644 index 000000000..9b9b49d55 --- /dev/null +++ b/src/PhpBrew/Command/ExtensionCommand/ShowCommand.php @@ -0,0 +1,103 @@ +add('download', 'Download the extension source if extension not found.'); + } + + public function arguments($args) + { + $args->add('extension') + ->suggestions(function () { + $extdir = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + + return array_filter( + scandir($extdir), + function ($d) use ($extdir) { + return $d != '.' && $d != '..' && is_dir($extdir . DIRECTORY_SEPARATOR . $d); + } + ); + }); + } + + public function describeExtension(Extension $ext) + { + $info = array( + 'Name' => $ext->getExtensionName(), + 'Source Directory' => $ext->getSourceDirectory(), + 'Config' => $ext->getConfigM4Path(), + 'INI File' => $ext->getConfigFilePath(), + 'Extension' => ($ext instanceof PeclExtension) ? 'Pecl' : 'Core', + 'Zend' => $ext->isZend() ? 'yes' : 'no', + 'Loaded' => (extension_loaded($ext->getExtensionName()) + ? $this->formatter->format('yes', 'green') + : $this->formatter->format('no', 'red')), + ); + + foreach ($info as $label => $val) { + $this->logger->writeln(sprintf('%20s: %s', $label, $val)); + } + + $options = $ext->getConfigureOptions(); + if (!empty($options)) { + $this->logger->newline(); + $this->logger->writeln(sprintf('%20s: ', 'Configure Options')); + $this->logger->newline(); + foreach ($options as $option) { + $this->logger->writeln(sprintf( + ' %-32s %s', + $option->option . ($option->valueHint ? '[=' . $option->valueHint . ']' : ''), + $option->desc + )); + $this->logger->newline(); + } + } + } + + public function execute($extensionName) + { + $ext = ExtensionFactory::lookup($extensionName); + + if (!$ext) { + $ext = ExtensionFactory::lookupRecursive($extensionName); + } + + // Extension not found, use pecl to download it. + if (!$ext && $this->options->{'download'}) { + $extensionList = new ExtensionList(); + // initial local list + $extensionList->initLocalExtensionList($this->logger, $this->options); + + $hosting = $extensionList->exists($extensionName); + + $downloader = new ExtensionDownloader($this->logger, $this->options); + $extDir = $downloader->download($hosting, 'latest'); + // Reload the extension + $ext = ExtensionFactory::lookupRecursive($extensionName, array($extDir)); + } + if (!$ext) { + throw new Exception("$extensionName extension not found."); + } + $this->describeExtension($ext); + } +} diff --git a/src/PhpBrew/Command/FpmCommand.php b/src/PhpBrew/Command/FpmCommand.php new file mode 100644 index 000000000..32af352a9 --- /dev/null +++ b/src/PhpBrew/Command/FpmCommand.php @@ -0,0 +1,21 @@ +command('restart'); + $this->command('setup'); + $this->command('start'); + $this->command('stop'); + } +} diff --git a/src/PhpBrew/Command/FpmCommand/RestartCommand.php b/src/PhpBrew/Command/FpmCommand/RestartCommand.php new file mode 100644 index 000000000..aa98ad0ef --- /dev/null +++ b/src/PhpBrew/Command/FpmCommand/RestartCommand.php @@ -0,0 +1,13 @@ +]'; + } + + public function options($opts) + { + $opts->add( + 'systemctl', + "Generate systemd service entry. " . + "This option only works for systemd-based Linux. " . + "To use this option, be sure to compile PHP with --with-fpm-systemd option. " . + "Start from 1.22, phpbrew automatically add --with-fpm-systemd when systemd is detected." + ); + $opts->add( + 'initd', + 'Generate init.d script. ' . + 'The generated init.d script depends on lsb-base >= 4.0. ' . + 'If initctl is based on upstart, the init.d script will not be executed. ' . + 'To check, please run /sbin/initctl --version in the command-line.' + ); + $opts->add('launchctl', 'Generate plist for launchctl (OS X)'); + $opts->add('stdout', 'Print config to STDOUT instead of writing to the file.'); + } + + public function arguments($args) + { + $args->add('buildName')->optional(); + } + + public function execute($buildName = null) + { + if (!$buildName) { + $buildName = Config::getCurrentPhpName(); + } + if (!$buildName) { + throw new Exception("PHPBREW_PHP is not set. You should provide the build name in the command."); + } + + fprintf( + STDERR, + "*WARNING* php-fpm --pid option requires php >= 5.6. " + . "You need to update your php-fpm.conf for the pid file location." . PHP_EOL + ); + + $root = Config::getRoot(); + $fpmBin = "$root/php/$buildName/sbin/php-fpm"; + + if (!file_exists($fpmBin)) { + throw new Exception("$fpmBin doesn't exist."); + } + + // TODO: require sudo permission + if ($this->options->systemctl) { + $content = $this->generateSystemctlService($buildName, $fpmBin); + + if ($this->options->stdout) { + echo $content; + return; + } + + $file = '/lib/systemd/system/phpbrew-fpm.service'; + if (!is_writable(dirname($file))) { + $this->logger->error("$file is not writable."); + return; + } + + $this->logger->info("Writing systemctl service entry: $file"); + file_put_contents($file, $content); + + $this->logger->info("To reload systemctl service:"); + $this->logger->info(" systemctl daemon-reload"); + + $this->logger->info("Ensure that $buildName was built with --fpm-systemd option"); + } elseif ($this->options->initd) { + $content = $this->generateInitD($buildName, $fpmBin); + + if ($this->options->stdout) { + echo $content; + return; + } + + $file = '/etc/init.d/phpbrew-fpm'; + if (!is_writable(dirname($file))) { + $this->logger->error("$file is not writable."); + return; + } + + $this->logger->info("Writing init.d script: $file"); + file_put_contents($file, $content); + chmod($file, 0755); // make it executable + + $this->logger->info("To setup the startup item, remember to run update-rc.d to link the init script:"); + $this->logger->info(" sudo update-rc.d phpbrew-fpm defaults"); + } elseif ($this->options->launchctl) { + $content = $this->generateLaunchctlService($buildName, $fpmBin); + + if ($this->options->stdout) { + echo $content; + return; + } + + $file = '/Library/LaunchDaemons/org.phpbrew.fpm.plist'; + if (!is_writable(dirname($file))) { + $this->logger->error("$file is not writable."); + return; + } + + $this->logger->info("Writing launchctl plist file: $file"); + file_put_contents($file, $content); + + $this->logger->info("To load the service:"); + $this->logger->info(" sudo launchctl load $file"); + } else { + $this->logger->info( + 'Please use one of the options [--systemctl, --initd, --launchctl] to setup system fpm service.' + ); + } + } + + protected function generateLaunchctlService($buildName, $fpmBin) + { + $root = Config::getRoot(); + $phpdir = "$root/php/$buildName"; + $config = <<<"EOS" + + + + + KeepAlive + + Label + org.phpbrew.fpm + ProgramArguments + + $fpmBin + --nodaemonize + --php-ini + $phpdir/etc/php.ini + --fpm-config + $phpdir/etc/php-fpm.conf + + RunAtLoad + + LaunchOnlyOnce + + + +EOS; + return $config; + } + + + protected function generateSystemctlService($buildName, $fpmBin) + { + $root = Config::getRoot(); + $phpdir = "$root/php/$buildName"; + $pidFile = $phpdir . '/var/run/php-fpm.pid'; + $config = <<<"EOS" +[Unit] +Description=The PHPBrew FastCGI Process Manager +After=network.target + +[Service] +Type=notify +PIDFile=$pidFile +ExecStart=$fpmBin --nodaemonize --fpm-config $phpdir/etc/php-fpm.conf --pid $pidFile +ExecReload=/bin/kill -USR2 \$MAINPID + +[Install] +WantedBy=multi-user.target +EOS; + return $config; + } + + + protected function generateInitD($buildName, $fpmBin) + { + $root = Config::getRoot(); + $phpdir = "$root/php/$buildName"; + $pidFile = $phpdir . '/var/run/php-fpm.pid'; + $config = <<<"EOS" +#!/bin/sh +### BEGIN INIT INFO +# Provides: phpbrew-fpm +# Required-Start: \$remote_fs \$network +# Required-Stop: \$remote_fs \$network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: starts phpbrew-fpm +# Description: Starts The PHP FastCGI Process Manager Daemon +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="PHPBrew FastCGI Process Manager" +NAME=phpbrew-fpm +PHP_VERSION=$buildName +PHPBREW_ROOT=$root +CONFFILE=$phpdir/etc/php-fpm.conf +DAEMON=$fpmBin +DAEMON_ARGS="--daemonize --fpm-config \$CONFFILE --pid $pidFile" +PIDFILE=$pidFile +TIMEOUT=30 +SCRIPTNAME=/etc/init.d/\$NAME + +# Exit if the package is not installed +[ -x "\$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/\$NAME ] && . /etc/default/\$NAME + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function to check the correctness of the config file +# +do_check() +{ + # FIXME + # /usr/lib/php/phpbrew-fpm-checkconf || return 1 + return 0 +} + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile \$PIDFILE --exec \$DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile \$PIDFILE --exec \$DAEMON -- \ + \$DAEMON_ARGS 2>/dev/null \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=QUIT/\$TIMEOUT/TERM/5/KILL/5 --pidfile \$PIDFILE --name \$NAME + RETVAL="\$?" + [ "\$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/TERM/5/KILL/5 --exec \$DAEMON + [ "\$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f \$PIDFILE + return "\$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal USR2 --quiet --pidfile \$PIDFILE --name \$NAME + return 0 +} + +do_tmpfiles() { + local type path mode user group + + [ "\$1" != no ] && V=-v + + TMPFILES=/usr/lib/tmpfiles.d/phpbrew-fpm.conf + + if [ -r "\$TMPFILES" ]; then + while read type path mode user group age argument; do + if [ "\$type" = "d" ]; then + mkdir \$V -p "\$path" + chmod \$V "\$mode" "\$path" + chown \$V "\$user:\$group" "\$path" + fi + done < "\$TMPFILES" + fi +} + +case "\$1" in + start) + if init_is_upstart; then + exit 1 + fi + [ "\$VERBOSE" != no ] && log_daemon_msg "Starting \$DESC" "\$NAME" + do_tmpfiles \$VERBOSE + do_check \$VERBOSE + case "\$?" in + 0) + do_start + case "\$?" in + 0|1) [ "\$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "\$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + 1) [ "\$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + if init_is_upstart; then + exit 0 + fi + [ "\$VERBOSE" != no ] && log_daemon_msg "Stopping \$DESC" "\$NAME" + do_stop + case "\$?" in + 0|1) [ "\$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "\$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "\$DAEMON" "\$NAME" && exit 0 || exit \$? + ;; + check) + do_check yes + ;; + reload|force-reload) + if init_is_upstart; then + exit 1 + fi + log_daemon_msg "Reloading \$DESC" "\$NAME" + do_reload + log_end_msg \$? + ;; + reopen-logs) + log_daemon_msg "Reopening \$DESC logs" \$NAME + if start-stop-daemon --stop --signal USR1 --oknodo --quiet \ + --pidfile \$PIDFILE --exec \$DAEMON + then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart) + if init_is_upstart; then + exit 1 + fi + log_daemon_msg "Restarting \$DESC" "\$NAME" + do_stop + case "\$?" in + 0|1) + do_start + case "\$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: \$SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac +: +EOS; + return $config; + } +} diff --git a/src/PhpBrew/Command/FpmCommand/StartCommand.php b/src/PhpBrew/Command/FpmCommand/StartCommand.php new file mode 100644 index 000000000..8a0e5acc6 --- /dev/null +++ b/src/PhpBrew/Command/FpmCommand/StartCommand.php @@ -0,0 +1,13 @@ +logger->write($this->formatter->format($headline, 'strong_white')); + } + + // Compatibility: Calling parent::method by call_user_func_array is only supported from 5.3.0 + return call_user_func_array(array($this, 'parent::execute'), func_get_args()); + } +} diff --git a/src/PhpBrew/Command/InfoCommand.php b/src/PhpBrew/Command/InfoCommand.php index 3b00bfef8..d0d377830 100644 --- a/src/PhpBrew/Command/InfoCommand.php +++ b/src/PhpBrew/Command/InfoCommand.php @@ -1,80 +1,85 @@ logger->formatter; - echo $f->format( $text . "\n" , 'strong_white' ); + return 'phpbrew info'; } - public function execute() { - $this->header( 'Version' ); - echo "PHP-" , phpversion(), "\n\n"; + $this->logger->warn( + 'The info command is deprecated and will be removed in the future.' . PHP_EOL + . 'Please use `php -ini` instead.' + ); - $this->header( 'Constants' ); - $consts = get_defined_constants(); - - echo "PHP Prefix: " , $consts['PHP_PREFIX'] , "\n"; - echo "PHP Binary: " , $consts['PHP_BINARY'] , "\n"; - echo "PHP Default Include path: " , $consts['DEFAULT_INCLUDE_PATH'] , "\n"; - echo "PHP Include path: ", get_include_path() , "\n"; - echo "\n"; + echo <<<'EOF' +header( 'General Info' ); - phpinfo(INFO_GENERAL); - echo "\n"; +echo "Constants", PHP_EOL; +$constants = get_defined_constants(); +if (defined('PHP_PREFIX')) { + echo 'PHP Prefix: ', PHP_PREFIX, PHP_EOL; +} - $this->header( 'Extensions' ); - - $extensions = get_loaded_extensions(); - $this->logger->info( join( ', ', $extensions ) ); +if (defined('PHP_BINARY')) { + echo 'PHP Binary: ', PHP_BINARY, PHP_EOL; +} - echo "\n"; +if (defined('DEFAULT_INCLUDE_PATH')) { + echo 'PHP Default Include path: ', DEFAULT_INCLUDE_PATH, PHP_EOL; +} - $this->header( 'Database Extensions' ); - foreach( array_filter($extensions, function($n) { return - in_array($n,array( +echo 'PHP Include path: ', get_include_path(), PHP_EOL, PHP_EOL; + +echo "General Info", PHP_EOL; +phpinfo(INFO_GENERAL); +echo PHP_EOL; + +echo "Extensions", PHP_EOL; +$extensions = get_loaded_extensions(); +echo implode(', ', $extensions), PHP_EOL; +echo PHP_EOL; + +echo "Database Extensions", PHP_EOL; +foreach ( + array_filter( + $extensions, + function ($n) { + return in_array( + $n, + array( 'PDO', - 'pdo_mysql', - 'pdo_pgsql', - 'pdo_sqlite', + 'pdo_mysql', + 'pdo_pgsql', + 'pdo_sqlite', 'pgsql', 'mysqli', 'mysql', 'oci8', 'sqlite3', - 'mysqlnd' - )); }) as $extname ) { - $this->logger->info( $extname, 1 ); + 'mysqlnd', + ) + ); } - - + ) as $extName +) { + echo $extName, PHP_EOL; +} +EOF; } } - - - diff --git a/src/PhpBrew/Command/InitCommand.php b/src/PhpBrew/Command/InitCommand.php index 6b00ce86f..992f9de13 100644 --- a/src/PhpBrew/Command/InitCommand.php +++ b/src/PhpBrew/Command/InitCommand.php @@ -1,45 +1,108 @@ add( + 'c|config:', + 'The YAML config file which should be copied into phpbrew home.' . + 'The config file is used for creating custom virtual variants. ' . + 'For more details, please see https://github.com/phpbrew/phpbrew/wiki/Setting-up-Configuration' + )->isa('file'); + + $opts->add( + 'root:', + 'Override the default PHPBREW_ROOT path setting.' . + 'This option is usually used to load system-wide build pool. ' . + 'e.g. phpbrew init --root=/opt/phpbrew ' + )->isa('dir'); + } public function execute() { // $currentVersion; - $root = Config::getPhpbrewRoot(); - $home = Config::getPhpbrewHome(); + $root = $this->options->root ?: Config::getRoot(); + $home = Config::getHome(); $buildDir = Config::getBuildDir(); - $buildPrefix = Config::getBuildPrefix(); - // $versionBuildPrefix = Config::getVersionBuildPrefix($version); + $buildPrefix = Config::getInstallPrefix(); + // $versionBuildPrefix = Config::getVersionInstallPrefix($version); // $versionBinPath = Config::getVersionBinPath($version); - if ( ! file_exists($root) ) { - mkdir( $root, 0755, true ); - } - if ( ! file_exists($home) ) { - mkdir( $home, 0755, true ); - } - if ( ! file_exists($buildPrefix) ) { - mkdir( $buildPrefix, 0755, true ); + $this->logger->info("Using root: $root"); + if (!file_exists($root)) { + mkdir($root, 0755, true); } - if ( ! file_exists($buildDir) ) { - mkdir( $buildDir, 0755, true ); + + $paths = array(); + $paths[] = $home; + $paths[] = $root; + $paths[] = $buildDir; + $paths[] = $buildPrefix; + foreach ($paths as $p) { + $this->logger->debug("Checking directory $p"); + if (!file_exists($p)) { + $this->logger->debug("Creating directory $p"); + mkdir($p, 0755, true); + } else { + $this->logger->debug("Directory $p is already created."); + } } - // write init script to phpbrew home - $bashScript = $home . DIRECTORY_SEPARATOR . 'bashrc'; + $this->logger->debug('Creating .metadata_never_index to prevent SpotLight indexing'); + $indexFiles = array( + $root . DIRECTORY_SEPARATOR . '.metadata_never_index', + $home . DIRECTORY_SEPARATOR . '.metadata_never_index', + ); + foreach ($indexFiles as $indexFile) { + if (!file_exists($indexFile)) { + touch($indexFile); // prevent spotlight index here + } + } - // $initScript = $root . DIRECTORY_SEPARATOR . 'init'; - file_put_contents( $bashScript , $this->getBashScript() ); + if ($configFile = $this->options->{'config'}) { + if (!file_exists($configFile)) { + $this->logger->error("config file '$configFile' does not exist."); - echo <<logger->debug("Using yaml config from '$configFile'"); + copy($configFile, $root . DIRECTORY_SEPARATOR . 'config.yaml'); + } - $home + $this->logger->writeln($this->formatter->format('Initialization successfully finished!', 'strong_green')); + $this->logger->writeln( + $this->formatter->format( + '<=====================================================>', + 'strong_white' + ) + ); + + // write bashrc script to phpbrew home + file_put_contents($home . '/bashrc', $this->getBashScriptPath()); + // write phpbrew.fish script to phpbrew home + file_put_contents($home . '/phpbrew.fish', $this->getFishScriptPath()); + + if (strpos(getenv('SHELL'), 'fish') !== false) { + $initConfig = <</dev/null) ]] && unalias php 2> /dev/null - - if [[ -n $PHPBREW_ROOT ]] ; then - export PATH_WITHOUT_PHPBREW=$(perl -e 'print join ":", grep { index($_,$ENV{PHPBREW_ROOT}) } split/:/,$ENV{PATH};') - fi - - if [[ -z "$PHPBREW_PATH" ]] - then - export PATH=$PHPBREW_BIN:$PATH_WITHOUT_PHPBREW - else - export PATH=$PHPBREW_PATH:$PHPBREW_BIN:$PATH_WITHOUT_PHPBREW - fi - # echo "PATH => $PATH" -} +$initConfig -function __phpbrew_update_config () -{ - local VERSION=$1 - echo '# DO NOT EDIT THIS FILE' >| "$PHPBREW_HOME/init" - command $BIN env $VERSION >> "$PHPBREW_HOME/init" - . "$PHPBREW_HOME/init" -} +For further instructions, simply run `phpbrew` to see the help message. -function __phpbrew_reinit () -{ - if [[ $1 =~ ^php- ]] - then - local _PHP_VERSION=$1 - else - local _PHP_VERSION="php-$1" - fi - if [[ ! -d "$PHPBREW_HOME" ]] - then - mkdir -p -p "$PHPBREW_HOME" - fi - __phpbrew_update_config $_PHP_VERSION - __phpbrew_set_path -} +Enjoy phpbrew at \$HOME!! -function __phpbrew_remove_purge () -{ - if [[ $1 =~ ^php- ]] - then - _PHP_VERSION=$1 - else - _PHP_VERSION="php-$1" - fi - - if [[ "$_PHP_VERSION" = "$PHPBREW_PHP" ]] - then - echo "php version: $_PHP_VERSION is already in used." - return 1 - fi - - _PHP_BIN_PATH=$PHPBREW_HOME/php/$_PHP_VERSION - _PHP_SOURCE_FILE=$PHPBREW_HOME/build/$_PHP_VERSION.tar.bz2 - _PHP_BUILD_PATH=$PHPBREW_HOME/build/$_PHP_VERSION - - if [ -d $_PHP_BIN_PATH ]; then - - if [[ "$2" = "purge" ]] - then - rm -f $_PHP_SOURCE_FILE - rm -fr $_PHP_BUILD_PATH - rm -fr $_PHP_BIN_PATH - - echo "php version: $_PHP_VERSION is removed and purged." - else - rm -f $_PHP_SOURCE_FILE - rm -fr $_PHP_BUILD_PATH - - for FILE1 in $_PHP_BIN_PATH/* - do - if [[ "$FILE1" != "$_PHP_BIN_PATH/etc" ]] && [[ "$FILE1" != "$_PHP_BIN_PATH/var" ]] - then - rm -fr $FILE1; - fi - done - - echo "php version: $_PHP_VERSION is removed." - fi - - else - echo "php version: $_PHP_VERSION not installed." - fi - - return 0 -} EOS; -// SHBLOCK }}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + $this->logger->writeln( + $this->formatter->format( + '<=====================================================>', + 'strong_white' + ) + ); + } + protected function getCurrentShellDirectory() + { + $path = Phar::running(); + if ($path) { + $path = $path . DIRECTORY_SEPARATOR . 'shell'; + } else { + $path = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'shell'; + } + return $path; + } + protected function getBashScriptPath() + { + $path = $this->getCurrentShellDirectory(); + return file_get_contents($path . DIRECTORY_SEPARATOR . 'bashrc'); + } + protected function getFishScriptPath() + { + $path = $this->getCurrentShellDirectory(); + return file_get_contents($path . DIRECTORY_SEPARATOR . 'phpbrew.fish'); } } diff --git a/src/PhpBrew/Command/InstallCommand.php b/src/PhpBrew/Command/InstallCommand.php index e09e17cc9..1193e61d1 100644 --- a/src/PhpBrew/Command/InstallCommand.php +++ b/src/PhpBrew/Command/InstallCommand.php @@ -1,249 +1,762 @@ add('version')->suggestions(function () { + $releaseList = ReleaseList::getReadyInstance(); + $releases = $releaseList->getReleases(); + + $collection = new ValueCollection(); + foreach ($releases as $major => $versions) { + $collection->group($major, "PHP $major", array_keys($versions)); + } + + $collection->group('pseudo', 'pseudo', array('latest', 'next')); + + return $collection; + }); + $args->add('variants')->multiple()->suggestions(function () { + $variants = new VariantBuilder(); + $list = $variants->getVariantNames(); + sort($list); + + return array_map(function ($n) { + return '+' . $n; + }, $list); + }); + } + + public function parseSemanticOptions(array &$args) + { + $settings = array(); + + $definitions = array( + 'as' => '*', + 'like' => '*', + 'using' => '*+', + ); + + // XXX: support 'using' + foreach ($definitions as $k => $requirement) { + $idx = array_search($k, $args); + + if ($idx !== false) { + if ($requirement == '*') { + // Find the value next to the position + list($key, $val) = array_splice($args, $idx, 2); + $settings[$key] = $val; + } elseif ($requirement == '*+') { + $values = array_splice($args, $idx, 2); + $key = array_shift($values); + $settings[$key] = $values; + } + } + } + + return $settings; + } + + /** + * @param OptionCollection $opts + */ public function options($opts) { - $opts->add('test','run tests'); - $opts->add('name:','prefix name'); - $opts->add('clean','Run make clean before building.'); - $opts->add('post-clean','Run make clean after building PHP.'); - $opts->add('production','Use production configuration'); - $opts->add('n|nice:', 'process nice level'); - $opts->add('patch:', 'apply patch before build'); - $opts->add('old','install old phps (less than 5.3)'); - $opts->add('f|force','force'); + $opts->add('test', 'Run tests after the installation.'); + + $opts->add( + 'name:', + 'The name of the installation. ' + . 'By default the installed path is equal to the release version name (php-5.x.x), ' + . 'however you can specify a custom name instead of the default `php-5.x.x`. For example, `myphp-5.3.2-dbg`' + ) + ->valueName('name'); + + $opts->add('post-clean', 'Run make clean after the installation.'); + + $opts->add( + 'production', + 'Use production configuration file. this installer will copy the php-production.ini into the etc directory.' + ); + + $opts->add('build-dir:', 'Specify the build directory. ' + . 'the distribution tarball will be extracted to the directory you specified ' + . 'instead of $PHPBREW_ROOT/build/{name}.') + ->isa('dir') + ; + + $opts->add('root', 'Specify PHPBrew root instead of PHPBREW_ROOT'); + + $opts->add('home', 'Specify PHPBrew home instead of PHPBREW_HOME'); + + $opts->add('no-config-cache', 'Do not use config.cache for configure script.'); + + $opts->add('no-clean', 'Do not clean previously compiled objects before building PHP. ' + . 'By default phpbrew will run `make clean` before running the configure script ' + . 'to ensure everything is cleaned up.') + ; + + $opts->add('no-patch', 'Do not apply any patch'); + + $opts->add('no-configure', 'Do not run configure script'); + + $opts->add('no-install', 'Do not install, just run build the target'); + + $opts->add( + 'n|nice:', + 'Runs build processes at an altered scheduling priority. ' + . 'The priority can be adjusted over a range of -20 (the highest) to 20 (the lowest).' + ) + ->valueName('priority'); + + $opts->add('patch+:', 'Apply patch before build.') + ->isa('file'); + + $opts->add('old', 'Install phpbrew incompatible phps (< 5.3)'); + + $opts->add('user-config', 'Allow users create their own config file (php.ini or extension config init files)'); + + DownloadFactory::addOptionsForCommand($opts); + + $opts->add('f|force', 'Force the installation (redownloads source).') + ->defaultValue(false) + ; + + $opts->add('d|dryrun', 'Do not build, but run through all the tasks.'); + + $opts->add( + 'like:', + 'Inherit variants from an existing build. ' + . 'This option would require an existing build directory from the {version}.' + ) + ->valueName('version'); + + $opts->add('j|jobs:', 'Specifies the number of jobs to run build simultaneously (make -jN).') + ->valueName('concurrent job number') + ; + $opts->add('stdout', 'Outputs install logs to stdout.'); + + $opts->add('sudo', 'sudo to run install command.'); } public function execute($version) { - if( ! preg_match('/^php-/', $version) ) - $version = 'php-' . $version; + if (extension_loaded('posix') && posix_getuid() === 0) { + $this->logger->warn( + "*WARNING* You're running phpbrew as root/sudo. Unless you're going to install " + . "system-wide phpbrew, this might cause problems." + ); + sleep(3); + } + $distUrl = null; + $versionInfo = array(); + $releaseList = ReleaseList::getReadyInstance($this->options); + $versionDslParser = new VersionDslParser(); + $clean = new MakeTask($this->logger, $this->options); + $clean->setQuiet(); + + if ($root = $this->options->root) { + Config::setPhpbrewRoot($root); + } + if ($home = $this->options->home) { + Config::setPhpbrewHome($home); + } - $options = $this->options; - $logger = $this->logger; + if ('latest' === strtolower($version)) { + $version = $releaseList->getLatestVersion(); + } + + // this should point to master or the latest version branch yet to be released + if ('next' === strtolower($version)) { + $version = 'github.com/php/php-src:master'; + } + + if ($info = $versionDslParser->parse($version)) { + $version = $info['version']; + $distUrl = $info['url']; + + // re-download when installing not from a tag + // beware to keep this behavior after clean up the TODO below + $this->options['force']->setValue( + empty($info['is_tag']) + ); + } else { + // TODO ↓ clean later ↓ d.d.d versions should be part of the DSL too + $version = preg_replace('/^php-/', '', $version); + $versionInfo = $releaseList->getVersion($version); + if (!$versionInfo) { + throw new Exception("Version $version not found."); + } + $version = $versionInfo['version']; + + $distUrlPolicy = new DistributionUrlPolicy(); + $distUrl = $distUrlPolicy->buildUrl($version, $versionInfo['filename'], $versionInfo['museum']); + } // get options and variants for building php + // and skip the first argument since it's the target version. $args = func_get_args(); - // the first argument is the target version. - array_shift($args); + array_shift($args); // shift the version name + + $semanticOptions = $this->parseSemanticOptions($args); + $buildAs = isset($semanticOptions['as']) ? $semanticOptions['as'] : $this->options->name; + $buildLike = isset($semanticOptions['like']) ? $semanticOptions['like'] : $this->options->like; + + // convert patch to realpath + if ($this->options->patch) { + $patchPaths = array(); + foreach ($this->options->patch as $patch) { + /* @var SplFileInfo $patch */ + $patchPath = realpath($patch); + if ($patchPath !== false) { + $patchPaths[(string) $patch] = $patchPath; + } + } + // rewrite patch paths + $this->options->keys['patch']->value = $patchPaths; + } + + // Initialize the build object, contains the information to build php. + $build = new Build($version, $buildAs); + + $installPrefix = Config::getInstallPrefix() . DIRECTORY_SEPARATOR . $build->getName(); + if (!file_exists($installPrefix)) { + if (!mkdir($installPrefix, 0755, true) && !is_dir($installPrefix)) { + throw new \RuntimeException(sprintf('Directory "%s" was not created', $installPrefix)); + } + } + $build->setInstallPrefix($installPrefix); - $name = $this->options->name ?: $version; + // find inherited variants + if ($buildLike) { + if ($parentBuild = Build::findByName($buildLike)) { + $this->logger->info("===> Loading build settings from $buildLike"); + $build->loadVariantInfo($parentBuild->settings->toArray()); + } + } + + $msg = "===> phpbrew will now build {$build->getVersion()}"; + if ($buildLike) { + $msg .= ' using variants from ' . $buildLike; + } + if (isset($semanticOptions['using'])) { + $msg .= ' plus custom variants: ' . implode(', ', $semanticOptions['using']); + $args = array_merge($args, $semanticOptions['using']); + } + if ($buildAs) { + $msg .= ' as ' . $buildAs; + } + $this->logger->info($msg); + + if (!empty($args)) { + $this->logger->debug("---> Parsing variants from command arguments '" . implode(' ', $args) . "'"); + } // ['extra_options'] => the extra options to be passed to ./configure command // ['enabled_variants'] => enabeld variants // ['disabled_variants'] => disabled variants $variantInfo = VariantParser::parseCommandArguments($args); + $build->loadVariantInfo($variantInfo); // load again + + // assume +default variant if no build config is given + if (!$variantInfo['enabled_variants']) { + $build->settings->enableVariant('default'); + $this->logger->notice( + "You haven't enabled any variants. The default variant will be enabled: " + ); + $builder = new VariantBuilder(); + $this->logger->notice('[' . implode(', ', $builder->virtualVariants['default']) . ']'); + $this->logger->notice("Please run 'phpbrew variants' for more information." . PHP_EOL); + } + if (preg_match('/5\.3\./', $version)) { + $this->logger->notice('PHP 5.3 requires +intl, enabled by default.'); + $build->enableVariant('intl'); + } - $info = PhpSource::getVersionInfo( $version, $this->options->old ); - if( ! $info) - throw new Exception("Version $version not found."); + // always add +xml by default unless --without-pear is present + // TODO: This can be done by "-pear" + if (!in_array('--without-pear', $variantInfo['extra_options'])) { + $build->enableVariant('xml'); + } - $prepare = new PrepareDirectoryTask($this->logger); - $prepare->prepareForVersion($version); + $this->logger->info('===> Loading and resolving variants...'); + $build->loadVariantInfo($variantInfo); + $prepareTask = new PrepareDirectoryTask($this->logger, $this->options); + $prepareTask->run($build); + // Move to to build directory, because we are going to download distribution. + $buildDir = $this->options->{'build-dir'} ?: Config::getBuildDir(); + if (!file_exists($buildDir)) { + if (!mkdir($buildDir, 0755, true) && !is_dir($buildDir)) { + throw new \RuntimeException(sprintf('Directory "%s" was not created', $buildDir)); + } + } + $parameters = new ConfigureParameters(); - // convert patch to realpath - if( $this->options->patch ) { - $patch = realpath($this->options->patch); - // rewrite patch path - $this->options->keys['patch']->value = $patch; + if (!$this->options->{'no-config-cache'}) { + $parameters = $parameters->withOption('--cache-file', Config::getCacheDir() . '/config.cache'); } - // Move to to build directory, because we are going to download distribution. - $buildDir = Config::getBuildDir(); - chdir($buildDir); + $prefix = $build->getInstallPrefix(); - $download = new DownloadTask($this->logger); - $targetDir = $download->downloadByVersionString($version, $this->options->old , $this->options->force ); + $parameters = $parameters + ->withOption('--prefix', $prefix); - if( ! file_exists($targetDir) ) { - throw new Exception("Download failed."); + // Options for specific versions + // todo: extract to BuildPlan class: PHP53 BuildPlan, PHP54 BuildPlan, PHP55 BuildPlan ? + if ($build->compareVersion('5.4') == -1) { + // copied from https://github.com/Homebrew/homebrew-php/blob/master/Formula/php53.rb + $parameters = $parameters + ->withOption('--enable-sqlite-utf8') + ->withOption('--enable-zend-multibyte'); + } elseif ($build->compareVersion('5.6') == -1) { + $parameters = $parameters->withOption('--enable-zend-signals'); } - // Change directory to the downloaded source directory. - chdir($targetDir); + $variantBuilder = new VariantBuilder(); + $parameters = $variantBuilder->build($build, $parameters); + + $pkgConfigPaths = getenv('PKG_CONFIG_PATH'); + if ($pkgConfigPaths !== '' && $pkgConfigPaths !== false) { + foreach (explode(PATH_SEPARATOR, $pkgConfigPaths) as $pkgConfigPath) { + $parameters = $parameters->withPkgConfigPath($pkgConfigPath); + } + } + + $distFileDir = Config::getDistFileDir(); + + $downloadTask = new DownloadTask($this->logger, $this->options); + $algo = 'md5'; + $hash = null; + if (isset($versionInfo['sha256'])) { + $algo = 'sha256'; + $hash = $versionInfo['sha256']; + } elseif (isset($versionInfo['md5'])) { + $algo = 'md5'; + $hash = $versionInfo['md5']; + } + $targetFilePath = $downloadTask->download($distUrl, $distFileDir, $algo, $hash); + if (!file_exists($targetFilePath)) { + throw new SystemCommandException("Download failed, $targetFilePath does not exist.", $build); + } + unset($downloadTask); + $extractTask = new ExtractTask($this->logger, $this->options); + $targetDir = $extractTask->extract($build, $targetFilePath, $buildDir); + if (!file_exists($targetDir)) { + throw new SystemCommandException("Extract failed, $targetDir does not exist.", $build); + } + unset($extractTask); - $buildPrefix = Config::getVersionBuildPrefix( $version ); + // Update build source directory + $this->logger->debug('Source Directory: ' . realpath($targetDir)); + $build->setSourceDirectory($targetDir); - if( ! file_exists($buildPrefix) ) { - mkdir($buildPrefix,0755,true); + if (!$this->options->{'no-clean'} && file_exists($targetDir . DIRECTORY_SEPARATOR . 'Makefile')) { + if ($build->isEnabledVariant('apxs2') || $build->isEnabledVariant('fpm')) { + $this->logger->info('You want to build several variants. No clean is not available.'); + } else { + $this->logger->info( + 'Found existing Makefile, running make clean to ensure everything will be rebuilt.' + ); + $this->logger->info( + "You can append --no-clean option after the install command if you don't want to rebuild." + ); + $clean->clean($build); + } } - // write variants info. - $variantInfoFile = $buildPrefix . DIRECTORY_SEPARATOR . 'phpbrew.variants'; + // Change directory to the downloaded source directory. + chdir($targetDir); + // Write variants info. + $variantInfoFile = $build->getInstallPrefix() . DIRECTORY_SEPARATOR . 'phpbrew.variants'; $this->logger->debug("Writing variant info to $variantInfoFile"); - file_put_contents($variantInfoFile, serialize($variantInfo)); + if (false === $build->writeVariantInfoFile($variantInfoFile)) { + $this->logger->warn("Can't store variant info."); + } + $targetPaths = array(); + if (!$this->options->{'no-configure'}) { + $options = $parameters->getOptions(); + // https://gist.github.com/tvlooy/953a7c0658e70b573ab4 + $sapis = array('cli' => array( + 'enable' => array('--enable-cli'), + 'disable' => array('--disable-cli') + )); + + if ($build->isEnabledVariant('apxs2')) { + $sapis['apache2'] = array( + 'enable' => array('--with-apxs2'), + 'disable' => array(), + ); + } + if ($build->isEnabledVariant('fpm')) { + $addedOptions = array('--enable-fpm'); + if (PHP_OS === 'Linux') { + $addedOptions[] = '--with-fpm-systemd'; + } + $sapis['fpm'] = array( + 'enable' => $addedOptions, + 'disable' => array(), + ); + } - // The build object, contains the information to build php. - $build = new Build; - $build->setName($name); - $build->setVersion($version); - $build->setInstallDirectory($buildPrefix); - $build->setSourceDirectory($targetDir); + foreach ($sapis as $sapi => $enableDisable) { + $this->logger->info('Running make clean to ensure everything will be rebuilt.'); + $clean->clean($build); + $addedOptions = $removedOptions = array(); - $builder = new Builder($targetDir, $version); - $builder->logger = $this->logger; - $builder->options = $this->options; + foreach ($sapis as $sapiName => $sapiEnableDisable) { + list($addedOptions, $removedOptions) = $this->enableDisable( + $parameters, + $sapiEnableDisable, + $sapiName === $sapi, + $options + ); + } - $this->logger->debug( 'Build Directory: ' . realpath($targetDir) ); + $parameters = $parameters + ->withOption('--with-config-file-path', $prefix . '/etc/' . $sapi) + ->withOption('--with-config-file-scan-dir', $prefix . '/var/db/' . $sapi); - foreach( $variantInfo['enabled_variants'] as $name => $value ) { - $build->enableVariant($name, $value); - } + $this->build($build, $parameters); + + foreach ($addedOptions as $addedOption) { + $parameters = $parameters->withoutOption($addedOption); + } + foreach ($removedOptions as $removedOption) { + $parameters = $parameters->withOption( + $removedOption, + array_key_exists($removedOption, $options) ? $options[$removedOption] : null + ); + } - foreach( $variantInfo['disabled_variants'] as $name => $value ) { - $build->disableVariant($name); - if($build->hasVariant($name) ) { - $this->logger->warn("Removing variant $name since we've disabled it from command."); - $build->removeVariant($name); + { + $buildTask = new BuildTask($this->logger, $this->options); + $buildTask->run($build); + unset($buildTask); // trigger __destruct + } + + if ($this->options->{'test'}) { + $testTask = new TestTask($this->logger, $this->options); + $testTask->run($build); + unset($testTask); // trigger __destruct + } + + if (!$this->options->{'no-install'}) { + $installTask = new InstallTask($this->logger, $this->options); + $installTask->install($build); + unset($installTask); // trigger __destruct + } + + if ($this->options->{'post-clean'}) { + $clean->clean($build); + } + + /* POST INSTALLATION **/ + { + $dsym = new DSymTask($this->logger, $this->options); + $dsym->patch($build, $this->options); + } + + $etcDirectory = $build->getEtcDirectory(); + + if ('fpm' === $sapi) { + // copy php-fpm config + $this->logger->info('---> Creating php-fpm.conf'); + $fpmUnixSocket = $build->getInstallPrefix() . "/var/run/php-fpm.sock"; + $this->installAs("$etcDirectory/php-fpm.conf.default", "$etcDirectory/php-fpm.conf"); + $this->installAs("$etcDirectory/php-fpm.d/www.conf.default", "$etcDirectory/php-fpm.d/www.conf"); + + $patchingFiles = array("$etcDirectory/php-fpm.d/www.conf", "$etcDirectory/php-fpm.conf"); + foreach ($patchingFiles as $patchingFile) { + if (file_exists($patchingFile)) { + $this->logger->info("---> Found $patchingFile"); + // Patch pool listen unix + // The original config was below: + // + // listen = 127.0.0.1:9000 + // + // See http://php.net/manual/en/install.fpm.configuration.php for more details + $ini = file_get_contents($patchingFile); + $this->logger->info("---> Patching default fpm pool listen path to $fpmUnixSocket"); + $ini = preg_replace('/^listen = .*$/m', "listen = $fpmUnixSocket" . PHP_EOL, $ini); + file_put_contents($patchingFile, $ini); + break; + } + } + } + + + $this->logger->info('---> Creating php.ini'); + $phpConfigPath = $build->getSourceDirectory() + . DIRECTORY_SEPARATOR . ($this->options->production ? 'php.ini-production' : 'php.ini-development'); + $this->logger->info("---> Copying $phpConfigPath "); + + if (file_exists($phpConfigPath) && !$this->options->dryrun) { + $targetConfigPath = $this->makeIniFile($build, $etcDirectory, $phpConfigPath, $sapi); + $targetPaths[] = ' ' . $targetConfigPath; + } } } - $build->setExtraOptions( $variantInfo['extra_options'] ); - if( $options->clean ) { - $clean = new CleanTask($this->logger); - $clean->cleanByVersion($version); + if ($build->isEnabledVariant('pear')) { + $this->logger->info('Initializing pear config...'); + $home = Config::getHome(); + + @mkdir("$home/tmp/pear/temp", 0755, true); + @mkdir("$home/tmp/pear/cache_dir", 0755, true); + @mkdir("$home/tmp/pear/download_dir", 0755, true); + + system("pear config-set temp_dir $home/tmp/pear/temp"); + system("pear config-set cache_dir $home/tmp/pear/cache_dir"); + system("pear config-set download_dir $home/tmp/pear/download_dir"); + + $this->logger->info('Enabling pear auto-discover...'); + system('pear config-set auto_discover 1'); } - $buildLogFile = Config::getVersionBuildLogPath( $version ); + $this->logger->debug('Source directory: ' . $targetDir); + + $buildName = $build->getName(); + + $this->logger->info("Congratulations! Now you have PHP with $version as $buildName"); - // we should only run configure after cleaning files (?) - $builder->configure($build); + if ($build->isEnabledVariant('pdo') && $build->isEnabledVariant('mysql')) { + echo <<logger); - $buildTask->setLogPath($buildLogFile); - $buildTask->build(); +* We found that you enabled 'mysql' variant, you might need to setup your + 'pdo_mysql.default_socket' or 'mysqli.default_socket' in your php.ini file. - if( $options->{'test'} ) { - $test = new TestTask($this->logger); - $test->setLogPath($buildLogFile); - $test->test(); +EOT; } - $install = new InstallTask($this->logger); - $install->setLogPath($buildLogFile); - $install->install(); + if (count($targetPaths)) { + $targetConfigPaths = implode(PHP_EOL, $targetPaths); + + echo <<{'post-clean'} ) { - $clean = new CleanTask($this->logger); - $clean->cleanByVersion($version); +* To configure your installed PHP further, you can edit the config file(s) at +$targetConfigPaths + +EOT; } - /** POST INSTALLATION **/ + // If the bashrc file is not found, it means 'init' command didn't get + // a chance to be executed. + if (!file_exists(Config::getHome() . DIRECTORY_SEPARATOR . 'bashrc')) { + echo <<logger->info("---> Moving php.dSYM to php "); - $php = $buildPrefix . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'php'; - rename( $dSYM , $php ); +EOT; } - if ( ! file_exists( Config::getVersionEtcPath($version) ) ) { - $this->logger->info("---> Preparing config directory..."); - mkdir( Config::getVersionEtcPath($version) , 0755 , true ); + // If the environment variable is not defined, it means users didn't + // setup ther .bashrc or .zshrc + if (!getenv('PHPBREW_HOME')) { + echo <<logger->info("---> Creating php-fpm.conf"); - $phpfpmConfigPath = "sapi/fpm/php-fpm.conf"; - $phpfpmTargetConfigPath = Config::getVersionEtcPath($version) . DIRECTORY_SEPARATOR . 'php-fpm.conf'; - if ( file_exists($phpfpmConfigPath) ) { - if ( ! file_exists( $phpfpmTargetConfigPath ) ) { - copy($phpfpmConfigPath, $phpfpmTargetConfigPath); + $ phpbrew switch $buildName + +Enjoy! + +EOT; + } + + + protected function installAs($source, $target, $override = false) + { + if (file_exists($source)) { + if ($override || !file_exists($target)) { + return copy($source, $target); } else { - $this->logger->notice("Found existing $phpfpmTargetConfigPath."); + $this->logger->notice("Found existing $target."); + return false; } } + } + + /** + * @param Build $build + * @param string $etcDirectory + * @param string $phpConfigPath + * @param string $sapi + * @return string + */ + private function makeIniFile(Build $build, $etcDirectory, $phpConfigPath, $sapi) + { + $sapiEtcDirectory = $etcDirectory . DIRECTORY_SEPARATOR . $sapi; + if (!is_dir($sapiEtcDirectory) && mkdir($sapiEtcDirectory) && !is_dir($sapiEtcDirectory)) { + $this->logger->error("Can't create config directory " . $sapiEtcDirectory); + } + $extensionsConfig = $etcDirectory . '/../var/db/' . $sapi; + if (!is_dir($extensionsConfig) && mkdir($extensionsConfig, 0777, true) && !is_dir($extensionsConfig)) { + $this->logger->error("Can't create config directory " . $sapiEtcDirectory); + } + $targetConfigPath = $sapiEtcDirectory . DIRECTORY_SEPARATOR . 'php.ini'; - $phpConfigPath = $options->production ? 'php.ini-production' : 'php.ini-development'; - $this->logger->info("---> Copying $phpConfigPath "); - if( file_exists($phpConfigPath) ) { - $targetConfigPath = Config::getVersionEtcPath($version) . DIRECTORY_SEPARATOR . 'php.ini'; - if( file_exists($targetConfigPath) ) { - $this->logger->notice("Found existing $targetConfigPath."); - } else { + if (file_exists($targetConfigPath)) { + $this->logger->notice("Found existing $targetConfigPath."); + } else { + // TODO: Move this to PhpConfigPatchTask + // move config file to target location + copy($phpConfigPath, $targetConfigPath); + } - // TODO: Move this to PhpConfigPatchTask - // move config file to target location - copy( $phpConfigPath , $targetConfigPath ); + if (!$this->options->{'no-patch'}) { + $config = parse_ini_file($targetConfigPath, true); + $configContent = file_get_contents($targetConfigPath); + + if (!isset($config['date']['timezone'])) { + $this->logger->info('---> Found date.timezone is not set, patching...'); + + // Replace current timezone + if ($timezone = ini_get('date.timezone')) { + $this->logger->info("---> Found date.timezone, patching config timezone with $timezone"); + $configContent = preg_replace( + '/^;?date.timezone\s*=\s*.*/im', + "date.timezone = $timezone", + $configContent + ); + } + } - // replace current timezone - $timezone = ini_get('date.timezone'); + if (!isset($config['phar']['readonly'])) { $pharReadonly = ini_get('phar.readonly'); - if( $timezone || $pharReadonly ) { - // patch default config - $content = file_get_contents($targetConfigPath); - if( $timezone ) { - $this->logger->info("---> Found date.timezone, patch config timezone with $timezone"); - $content = preg_replace( '/^date.timezone\s*=\s*.*/im', "date.timezone = $timezone" , $content ); - } - if( ! $pharReadonly ) { - $this->logger->info("---> Disable phar.readonly option."); - $content = preg_replace( '/^phar.readonly\s*=\s*.*/im', "phar.readonly = 0" , $content ); - } - file_put_contents($targetConfigPath, $content); - + // 0 or "" means readonly is disabled manually + if (!$pharReadonly) { + $this->logger->info('---> Disabling phar.readonly option.'); + $configContent = preg_replace( + '/^;?phar.readonly\s*=\s*.*/im', + 'phar.readonly = 0', + $configContent + ); } + } + // turn off detect_encoding for 5.3 + if ($build->compareVersion('5.4') < 0) { + $this->logger->info("---> Turn off detect_encoding for php 5.3.*"); + $configContent = $configContent . PHP_EOL . "detect_unicode = Off" . PHP_EOL; } + + file_put_contents($targetConfigPath, $configContent); } - $this->logger->info("Source directory: " . $targetDir ); + return $targetConfigPath; + } - $this->logger->info("Congratulations! Now you have PHP with $version."); + private function build(Build $build, ConfigureParameters $parameters) + { + $configureTask = new BeforeConfigureTask($this->logger, $this->options); + $configureTask->run($build, $parameters); + unset($configureTask); // trigger __destruct - echo <<logger, $this->options); + $configureTask->run($build, $parameters); + unset($configureTask); // trigger __destruct - $ phpbrew use $version + $configureTask = new AfterConfigureTask($this->logger, $this->options); + $configureTask->run($build); + unset($configureTask); // trigger __destruct + } -Or you can use switch command to switch your default php version to $version: + /** + * @param ConfigureParameters $parameters + * @param array $sapiSettings + * @param bool $currentSapi + * @param array $defaults + * + * @return array + */ + private function enableDisable(&$parameters, $sapiSettings, $currentSapi, $defaults) + { + $addedOptions = $removedOptions = array(); - $ phpbrew switch $version + $enableOptions = $currentSapi ? $sapiSettings['enable'] : $sapiSettings['disable']; + $disableOptions = $currentSapi ? $sapiSettings['disable'] : $sapiSettings['enable']; -Enjoy! -EOT; + foreach ($enableOptions as $configOption) { + $addedOptions[] = $configOption; + $parameters = $parameters->withOption( + $configOption, + array_key_exists($configOption, $defaults) ? $defaults[$configOption] : null + ); + } + foreach ($disableOptions as $configOption) { + $removedOptions[] = $configOption; + $parameters = $parameters->withoutOption($configOption); + } + + return array($addedOptions, $removedOptions); } } - diff --git a/src/PhpBrew/Command/KnownCommand.php b/src/PhpBrew/Command/KnownCommand.php index c5ae68ece..5714a3681 100644 --- a/src/PhpBrew/Command/KnownCommand.php +++ b/src/PhpBrew/Command/KnownCommand.php @@ -1,51 +1,77 @@ add('svn','list subversion phps'); - $opts->add('old','list old phps (less than 5.3)'); - $managers = PhpSource::getReleaseManagers(); - foreach($managers as $id => $fullName) { - $opts->add($id,"list $id phps"); - } + $opts->add('m|more', 'Show more older versions'); + $opts->add('o|old', 'List old phps (less than 5.3)'); + $opts->add('u|update', 'Update release list'); + + DownloadFactory::addOptionsForCommand($opts); } public function execute() { - $stableVersions = PhpSource::getStableVersions( $this->options->old ); - echo "Available stable versions:\n"; - foreach( $stableVersions as $version => $arg ) { - echo "\t" . $version . "\n"; + $releaseList = new ReleaseList(); + + //always fetch list from remote when --old presents, because the local file may not contain the old versions + // and --old is seldom used. + if (!$releaseList->foundLocalReleaseList() || $this->options->update || $this->options->old) { + $fetchTask = new FetchReleaseListTask($this->logger, $this->options); + $releases = $fetchTask->fetch(); + } else { + $this->logger->info( + sprintf( + 'Read local release list (last update: %s UTC).', + gmdate( + 'Y-m-d H:i:s', + filectime(Config::getPHPReleaseListPath()) + ) + ) + ); + $releases = $releaseList->loadLocalReleaseList(); + $this->logger->info( + 'You can run `phpbrew update` or `phpbrew known --update` to get a newer release list.' + ); } - if( $this->options->svn ) { - $svnVersions = \PhpBrew\PhpSource::getSvnVersions(); - echo $this->formatter->format("Available svn versions:\n",'yellow'); - foreach( $svnVersions as $version => $arg ) { - echo "\t" . $version . "\n"; + foreach ($releases as $majorVersion => $versions) { + if (version_compare($majorVersion, '5.2', 'le') && !$this->options->old) { + continue; + } + $versionList = array_keys($versions); + if (!$this->options->more) { + array_splice($versionList, 8); } + $this->logger->writeln( + $this->formatter->format("{$majorVersion}: ", 'yellow') + . wordwrap(implode(', ', $versionList), 80, PHP_EOL . str_repeat(' ', 5)) + . (!$this->options->more ? ' ...' : '') + ); } - $managers = PhpSource::getReleaseManagers(); - foreach($managers as $id => $fullName) { - if( $this->options->$id ) { - $versions = \PhpBrew\PhpSource::getReleaseManagerVersions($id); - echo $this->formatter->format( - "Available versions from PHP Release Manager: $fullName\n", - 'yellow'); - foreach( $versions as $version => $arg ) { - echo "\t" . $version . "\n"; - } - } + if ($this->options->old) { + $this->logger->warn( + 'PHPBrew needs PHP 5.3 or above to run. build/switch to versions below 5.3 at your own risk.' + ); } } } - - diff --git a/src/PhpBrew/Command/ListCommand.php b/src/PhpBrew/Command/ListCommand.php index 9ab564636..aaddbf24b 100644 --- a/src/PhpBrew/Command/ListCommand.php +++ b/src/PhpBrew/Command/ListCommand.php @@ -1,41 +1,62 @@ add('d|dir', 'Show php directories.'); + $opts->add('v|variants', 'Show used variants.'); + } - // var_dump( $versions ); - echo "Installed versions:\n"; + public function execute() + { + $builds = BuildFinder::findInstalledBuilds(); + $currentBuild = Config::getCurrentPhpName(); - if ( $currentVersion === false or in_array($currentVersion, $versions) === false ) { - echo "* (system)\n"; + if (empty($builds)) { + return $this->logger->notice('Please install at least one PHP with your preferred version.'); } - foreach( $versions as $version ) { - $versionPrefix = Config::getVersionBuildPrefix($version); - - printf(' %-15s (%-10s)', $version, $versionPrefix); + if ($currentBuild === false or !in_array($currentBuild, $builds)) { + $this->logger->writeln('* (system)'); + } - if( file_exists($versionPrefix . DIRECTORY_SEPARATOR . 'phpbrew.variants') ) { - $info = unserialize(file_get_contents( $versionPrefix . DIRECTORY_SEPARATOR . 'phpbrew.variants')); + foreach ($builds as $build) { + $versionPrefix = Config::getVersionInstallPrefix($build); + + if ($currentBuild === $build) { + $this->logger->writeln( + $this->formatter->format(sprintf('* %-15s', $build), 'bold') + ); + } else { + $this->logger->writeln( + $this->formatter->format(sprintf(' %-15s', $build), 'bold') + ); + } - echo "\n"; - echo str_repeat(' ',19); - echo VariantParser::revealCommandArguments($info); + if ($this->options->dir) { + $this->logger->writeln(sprintf(' Prefix: %s', $versionPrefix)); } - echo "\n"; + // TODO: use Build class to get the variants + if ($this->options->variants && file_exists($versionPrefix . DIRECTORY_SEPARATOR . 'phpbrew.variants')) { + $info = unserialize(file_get_contents($versionPrefix . DIRECTORY_SEPARATOR . 'phpbrew.variants')); + echo ' Variants: '; + echo wordwrap(VariantParser::revealCommandArguments($info), 75, " \\\n "); + echo PHP_EOL; + } } } } - - diff --git a/src/PhpBrew/Command/ListIniCommand.php b/src/PhpBrew/Command/ListIniCommand.php new file mode 100644 index 000000000..333611d7d --- /dev/null +++ b/src/PhpBrew/Command/ListIniCommand.php @@ -0,0 +1,31 @@ +logger->warn( + 'The list-ini command is deprecated and will be removed in the future.' . PHP_EOL + . 'Please use `php --ini` instead.' + ); + + if ($filelist = php_ini_scanned_files()) { + echo "Loaded ini files:" . PHP_EOL; + if (strlen($filelist) > 0) { + $files = explode(',', $filelist); + foreach ($files as $file) { + echo ' - ' . trim($file) . PHP_EOL; + } + } + } + } +} diff --git a/src/PhpBrew/Command/MigratedCommand.php b/src/PhpBrew/Command/MigratedCommand.php index fd4418742..dce64632b 100644 --- a/src/PhpBrew/Command/MigratedCommand.php +++ b/src/PhpBrew/Command/MigratedCommand.php @@ -1,11 +1,14 @@ add('type') + ->validValues(array( + 'root', + 'home', + 'build', + 'bin', + 'include', + 'etc', + 'ext', + 'ext-src', + 'extension-src', + 'extension-dir', + 'config-scan', + 'dist', + )); + } + + public function execute($name) + { + switch ($name) { + case 'root': + echo Config::getRoot(); + break; + case 'home': + echo Config::getHome(); + break; + case 'config-scan': + echo Config::getCurrentPhpConfigScanPath(); + break; + case 'dist': + echo Config::getDistFileDir(); + break; + case 'build': + echo Config::getCurrentBuildDir(); + break; + case 'bin': + echo Config::getCurrentPhpBin(); + break; + case 'include': + echo Config::getVersionInstallPrefix(Config::getCurrentPhpName()) . + DIRECTORY_SEPARATOR . 'include'; + break; + case 'extension-src': + case 'ext-src': + echo Config::getCurrentBuildDir() . DIRECTORY_SEPARATOR . 'ext'; + break; + case 'extension-dir': + case 'ext-dir': + case 'ext': + echo ini_get('extension_dir'); + break; + case 'etc': + echo Config::getVersionInstallPrefix(Config::getCurrentPhpName()) . + DIRECTORY_SEPARATOR . 'etc'; + break; + } + } +} diff --git a/src/PhpBrew/Command/PurgeCommand.php b/src/PhpBrew/Command/PurgeCommand.php index bc7ed0279..ce6fca4cd 100644 --- a/src/PhpBrew/Command/PurgeCommand.php +++ b/src/PhpBrew/Command/PurgeCommand.php @@ -1,14 +1,29 @@ add('PHP build') + ->validValues(function () { + return BuildFinder::findInstalledBuilds(); + }) + ->multiple() + ; + } - public function execute($version = null) + public function brief() { - throw new Exception("You should not see this, please check if phpbrew bashrc is sourced in your shell."); + return 'Remove installed php version and config files.'; } } diff --git a/src/PhpBrew/Command/RemoveCommand.php b/src/PhpBrew/Command/RemoveCommand.php index 567876e43..bac5a3008 100644 --- a/src/PhpBrew/Command/RemoveCommand.php +++ b/src/PhpBrew/Command/RemoveCommand.php @@ -1,14 +1,46 @@ add('installed php') + ->validValues(function () { + return BuildFinder::findInstalledBuilds(); + }) + ; + } - public function execute($version = null) + public function execute($buildName) { - throw new Exception("You should not see this, please check if phpbrew bashrc is sourced in your shell."); + $prefix = Config::getVersionInstallPrefix($buildName); + if (!file_exists($prefix)) { + throw new Exception("$prefix does not exist."); + } + $prompter = new Prompter(); + $answer = $prompter->ask("Are you sure to delete $buildName?", array('Y', 'n'), 'Y'); + if (strtolower($answer) == 'y') { + Utils::recursive_unlink($prefix, $this->logger); + $this->logger->info("$buildName is removed. I hope you're not surprised. :)"); + } else { + $this->logger->info('Let me guess, you drunk tonight.'); + } } } diff --git a/src/PhpBrew/Command/SelfUpdateCommand.php b/src/PhpBrew/Command/SelfUpdateCommand.php index a1ab919b8..92fa9b62e 100644 --- a/src/PhpBrew/Command/SelfUpdateCommand.php +++ b/src/PhpBrew/Command/SelfUpdateCommand.php @@ -1,36 +1,89 @@ logger->info("Updating phpbrew $script from $branch..."); + $this->logger->info("Updating phpbrew $script..."); + $url = 'https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar'; - $url = "https://raw.github.com/c9s/phpbrew/$branch/phpbrew"; - system("curl -# -L $url > $script") == 0 or die('Update failed.'); + //download to a tmp file first + //the phar file is large so we prefer the commands rather than extensions. + $downloader = DownloadFactory::getInstance( + $this->logger, + $this->options, + array(DownloadFactory::METHOD_CURL, DownloadFactory::METHOD_WGET) + ); + $tempFile = $downloader->download($url); - $this->logger->info("Version updated."); - system( $script . ' init' ); - system( $script . ' --version' ); - } -} + if ($tempFile === false) { + throw new RuntimeException('Update Failed', 1); + } + chmod($tempFile, 0755); + //todo we can check the hash here in order to make sure we have download the phar successfully + if (!$this->checkRequirements($tempFile)) { + unlink($tempFile); + throw new RuntimeException('Update failed'); + } + //move the tmp file to executable path + if (!rename($tempFile, $script)) { + throw new RuntimeException('Update Failed', 3); + } + $this->logger->info('Version updated.'); + system($script . ' init'); + } + + /** + * Check if the new version is compatible with the current runtime. + * + * This assumes that the binary will check the runtime requirements for any sub-command including `--version`. + * + * @param string $binary The path to the new PHPBrew version binary + * + * @return bool + */ + private function checkRequirements($binary) + { + system(escapeshellcmd($binary) . ' --version', $code); + + return $code === 0; + } +} diff --git a/src/PhpBrew/Command/SwitchCommand.php b/src/PhpBrew/Command/SwitchCommand.php index 660365402..b2983631c 100644 --- a/src/PhpBrew/Command/SwitchCommand.php +++ b/src/PhpBrew/Command/SwitchCommand.php @@ -1,6 +1,25 @@ add('PHP version') + ->validValues(function () { + return BuildFinder::findInstalledVersions(); + }) + ; + } + + public function brief() + { + return 'Switch default php version.'; + } } diff --git a/src/PhpBrew/Command/SwitchOffCommand.php b/src/PhpBrew/Command/SwitchOffCommand.php new file mode 100644 index 000000000..db3caf76b --- /dev/null +++ b/src/PhpBrew/Command/SwitchOffCommand.php @@ -0,0 +1,14 @@ +add('php version') + ->suggestions(function () { + return BuildFinder::findInstalledBuilds(); + }); + } + + final public function execute() + { + $path = getenv('PHPBREW_SYSTEM_PHP'); + + if ($path !== false && $path !== '') { + $this->logger->writeln($path); + } + } +} diff --git a/src/PhpBrew/Command/SystemOffCommand.php b/src/PhpBrew/Command/SystemOffCommand.php new file mode 100644 index 000000000..ea3099985 --- /dev/null +++ b/src/PhpBrew/Command/SystemOffCommand.php @@ -0,0 +1,14 @@ +add('o|old', 'List versions older than PHP 7.0'); + + DownloadFactory::addOptionsForCommand($opts); + } + + public function execute() + { + $fetchTask = new FetchReleaseListTask($this->logger, $this->options); + $releases = $fetchTask->fetch(); + + foreach ($releases as $majorVersion => $versions) { + if (version_compare($majorVersion, '5.2', '<=')) { + continue; + } + $versionList = array_keys($versions); + $this->logger->writeln($this->formatter->format("{$majorVersion}: ", 'yellow') + . count($versionList) . ' releases'); + } + $this->logger->info('===> Done'); + } +} diff --git a/src/PhpBrew/Command/UseCommand.php b/src/PhpBrew/Command/UseCommand.php index 3417785a3..ea0b957f0 100644 --- a/src/PhpBrew/Command/UseCommand.php +++ b/src/PhpBrew/Command/UseCommand.php @@ -1,6 +1,25 @@ add('PHP version') + ->validValues(function () { + return BuildFinder::findInstalledVersions(); + }) + ; + } + + public function brief() + { + return 'Use php, switch version temporarily'; + } } diff --git a/src/PhpBrew/Command/VariantsCommand.php b/src/PhpBrew/Command/VariantsCommand.php index 1effb4bb8..43250dabc 100644 --- a/src/PhpBrew/Command/VariantsCommand.php +++ b/src/PhpBrew/Command/VariantsCommand.php @@ -1,59 +1,64 @@ 68 && $c === ' ' ) { - $newLine .= "\n" . $indent; + + if ($lineX > 68 && $c === ' ') { + $newLine .= PHP_EOL . $indent; $lineX = 0; } } + return $newLine; } public function execute($version = null) { - $variants = new VariantBuilder; + $variants = new VariantBuilder(); $list = $variants->getVariantNames(); sort($list); - echo "Variants: \n"; - echo $this->wrapLine(join(', ',$list)) , "\n"; - echo "\n\n"; - - echo "Virtual variants: \n"; - foreach( $variants->virtualVariants as $name => $subvars ) { - echo $this->wrapLine("$name: " . join(', ', $subvars)) , "\n"; - } - echo "\n\n"; - - echo "Using variants to build PHP:\n"; - echo "\n"; - echo " phpbrew install php-5.3.10 +default\n"; - echo " phpbrew install php-5.3.10 +mysql +pdo\n"; - echo " phpbrew install php-5.3.10 +mysql +pdo +apxs2\n"; - echo " phpbrew install php-5.3.10 +mysql +pdo +apxs2=/usr/bin/apxs2\n"; - echo "\n\n"; - } - -} + echo "Variants: " . PHP_EOL; + echo $this->wrapLine(implode(', ', $list)) , PHP_EOL; + echo PHP_EOL, PHP_EOL; + echo "Virtual variants: ", PHP_EOL; + foreach ($variants->virtualVariants as $name => $subvars) { + echo $this->wrapLine("$name: " . implode(', ', $subvars)) , PHP_EOL; + } + echo PHP_EOL, PHP_EOL; + echo "Using variants to build PHP:", PHP_EOL; + echo PHP_EOL; + echo " phpbrew install php-5.3.10 +default", PHP_EOL; + echo " phpbrew install php-5.3.10 +mysql +pdo", PHP_EOL; + echo " phpbrew install php-5.3.10 +mysql +pdo +apxs2", PHP_EOL; + echo " phpbrew install php-5.3.10 +mysql +pdo +apxs2=/usr/bin/apxs2", PHP_EOL; + echo PHP_EOL, PHP_EOL; + } +} diff --git a/src/PhpBrew/Command/VirtualCommand.php b/src/PhpBrew/Command/VirtualCommand.php index 054816f03..dfad914cf 100644 --- a/src/PhpBrew/Command/VirtualCommand.php +++ b/src/PhpBrew/Command/VirtualCommand.php @@ -1,15 +1,24 @@ script = $script; @@ -38,56 +36,97 @@ public function addArg($arg) $this->args[] = $arg; } + public function arg($arg) + { + $this->args[] = $arg; + } + public function nice($nice) { $this->nice = $nice; } - public function execute() { + public function passthru(&$lastline = null) + { + $ret = null; + $command = $this->buildCommand(false); + $lastline = passthru($command, $ret); + if ($lastline === false) { + return $ret; + } + + return $ret; + } + + public function execute(&$lastline = null) + { $ret = null; - $command = $this->getCommand(); - $line = system( $command , $ret ); - if( $ret !== 0 ) - die('Error'); - return $line; + $command = $this->buildCommand(); + $lastline = system($command, $ret); + if ($lastline === false) { + return $ret; + } + + return $ret; } public function __toString() { - return $this->getCommand(); + return $this->buildCommand(); + } + + public function setStdout($stdout = true) + { + $this->stdout = $stdout; + } + + public function setAppendLog($append = true) + { + $this->append = $append; } - public function getCommand() + public function setLogPath($logPath) + { + $this->logPath = $logPath; + } + + public function buildCommand($handleRedirect = true) { $cmd = array(); - if( $this->nice ) { + if ($this->nice) { $cmd[] = 'nice'; $cmd[] = '-n'; $cmd[] = $this->nice; } - $cmd[] = $this->script; - if( $this->args ) { - foreach( $this->args as $arg ) { + if ($this->args) { + foreach ($this->args as $arg) { $cmd[] = escapeshellarg($arg); } } - /* can redirect stderr to stdout */ - if( $this->stdout ) { - $cmd[] = '2>&1'; - $cmd[] = $this->append ? '>>' : '>'; - $cmd[] = $this->stdout; + // redirect stderr to stdout and pipe to the file. + if ($handleRedirect) { + if ($this->stdout) { + // XXX: tee is disabled here because the exit status won't be + // correct when using pipe. + /* + $cmd[] = '| tee'; + if ($this->append) { + $cmd[] = '-a'; + } + $cmd[] = $this->logPath; + */ + $cmd[] = '2>&1'; + } elseif ($this->logPath) { + $cmd[] = $this->append ? '>>' : '>'; + $cmd[] = escapeshellarg($this->logPath); + $cmd[] = '2>&1'; + } } - if( $this->stderr ) { - $cmd[] = '2>&'; - $cmd[] = $this->stderr; - } - return join(' ',$cmd); + return implode(' ', $cmd); } - } - diff --git a/src/PhpBrew/Config.php b/src/PhpBrew/Config.php index 00b68d4c5..63f89ded4 100644 --- a/src/PhpBrew/Config.php +++ b/src/PhpBrew/Config.php @@ -1,115 +1,231 @@ + */ + private $options = array(); + + /** + * Paths passed to the command via the PKG_CONFIG_PATH environment variable + * + * @var array + */ + private $pkgConfigPaths = array(); + + /** + * Creates a new object with the given option and the value. + * + * If the given option is already set with the same value, the same object is returned. + * + * @param string $option + * @param string|null $value + * + * @return static + */ + public function withOption($option, $value = null) + { + if (array_key_exists($option, $this->options) && $this->options[$option] === $value) { + return $this; + } + + $new = clone $this; + $new->options[$option] = $value; + + return $new; + } + + /** + * Creates a new object without the given option and the value. + * + * If the given option is not set, the same object is returned. + * + * @param string $option + * + * @return static + */ + public function withoutOption($option) + { + if (!array_key_exists($option, $this->options)) { + return $this; + } + + $new = clone $this; + unset($new->options[$option]); + + return $new; + } + + /** + * Creates a new object with added value of PKG_CONFIG_PATH. + * + * If the given path is already added, the same object is returned. + * + * @param string $path + * + * @return static + */ + public function withPkgConfigPath($path) + { + if (array_key_exists($path, $this->pkgConfigPaths)) { + return $this; + } + + $new = clone $this; + $new->pkgConfigPaths[$path] = null; + + return $new; + } + + /** + * Creates a new object with the given option. When building PHP 7.3 or older, the non-NULL value + * is passed as the option value. When building PHP 7.4 or newer, the value is added as a PKG_CONFIG_PATH prefix. + * + * @param string $option + * @param string|null $value + * + * @return self + */ + public function withOptionOrPkgConfigPath(Build $build, $option, $value) + { + if ($build->compareVersion('7.4') < 0) { + return $this->withOption($option, $value); + } + + $new = $this->withOption($option); + + if ($value !== null) { + $new = $new->withPkgConfigPath($value . '/lib/pkgconfig'); + } + + return $new; + } + + /** + * @return array + */ + public function getOptions() + { + return $this->options; + } + + /** + * @return array + */ + public function getPkgConfigPaths() + { + return array_keys($this->pkgConfigPaths); + } +} diff --git a/src/PhpBrew/Console.php b/src/PhpBrew/Console.php index ba5aa00e3..3649ce4d2 100644 --- a/src/PhpBrew/Console.php +++ b/src/PhpBrew/Console.php @@ -1,41 +1,155 @@ add('no-progress', 'Do not display progress bar.'); + } public function init() { parent::init(); - $this->registerCommand('init'); - $this->registerCommand('known'); - $this->registerCommand('install'); - $this->registerCommand('list'); - $this->registerCommand('use'); - $this->registerCommand('switch'); - - $this->registerCommand('info'); - $this->registerCommand('env'); - $this->registerCommand('ext'); - $this->registerCommand('variants'); - $this->registerCommand('config'); - $this->registerCommand('download'); - $this->registerCommand('clean'); - - $this->registerCommand('enable', 'PhpBrew\Command\MigratedCommand'); - $this->registerCommand('install-ext','PhpBrew\Command\MigratedCommand'); - - $this->registerCommand('self-update', 'PhpBrew\Command\SelfUpdateCommand'); - - $this->registerCommand('remove'); - $this->registerCommand('purge'); + + $this->command('init'); + $this->command('known'); + $this->command('install'); + $this->command('list'); + $this->command('use'); + $this->command('switch'); + $this->command('each'); + + $this->command('config'); + $this->command('info'); + $this->command('env'); + $this->command('extension'); + $this->command('variants'); + $this->command('path'); + $this->command('cd'); + $this->command('download'); + $this->command('clean'); + $this->command('update'); + $this->command('ctags'); + $this->command('help'); + + $this->command('fpm'); + + $this->command('list-ini', 'PhpBrew\Command\ListIniCommand'); + $this->command('self-update', 'PhpBrew\Command\SelfUpdateCommand'); + + $this->command('remove'); + $this->command('purge'); + + $this->command('off'); + $this->command('switch-off', 'PhpBrew\Command\SwitchOffCommand'); + + $this->command('system'); + $this->command('system-off'); + + $this->configure(); + + // We use '#' as the prefix to prevent issue with bash + if (!extension_loaded('json')) { + $this->logger->warn('# WARNING: json extension is required for parsing release info.'); + } + if (!extension_loaded('libxml')) { + $this->logger->warn('# WARNING: libxml extension is required for parsing pecl package file.'); + } + if (!extension_loaded('ctype')) { + $this->logger->warn('# WARNING: ctype extension might be required for parsing yaml file.'); + } + } + + public function configure() + { + // avoid warnings when web scraping possible malformed HTML from pecl + if (extension_loaded('libxml')) { + libxml_use_internal_errors(true); + } + // prevent execution time limit fatal error + set_time_limit(0); + + // prevent warnings when timezone is not set + date_default_timezone_set(Utils::readTimeZone() ?: 'America/Los_Angeles'); + + // fix bold output so it looks good on light and dark terminals + $this->getFormatter()->addStyle('bold', array('bold' => 1)); + + $this->logger->levelStyles['warn'] = 'yellow'; + $this->logger->levelStyles['error'] = 'red'; } public function brief() { return 'brew your latest php!'; } + + public function runWithTry(array $argv) + { + try { + return $this->run($argv); + } catch (CommandArgumentNotEnoughException $e) { + $this->logger->error($e->getMessage()); + $this->logger->writeln('Expected argument prototypes:'); + foreach ($e->getCommand()->getAllCommandPrototype() as $p) { + $this->logger->writeln("\t" . $p); + } + $this->logger->newline(); + } catch (CommandNotFoundException $e) { + $this->logger->error( + $e->getMessage() + . ' available commands are: ' + . implode(', ', $e->getCommand()->getVisibleCommandList()) + ); + $this->logger->newline(); + + $this->logger->writeln('Please try the command below to see the details:'); + $this->logger->newline(); + $this->logger->writeln("\t" . $this->getProgramName() . ' help '); + $this->logger->newline(); + } catch (SystemCommandException $e) { + // Todo: detect $lastline for library missing here... + + $buildLog = $e->getLogFile(); + $this->logger->error('Error: ' . trim($e->getMessage())); + + if ($buildLog !== null && file_exists($buildLog)) { + $this->logger->error('The last 5 lines in the log file:'); + $lines = array_slice(file($buildLog), -5); + foreach ($lines as $line) { + echo $line , PHP_EOL; + } + $this->logger->error('Please checkout the build log file for more details:'); + $this->logger->error("\t tail $buildLog"); + } + } catch (BadMethodCallException $e) { + $this->logger->error($e->getMessage()); + $this->logger->error('Seems like an application logic error, please contact the developer.'); + } catch (Exception $e) { + if ($this->options && $this->options->debug) { + $printer = new DevelopmentExceptionPrinter($this->getLogger()); + $printer->dump($e); + } else { + $printer = new ProductionExceptionPrinter($this->getLogger()); + $printer->dump($e); + } + } + + return false; + } } diff --git a/src/PhpBrew/DirectorySwitch.php b/src/PhpBrew/DirectorySwitch.php deleted file mode 100644 index 9007c47ae..000000000 --- a/src/PhpBrew/DirectorySwitch.php +++ /dev/null @@ -1,35 +0,0 @@ -stack[] = getcwd(); - $this->_chdir($dir); - } - - public function back() - { - if ( !empty($this->stack) ) { - $dir = array_pop($this->stack); - $this->_chdir($dir); - } else { - throw new Exception("The directory stack is empty. Can not go back."); - } - } - -} - - diff --git a/src/PhpBrew/Distribution/DistributionUrlPolicy.php b/src/PhpBrew/Distribution/DistributionUrlPolicy.php new file mode 100644 index 000000000..8f5f4ee8c --- /dev/null +++ b/src/PhpBrew/Distribution/DistributionUrlPolicy.php @@ -0,0 +1,25 @@ +isDistributedAtMuseum($version)) { + return 'https://museum.php.net/php5/' . $filename; + } + + return 'https://www.php.net/distributions/' . $filename; + } + + private function isDistributedAtMuseum($version) + { + return version_compare($version, '5.4.21', '<='); + } +} diff --git a/src/PhpBrew/Downloader/BaseDownloader.php b/src/PhpBrew/Downloader/BaseDownloader.php new file mode 100644 index 000000000..45d937a8d --- /dev/null +++ b/src/PhpBrew/Downloader/BaseDownloader.php @@ -0,0 +1,94 @@ +logger = $logger; + $this->options = $options; + } + + /** + * @param string $url the url to be downloaded + * @param string $targetFilePath the path where file to be saved. null means auto-generated temp path + * + * @return bool|string if download successfully, return target file path, otherwise return false. + * + * @throws RuntimeException + */ + public function download($url, $targetFilePath = null) + { + if (empty($targetFilePath)) { + $targetFilePath = tempnam(sys_get_temp_dir(), 'phpbrew_'); + if ($targetFilePath === false) { + throw new RuntimeException('Fail to create temp file'); + } + } else { + if (!file_exists($targetFilePath)) { + touch($targetFilePath); + } + } + if (!is_writable($targetFilePath)) { + throw new RuntimeException("Target path ($targetFilePath) is not writable!"); + } + if ($this->process($url, $targetFilePath)) { + $this->logger->debug("$url => $targetFilePath"); + + return $targetFilePath; + } else { + return false; + } + } + + /** + * fetch the remote content. + * + * @param string $url The url to be downloaded + * + * @return bool|string return content if download successfully, otherwise false is returned + * + * @throws RuntimeException + */ + public function request($url) + { + $path = $this->download($url); + + return $path === false ? false : file_get_contents($path); + } + + abstract protected function process($url, $targetFilePath); + + /** + * @param string $url + * + * @return string|bool the resolved download file name or false it + * the url string can't be parsed + */ + public function resolveDownloadFileName($url) + { + // Check if the url is for php source archive + if (preg_match('/php-\d.+\.tar\.(bz2|gz|xz)/', $url, $parts)) { + return $parts[0]; + } + + // try to get the filename through parse_url + $path = parse_url($url, PHP_URL_PATH); + if (false === $path || false === strpos($path, '.')) { + return; + } + + return basename($path); + } + + abstract public function hasSupport($requireSsl); +} diff --git a/src/PhpBrew/Downloader/CurlCommandDownloader.php b/src/PhpBrew/Downloader/CurlCommandDownloader.php new file mode 100644 index 000000000..f81de65bc --- /dev/null +++ b/src/PhpBrew/Downloader/CurlCommandDownloader.php @@ -0,0 +1,44 @@ +logger->info('downloading via curl command'); + //todo proxy setting + $command = array('curl'); + + if ($proxy = $this->options->{'http-proxy'}) { + $this->logger->warn('http proxy is not support by this download.'); + } + if ($proxyAuth = $this->options->{'http-proxy-auth'}) { + $this->logger->warn('http proxy is not support by this download.'); + } + + if ($this->options->{'continue'}) { + $command[] = '-C -'; + } + + $command[] = '-L'; + if ($this->logger->isQuiet()) { + $command[] = '--silent'; + } + $command[] = '-o'; + $command[] = escapeshellarg($targetFilePath); + $command[] = escapeshellarg($url); + $cmd = implode(' ', $command); + $this->logger->debug($cmd); + Utils::system($cmd); + + return true; + } + + public function hasSupport($requireSsl) + { + return Utils::findbin('curl'); + } +} diff --git a/src/PhpBrew/Downloader/DownloadFactory.php b/src/PhpBrew/Downloader/DownloadFactory.php new file mode 100644 index 000000000..e242ebc0b --- /dev/null +++ b/src/PhpBrew/Downloader/DownloadFactory.php @@ -0,0 +1,104 @@ + 'PhpBrew\Downloader\PhpCurlDownloader', + self::METHOD_PHP_STREAM => 'PhpBrew\Downloader\PhpStreamDownloader', + self::METHOD_WGET => 'PhpBrew\Downloader\WgetCommandDownloader', + self::METHOD_CURL => 'PhpBrew\Downloader\CurlCommandDownloader', + ); + + /** + * When php built-in extensions don't support openssl, we can use curl or wget instead. + */ + private static $fallbackDownloaders = array('curl', 'wget'); + + /** + * @param Logger $logger is used for creating downloader + * @param OptionResult $options options used for create downloader + * @param array $preferences Use downloader by preferences. + * @param bool $requireSsl + * + * @return BaseDownloader|null + */ + protected static function create(Logger $logger, OptionResult $options, array $preferences, $requireSsl = true) + { + foreach ($preferences as $prefKey) { + if (isset(self::$availableDownloaders[$prefKey])) { + $downloader = self::$availableDownloaders[$prefKey]; + $down = new $downloader($logger, $options); + if ($down->hasSupport($requireSsl)) { + return $down; + } + } + } + + return; + } + + /** + * @param Logger $logger + * @param OptionResult $options + * @param string $downloader + * + * @return BaseDownloader + */ + public static function getInstance(Logger $logger, OptionResult $options, $downloader = null) + { + if (is_string($downloader)) { + //if we specific a downloader class clearly, then it's the only choice + if (class_exists($downloader) && is_subclass_of($downloader, 'PhpBrew\Downloader\BaseDownloader')) { + return new $downloader($logger, $options); + } + $downloader = array($downloader); + } + if (empty($downloader)) { + $downloader = array_keys(self::$availableDownloaders); + } + + //if --downloader presents, we will use it as the first choice, + //even if the caller specific downloader by alias/array + if ($options->has('downloader')) { + $logger->info("Found --downloader option, try to use {$options->downloader} as default downloader."); + $downloader = array_merge(array($options->downloader), $downloader); + } + + $instance = self::create($logger, $options, $downloader); + if ($instance === null) { + $logger->debug('Downloader not found, falling back to command-based downloader.'); + //if all downloader not available, maybe we should throw exceptions here instead of returning null? + return self::create($logger, $options, self::$fallbackDownloaders); + } else { + return $instance; + } + } + + public static function addOptionsForCommand(OptionCollection $opts) + { + $opts->add('downloader:', 'Use alternative downloader.'); + $opts->add('continue', 'Continue getting a partially downloaded file.'); + $opts->add('http-proxy:', 'HTTP proxy address') + ->valueName('Proxy host[:port]'); + $opts->add('http-proxy-auth:', 'HTTP proxy authentication') + ->valueName('Proxy username:password'); + $opts->add( + 'connect-timeout:', + 'Connection timeout' + ) + ->valueName('Timeout in seconds'); + + return $opts; + } +} diff --git a/src/PhpBrew/Downloader/PhpCurlDownloader.php b/src/PhpBrew/Downloader/PhpCurlDownloader.php new file mode 100644 index 000000000..e6c8483d1 --- /dev/null +++ b/src/PhpBrew/Downloader/PhpCurlDownloader.php @@ -0,0 +1,54 @@ +logger->info("Downloading $url via curl extension"); + + $downloader = new CurlDownloader(); + + $seconds = $this->options->{'connect-timeout'}; + if ($seconds || $seconds = getenv('CONNECT_TIMEOUT')) { + $downloader->setConnectionTimeout($seconds); + } + if ($proxy = $this->options->{'http-proxy'}) { + $downloader->setProxy($proxy); + } + if ($proxyAuth = $this->options->{'http-proxy-auth'}) { + $downloader->setProxyAuth($proxyAuth); + } + if (!$this->options->{'no-progress'} && $this->logger->getLevel() > 2) { + $downloader->setProgressHandler(new ProgressBar()); + } + if ($this->options->{'continue'}) { + $this->logger->warn('--continue is not support by this download.'); + } + $binary = $downloader->request($url); + if (false === file_put_contents($targetFilePath, $binary)) { + throw new RuntimeException("Can't write file $targetFilePath"); + } + + return true; + } + + public function hasSupport($requireSsl) + { + if (!extension_loaded('curl')) { + return false; + } + if ($requireSsl) { + $info = curl_version(); + + return in_array('https', $info['protocols']); + } + + return true; + } +} diff --git a/src/PhpBrew/Downloader/PhpStreamDownloader.php b/src/PhpBrew/Downloader/PhpStreamDownloader.php new file mode 100644 index 000000000..46bb7b71a --- /dev/null +++ b/src/PhpBrew/Downloader/PhpStreamDownloader.php @@ -0,0 +1,60 @@ +logger->info("Downloading $url via php stream"); + + $opts = array(); + if ($proxy = $this->options->{'http-proxy'}) { + $opts['http']['proxy'] = $proxy; + $opts['http']['request_fulluri'] = true; + $opts['http']['header'] = array(); + if ($proxyAuth = $this->options->{'http-proxy-auth'}) { + $opts['http']['header'][] = "Proxy-Authorization: Basic $proxyAuth"; + } + } + if ($timeout = $this->options->{'connect-timeout'}) { + $opts['http']['timeout'] = $timeout; + } + + if ($this->options->{'continue'}) { + $this->logger->warn('--continue is not support by this download.'); + } + + if (empty($opts)) { + $binary = file_get_contents($url); + } else { + $context = stream_context_create($opts); + $binary = file_get_contents($url, null, $context); + } + if ($binary === false) { + throw new RuntimeException("Fail to request $url"); + } + + $res = file_put_contents($targetFilePath, $binary); + if ($res === false) { + throw new RuntimeException("Failed writing to $targetFilePath"); + } + + return true; + } + + public function hasSupport($requireSsl) + { + if (!function_exists('file_get_contents')) { + return false; + } + $wrappers = stream_get_wrappers(); + if ($requireSsl) { + return in_array('https', $wrappers); + } + + return in_array('http', $wrappers); + } +} diff --git a/src/PhpBrew/Downloader/SvnDownloader.php b/src/PhpBrew/Downloader/SvnDownloader.php deleted file mode 100644 index 1f4108365..000000000 --- a/src/PhpBrew/Downloader/SvnDownloader.php +++ /dev/null @@ -1,41 +0,0 @@ -logger = $logger; - } - - public function download($url, $target = null, $force = false) - { - $parts = parse_url($url); - $basename = $target ?: basename( $parts['path'] ); - - if ( file_exists($basename . DIRECTORY_SEPARATOR . '.svn' ) ) { - $this->logger->info("Found existing repository, updating..."); - system( "cd $basename ; svn update" ); - } - else if ( file_exists($basename) ) { - $path = getcwd() . DIRECTORY_SEPARATOR . $basename; - throw new Exception("$path exists, but it's not a SVN repository."); - } - else { - $this->logger->info("Checking out from svn: $url"); - system( "svn checkout --quiet -r HEAD $url" ); - } - if( ! file_exists($basename) ) { - throw Exception("Download failed."); - } - return $basename; - } - -} - - - - diff --git a/src/PhpBrew/Downloader/UrlDownloader.php b/src/PhpBrew/Downloader/UrlDownloader.php deleted file mode 100644 index 9f149f8a4..000000000 --- a/src/PhpBrew/Downloader/UrlDownloader.php +++ /dev/null @@ -1,67 +0,0 @@ -logger = $logger; - } - - /** - * @param string $url - * @return string downloaded file (basename) - */ - public function download($url) - { - $this->logger->info("===> Downloading from $url"); - - $basename = $this->resolveDownloadFileName($url); - if (false === $basename) { - throw new RuntimeException("Can not parse url: $url"); - } - - // check for wget or curl for downloading the php source archive - if( exec( 'command -v wget' ) ) { - system( 'wget --no-check-certificate -c -O ' . $basename . ' ' . $url ) !== false or die("Download failed.\n"); - } elseif (exec( 'command -v curl' )) { - system( 'curl -C - -# -L -o ' . $basename . ' ' . $url ) !== false or die("Download failed.\n"); - } else { - die("Download failed - neither wget nor curl was found\n"); - } - - $this->logger->info("===> $basename downloaded."); - - if( ! file_exists($basename) ) { - throw new \Exception("Download failed."); - } - return $basename; // return the filename - } - - /** - * - * @param string $url - * @return string|boolean the resolved download file name or false it - * the url string can't be parsed - */ - protected function resolveDownloadFileName($url) - { - // check if the url is for php source archive - if (preg_match('/php-.+\.tar\.bz2/', $url, $parts)) { - return $parts[0]; - } - - // try to get the filename through parse_url - $path = parse_url($url, PHP_URL_PATH); - if ( false === $path || false === strpos($path, ".") ) { - return false; - } - - return basename( $path ); - } - -} - diff --git a/src/PhpBrew/Downloader/WgetCommandDownloader.php b/src/PhpBrew/Downloader/WgetCommandDownloader.php new file mode 100644 index 000000000..2db10ea56 --- /dev/null +++ b/src/PhpBrew/Downloader/WgetCommandDownloader.php @@ -0,0 +1,54 @@ +logger->info("Downloading $url via wget command"); + + $proxy = ''; + if (!empty($this->options->{'http-proxy'})) { + if (!empty($this->options->{'http-proxy-auth'})) { + $proxy = sprintf( + '-e use_proxy=on -e http_proxy=%s@%s', + $this->options->{'http-proxy-auth'}, + $this->options->{'http-proxy'} + ); + } else { + $proxy = sprintf('-e use_proxy=on -e http_proxy=%s', $this->options->{'http-proxy'}); + } + } + + $quiet = $this->logger->isQuiet() ? '--quiet' : ''; + $continue = $this->enableContinueAt || $this->options->{'continue'} ? '-c' : ''; + Utils::system(sprintf( + 'wget --no-check-certificate %s %s %s -N -O %s %s', + $continue, + $quiet, + $proxy, + escapeshellarg($targetFilePath), + escapeshellarg($url) + )); + + return true; + } + + public function hasSupport($requireSsl) + { + return Utils::findbin('wget'); + } +} diff --git a/src/PhpBrew/Exceptions/OopsException.php b/src/PhpBrew/Exception/OopsException.php similarity index 72% rename from src/PhpBrew/Exceptions/OopsException.php rename to src/PhpBrew/Exception/OopsException.php index d355eb344..13786dd68 100644 --- a/src/PhpBrew/Exceptions/OopsException.php +++ b/src/PhpBrew/Exception/OopsException.php @@ -1,14 +1,13 @@ build = $build; + $this->logFile = $logFile; + } + + public function getLogFile() + { + if ($this->logFile) { + return $this->logFile; + } elseif ($this->build) { + return $this->build->getBuildLogPath(); + } + } +} diff --git a/src/PhpBrew/Extension/ConfigureOption.php b/src/PhpBrew/Extension/ConfigureOption.php new file mode 100644 index 000000000..7167b1f6c --- /dev/null +++ b/src/PhpBrew/Extension/ConfigureOption.php @@ -0,0 +1,41 @@ +option = $option; + $this->desc = $desc; + $this->valueHint = $valueHint; + } + + public function getOption() + { + return $this->option; + } + + public function getDescription() + { + return $this->desc; + } + + public function getValueHint() + { + return $this->valueHint; + } + + public function setDefaultValue($value) + { + $this->defaultValue = $value; + } +} diff --git a/src/PhpBrew/Extension/Extension.php b/src/PhpBrew/Extension/Extension.php new file mode 100644 index 000000000..9fe237f98 --- /dev/null +++ b/src/PhpBrew/Extension/Extension.php @@ -0,0 +1,195 @@ + 'sodium', + ); + + public function __construct($name) + { + $this->name = $name; + $this->extensionName = strtolower($name); + } + + public function setName($name) + { + return $this->name = $name; + } + + public function getName() + { + return $this->name; + } + + public function setVersion($version) + { + $this->version = $version; + } + + public function getVersion() + { + return $this->version; + } + + public function setZend($zendExtension = true) + { + $this->isZend = $zendExtension; + } + + public function isZend() + { + return $this->isZend; + } + + public function setSharedLibraryName($n) + { + $this->sharedLibraryName = $n; + } + + public function getSharedLibraryName() + { + if ($this->sharedLibraryName) { + return $this->sharedLibraryName; + } + + $name = strtolower($this->extensionName); + if (isset(self::$nameMap[$name])) { + $name = self::$nameMap[$name]; + } + + return $name . '.so'; // for windows it might be a DLL. + } + + public function setExtensionName($name) + { + $this->extensionName = $name; + } + + public function getExtensionName() + { + return $this->extensionName; + } + + public function setSourceDirectory($dir) + { + $this->sourceDirectory = $dir; + + if ($configM4File = $this->findConfigM4File($dir)) { + $this->configM4File = $configM4File; + } + } + + public function getConfigM4File() + { + return $this->configM4File; + } + + public function getConfigM4Path() + { + return $this->sourceDirectory . DIRECTORY_SEPARATOR . $this->configM4File; + } + + public function findConfigM4File($dir) + { + $configM4Path = $dir . DIRECTORY_SEPARATOR . 'config.m4'; + if (file_exists($configM4Path)) { + return 'config.m4'; + } + + for ($i = 0; $i < 10; ++$i) { + $filename = "config{$i}.m4"; + $configM4Path = $dir . DIRECTORY_SEPARATOR . $filename; + if (file_exists($configM4Path)) { + return $filename; + } + } + } + + public function isBuildable() + { + return file_exists($this->sourceDirectory . DIRECTORY_SEPARATOR . 'Makefile'); + } + + public function getSourceDirectory() + { + return $this->sourceDirectory; + } + + public function getBuildLogPath() + { + return $this->sourceDirectory . DIRECTORY_SEPARATOR . 'build.log'; + } + + public function getSharedLibraryPath() + { + return ini_get('extension_dir') . DIRECTORY_SEPARATOR . $this->getSharedLibraryName(); + } + + public function getConfigFilePath($sapi = null) + { + $sapiPath = ''; + if ($sapi) { + $sapiPath = '/' . $sapi; + } + return Config::getCurrentPhpConfigScanPath() . $sapiPath . '/' . $this->getName() . '.ini'; + } + + /** + * Checks if current extension is loaded. + * + * @return bool + */ + public function isLoaded() + { + return extension_loaded($this->extensionName); + } + + public function addConfigureOption(ConfigureOption $opt) + { + $this->configureOptions[] = $opt; + } + + public function getConfigureOptions() + { + return $this->configureOptions; + } +} diff --git a/src/PhpBrew/Extension/ExtensionDownloader.php b/src/PhpBrew/Extension/ExtensionDownloader.php new file mode 100644 index 000000000..cf12d2b6d --- /dev/null +++ b/src/PhpBrew/Extension/ExtensionDownloader.php @@ -0,0 +1,91 @@ +logger = $logger; + $this->options = $options; + } + + public function download(Provider $provider, $version = 'stable') + { + $url = $provider->buildPackageDownloadUrl($version); + $basename = $provider->resolveDownloadFileName($version); + $distDir = Config::getDistFileDir(); + $targetFilePath = $distDir . DIRECTORY_SEPARATOR . $basename; + DownloadFactory::getInstance($this->logger, $this->options)->download($url, $targetFilePath); + + $currentPhpExtensionDirectory = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + + // tar -C ~/.phpbrew/build/php-5.5.8/ext -xvf ~/.phpbrew/distfiles/memcache-2.2.7.tgz + $extensionDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $provider->getPackageName(); + if (!file_exists($extensionDir)) { + mkdir($extensionDir, 0755, true); + } + + $this->logger->info("===> Extracting to $currentPhpExtensionDirectory..."); + + $cmds = array_merge( + $provider->extractPackageCommands($currentPhpExtensionDirectory, $targetFilePath), + $provider->postExtractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + ); + + foreach ($cmds as $cmd) { + $this->logger->debug($cmd); + Utils::system($cmd); + } + + return $extensionDir; + } + + public function knownReleases(Provider $provider) + { + $url = $provider->buildKnownReleasesUrl(); + $file = DownloadFactory::getInstance($this->logger, $this->options)->download($url); + $info = file_get_contents($file); + + return $provider->parseKnownReleasesResponse($info); + } + + public function renameSourceDirectory(Extension $ext) + { + $currentPhpExtensionDirectory = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + $extName = $ext->getExtensionName(); + $name = $ext->getName(); + $extensionDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $extName; + $extensionExtractDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $name; + + if ($name != $extName) { + $this->logger->info("===> Rename source directory to $extensionDir..."); + + $cmds = array( + "rm -rf $extensionDir", + "mv $extensionExtractDir $extensionDir", + ); + + foreach ($cmds as $cmd) { + $this->logger->debug($cmd); + Utils::system($cmd); + } + + // replace source directory to new source directory + $sourceDir = str_replace($extensionExtractDir, $extensionDir, $ext->getSourceDirectory()); + $ext->setSourceDirectory($sourceDir); + $ext->setName($extName); + } + } +} diff --git a/src/PhpBrew/Extension/ExtensionFactory.php b/src/PhpBrew/Extension/ExtensionFactory.php new file mode 100644 index 000000000..71454435b --- /dev/null +++ b/src/PhpBrew/Extension/ExtensionFactory.php @@ -0,0 +1,346 @@ +logger->warning("===> Using xml extension meta"); + if ($ext = self::createPeclExtension($packageName, $packageXmlPath)) { + return $ext; + } + } + + // If the config.m4 or config0.m4 exists, it requires us to run `phpize` to + // initialize the `configure` script. + // + // It's basically a fallback for extensions that don't have package.xml. + // Generlly, The possible extensions using this strategy are usually + // PHP's core extensions, which are shipped in the distribution file. + // quote: + // the 0 there makes sure it gets into another stage of the buildprocess, the + // top IIRC, it was added @ 12th May 2001, 12:09am (10 months ago). + // + // http://grokbase.com/t/php/php-dev/023cpdc9k6/quick-summary-of-changes + // + // When config[0-9].m4 found, it might be an extension that can't be + // installed as a shared extension. We will need to raise a warning + // message for users. + $configM4Paths = self::configM4Exists($extensionDir); + foreach ($configM4Paths as $m4path) { + if (file_exists($m4path)) { + try { + $ext = self::createM4Extension($packageName, $m4path); + if ($ext) { + return $ext; + } + } catch (Exception $e) { + // Can't parse the content, ignore the error and continue the parsing... + } + } + } + } + + public static function lookupRecursive($packageName, array $lookupDirs = array(), $fallback = true) + { + if ($fallback) { + // Always push the PHP source directory to the end of the list for the fallback. + $lookupDirs[] = Config::getBuildDir() + . DIRECTORY_SEPARATOR . Config::getCurrentPhpName() + . DIRECTORY_SEPARATOR . 'ext' + . DIRECTORY_SEPARATOR . $packageName; + } + + foreach ($lookupDirs as $lookupDir) { + if (!file_exists($lookupDir)) { + continue; + } + + if ($ext = self::createFromDirectory($packageName, $lookupDir)) { + return $ext; + } + + /* + * FOLLOW_SYMLINKS is available from 5.2.11, 5.3.1 + */ + $di = new RecursiveDirectoryIterator($lookupDir, RecursiveDirectoryIterator::SKIP_DOTS); + $it = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST); + + /* + * Search for config.m4 or config0.m4 and use them to determine + * the directory of the extension's source, because it's not always + * the root directory in the ext archive (example xhprof) + */ + foreach ($it as $fileinfo) { + if (!$fileinfo->isDir()) { + continue; + } + if ($ext = self::createFromDirectory($packageName, $fileinfo->getPathName())) { + return $ext; + } + } + } + } + + public static function lookup($packageName, array $lookupDirectories = array(), $fallback = true) + { + if ($fallback) { + // Always push the PHP source directory to the end of the list for the fallback. + $lookupDirectories[] = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + } + + foreach ($lookupDirectories as $lookupDir) { + if (!file_exists($lookupDir)) { + continue; + } + + $extensionDir = $lookupDir . DIRECTORY_SEPARATOR . $packageName; + if ($ext = self::createFromDirectory($packageName, $extensionDir)) { + return $ext; + } + } + + return new Extension($packageName); + } + + public static function createM4Extension($packageName, $m4Path) + { + if (!file_exists($m4Path)) { + return; + } + + $m4 = file_get_contents($m4Path); + + // PHP_NEW_EXTENSION(extname, sources [, shared [, sapi_class [, extra-cflags [, cxx [, zend_ext]]]]]) + if ( + preg_match('/PHP_NEW_EXTENSION \( \s* + \[? + (\w+) # The extension name + \]? + + \s*,\s* + + \[? + ([^,]*) # Source files + \]? + + (?: + \s*,\s* ([^,\)]*) # Ext Shared + + (?: + \s*,\s* ([^,\)]*) # SAPI class + + (?: + \s*,\s* ([^,\)]*) # Extra cflags + + (?: + \s*,\s* ([^,\)]*) # CXX + \s*,\s* ([^,\)]*) # zend extension + )? + )? + )? + )? + /x', $m4, $matches) + ) { + array_shift($matches); + $ext = new M4Extension($packageName); + $ext->setExtensionName($matches[0]); + $ext->setSharedLibraryName($matches[0] . '.so'); + if (isset($matches[6]) && strpos($matches[6], 'yes') !== false) { + $ext->setZend(true); + } + $ext->setSourceDirectory(dirname($m4Path)); + + /* + PHP_ARG_ENABLE(calendar,whether to enable calendar conversion support, + [ --enable-calendar Enable support for calendar conversion]) + */ + if ( + preg_match_all('/ + PHP_ARG_ENABLE\( + \s*([^,]*) + (?: + \s*,\s* + ( + [^,\)]* + ) + (?: + \s*,\s* + \[ + \s* + ([^\s]+) + \s+ + ([^,\)]*) + \s* + \] + )? + )?/x', $m4, $allMatches) + ) { + for ($i = 0; $i < count($allMatches[0]); ++$i) { + $name = $allMatches[1][$i]; + $desc = $allMatches[2][$i]; + $option = $allMatches[3][$i]; + $optionDesc = $allMatches[4][$i]; + $ext->addConfigureOption(new ConfigureOption($option ?: '--enable-' . $name, $desc ?: $optionDesc)); + } + } + + /* + PHP_ARG_WITH(gd, for GD support, + [ --with-gd[=DIR] Include GD support. DIR is the GD library base + install directory [BUNDLED]]) + + + Possible option formats: + + --with-libxml-dir=DIR + --with-recode[=DIR] + --with-yaml[[=DIR]] + --with-mysql-sock[=SOCKPATH] + */ + if ( + preg_match_all('/ + PHP_ARG_WITH\( + \s* + + ([^,]*) + + (?: + \s*,\s* + \[? + ([^,\)]*) + \]? + + (?: + \s*,\s* + + \[ + \s* + + # simple match (\S+) + + ([a-zA-Z0-9-]+) # option + (?: + =? + + \[? + =?([^\s\]]*?) + \]? + )? # option value hint + + \s+ + + ([^,\)]*) # option description + \s* + \] + + (?: + \s*,\s* + ([^,\)]*) + + (?: + \s*,\s* + ([^,\)]*) + )? + )? + )? + )?/x', $m4, $allMatches) + ) { + // Parsing the M4 statement: + // + // dnl PHP_ARG_WITH(arg-name, check message, help text[, default-val[, extension-or-not]]) + // + for ($i = 0; $i < count($allMatches[0]); ++$i) { + $name = $allMatches[1][$i]; + $desc = $allMatches[2][$i]; + + $option = $allMatches[3][$i]; + $optionValueHint = $allMatches[4][$i]; + $optionDesc = $allMatches[5][$i]; + + $defaultValue = $allMatches[6][$i]; + + $opt = new ConfigureOption( + ($option ?: '--with-' . $name), + ($desc ?: $optionDesc), + $optionValueHint + ); + + if ($defaultValue) { + $opt->setDefaultValue($opt); + } + $ext->addConfigureOption($opt); + } + } + + return $ext; + } else { + throw new Exception("Can not parse config.m4: $m4Path"); + } + } + + public static function createPeclExtension($packageName, $packageXmlPath) + { + $parser = new PackageXmlParser(); + $package = $parser->parse($packageXmlPath); + $ext = new PeclExtension($packageName); + $ext->setPackage($package); + + /* + * xhprof stores package.xml in the root directory, but putting the + * config.m4 in the extension directory. + * the path can be retrieve from the contents part from the package.xml + */ + if ($m4path = $ext->findConfigM4FileFromPackageXml()) { + $sourceDirectory = dirname($packageXmlPath); + $m4dir = dirname($m4path); + if ($m4dir != '.') { + $sourceDirectory .= DIRECTORY_SEPARATOR . $m4dir; + } + $ext->setSourceDirectory($sourceDirectory); + } else { + $ext->setSourceDirectory(dirname($packageXmlPath)); + } + + return $ext; + } +} diff --git a/src/PhpBrew/Extension/ExtensionInstaller.php b/src/PhpBrew/Extension/ExtensionInstaller.php new file mode 100644 index 000000000..c77306f33 --- /dev/null +++ b/src/PhpBrew/Extension/ExtensionInstaller.php @@ -0,0 +1,92 @@ +logger = $logger; + $this->options = $options ?: new OptionResult(); + } + + public function install(Extension $ext, array $configureOptions = array()) + { + $sourceDir = $ext->getSourceDirectory(); + $pwd = getcwd(); + $buildLogPath = $sourceDir . DIRECTORY_SEPARATOR . 'build.log'; + $make = new MakeTask($this->logger, $this->options); + + $make->setBuildLogPath($buildLogPath); + + $this->logger->info("Log stored at: $buildLogPath"); + + $this->logger->info("Changing directory to $sourceDir"); + chdir($sourceDir); + + if (!$this->options->{'no-clean'} && $ext->isBuildable()) { + $clean = new MakeTask($this->logger, $this->options); + $clean->setQuiet(); + $clean->clean($ext); + } + + if ($ext->getConfigM4File() !== 'config.m4' && !file_exists($sourceDir . DIRECTORY_SEPARATOR . 'config.m4')) { + symlink($ext->getConfigM4File(), $sourceDir . DIRECTORY_SEPARATOR . 'config.m4'); + } + + // If the php version is specified, we should get phpize with the correct version. + $this->logger->info('===> Phpize...'); + Utils::system("phpize > $buildLogPath 2>&1", $this->logger); + + $this->logger->info('===> Configuring...'); + + $phpConfig = Config::getCurrentPhpConfigBin(); + if (file_exists($phpConfig)) { + $this->logger->debug("Appending argument: --with-php-config=$phpConfig"); + $configureOptions[] = '--with-php-config=' . $phpConfig; + } + + $cmd = './configure ' . implode(' ', array_map('escapeshellarg', $configureOptions)); + + if (!$this->logger->isDebug()) { + $cmd .= ' >> ' . escapeshellarg($buildLogPath) . ' 2>&1'; + } + + Utils::system($cmd, $this->logger); + + $this->logger->info('===> Building...'); + + if ($this->logger->isDebug()) { + passthru('make'); + } else { + $make->run($ext); + } + + $this->logger->info('===> Installing...'); + + // This function is disabled when PHP is running in safe mode. + if ($this->logger->isDebug()) { + passthru('make install'); + } else { + $make->install($ext); + } + + // TODO: use getSharedLibraryPath() + $this->logger->debug('Installed extension library: ' . $ext->getSharedLibraryPath()); + + // Try to find the installed path by pattern + // Installing shared extensions: /Users/c9s/.phpbrew/php/php-5.4.10/lib/php/extensions/debug-non-zts-20100525/ + chdir($pwd); + $this->logger->info('===> Extension is installed.'); + } +} diff --git a/src/PhpBrew/Extension/ExtensionManager.php b/src/PhpBrew/Extension/ExtensionManager.php new file mode 100644 index 000000000..527bbbc70 --- /dev/null +++ b/src/PhpBrew/Extension/ExtensionManager.php @@ -0,0 +1,288 @@ + array('jsonc'), // enabling jsonc disables json + 'jsonc' => array('json'), // enabling json disables jsonc + ); + + public function __construct(Logger $logger) + { + $this->logger = $logger; + } + + public function purgeExtension(Extension $ext) + { + if ($sourceDir = $ext->getSourceDirectory()) { + $currentPhpExtensionDirectory = Config::getBuildDir() . '/' . Config::getCurrentPhpName() . '/ext'; + $extName = $ext->getExtensionName(); + $extensionDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $extName; + if (file_exists($extensionDir)) { + Utils::system("rm -rvf $extensionDir"); + } + } + } + + public function cleanExtension(Extension $ext) + { + $make = new MakeTask($this->logger); + $make->setQuiet(); + $code = !is_dir($sourceDir = $ext->getSourceDirectory()) || + !$ext->isBuildable() || + !$make->clean($ext); + + if ($code != 0) { + $this->logger->error("Could not clean extension: {$ext->getName()}."); + } + + return $code == 0; + } + + /** + * Whenever you call this method, you shall have already downloaded the extension + * And have set the source directory on the Extension object. + */ + public function installExtension(Extension $ext, array $options = array()) + { + $this->disableExtension($ext); + + $sourceDir = $ext->getSourceDirectory(); + $name = $ext->getName(); + + if (!file_exists($sourceDir)) { + throw new Exception("Source directory $sourceDir does not exist."); + } + + // Install local extension + $installer = new ExtensionInstaller($this->logger); + $this->logger->info("===> Installing {$name} extension..."); + $this->logger->debug("Extension path $sourceDir"); + // $installer->runInstall($name, $sourceDir, $options); + $installer->install($ext, $options); + + $this->createExtensionConfig($ext); + $this->enableExtension($ext); + $this->logger->info('Done.'); + + return $sourceDir; + } + + public function createExtensionConfig(Extension $ext) + { + $ini = $ext->getConfigFilePath(); + $this->logger->info("===> Creating config file {$ini}"); + + if (!file_exists(dirname($ini))) { + if (!mkdir($concurrentDirectory = dirname($ini), 0755, true) && !is_dir($concurrentDirectory)) { + throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); + } + } + + if (file_exists($ini)) { + return true; + } + + // @see https://github.com/php/php-src/commit/0def1ca59a + $content = sprintf( + '%s=%s' . PHP_EOL, + $ext->isZend() ? 'zend_extension' : 'extension', + $ext->isZend() && PHP_VERSION_ID < 50500 + ? $ext->getSharedLibraryPath() + : $ext->getSharedLibraryName() + ); + + // create extension config file + if (file_put_contents($ini, $content) === false) { + return false; + } + + $this->logger->debug("{$ini} is created."); + + return true; + } + + public function disable($extensionName, $sapi = null) + { + $ext = ExtensionFactory::lookup($extensionName); + if (!$ext) { + $ext = ExtensionFactory::lookupRecursive($extensionName); + } + if ($ext) { + return $this->disableExtension($ext, $sapi); + } else { + $this->logger->info("{$extensionName} extension is not installed. "); + } + } + + public function enable($extensionName, $sapi = null) + { + $ext = ExtensionFactory::lookup($extensionName); + if (!$ext) { + $ext = ExtensionFactory::lookupRecursive($extensionName); + } + if ($ext) { + return $this->enableExtension($ext, $sapi); + } else { + $this->logger->info("{$extensionName} extension is not installed. "); + } + } + + /** + * Enables ini file for current extension. + * + * @return bool + */ + public function enableExtension(Extension $ext, $sapi = null) + { + $name = $ext->getExtensionName(); + $this->logger->info("===> Enabling extension $name"); + + if ($sapi) { + return $this->enableSapiExtension($ext, $name, $sapi, true); + } + + $first = true; + $result = true; + foreach (Config::getSapis() as $availableSapi) { + $result = $result && $this->enableSapiExtension($ext, $name, $availableSapi, $first); + $first = false; + } + + return $result; + } + + private function enableSapiExtension(Extension $ext, $name, $sapi, $first = false) + { + $default_file = $ext->getConfigFilePath(); + $enabled_file = $ext->getConfigFilePath($sapi); + if (file_exists($enabled_file) && ($ext->isLoaded() && !$this->hasConflicts($ext))) { + $this->logger->info("[*] {$name} extension is already enabled for SAPI {$sapi}."); + + return true; + } + + if ( + $first + && !file_exists($default_file) + && !(file_exists($ext->getSharedLibraryPath()) + && $this->createExtensionConfig($ext)) + ) { + $this->logger->info("{$name} extension is not installed. Suggestions:"); + $this->logger->info("\t\$ phpbrew ext install {$name}"); + + return false; + } + + if (!file_exists(dirname($enabled_file))) { + return true; + } + + $this->disableAntagonists($ext, $sapi); + + $disabled_file = $enabled_file . '.disabled'; + if (file_exists($disabled_file)) { + if (!rename($disabled_file, $enabled_file)) { + $this->logger->warning("failed to re-enable {$name} extension for SAPI {$sapi}."); + + return false; + } + + $this->logger->info("[*] {$name} extension is re-enabled for SAPI {$sapi}."); + return true; + } + + if (!copy($default_file, $enabled_file)) { + $this->logger->warning("failed to enable {$name} extension for SAPI {$sapi}."); + + return false; + } + + $this->logger->info("[*] {$name} extension is enabled for SAPI {$sapi}."); + + return true; + } + + /** + * Disables ini file for current extension. + * + * @return bool + */ + public function disableExtension(Extension $ext, $sapi = null) + { + $name = $ext->getExtensionName(); + + if (null !== $sapi) { + return $this->disableSapiExtension($ext->getConfigFilePath($sapi), $name, $sapi); + } + + $result = true; + foreach (Config::getSapis() as $availableSapi) { + $result = $result && $this->disableSapiExtension($ext->getConfigFilePath($availableSapi), $name, $sapi); + } + + return $result; + } + + private function disableSapiExtension($extension_file, $name, $sapi) + { + if (!file_exists(dirname($extension_file))) { + return true; + } + + if (!file_exists($extension_file)) { + $this->logger->info("[ ] {$name} extension is already disabled for SAPI {$sapi}."); + + return true; + } + + if (file_exists($extension_file)) { + if (rename($extension_file, $extension_file . '.disabled')) { + $this->logger->info("[ ] {$name} extension is disabled for SAPI {$sapi}."); + + return true; + } + $this->logger->warning("failed to disable {$name} extension for SAPI {$sapi}."); + } + + return false; + } + + /** + * Disable extensions known to conflict with current one. + */ + public function disableAntagonists(Extension $ext, $sapi = null) + { + $name = $ext->getName(); + if (isset($this->conflicts[$name])) { + $conflicts = $this->conflicts[$name]; + $this->logger->info('===> Applying conflicts resolution (' . implode(', ', $conflicts) . '):'); + foreach ($conflicts as $extensionName) { + $ext = ExtensionFactory::lookup($extensionName); + $this->disableExtension($ext, $sapi); + } + } + } + + public function hasConflicts(Extension $ext) + { + return array_key_exists($ext->getName(), $this->conflicts); + } +} diff --git a/src/PhpBrew/Extension/M4Extension.php b/src/PhpBrew/Extension/M4Extension.php new file mode 100644 index 000000000..4675280ab --- /dev/null +++ b/src/PhpBrew/Extension/M4Extension.php @@ -0,0 +1,7 @@ +package = $pkg; + $this->setVersion($pkg->getReleaseVersion()); + + if ($pkg->getZendExtSrcRelease()) { + $this->setZend(true); + } + + if ($n = strtolower($pkg->getProvidesExtension())) { + $this->setExtensionName($n); + $this->setSharedLibraryName($n . '.so'); + } + + if ($options = $pkg->getConfigureOptions()) { + $this->configureOptions = array(); + foreach ($options as $option) { + $this->addConfigureOption(new ConfigureOption('--' . $option->name, $option->prompt, $option->default)); + } + } + } + + public function findConfigM4FileFromPackageXml() + { + if ($contents = $this->package->getContents()) { + foreach ($contents as $content) { + if (preg_match('#config[0-9]*.m4$#', $content->file)) { + // TODO: make sure the file exists + return $content->file; + } + } + } + } + + public function findConfigM4File($dir) + { + if ($file = parent::findConfigM4File($dir)) { + return $file; + } + if ($file = $this->findConfigM4FileFromPackageXml()) { + return $file; + } + } +} diff --git a/src/PhpBrew/Extension/Provider/BitbucketProvider.php b/src/PhpBrew/Extension/Provider/BitbucketProvider.php new file mode 100644 index 000000000..340939051 --- /dev/null +++ b/src/PhpBrew/Extension/Provider/BitbucketProvider.php @@ -0,0 +1,145 @@ +getOwner() == null) || ($this->getRepository() == null)) { + throw new Exception('Username or Repository invalid.'); + } + + return sprintf( + 'https://%s/%s/%s/get/%s.tar.gz', + $this->site, + $this->getOwner(), + $this->getRepository(), + $version + ); + } + + public function getOwner() + { + return $this->owner; + } + + public function setOwner($owner) + { + $this->owner = $owner; + } + + public function getRepository() + { + return $this->repository; + } + + public function setRepository($repository) + { + $this->repository = $repository; + } + + public function getPackageName() + { + return $this->packageName; + } + + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function exists($dsl, $packageName = null) + { + $dslparser = new RepositoryDslParser(); + $info = $dslparser->parse($dsl); + + $this->setOwner($info['owner']); + $this->setRepository($info['package']); + $this->setPackageName($packageName ?: $info['package']); + + return $info['repository'] == 'bitbucket'; + } + + public function isBundled($name) + { + return false; + } + + public function buildKnownReleasesUrl() + { + return sprintf( + 'https://bitbucket.org/api/2.0/repositories/%s/%s/refs/tags', + rawurlencode($this->getOwner()), + rawurlencode($this->getRepository()) + ); + } + + public function parseKnownReleasesResponse($content) + { + $info = json_decode($content, true); + $versionList = array_keys($info); + + return $versionList; + } + + public function getDefaultVersion() + { + return $this->defaultVersion; + } + + public function setDefaultVersion($version) + { + $this->defaultVersion = $version; + } + + public function shouldLookupRecursive() + { + return true; + } + + public function resolveDownloadFileName($version) + { + return sprintf('%s-%s-%s.tar.gz', $this->getOwner(), $this->getRepository(), $version); + } + + public function extractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $cmds = array( + "tar -C $currentPhpExtensionDirectory -xzf $targetFilePath", + ); + + return $cmds; + } + + public function postExtractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $targetPkgDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $this->getPackageName(); + $extractDir = $currentPhpExtensionDirectory + . DIRECTORY_SEPARATOR + . $this->getOwner() + . '-' + . $this->getRepository() + . '-*'; + + $cmds = array( + "rm -rf $targetPkgDir", + "mv $extractDir $targetPkgDir", + ); + + return $cmds; + } +} diff --git a/src/PhpBrew/Extension/Provider/GithubProvider.php b/src/PhpBrew/Extension/Provider/GithubProvider.php new file mode 100644 index 000000000..6ead070cd --- /dev/null +++ b/src/PhpBrew/Extension/Provider/GithubProvider.php @@ -0,0 +1,164 @@ +getOwner() == null) || ($this->getRepository() == null)) { + throw new Exception('Username or Repository invalid.'); + } + + return sprintf( + 'https://%s/%s/%s/archive/%s.tar.gz', + $this->site, + $this->getOwner(), + $this->getRepository(), + $version + ); + } + + /** + * @return string + */ + public function getAuth() + { + return $this->auth; + } + + /** + * @param string $auth + */ + public function setAuth($auth) + { + $this->auth = $auth; + } + + + public function getOwner() + { + return $this->owner; + } + + public function setOwner($owner) + { + $this->owner = $owner; + } + + public function getRepository() + { + return $this->repository; + } + + public function setRepository($repository) + { + $this->repository = $repository; + } + + public function getPackageName() + { + return $this->packageName; + } + + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function exists($dsl, $packageName = null) + { + $dslparser = new RepositoryDslParser(); + $info = $dslparser->parse($dsl); + + $this->setOwner($info['owner']); + $this->setRepository($info['package']); + $this->setPackageName($packageName ?: $info['package']); + + return $info['repository'] == 'github'; + } + + public function isBundled($name) + { + return false; + } + + public function buildKnownReleasesUrl() + { + return sprintf( + 'https://%sapi.github.com/repos/%s/%s/tags', + ($this->auth ? $this->auth . '@' : ''), + $this->getOwner(), + $this->getRepository() + ); + } + + public function parseKnownReleasesResponse($content) + { + $info = json_decode($content, true); + $versionList = array_map(function ($version) { + return $version['name']; + }, $info); + + return $versionList; + } + + public function getDefaultVersion() + { + return $this->defaultVersion; + } + + public function setDefaultVersion($version) + { + $this->defaultVersion = $version; + } + + public function shouldLookupRecursive() + { + return true; + } + + public function resolveDownloadFileName($version) + { + return sprintf('%s-%s.tar.gz', $this->getRepository(), $version); + } + + public function extractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $cmds = array( + "tar -C $currentPhpExtensionDirectory -xzf $targetFilePath", + ); + + return $cmds; + } + + public function postExtractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $targetPkgDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $this->getPackageName(); + $extractDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $this->getRepository() . '-*'; + + $cmds = array( + "rm -rf $targetPkgDir", + "mv $extractDir $targetPkgDir", + ); + + return $cmds; + } +} diff --git a/src/PhpBrew/Extension/Provider/PeclProvider.php b/src/PhpBrew/Extension/Provider/PeclProvider.php new file mode 100644 index 000000000..63343f4f9 --- /dev/null +++ b/src/PhpBrew/Extension/Provider/PeclProvider.php @@ -0,0 +1,205 @@ +logger = $logger; + $this->options = $options; + } + + public static function getName() + { + return 'pecl'; + } + + public function buildPackageDownloadUrl($version = 'stable') + { + $packageName = $this->getPackageName(); + + if ($packageName === null) { + throw new Exception('Repository invalid.'); + } + + $channel = new PeclChannel($this->site); + $baseUrl = $channel->getRestBaseUrl(); + $url = "$baseUrl/r/" . strtolower($packageName); + + $downloader = DownloadFactory::getInstance($this->logger, $this->options); + + // translate version name into numbers + if (in_array($version, array('stable', 'latest', 'beta'))) { + $stabilityTxtUrl = $url . '/' . $version . '.txt'; + if ($ret = $downloader->request($stabilityTxtUrl)) { + $version = (string) $ret; + } else { + throw new Exception("Can not translate stability {$version} into exact version name."); + } + } + + $xmlUrl = $url . '/' . $version . '.xml'; + $ret = $downloader->request($xmlUrl); + + if ($ret === false) { + throw new Exception('Unable to fetch package xml'); + } + + $xml = simplexml_load_string($ret); + + if ($xml === false) { + throw new Exception("Error in XMl document: $url"); + } + + // just use tgz format file. + return $xml->g . '.tgz'; + } + + public function getOwner() + { + return $this->owner; + } + + public function setOwner($owner) + { + $this->owner = $owner; + } + + public function getRepository() + { + return $this->repository; + } + + public function setRepository($repository) + { + $this->repository = $repository; + } + + public function getPackageName() + { + return $this->packageName; + } + + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + + public function exists($url, $packageName = null) + { + $this->setOwner(null); + $this->setRepository(null); + $this->setPackageName($url); + + return true; + } + + public function isBundled($name) + { + return in_array(strtolower($name), array( + 'bcmath', 'bz2', 'calendar', 'com_dotnet', 'ctype', 'curl', 'date', + 'dba', 'dom', 'enchant', 'exif', 'fileinfo', 'filter', 'ftp', 'gd', + 'gettext', 'gmp', 'hash', 'iconv', 'imap', 'interbase', 'intl', + 'json', 'ldap', 'libxml', 'mbstring', 'mcrypt', 'mssql', 'mysqli', + 'mysqlnd', 'oci8', 'odbc', 'opcache', 'openssl', 'pcntl', 'pcre', + 'pdo', 'pdo_dblib', 'pdo_firebird', 'pdo_mysql', 'pdo_oci', 'pdo_odbc', + 'pdo_pgsql', 'pdo_sqlite', 'pgsql', 'phar', 'posix', 'pspell', + 'readline', 'recode', 'reflection', 'session', 'shmop', 'simplexml', + 'skeleton', 'snmp', 'soap', 'sockets', 'spl', 'sqlite3', 'standard', + 'sysvmsg', 'sysvsem', 'sysvshm', 'tidy', 'tokenizer', 'wddx', 'xml', + 'xmlreader', 'xmlrpc', 'xmlwriter', 'xsl', 'zip', 'zlib', 'ext_skel', + 'ext_skel_win32', + )); + } + + public function buildKnownReleasesUrl() + { + return sprintf('https://pecl.php.net/rest/r/%s/allreleases.xml', $this->getPackageName()); + } + + public function parseKnownReleasesResponse($content) + { + $xml = simplexml_load_string($content); + $releases = array(); + + foreach ($xml->r as $r) { + $releases[] = (string) $r->v; + } + + return $releases; + } + + public function getDefaultVersion() + { + return $this->defaultVersion; + } + + public function setDefaultVersion($version) + { + $this->defaultVersion = $version; + } + + public function shouldLookupRecursive() + { + return false; + } + + public function resolveDownloadFileName($version) + { + $url = $this->buildPackageDownloadUrl($version); + // Check if the url is for php source archive + if (preg_match('/php-.+\.tar\.(bz2|gz|xz)/', $url, $parts)) { + return $parts[0]; + } + + // try to get the filename through parse_url + $path = parse_url($url, PHP_URL_PATH); + if (false === $path || false === strpos($path, '.')) { + return; + } + + return basename($path); + } + + public function extractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $cmds = array( + "tar -C $currentPhpExtensionDirectory -xzf $targetFilePath", + ); + + return $cmds; + } + + public function postExtractPackageCommands($currentPhpExtensionDirectory, $targetFilePath) + { + $targetPkgDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $this->getPackageName(); + $info = pathinfo($targetFilePath); + $packageName = $this->getPackageName(); + + $cmds = array( + "rm -rf $targetPkgDir", + // Move "memcached-2.2.7" to "memcached" + "mv $currentPhpExtensionDirectory/{$info['filename']} $currentPhpExtensionDirectory/$packageName", + // Move "ext/package.xml" to "memcached/package.xml" + "mv $currentPhpExtensionDirectory/package.xml $currentPhpExtensionDirectory/$packageName/package.xml", + ); + + return $cmds; + } +} diff --git a/src/PhpBrew/Extension/Provider/Provider.php b/src/PhpBrew/Extension/Provider/Provider.php new file mode 100644 index 000000000..e4453ed13 --- /dev/null +++ b/src/PhpBrew/Extension/Provider/Provider.php @@ -0,0 +1,27 @@ + array( + 'git@bitbucket.org:', + 'bitbucket:', + ), + 'https://github.com/' => array( + 'github:', + 'git@github.com:', + ), + ); + + public function parse($dsl) + { + $ast = array( + 'repository' => 'pecl', + 'owner' => null, + 'package' => $dsl, + ); + + $url = $this->toUrl($dsl); + + // parse provider, owner and repository + if (preg_match("#https?://(?:www\.)?([0-9a-zA-Z-_]*).+/([0-9a-zA-Z-._]*)/([0-9a-zA-Z-._]*)#", $url, $matches)) { + $ast['repository'] = $matches[1]; + $ast['owner'] = $matches[2]; + $ast['package'] = $matches[3]; + } + + return $ast; + } + + protected function toUrl($dsl) + { + $url = $dsl; + foreach (self::$macros as $target => $sources) { + $url = str_replace($sources, $target, $url); + } + + return preg_replace('#\.git$#', '', $url); + } +} diff --git a/src/PhpBrew/ExtensionInstaller.php b/src/PhpBrew/ExtensionInstaller.php deleted file mode 100644 index 0e7bffcd7..000000000 --- a/src/PhpBrew/ExtensionInstaller.php +++ /dev/null @@ -1,114 +0,0 @@ -logger = $logger; - } - - public function findPeclPackageUrl($packageName, $version = 'stable') - { - $channel = new PEARX\Channel($this->pecl); - $xml = $channel->fetchPackageReleaseXml($packageName, $version); - - $g = $xml->getElementsByTagName('g'); - $url = $g->item(0)->nodeValue; - // just use tgz format file. - return $url . '.tgz'; - } - - - public function installFromPecl($packageName, $version = 'stable', $configureOptions = array() ) - { - $url = $this->findPeclPackageUrl($packageName, $version); - $downloader = new Downloader\UrlDownloader($this->logger); - $basename = $downloader->download($url); - - // extract - $this->logger->info("===> Extracting $basename..."); - Utils::system("tar xf $basename"); - - $info = pathinfo($basename); - $dir = $info['filename']; - - return $this->runInstall($packageName, $dir, $configureOptions); - } - - public function runInstall($packageName, $dir, $configureOptions) - { - $sw = new DirectorySwitch; - $sw->cd( $dir ); - - $this->logger->info("===> Phpizing..."); - - if ( ! file_exists('config.m4') ) { - $this->logger->warn("File config.m4 not found, checking config0.m4"); - if ( file_exists('config0.m4') ) { - $this->logger->info("Found config.0.m4, copying to config.m4"); - if ( false === copy('config0.m4','config.m4') ) { - throw new Exception("Copy failed."); - } - } - } - - Utils::system('phpize > build.log'); - - // here we don't want to use closure, because - // 5.2 does not support closure. We haven't decided whether to - // support 5.2 yet. - $escapeOptions = array(); - foreach( $configureOptions as $opt ) { - $escapeOptions[] = escapeshellarg($opt); - } - $this->logger->info("===> Configuring..."); - Utils::system('./configure ' . join(' ', $escapeOptions) . ' >> build.log' ) - !== false or die('Configure failed.'); - - $this->logger->info("===> Building..."); - Utils::system('make >> build.log'); - - $this->logger->info("===> Installing..."); - - // This function is disabled when PHP is running in safe mode. - $output = shell_exec('make install'); - - if ( ! $output ) { - throw new Exception("Extension Install Failed."); - } - - - $this->logger->debug($output); - $lines = explode("\n", $output ); - - $installedPath = null; - foreach( $lines as $line ) { - if( preg_match('#Installing shared extensions:\s+(\S+)#',$line, $regs) ) { - $installedPath = $regs[1]; - break; - } - } - - - $installedPath .= strtolower($packageName) . '.so'; - $this->logger->debug("Installed extension: " . $installedPath); - - - // Try to find the installed path by pattern - // Installing shared extensions: /Users/c9s/.phpbrew/php/php-5.4.10/lib/php/extensions/debug-non-zts-20100525/ - $sw->back(); - - $this->logger->info("===> Extension is installed."); - return $installedPath; - } - -} - diff --git a/src/PhpBrew/ExtensionList.php b/src/PhpBrew/ExtensionList.php new file mode 100644 index 000000000..850f08b5e --- /dev/null +++ b/src/PhpBrew/ExtensionList.php @@ -0,0 +1,58 @@ +logger = $logger; + $this->options = $options; + } + + /** + * Returns available extension providers + * + * @return Provider[] + */ + public function getProviders() + { + static $providers; + if ($providers) { + return $providers; + } + $providers = array( + new Extension\Provider\GithubProvider(), + new Extension\Provider\BitbucketProvider(), + new Extension\Provider\PeclProvider($this->logger, $this->options), + ); + + return $providers; + } + + /** + * Returns provider for the given extension + * + * @param string $extensionName + * @return Provider|null + */ + public function exists($extensionName) + { + // determine which provider support this extension + $providers = $this->getProviders(); + foreach ($providers as $provider) { + if ($provider->exists($extensionName)) { + return $provider; + } + } + + return null; + } +} diff --git a/src/PhpBrew/InvalidVariantSyntaxException.php b/src/PhpBrew/InvalidVariantSyntaxException.php new file mode 100644 index 000000000..b70daadea --- /dev/null +++ b/src/PhpBrew/InvalidVariantSyntaxException.php @@ -0,0 +1,9 @@ +strip = $level; + + return $this; + } + + /** + * @param string $patch The path contents + */ + public static function fromPatch($patch) + { + $instance = new self(); + $instance->patch = $patch; + + return $instance; + } + + public function backup(Buildable $build, Logger $logger) + { + } + + public function apply(Buildable $build, Logger $logger) + { + $logger->info('---> Applying patch...'); + + $process = proc_open( + sprintf('patch --forward --backup -p%d', $this->strip), + array( + array('pipe', 'r'), + array('pipe', 'w'), + array('pipe', 'w'), + ), + $pipes, + $build->getSourceDirectory() + ); + + if (fwrite($pipes[0], $this->patch) === false) { + return 0; + } + + fclose($pipes[0]); + + $output = stream_get_contents($pipes[1]); + + if ($output !== '') { + $logger->info($output); + } + + $error = stream_get_contents($pipes[2]); + + if ($error !== '') { + $logger->error($error); + } + + if (proc_close($process) !== 0) { + $logger->error('Patch failed'); + + return 0; + } + + $logger->info('Done.'); + + return 1; + } +} diff --git a/src/PhpBrew/PatchKit/Patch.php b/src/PhpBrew/PatchKit/Patch.php new file mode 100644 index 000000000..a699ace7d --- /dev/null +++ b/src/PhpBrew/PatchKit/Patch.php @@ -0,0 +1,49 @@ +rules()) { + // todo: should backup all files in one time (some patch rules have the same file names) + foreach ($rules as $rule) { + $rule->backup($build, $logger); + } + foreach ($rules as $rule) { + if ($patched = $rule->apply($build, $logger)) { + $cnt += $patched; + } + } + } + + return $cnt; + } +} diff --git a/src/PhpBrew/PatchKit/PatchRule.php b/src/PhpBrew/PatchKit/PatchRule.php new file mode 100644 index 000000000..1748b4c3e --- /dev/null +++ b/src/PhpBrew/PatchKit/PatchRule.php @@ -0,0 +1,13 @@ +files = $files; + } + + /** + * This method build up the predicator. + */ + public function allOf(array $patterns) + { + $this->predicator = function ($line) use ($patterns) { + foreach ($patterns as $pattern) { + if (!preg_match($pattern, $line)) { + return false; + } + } + + return true; + }; + + return $this; + } + + public function anyOf(array $patterns) + { + if (count($patterns) === 0) { + $this->predicator = true; + } + $this->predicator = function ($line) use ($patterns) { + foreach ($patterns as $pattern) { + if (preg_match($pattern, $line)) { + return true; + } + } + + return false; + }; + + return $this; + } + + public function always() + { + $this->predicator = true; + + return $this; + } + + public function replaces($pattern, $replacement) + { + $this->pattern = $pattern; + $this->replacement = $replacement; + + return $this; + } + + public static function files($files) + { + return new self((array) $files); + } + + protected function applyLines(array $lines, &$patched) + { + $size = count($lines); + for ($i = 0; $i < $size; ++$i) { + if ($this->predicator === true || call_user_func($this->predicator, $lines[$i])) { + $lines[$i] = preg_replace($this->pattern, $this->replacement, $lines[$i], -1, $count); + $patched += $count; + } + } + + return implode(PHP_EOL, $lines); + } + + /** + * This method can only be used for text format files. + * + * @param string $content the target of the text content. + */ + protected function applyTextContent($content, &$patched) + { + // may use file() ? + return $this->applyLines(preg_split("/(?:\r\n|\n|\r)/", $content), $patched); + } + + public function backup(Buildable $build, Logger $logger) + { + foreach ($this->files as $file) { + $path = $build->getSourceDirectory() . DIRECTORY_SEPARATOR . $file; + if (!file_exists($path)) { + $logger->error("file $path doesn't exist in the build directory."); + continue; + } + $this->backupFile($path); + } + } + + protected function backupFile($path) + { + $bakPath = $path . '.' . time() . '.bak'; + copy($path, $bakPath); + } + + public function apply(Buildable $build, Logger $logger) + { + $patched = 0; + foreach ($this->files as $file) { + $path = $build->getSourceDirectory() . DIRECTORY_SEPARATOR . $file; + if (!file_exists($path)) { + $logger->error("file $path doesn't exist in the build directory."); + continue; + } + if ($content = file_get_contents($path)) { + $content = $this->applyTextContent($content, $patched); + if (false === file_put_contents($path, $content)) { + $logger->error("Patch on $path write failed."); + } + } + } + + return $patched; + } +} diff --git a/src/PhpBrew/PatchPHP.php b/src/PhpBrew/PatchPHP.php deleted file mode 100644 index 04e5f5f95..000000000 --- a/src/PhpBrew/PatchPHP.php +++ /dev/null @@ -1,66 +0,0 @@ -fetchDiff( 'http://remote.url/patch-1.diff' ); - $patchphp->patch(); - -OR: - - $patchphp = new PatchPHP('patch-name'); - $patchphp->diff =<<patch(); - -*/ -class PatchPHP -{ - public $diff; - public $patchName; - - public function __construct($patchName = null) - { - $this->patchName = $patchName; - $this->diff = ''; - } - - public function getPatchFilename() - { - return ($this->patchName ?: uniqid()) . '.patch'; - } - - /** - * fetch remote diff - * - * @param string $url - */ - public function fetchDiff($url) - { - $this->diff = file_get_contents( $url ); - } - - /** - * patch file - * - * @param string $file file to patch. - */ - public function patch() - { - if( $this->diff ) { - $patchFile = $this->getPatchFilename(); - file_put_contents( $patchFile , $this->diff ); - system( "patch < $patchFile" ); - - // clean up patch File - unlink( $patchFile ); - } - } - -} - diff --git a/src/PhpBrew/Patches/Apache2ModuleNamePatch.php b/src/PhpBrew/Patches/Apache2ModuleNamePatch.php new file mode 100644 index 000000000..958ecf0de --- /dev/null +++ b/src/PhpBrew/Patches/Apache2ModuleNamePatch.php @@ -0,0 +1,115 @@ +targetPhpVersion = $targetPhpVersion; + } + + public function desc() + { + return 'replace apache php module name with custom version name'; + } + + public function match(Buildable $build, Logger $logger) + { + return $build->isEnabledVariant('apxs2'); + } + + public function rules() + { + $rules = array(); + + /* + This is for replacing something like this: + + SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME + SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a + SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + + SAPI_SHARED=libs/libphp5.so + */ + if (version_compare($this->targetPhpVersion, '8.0') < 0) { + $rules[] = RegExpPatchRule::files(array('configure')) + ->always() + ->replaces( + '#libphp\$PHP_MAJOR_VERSION\.#', + 'libphp$PHP_VERSION.' + ); + + + $rules[] = RegExpPatchRule::files(array('configure')) + ->always() + ->replaces( + '#libs/libphp[57].(so|la)#', + 'libs/libphp\$PHP_VERSION.$1' + ); + } else { + $rules[] = RegExpPatchRule::files(array('configure')) + ->always() + ->replaces( + '#libphp.(a|so|la|bundle)#', + 'libphp$PHP_VERSION.$1' + ); + + $rules[] = RegExpPatchRule::files(array('configure')) + ->always() + ->replaces( + '#libs/libphp.(a|so|la|bundle)#', + 'libs/libphp\$PHP_VERSION.$1' + ); + $rules[] = RegExpPatchRule::files(array('configure')) + ->always() + ->replaces( + '#libs/libphp.\$SHLIB_DL_SUFFIX_NAME#', + 'libs/libphp\$PHP_VERSION.$SHLIB_DL_SUFFIX_NAME' + ); + } + + $makefile = 'Makefile.global'; + + if (version_compare($this->targetPhpVersion, '8.0') >= 0) { + $makefile = 'build/Makefile.global'; + $rules[] = RegExpPatchRule::files(array($makefile)) + ->always() + ->replaces( + '#libphp.(a|so|la|bundle)#', + 'libphp$(PHP_VERSION).$1' + ); + + $rules[] = RegExpPatchRule::files(array($makefile)) + ->always() + ->replaces( + '#libphp.\$\(SHLIB_DL_SUFFIX_NAME\)#', + 'libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME)' + ); + } + + if (version_compare($this->targetPhpVersion, '7.4') >= 0) { + $makefile = 'build/Makefile.global'; + } + + $rules[] = RegExpPatchRule::files(array($makefile)) + ->always() + ->replaces( + '#libphp\$\(PHP_MAJOR_VERSION\)#', + 'libphp$(PHP_VERSION)' + ); + + return $rules; + } +} diff --git a/src/PhpBrew/Patches/FreeTypePatch.php b/src/PhpBrew/Patches/FreeTypePatch.php new file mode 100644 index 000000000..b00307d2d --- /dev/null +++ b/src/PhpBrew/Patches/FreeTypePatch.php @@ -0,0 +1,79 @@ +isEnabledVariant('gd') && version_compare($build->getVersion(), '7.4', '<='); + } + + /** + * @link https://git.archlinux.org/svntogit/packages.git/commit/?id=65fd0dc1649537b7fd1d539b769251aacec88719 + * + * @codeCoverageIgnore + */ + public function rules() + { + return array( + DiffPatchRule::fromPatch( + <<<'EOP' +diff -u -r php-7.2.5/ext/gd/config.m4 php-7.2.5-freetype/ext/gd/config.m4 +--- php-7.2.5/ext/gd/config.m4 2018-04-24 17:09:54.000000000 +0200 ++++ php-7.2.5-freetype/ext/gd/config.m4 2018-05-09 14:49:03.647108948 +0200 +@@ -186,6 +186,9 @@ + AC_DEFUN([PHP_GD_FREETYPE2],[ + if test "$PHP_FREETYPE_DIR" != "no"; then + ++ AC_PATH_PROG(PKG_CONFIG, pkg-config, no) ++ ++ AC_MSG_CHECKING([for freetype]) + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i +@@ -194,13 +197,20 @@ + fi + done + +- if test -z "$FREETYPE2_DIR"; then ++ if test -n "$FREETYPE2_CONFIG"; then ++ FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` ++ FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` ++ AC_MSG_RESULT([found in $FREETYPE2_DIR]) ++ elif test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists freetype2; then ++ FREETYPE2_DIR=pkg-config ++ FREETYPE2_CFLAGS=`$PKG_CONFIG freetype2 --cflags` ++ FREETYPE2_LIBS=`$PKG_CONFIG freetype2 --libs` ++ AC_MSG_RESULT([found by pkg-config]) ++ else ++ AC_MSG_RESULT([not found]) + AC_MSG_ERROR([freetype-config not found.]) + fi + +- FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` +- FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` +- + PHP_EVAL_INCLINE($FREETYPE2_CFLAGS) + PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) +EOP + )->strip(1) + ); + } +} diff --git a/src/PhpBrew/Patches/IntlWith64bitPatch.php b/src/PhpBrew/Patches/IntlWith64bitPatch.php new file mode 100644 index 000000000..de714c6cb --- /dev/null +++ b/src/PhpBrew/Patches/IntlWith64bitPatch.php @@ -0,0 +1,71 @@ +isEnabledVariant('intl') && version_compare($build->getVersion(), '5.4', '<='); + } + + public function rules() + { + $rules = array(); + $rules[] = RegExpPatchRule::files('Makefile') + ->allOf(array('/^BUILD_/')) + ->replaces('/\$\(CC\)/', '$(CXX)'); + + $rules[] = RegExpPatchRule::files('Makefile') + ->allOf(array('/^EXTRA_LIBS =/')) + ->replaces('/^(.*)$/', '$1 -lstdc++'); + + return $rules; + } +} diff --git a/src/PhpBrew/Patches/OpenSSLDSOPatch.php b/src/PhpBrew/Patches/OpenSSLDSOPatch.php new file mode 100644 index 000000000..2c1232043 --- /dev/null +++ b/src/PhpBrew/Patches/OpenSSLDSOPatch.php @@ -0,0 +1,72 @@ +osName === 'Darwin' + && version_compare($build->osRelease, '15.0.0') > 0 + && $build->isEnabledVariant('openssl'); + } + + public function rules() + { + /* + Macports + -lssl /opt/local/lib/libssl.dylib + -lcrypto /opt/local/lib/libcrypto.dylib + + HomeBrew + /usr/local/opt/openssl/lib/libssl.dylib + /usr/local/opt/openssl/lib/libcrypto.dylib + */ + $dylibssl = null; + $dylibcrypto = null; + + $paths = array('/opt/local/lib/libssl.dylib', + '/usr/local/opt/openssl/lib/libssl.dylib', + '/usr/local/lib/libssl.dylib', '/usr/lib/libssl.dylib', ); + foreach ($paths as $path) { + if (file_exists($path)) { + $dylibssl = $path; + break; + } + } + + $paths = array('/opt/local/lib/libcrypto.dylib', + '/usr/local/opt/openssl/lib/libcrypto.dylib', + '/usr/local/lib/libcrypto.dylib', '/usr/lib/libcrypto.dylib', ); + foreach ($paths as $path) { + if (file_exists($path)) { + $dylibcrypto = $path; + break; + } + } + + $rules = array(); + if ($dylibssl) { + $rules[] = RegExpPatchRule::files('Makefile') + ->allOf(array('/^EXTRA_LIBS =/')) + ->replaces('/-lssl/', $dylibssl); + } + if ($dylibcrypto) { + $rules[] = RegExpPatchRule::files('Makefile') + ->allOf(array('/^EXTRA_LIBS =/')) + ->replaces('/-lcrypto/', $dylibcrypto); + } + + return $rules; + } +} diff --git a/src/PhpBrew/Patches/PHP56WithOpenSSL11Patch.php b/src/PhpBrew/Patches/PHP56WithOpenSSL11Patch.php new file mode 100644 index 000000000..693c2dd3b --- /dev/null +++ b/src/PhpBrew/Patches/PHP56WithOpenSSL11Patch.php @@ -0,0 +1,1311 @@ +getVersion(); + + return substr($buildVersion, 0, 4) === '5.6.' + && version_compare($buildVersion, '5.6.31') >= 0 // patch only works for 5.6.31 and up + && $build->isEnabledVariant('openssl'); + } + + /** + * phpcs:disable Generic.Files.LineLength.TooLong + * + * @link https://github.com/php/php-src/pull/2667 + * + * @codeCoverageIgnore + */ + public function rules() + { + return array( + DiffPatchRule::fromPatch( + <<<'EOP' +diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c +index a78a8fb10f82..6c3ae3cde80a 100644 +--- a/ext/openssl/openssl.c ++++ b/ext/openssl/openssl.c +@@ -42,6 +42,12 @@ + + /* OpenSSL includes */ + #include ++#if OPENSSL_VERSION_NUMBER >= 0x10002000L ++#include ++#include ++#include ++#include ++#endif + #include + #include + #include +@@ -531,6 +537,131 @@ zend_module_entry openssl_module_entry = { + ZEND_GET_MODULE(openssl) + #endif + ++/* {{{ OpenSSL compatibility functions and macros */ ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) ++#define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa ++#define EVP_PKEY_get0_DH(_pkey) _pkey->pkey.dh ++#define EVP_PKEY_get0_DSA(_pkey) _pkey->pkey.dsa ++#define EVP_PKEY_get0_EC_KEY(_pkey) _pkey->pkey.ec ++ ++static int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) ++{ ++ r->n = n; ++ r->e = e; ++ r->d = d; ++ ++ return 1; ++} ++ ++static int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q) ++{ ++ r->p = p; ++ r->q = q; ++ ++ return 1; ++} ++ ++static int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) ++{ ++ r->dmp1 = dmp1; ++ r->dmq1 = dmq1; ++ r->iqmp = iqmp; ++ ++ return 1; ++} ++ ++static void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) ++{ ++ *n = r->n; ++ *e = r->e; ++ *d = r->d; ++} ++ ++static void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q) ++{ ++ *p = r->p; ++ *q = r->q; ++} ++ ++static void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) ++{ ++ *dmp1 = r->dmp1; ++ *dmq1 = r->dmq1; ++ *iqmp = r->iqmp; ++} ++ ++static void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) ++{ ++ *p = dh->p; ++ *q = dh->q; ++ *g = dh->g; ++} ++ ++static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) ++{ ++ dh->p = p; ++ dh->q = q; ++ dh->g = g; ++ ++ return 1; ++} ++ ++static void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key) ++{ ++ *pub_key = dh->pub_key; ++ *priv_key = dh->priv_key; ++} ++ ++static int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) ++{ ++ dh->pub_key = pub_key; ++ dh->priv_key = priv_key; ++ ++ return 1; ++} ++ ++static void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) ++{ ++ *p = d->p; ++ *q = d->q; ++ *g = d->g; ++} ++ ++int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) ++{ ++ d->p = p; ++ d->q = q; ++ d->g = g; ++ ++ return 1; ++} ++ ++static void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key) ++{ ++ *pub_key = d->pub_key; ++ *priv_key = d->priv_key; ++} ++ ++int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) ++{ ++ d->pub_key = pub_key; ++ d->priv_key = priv_key; ++ ++ return 1; ++} ++ ++#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined (LIBRESSL_VERSION_NUMBER) ++ ++static int X509_get_signature_nid(const X509 *x) ++{ ++ return OBJ_obj2nid(x->sig_alg->algorithm); ++} ++ ++#endif ++ ++#endif ++/* }}} */ ++ + static int le_key; + static int le_x509; + static int le_csr; +@@ -825,7 +956,7 @@ static int add_oid_section(struct php_x509_request * req TSRMLS_DC) /* {{{ */ + } + for (i = 0; i < sk_CONF_VALUE_num(sktmp); i++) { + cnf = sk_CONF_VALUE_value(sktmp, i); +- if (OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) { ++ if (OBJ_sn2nid(cnf->name) == NID_undef && OBJ_ln2nid(cnf->name) == NID_undef && OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "problem creating object %s=%s", cnf->name, cnf->value); + return FAILURE; + } +@@ -967,7 +1098,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req TSRMLS_DC) + } + /* }}} */ + +-#ifdef PHP_WIN32 ++#if defined(PHP_WIN32) || (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) + #define PHP_OPENSSL_RAND_ADD_TIME() ((void) 0) + #else + #define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval() +@@ -1053,9 +1184,11 @@ static EVP_MD * php_openssl_get_evp_md_from_algo(long algo) { /* {{{ */ + mdtype = (EVP_MD *) EVP_md2(); + break; + #endif ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) + case OPENSSL_ALGO_DSS1: + mdtype = (EVP_MD *) EVP_dss1(); + break; ++#endif + #if OPENSSL_VERSION_NUMBER >= 0x0090708fL + case OPENSSL_ALGO_SHA224: + mdtype = (EVP_MD *) EVP_sha224(); +@@ -1146,6 +1279,12 @@ PHP_MINIT_FUNCTION(openssl) + OpenSSL_add_all_digests(); + OpenSSL_add_all_algorithms(); + ++#if !defined(OPENSSL_NO_AES) && defined(EVP_CIPH_CCM_MODE) && OPENSSL_VERSION_NUMBER < 0x100020000 ++ EVP_add_cipher(EVP_aes_128_ccm()); ++ EVP_add_cipher(EVP_aes_192_ccm()); ++ EVP_add_cipher(EVP_aes_256_ccm()); ++#endif ++ + SSL_load_error_strings(); + + /* register a resource id number with OpenSSL so that we can map SSL -> stream structures in +@@ -1173,7 +1312,9 @@ PHP_MINIT_FUNCTION(openssl) + #ifdef HAVE_OPENSSL_MD2_H + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD2", OPENSSL_ALGO_MD2, CONST_CS|CONST_PERSISTENT); + #endif ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_DSS1", OPENSSL_ALGO_DSS1, CONST_CS|CONST_PERSISTENT); ++#endif + #if OPENSSL_VERSION_NUMBER >= 0x0090708fL + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA224", OPENSSL_ALGO_SHA224, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA256", OPENSSL_ALGO_SHA256, CONST_CS|CONST_PERSISTENT); +@@ -1251,7 +1392,9 @@ PHP_MINIT_FUNCTION(openssl) + } + + php_stream_xport_register("ssl", php_openssl_ssl_socket_factory TSRMLS_CC); ++#ifndef OPENSSL_NO_SSL3 + php_stream_xport_register("sslv3", php_openssl_ssl_socket_factory TSRMLS_CC); ++#endif + #ifndef OPENSSL_NO_SSL2 + php_stream_xport_register("sslv2", php_openssl_ssl_socket_factory TSRMLS_CC); + #endif +@@ -1308,7 +1451,9 @@ PHP_MSHUTDOWN_FUNCTION(openssl) + #ifndef OPENSSL_NO_SSL2 + php_stream_xport_unregister("sslv2" TSRMLS_CC); + #endif ++#ifndef OPENSSL_NO_SSL3 + php_stream_xport_unregister("sslv3" TSRMLS_CC); ++#endif + php_stream_xport_unregister("tls" TSRMLS_CC); + php_stream_xport_unregister("tlsv1.0" TSRMLS_CC); + #if OPENSSL_VERSION_NUMBER >= 0x10001001L +@@ -1893,6 +2038,7 @@ static int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension) + { + GENERAL_NAMES *names; + const X509V3_EXT_METHOD *method = NULL; ++ ASN1_OCTET_STRING *extension_data; + long i, length, num; + const unsigned char *p; + +@@ -1901,8 +2047,9 @@ static int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension) + return -1; + } + +- p = extension->value->data; +- length = extension->value->length; ++ extension_data = X509_EXTENSION_get_data(extension); ++ p = extension_data->data; ++ length = extension_data->length; + if (method->it) { + names = (GENERAL_NAMES*)(ASN1_item_d2i(NULL, &p, length, + ASN1_ITEM_ptr(method->it))); +@@ -1965,6 +2112,8 @@ PHP_FUNCTION(openssl_x509_parse) + char * tmpstr; + zval * subitem; + X509_EXTENSION *extension; ++ X509_NAME *subject_name; ++ char *cert_name; + char *extname; + BIO *bio_out; + BUF_MEM *bio_buf; +@@ -1979,10 +2128,10 @@ PHP_FUNCTION(openssl_x509_parse) + } + array_init(return_value); + +- if (cert->name) { +- add_assoc_string(return_value, "name", cert->name, 1); +- } +-/* add_assoc_bool(return_value, "valid", cert->valid); */ ++ subject_name = X509_get_subject_name(cert); ++ cert_name = X509_NAME_oneline(subject_name, NULL, 0); ++ add_assoc_string(return_value, "name", cert_name, 1); ++ OPENSSL_free(cert_name); + + add_assoc_name_entry(return_value, "subject", X509_get_subject_name(cert), useshortnames TSRMLS_CC); + /* hash as used in CA directories to lookup cert by subject name */ +@@ -2008,7 +2157,7 @@ PHP_FUNCTION(openssl_x509_parse) + add_assoc_string(return_value, "alias", tmpstr, 1); + } + +- sig_nid = OBJ_obj2nid((cert)->sig_alg->algorithm); ++ sig_nid = X509_get_signature_nid(cert); + add_assoc_string(return_value, "signatureTypeSN", (char*)OBJ_nid2sn(sig_nid), 1); + add_assoc_string(return_value, "signatureTypeLN", (char*)OBJ_nid2ln(sig_nid), 1); + add_assoc_long(return_value, "signatureTypeNID", sig_nid); +@@ -3217,7 +3366,21 @@ PHP_FUNCTION(openssl_csr_get_public_key) + RETURN_FALSE; + } + +- tpubkey=X509_REQ_get_pubkey(csr); ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++ /* Due to changes in OpenSSL 1.1 related to locking when decoding CSR, ++ * the pub key is not changed after assigning. It means if we pass ++ * a private key, it will be returned including the private part. ++ * If we duplicate it, then we get just the public part which is ++ * the same behavior as for OpenSSL 1.0 */ ++ csr = X509_REQ_dup(csr); ++#endif ++ /* Retrieve the public key from the CSR */ ++ tpubkey = X509_REQ_get_pubkey(csr); ++ ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++ /* We need to free the CSR as it was duplicated */ ++ X509_REQ_free(csr); ++#endif + RETVAL_RESOURCE(zend_list_insert(tpubkey, le_key TSRMLS_CC)); + return; + } +@@ -3482,13 +3645,20 @@ static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) + { + assert(pkey != NULL); + +- switch (pkey->type) { ++ switch (EVP_PKEY_id(pkey)) { + #ifndef NO_RSA + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: +- assert(pkey->pkey.rsa != NULL); +- if (pkey->pkey.rsa != NULL && (NULL == pkey->pkey.rsa->p || NULL == pkey->pkey.rsa->q)) { +- return 0; ++ { ++ RSA *rsa = EVP_PKEY_get0_RSA(pkey); ++ if (rsa != NULL) { ++ const BIGNUM *p, *q; ++ ++ RSA_get0_factors(rsa, &p, &q); ++ if (p == NULL || q == NULL) { ++ return 0; ++ } ++ } + } + break; + #endif +@@ -3498,28 +3668,51 @@ static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: +- assert(pkey->pkey.dsa != NULL); +- +- if (NULL == pkey->pkey.dsa->p || NULL == pkey->pkey.dsa->q || NULL == pkey->pkey.dsa->priv_key){ +- return 0; ++ { ++ DSA *dsa = EVP_PKEY_get0_DSA(pkey); ++ if (dsa != NULL) { ++ const BIGNUM *p, *q, *g, *pub_key, *priv_key; ++ ++ DSA_get0_pqg(dsa, &p, &q, &g); ++ if (p == NULL || q == NULL) { ++ return 0; ++ } ++ ++ DSA_get0_key(dsa, &pub_key, &priv_key); ++ if (priv_key == NULL) { ++ return 0; ++ } ++ } + } + break; + #endif + #ifndef NO_DH + case EVP_PKEY_DH: +- assert(pkey->pkey.dh != NULL); +- +- if (NULL == pkey->pkey.dh->p || NULL == pkey->pkey.dh->priv_key) { +- return 0; ++ { ++ DH *dh = EVP_PKEY_get0_DH(pkey); ++ if (dh != NULL) { ++ const BIGNUM *p, *q, *g, *pub_key, *priv_key; ++ ++ DH_get0_pqg(dh, &p, &q, &g); ++ if (p == NULL) { ++ return 0; ++ } ++ ++ DH_get0_key(dh, &pub_key, &priv_key); ++ if (priv_key == NULL) { ++ return 0; ++ } ++ } + } + break; + #endif + #ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: +- assert(pkey->pkey.ec != NULL); +- +- if ( NULL == EC_KEY_get0_private_key(pkey->pkey.ec)) { +- return 0; ++ { ++ EC_KEY *ec = EVP_PKEY_get0_EC_KEY(pkey); ++ if (ec != NULL && NULL == EC_KEY_get0_private_key(ec)) { ++ return 0; ++ } + } + break; + #endif +@@ -3531,34 +3724,80 @@ static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) + } + /* }}} */ + +-#define OPENSSL_PKEY_GET_BN(_type, _name) do { \ +- if (pkey->pkey._type->_name != NULL) { \ +- int len = BN_num_bytes(pkey->pkey._type->_name); \ +- char *str = emalloc(len + 1); \ +- BN_bn2bin(pkey->pkey._type->_name, (unsigned char*)str); \ +- str[len] = 0; \ +- add_assoc_stringl(_type, #_name, str, len, 0); \ +- } \ +- } while (0) +- +-#define OPENSSL_PKEY_SET_BN(_ht, _type, _name) do { \ +- zval **bn; \ +- if (zend_hash_find(_ht, #_name, sizeof(#_name), (void**)&bn) == SUCCESS && \ +- Z_TYPE_PP(bn) == IS_STRING) { \ +- _type->_name = BN_bin2bn( \ +- (unsigned char*)Z_STRVAL_PP(bn), \ +- Z_STRLEN_PP(bn), NULL); \ +- } \ ++#define OPENSSL_GET_BN(_array, _bn, _name) do { \ ++ if (_bn != NULL) { \ ++ int len = BN_num_bytes(_bn); \ ++ char *str = emalloc(len + 1); \ ++ BN_bn2bin(_bn, (unsigned char*)str); \ ++ str[len] = 0; \ ++ add_assoc_stringl(_array, #_name, str, len, 0); \ ++ } \ + } while (0); + ++#define OPENSSL_PKEY_GET_BN(_type, _name) OPENSSL_GET_BN(_type, _name, _name) ++ ++#define OPENSSL_PKEY_SET_BN(_data, _name) do { \ ++ zval **bn; \ ++ if (zend_hash_find(Z_ARRVAL_P(_data), #_name, sizeof(#_name),(void**)&bn) == SUCCESS && \ ++ Z_TYPE_PP(bn) == IS_STRING) { \ ++ _name = BN_bin2bn( \ ++ (unsigned char*)Z_STRVAL_PP(bn), \ ++ Z_STRLEN_PP(bn), NULL); \ ++ } else { \ ++ _name = NULL; \ ++ } \ ++ } while (0); ++ ++/* {{{ php_openssl_pkey_init_rsa */ ++zend_bool php_openssl_pkey_init_and_assign_rsa(EVP_PKEY *pkey, RSA *rsa, zval *data) ++{ ++ BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; ++ ++ OPENSSL_PKEY_SET_BN(data, n); ++ OPENSSL_PKEY_SET_BN(data, e); ++ OPENSSL_PKEY_SET_BN(data, d); ++ if (!n || !d || !RSA_set0_key(rsa, n, e, d)) { ++ return 0; ++ } ++ ++ OPENSSL_PKEY_SET_BN(data, p); ++ OPENSSL_PKEY_SET_BN(data, q); ++ if ((p || q) && !RSA_set0_factors(rsa, p, q)) { ++ return 0; ++ } ++ ++ OPENSSL_PKEY_SET_BN(data, dmp1); ++ OPENSSL_PKEY_SET_BN(data, dmq1); ++ OPENSSL_PKEY_SET_BN(data, iqmp); ++ if ((dmp1 || dmq1 || iqmp) && !RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) { ++ return 0; ++ } ++ ++ if (!EVP_PKEY_assign_RSA(pkey, rsa)) { ++ return 0; ++ } ++ ++ return 1; ++} ++/* }}} */ ++ + /* {{{ php_openssl_pkey_init_dsa */ +-zend_bool php_openssl_pkey_init_dsa(DSA *dsa) ++zend_bool php_openssl_pkey_init_dsa(DSA *dsa, zval *data) + { +- if (!dsa->p || !dsa->q || !dsa->g) { ++ BIGNUM *p, *q, *g, *priv_key, *pub_key; ++ const BIGNUM *priv_key_const, *pub_key_const; ++ ++ OPENSSL_PKEY_SET_BN(data, p); ++ OPENSSL_PKEY_SET_BN(data, q); ++ OPENSSL_PKEY_SET_BN(data, g); ++ if (!p || !q || !g || !DSA_set0_pqg(dsa, p, q, g)) { + return 0; + } +- if (dsa->priv_key || dsa->pub_key) { +- return 1; ++ ++ OPENSSL_PKEY_SET_BN(data, pub_key); ++ OPENSSL_PKEY_SET_BN(data, priv_key); ++ if (pub_key) { ++ return DSA_set0_key(dsa, pub_key, priv_key); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DSA_generate_key(dsa)) { +@@ -3566,7 +3805,8 @@ zend_bool php_openssl_pkey_init_dsa(DSA *dsa) + } + /* if BN_mod_exp return -1, then DSA_generate_key succeed for failed key + * so we need to double check that public key is created */ +- if (!dsa->pub_key || BN_is_zero(dsa->pub_key)) { ++ DSA_get0_key(dsa, &pub_key_const, &priv_key_const); ++ if (!pub_key_const || BN_is_zero(pub_key_const)) { + return 0; + } + /* all good */ +@@ -3574,14 +3814,66 @@ zend_bool php_openssl_pkey_init_dsa(DSA *dsa) + } + /* }}} */ + ++/* {{{ php_openssl_dh_pub_from_priv */ ++static BIGNUM *php_openssl_dh_pub_from_priv(BIGNUM *priv_key, BIGNUM *g, BIGNUM *p) ++{ ++ BIGNUM *pub_key, *priv_key_const_time; ++ BN_CTX *ctx; ++ ++ pub_key = BN_new(); ++ if (pub_key == NULL) { ++ return NULL; ++ } ++ ++ priv_key_const_time = BN_new(); ++ if (priv_key_const_time == NULL) { ++ BN_free(pub_key); ++ return NULL; ++ } ++ ctx = BN_CTX_new(); ++ if (ctx == NULL) { ++ BN_free(pub_key); ++ BN_free(priv_key_const_time); ++ return NULL; ++ } ++ ++ BN_with_flags(priv_key_const_time, priv_key, BN_FLG_CONSTTIME); ++ ++ if (!BN_mod_exp_mont(pub_key, g, priv_key_const_time, p, ctx, NULL)) { ++ BN_free(pub_key); ++ pub_key = NULL; ++ } ++ ++ BN_free(priv_key_const_time); ++ BN_CTX_free(ctx); ++ ++ return pub_key; ++} ++/* }}} */ ++ + /* {{{ php_openssl_pkey_init_dh */ +-zend_bool php_openssl_pkey_init_dh(DH *dh) ++zend_bool php_openssl_pkey_init_dh(DH *dh, zval *data) + { +- if (!dh->p || !dh->g) { ++ BIGNUM *p, *q, *g, *priv_key, *pub_key; ++ ++ OPENSSL_PKEY_SET_BN(data, p); ++ OPENSSL_PKEY_SET_BN(data, q); ++ OPENSSL_PKEY_SET_BN(data, g); ++ if (!p || !g || !DH_set0_pqg(dh, p, q, g)) { + return 0; + } +- if (dh->pub_key) { +- return 1; ++ ++ OPENSSL_PKEY_SET_BN(data, priv_key); ++ OPENSSL_PKEY_SET_BN(data, pub_key); ++ if (pub_key) { ++ return DH_set0_key(dh, pub_key, priv_key); ++ } ++ if (priv_key) { ++ pub_key = php_openssl_dh_pub_from_priv(priv_key, g, p); ++ if (pub_key == NULL) { ++ return 0; ++ } ++ return DH_set0_key(dh, pub_key, priv_key); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DH_generate_key(dh)) { +@@ -3614,18 +3906,8 @@ PHP_FUNCTION(openssl_pkey_new) + if (pkey) { + RSA *rsa = RSA_new(); + if (rsa) { +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, n); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, e); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, d); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, p); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, q); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, dmp1); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, dmq1); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, iqmp); +- if (rsa->n && rsa->d) { +- if (EVP_PKEY_assign_RSA(pkey, rsa)) { +- RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); +- } ++ if (php_openssl_pkey_init_and_assign_rsa(pkey, rsa, *data)) { ++ RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + RSA_free(rsa); + } +@@ -3638,12 +3920,7 @@ PHP_FUNCTION(openssl_pkey_new) + if (pkey) { + DSA *dsa = DSA_new(); + if (dsa) { +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, p); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, q); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, g); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, priv_key); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, pub_key); +- if (php_openssl_pkey_init_dsa(dsa)) { ++ if (php_openssl_pkey_init_dsa(dsa, *data)) { + if (EVP_PKEY_assign_DSA(pkey, dsa)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } +@@ -3659,11 +3936,7 @@ PHP_FUNCTION(openssl_pkey_new) + if (pkey) { + DH *dh = DH_new(); + if (dh) { +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, p); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, g); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, priv_key); +- OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, pub_key); +- if (php_openssl_pkey_init_dh(dh)) { ++ if (php_openssl_pkey_init_dh(dh, *data)) { + if (EVP_PKEY_assign_DH(pkey, dh)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } +@@ -3738,10 +4011,10 @@ PHP_FUNCTION(openssl_pkey_export_to_file) + cipher = NULL; + } + +- switch (EVP_PKEY_type(key->type)) { ++ switch (EVP_PKEY_base_id(key)) { + #ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: +- pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get1_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); ++ pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get0_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; + #endif + default: +@@ -3807,7 +4080,7 @@ PHP_FUNCTION(openssl_pkey_export) + cipher = NULL; + } + +- switch (EVP_PKEY_type(key->type)) { ++ switch (EVP_PKEY_base_id(key)) { + #ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get1_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); +@@ -3928,25 +4201,33 @@ PHP_FUNCTION(openssl_pkey_get_details) + /*TODO: Use the real values once the openssl constants are used + * See the enum at the top of this file + */ +- switch (EVP_PKEY_type(pkey->type)) { ++ switch (EVP_PKEY_base_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: +- ktype = OPENSSL_KEYTYPE_RSA; +- +- if (pkey->pkey.rsa != NULL) { +- zval *rsa; +- +- ALLOC_INIT_ZVAL(rsa); +- array_init(rsa); +- OPENSSL_PKEY_GET_BN(rsa, n); +- OPENSSL_PKEY_GET_BN(rsa, e); +- OPENSSL_PKEY_GET_BN(rsa, d); +- OPENSSL_PKEY_GET_BN(rsa, p); +- OPENSSL_PKEY_GET_BN(rsa, q); +- OPENSSL_PKEY_GET_BN(rsa, dmp1); +- OPENSSL_PKEY_GET_BN(rsa, dmq1); +- OPENSSL_PKEY_GET_BN(rsa, iqmp); +- add_assoc_zval(return_value, "rsa", rsa); ++ { ++ RSA *rsa = EVP_PKEY_get0_RSA(pkey); ++ ktype = OPENSSL_KEYTYPE_RSA; ++ ++ if (rsa != NULL) { ++ zval *z_rsa; ++ const BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; ++ ++ RSA_get0_key(rsa, &n, &e, &d); ++ RSA_get0_factors(rsa, &p, &q); ++ RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); ++ ++ ALLOC_INIT_ZVAL(z_rsa); ++ array_init(z_rsa); ++ OPENSSL_PKEY_GET_BN(z_rsa, n); ++ OPENSSL_PKEY_GET_BN(z_rsa, e); ++ OPENSSL_PKEY_GET_BN(z_rsa, d); ++ OPENSSL_PKEY_GET_BN(z_rsa, p); ++ OPENSSL_PKEY_GET_BN(z_rsa, q); ++ OPENSSL_PKEY_GET_BN(z_rsa, dmp1); ++ OPENSSL_PKEY_GET_BN(z_rsa, dmq1); ++ OPENSSL_PKEY_GET_BN(z_rsa, iqmp); ++ add_assoc_zval(return_value, "rsa", z_rsa); ++ } + } + + break; +@@ -3954,42 +4235,55 @@ PHP_FUNCTION(openssl_pkey_get_details) + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: +- ktype = OPENSSL_KEYTYPE_DSA; +- +- if (pkey->pkey.dsa != NULL) { +- zval *dsa; +- +- ALLOC_INIT_ZVAL(dsa); +- array_init(dsa); +- OPENSSL_PKEY_GET_BN(dsa, p); +- OPENSSL_PKEY_GET_BN(dsa, q); +- OPENSSL_PKEY_GET_BN(dsa, g); +- OPENSSL_PKEY_GET_BN(dsa, priv_key); +- OPENSSL_PKEY_GET_BN(dsa, pub_key); +- add_assoc_zval(return_value, "dsa", dsa); ++ { ++ DSA *dsa = EVP_PKEY_get0_DSA(pkey); ++ ktype = OPENSSL_KEYTYPE_DSA; ++ ++ if (dsa != NULL) { ++ zval *z_dsa; ++ const BIGNUM *p, *q, *g, *priv_key, *pub_key; ++ ++ DSA_get0_pqg(dsa, &p, &q, &g); ++ DSA_get0_key(dsa, &pub_key, &priv_key); ++ ++ ALLOC_INIT_ZVAL(z_dsa); ++ array_init(z_dsa); ++ OPENSSL_PKEY_GET_BN(z_dsa, p); ++ OPENSSL_PKEY_GET_BN(z_dsa, q); ++ OPENSSL_PKEY_GET_BN(z_dsa, g); ++ OPENSSL_PKEY_GET_BN(z_dsa, priv_key); ++ OPENSSL_PKEY_GET_BN(z_dsa, pub_key); ++ add_assoc_zval(return_value, "dsa", z_dsa); ++ } + } + break; + case EVP_PKEY_DH: +- +- ktype = OPENSSL_KEYTYPE_DH; +- +- if (pkey->pkey.dh != NULL) { +- zval *dh; +- +- ALLOC_INIT_ZVAL(dh); +- array_init(dh); +- OPENSSL_PKEY_GET_BN(dh, p); +- OPENSSL_PKEY_GET_BN(dh, g); +- OPENSSL_PKEY_GET_BN(dh, priv_key); +- OPENSSL_PKEY_GET_BN(dh, pub_key); +- add_assoc_zval(return_value, "dh", dh); ++ { ++ DH *dh = EVP_PKEY_get0_DH(pkey); ++ ktype = OPENSSL_KEYTYPE_DH; ++ ++ if (dh != NULL) { ++ zval *z_dh; ++ const BIGNUM *p, *q, *g, *priv_key, *pub_key; ++ ++ DH_get0_pqg(dh, &p, &q, &g); ++ DH_get0_key(dh, &pub_key, &priv_key); ++ ++ ALLOC_INIT_ZVAL(z_dh); ++ array_init(z_dh); ++ OPENSSL_PKEY_GET_BN(z_dh, p); ++ OPENSSL_PKEY_GET_BN(z_dh, g); ++ OPENSSL_PKEY_GET_BN(z_dh, priv_key); ++ OPENSSL_PKEY_GET_BN(z_dh, pub_key); ++ add_assoc_zval(return_value, "dh", z_dh); ++ } + } + + break; + #ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + ktype = OPENSSL_KEYTYPE_EC; +- if (pkey->pkey.ec != NULL) { ++ if (EVP_PKEY_get0_EC_KEY(pkey) != NULL) { + zval *ec; + const EC_GROUP *ec_group; + int nid; +@@ -4546,13 +4840,13 @@ PHP_FUNCTION(openssl_private_encrypt) + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + +- switch (pkey->type) { ++ switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_private_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, +- pkey->pkey.rsa, ++ EVP_PKEY_get0_RSA(pkey), + padding) == cryptedlen); + break; + default: +@@ -4604,13 +4898,13 @@ PHP_FUNCTION(openssl_private_decrypt) + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + +- switch (pkey->type) { ++ switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_private_decrypt(data_len, + (unsigned char *)data, + crypttemp, +- pkey->pkey.rsa, ++ EVP_PKEY_get0_RSA(pkey), + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); +@@ -4669,13 +4963,13 @@ PHP_FUNCTION(openssl_public_encrypt) + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + +- switch (pkey->type) { ++ switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_public_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, +- pkey->pkey.rsa, ++ EVP_PKEY_get0_RSA(pkey), + padding) == cryptedlen); + break; + default: +@@ -4728,13 +5022,13 @@ PHP_FUNCTION(openssl_public_decrypt) + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + +- switch (pkey->type) { ++ switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_public_decrypt(data_len, + (unsigned char *)data, + crypttemp, +- pkey->pkey.rsa, ++ EVP_PKEY_get0_RSA(pkey), + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); +@@ -4798,7 +5092,7 @@ PHP_FUNCTION(openssl_sign) + long keyresource = -1; + char * data; + int data_len; +- EVP_MD_CTX md_ctx; ++ EVP_MD_CTX *md_ctx; + zval *method = NULL; + long signature_algo = OPENSSL_ALGO_SHA1; + const EVP_MD *mdtype; +@@ -4831,9 +5125,10 @@ PHP_FUNCTION(openssl_sign) + siglen = EVP_PKEY_size(pkey); + sigbuf = emalloc(siglen + 1); + +- EVP_SignInit(&md_ctx, mdtype); +- EVP_SignUpdate(&md_ctx, data, data_len); +- if (EVP_SignFinal (&md_ctx, sigbuf,(unsigned int *)&siglen, pkey)) { ++ md_ctx = EVP_MD_CTX_create(); ++ EVP_SignInit(md_ctx, mdtype); ++ EVP_SignUpdate(md_ctx, data, data_len); ++ if (EVP_SignFinal (md_ctx, sigbuf,(unsigned int *)&siglen, pkey)) { + zval_dtor(signature); + sigbuf[siglen] = '\0'; + ZVAL_STRINGL(signature, (char *)sigbuf, siglen, 0); +@@ -4842,7 +5137,7 @@ PHP_FUNCTION(openssl_sign) + efree(sigbuf); + RETVAL_FALSE; + } +- EVP_MD_CTX_cleanup(&md_ctx); ++ EVP_MD_CTX_destroy(md_ctx); + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +@@ -4856,7 +5151,7 @@ PHP_FUNCTION(openssl_verify) + zval **key; + EVP_PKEY *pkey; + int err; +- EVP_MD_CTX md_ctx; ++ EVP_MD_CTX *md_ctx; + const EVP_MD *mdtype; + long keyresource = -1; + char * data; int data_len; +@@ -4890,10 +5185,11 @@ PHP_FUNCTION(openssl_verify) + RETURN_FALSE; + } + +- EVP_VerifyInit (&md_ctx, mdtype); +- EVP_VerifyUpdate (&md_ctx, data, data_len); +- err = EVP_VerifyFinal (&md_ctx, (unsigned char *)signature, signature_len, pkey); +- EVP_MD_CTX_cleanup(&md_ctx); ++ md_ctx = EVP_MD_CTX_create(); ++ EVP_VerifyInit (md_ctx, mdtype); ++ EVP_VerifyUpdate (md_ctx, data, data_len); ++ err = EVP_VerifyFinal (md_ctx, (unsigned char *)signature, signature_len, pkey); ++ EVP_MD_CTX_destroy(md_ctx); + + if (keyresource == -1) { + EVP_PKEY_free(pkey); +@@ -4917,7 +5213,7 @@ PHP_FUNCTION(openssl_seal) + char *method =NULL; + int method_len = 0; + const EVP_CIPHER *cipher; +- EVP_CIPHER_CTX ctx; ++ EVP_CIPHER_CTX *ctx; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szza/|s", &data, &data_len, &sealdata, &ekeys, &pubkeys, &method, &method_len) == FAILURE) { + return; +@@ -4950,6 +5246,7 @@ PHP_FUNCTION(openssl_seal) + memset(eks, 0, sizeof(*eks) * nkeys); + key_resources = safe_emalloc(nkeys, sizeof(long), 0); + memset(key_resources, 0, sizeof(*key_resources) * nkeys); ++ memset(pkeys, 0, sizeof(*pkeys) * nkeys); + + /* get the public keys we are using to seal this data */ + zend_hash_internal_pointer_reset_ex(pubkeysht, &pos); +@@ -4967,27 +5264,28 @@ PHP_FUNCTION(openssl_seal) + i++; + } + +- if (!EVP_EncryptInit(&ctx,cipher,NULL,NULL)) { ++ ctx = EVP_CIPHER_CTX_new(); ++ if (ctx == NULL || !EVP_EncryptInit(ctx,cipher,NULL,NULL)) { + RETVAL_FALSE; +- EVP_CIPHER_CTX_cleanup(&ctx); ++ EVP_CIPHER_CTX_free(ctx); + goto clean_exit; + } + + #if 0 + /* Need this if allow ciphers that require initialization vector */ +- ivlen = EVP_CIPHER_CTX_iv_length(&ctx); ++ ivlen = EVP_CIPHER_CTX_iv_length(ctx); + iv = ivlen ? emalloc(ivlen + 1) : NULL; + #endif + /* allocate one byte extra to make room for \0 */ +- buf = emalloc(data_len + EVP_CIPHER_CTX_block_size(&ctx)); +- EVP_CIPHER_CTX_cleanup(&ctx); ++ buf = emalloc(data_len + EVP_CIPHER_CTX_block_size(ctx)); ++ EVP_CIPHER_CTX_cleanup(ctx); + +- if (EVP_SealInit(&ctx, cipher, eks, eksl, NULL, pkeys, nkeys) <= 0 || +- !EVP_SealUpdate(&ctx, buf, &len1, (unsigned char *)data, data_len) || +- !EVP_SealFinal(&ctx, buf + len1, &len2)) { ++ if (EVP_SealInit(ctx, cipher, eks, eksl, NULL, pkeys, nkeys) <= 0 || ++ !EVP_SealUpdate(ctx, buf, &len1, (unsigned char *)data, data_len) || ++ !EVP_SealFinal(ctx, buf + len1, &len2)) { + RETVAL_FALSE; + efree(buf); +- EVP_CIPHER_CTX_cleanup(&ctx); ++ EVP_CIPHER_CTX_free(ctx); + goto clean_exit; + } + +@@ -5018,7 +5316,7 @@ PHP_FUNCTION(openssl_seal) + efree(buf); + } + RETVAL_LONG(len1 + len2); +- EVP_CIPHER_CTX_cleanup(&ctx); ++ EVP_CIPHER_CTX_free(ctx); + + clean_exit: + for (i=0; i keylen) { +- EVP_CIPHER_CTX_set_key_length(&cipher_ctx, password_len); ++ EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len); + } +- EVP_EncryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); ++ EVP_EncryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { +- EVP_CIPHER_CTX_set_padding(&cipher_ctx, 0); ++ EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); + } + if (data_len > 0) { +- EVP_EncryptUpdate(&cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); ++ EVP_EncryptUpdate(cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + } + outlen = i; +- if (EVP_EncryptFinal(&cipher_ctx, (unsigned char *)outbuf + i, &i)) { ++ if (EVP_EncryptFinal(cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + if (options & OPENSSL_RAW_DATA) { + outbuf[outlen] = '\0'; +@@ -5301,7 +5608,8 @@ PHP_FUNCTION(openssl_encrypt) + if (free_iv) { + efree(iv); + } +- EVP_CIPHER_CTX_cleanup(&cipher_ctx); ++ EVP_CIPHER_CTX_cleanup(cipher_ctx); ++ EVP_CIPHER_CTX_free(cipher_ctx); + } + /* }}} */ + +@@ -5313,7 +5621,7 @@ PHP_FUNCTION(openssl_decrypt) + char *data, *method, *password, *iv = ""; + int data_len, method_len, password_len, iv_len = 0; + const EVP_CIPHER *cipher_type; +- EVP_CIPHER_CTX cipher_ctx; ++ EVP_CIPHER_CTX *cipher_ctx; + int i, outlen, keylen; + unsigned char *outbuf, *key; + int base64_str_len; +@@ -5359,17 +5667,23 @@ PHP_FUNCTION(openssl_decrypt) + outlen = data_len + EVP_CIPHER_block_size(cipher_type); + outbuf = emalloc(outlen + 1); + +- EVP_DecryptInit(&cipher_ctx, cipher_type, NULL, NULL); ++ cipher_ctx = EVP_CIPHER_CTX_new(); ++ if (!cipher_ctx) { ++ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to create cipher context"); ++ RETURN_FALSE; ++ } ++ ++ EVP_DecryptInit(cipher_ctx, cipher_type, NULL, NULL); + if (password_len > keylen) { +- EVP_CIPHER_CTX_set_key_length(&cipher_ctx, password_len); ++ EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len); + } +- EVP_DecryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); ++ EVP_DecryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { +- EVP_CIPHER_CTX_set_padding(&cipher_ctx, 0); ++ EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); + } +- EVP_DecryptUpdate(&cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); ++ EVP_DecryptUpdate(cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + outlen = i; +- if (EVP_DecryptFinal(&cipher_ctx, (unsigned char *)outbuf + i, &i)) { ++ if (EVP_DecryptFinal(cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + outbuf[outlen] = '\0'; + RETVAL_STRINGL((char *)outbuf, outlen, 0); +@@ -5386,7 +5700,8 @@ PHP_FUNCTION(openssl_decrypt) + if (base64_str) { + efree(base64_str); + } +- EVP_CIPHER_CTX_cleanup(&cipher_ctx); ++ EVP_CIPHER_CTX_cleanup(cipher_ctx); ++ EVP_CIPHER_CTX_free(cipher_ctx); + } + /* }}} */ + +@@ -5424,6 +5739,7 @@ PHP_FUNCTION(openssl_dh_compute_key) + zval *key; + char *pub_str; + int pub_len; ++ DH *dh; + EVP_PKEY *pkey; + BIGNUM *pub; + char *data; +@@ -5433,14 +5749,21 @@ PHP_FUNCTION(openssl_dh_compute_key) + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); +- if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) { ++ if (pkey == NULL) { ++ RETURN_FALSE; ++ } ++ if (EVP_PKEY_base_id(pkey) != EVP_PKEY_DH) { ++ RETURN_FALSE; ++ } ++ dh = EVP_PKEY_get0_DH(pkey); ++ if (dh == NULL) { + RETURN_FALSE; + } + + pub = BN_bin2bn((unsigned char*)pub_str, pub_len, NULL); + +- data = emalloc(DH_size(pkey->pkey.dh) + 1); +- len = DH_compute_key((unsigned char*)data, pub, pkey->pkey.dh); ++ data = emalloc(DH_size(dh) + 1); ++ len = DH_compute_key((unsigned char*)data, pub, dh); + + if (len >= 0) { + data[len] = 0; +diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c +index d5490331d634..c2d477c1db2b 100644 +--- a/ext/openssl/xp_ssl.c ++++ b/ext/openssl/xp_ssl.c +@@ -935,7 +935,7 @@ static int set_local_cert(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ + static const SSL_METHOD *php_select_crypto_method(long method_value, int is_client TSRMLS_DC) /* {{{ */ + { + if (method_value == STREAM_CRYPTO_METHOD_SSLv2) { +-#ifndef OPENSSL_NO_SSL2 ++#if !defined(OPENSSL_NO_SSL2) && OPENSSL_VERSION_NUMBER < 0x10100000L + return is_client ? SSLv2_client_method() : SSLv2_server_method(); + #else + php_error_docref(NULL TSRMLS_CC, E_WARNING, +@@ -1588,12 +1588,26 @@ int php_openssl_setup_crypto(php_stream *stream, + } + /* }}} */ + ++#define PHP_SSL_MAX_VERSION_LEN 32 ++ ++static char *php_ssl_cipher_get_version(const SSL_CIPHER *c, char *buffer, size_t max_len) /* {{{ */ ++{ ++ const char *version = SSL_CIPHER_get_version(c); ++ strncpy(buffer, version, max_len); ++ if (max_len <= strlen(version)) { ++ buffer[max_len - 1] = 0; ++ } ++ return buffer; ++} ++/* }}} */ ++ + static zval *capture_session_meta(SSL *ssl_handle) /* {{{ */ + { + zval *meta_arr; + char *proto_str; + long proto = SSL_version(ssl_handle); + const SSL_CIPHER *cipher = SSL_get_current_cipher(ssl_handle); ++ char version_str[PHP_SSL_MAX_VERSION_LEN]; + + switch (proto) { + #if OPENSSL_VERSION_NUMBER >= 0x10001001L +@@ -1611,7 +1625,7 @@ static zval *capture_session_meta(SSL *ssl_handle) /* {{{ */ + add_assoc_string(meta_arr, "protocol", proto_str, 1); + add_assoc_string(meta_arr, "cipher_name", (char *) SSL_CIPHER_get_name(cipher), 1); + add_assoc_long(meta_arr, "cipher_bits", SSL_CIPHER_get_bits(cipher, NULL)); +- add_assoc_string(meta_arr, "cipher_version", SSL_CIPHER_get_version(cipher), 1); ++ add_assoc_string(meta_arr, "cipher_version", php_ssl_cipher_get_version(cipher, version_str, PHP_SSL_MAX_VERSION_LEN), 1); + + return meta_arr; + } +diff --git a/ext/phar/util.c b/ext/phar/util.c +index 828be8f9a23f..06e4e55da7af 100644 +--- a/ext/phar/util.c ++++ b/ext/phar/util.c +@@ -1531,7 +1531,7 @@ int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_typ + BIO *in; + EVP_PKEY *key; + EVP_MD *mdtype = (EVP_MD *) EVP_sha1(); +- EVP_MD_CTX md_ctx; ++ EVP_MD_CTX *md_ctx; + #else + int tempsig; + #endif +@@ -1608,7 +1608,8 @@ int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_typ + return FAILURE; + } + +- EVP_VerifyInit(&md_ctx, mdtype); ++ md_ctx = EVP_MD_CTX_create(); ++ EVP_VerifyInit(md_ctx, mdtype); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { +@@ -1620,7 +1621,7 @@ int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_typ + php_stream_seek(fp, 0, SEEK_SET); + + while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { +- EVP_VerifyUpdate (&md_ctx, buf, len); ++ EVP_VerifyUpdate (md_ctx, buf, len); + read_len -= (off_t)len; + + if (read_len < read_size) { +@@ -1628,9 +1629,9 @@ int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_typ + } + } + +- if (EVP_VerifyFinal(&md_ctx, (unsigned char *)sig, sig_len, key) != 1) { ++ if (EVP_VerifyFinal(md_ctx, (unsigned char *)sig, sig_len, key) != 1) { + /* 1: signature verified, 0: signature does not match, -1: failed signature operation */ +- EVP_MD_CTX_cleanup(&md_ctx); ++ EVP_MD_CTX_destroy(md_ctx); + + if (error) { + spprintf(error, 0, "broken openssl signature"); +@@ -1639,7 +1640,7 @@ int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_typ + return FAILURE; + } + +- EVP_MD_CTX_cleanup(&md_ctx); ++ EVP_MD_CTX_destroy(md_ctx); + #endif + + *signature_len = phar_hex_str((const char*)sig, sig_len, signature TSRMLS_CC); +diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c +index 6c3ae3cde80a..b53114cdf34d 100644 +--- a/ext/openssl/openssl.c ++++ b/ext/openssl/openssl.c +@@ -651,6 +651,8 @@ int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) + } + + #if OPENSSL_VERSION_NUMBER < 0x10002000L || defined (LIBRESSL_VERSION_NUMBER) ++#define EVP_PKEY_id(_pkey) _pkey->type ++#define EVP_PKEY_base_id(_key) EVP_PKEY_type(_key->type) + + static int X509_get_signature_nid(const X509 *x) + { +EOP + )->strip(1) + ); + } +} diff --git a/src/PhpBrew/Patches/ReadlinePatch.php b/src/PhpBrew/Patches/ReadlinePatch.php new file mode 100644 index 000000000..11c029e1c --- /dev/null +++ b/src/PhpBrew/Patches/ReadlinePatch.php @@ -0,0 +1,97 @@ +getVersion(), '5.3', '>=') + && version_compare($build->getVersion(), '7.1', '<='); + } + + /** + * @link https://git.php.net/?p=php-src.git;a=commit;h=1ea58b6e78355437b79fb7b1f287ba6688fb1c57 + * + * @codeCoverageIgnore + */ + public function rules() + { + return array( + DiffPatchRule::fromPatch( + <<<'EOP' +From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= +Date: Mon, 17 Dec 2018 09:56:06 +0000 +Subject: Fix rl_completion_matches detection + +Also fix a typo when checking for rl_on_new_line in readline library. +--- + ext/readline/config.m4 | 17 +++++++++++++++-- + 1 file changed, 15 insertions(+), 2 deletions(-) + +diff --git a/ext/readline/config.m4 b/ext/readline/config.m4 +index d63df8bef9..3995bd7587 100644 +--- a/ext/readline/config.m4 ++++ b/ext/readline/config.m4 +@@ -60,13 +60,20 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + +- PHP_CHECK_LIBRARY(edit, rl_on_new_line, ++ PHP_CHECK_LIBRARY(readline, rl_on_new_line, + [ + AC_DEFINE(HAVE_RL_ON_NEW_LINE, 1, [ ]) + ],[],[ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + ++ PHP_CHECK_LIBRARY(readline, rl_completion_matches, ++ [ ++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ]) ++ ],[],[ ++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS ++ ]) ++ + AC_DEFINE(HAVE_LIBREADLINE, 1, [ ]) + + elif test "$PHP_LIBEDIT" != "no"; then +@@ -114,11 +121,17 @@ elif test "$PHP_LIBEDIT" != "no"; then + -L$READLINE_DIR/$PHP_LIBDIR + ]) + ++ PHP_CHECK_LIBRARY(edit, rl_completion_matches, ++ [ ++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ]) ++ ],[],[ ++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS ++ ]) ++ + AC_DEFINE(HAVE_LIBEDIT, 1, [ ]) + fi + + if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then +- AC_CHECK_FUNCS([rl_completion_matches]) + PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli) + PHP_SUBST(READLINE_SHARED_LIBADD) + fi +-- +2.27.0 + +EOP + )->strip(1) + ); + } +} diff --git a/src/PhpBrew/Paths.php b/src/PhpBrew/Paths.php deleted file mode 100644 index 023b0dcd8..000000000 --- a/src/PhpBrew/Paths.php +++ /dev/null @@ -1,25 +0,0 @@ -') ? -1 : 1; - } - - static function getReleaseManagers() - { - return array( - 'stas' => 'Stanislav Malyshev', - 'dsp' => 'David Soria Parra', - ); - } - - static function getReleaseManagerVersions($id) - { - $baseUrl = "http://downloads.php.net/$id/"; - $html = file_get_contents($baseUrl); - $dom = new DOMDocument; - $dom->loadHtml( $html ); - - $items = $dom->getElementsByTagName('a'); - $versions = array(); - foreach( $items as $item ) - { - $href = $item->getAttribute('href'); - if( preg_match('/php-(.*?)\.tar\.bz2$/' , $href , $regs ) ) { - $version = $regs[1]; - $link = $baseUrl . $href; - $versions[ 'php-' . $version] = array( 'url' => $link ); - } - } - return $versions; - } - - static function getStableVersions($includeOld = false) - { - // reference: http://www.php.net/downloads.php - // http://www.php.net/releases/ - $downloadUrls = array( - 'http://www.php.net/downloads.php', - 'http://www.php.net/releases/' - ); - $phpFilePattern = '/php-(.*?)\.tar\.bz2/'; - $versions = array(); - - foreach( $downloadUrls as $downloadUrl ) { - $html = @file_get_contents($downloadUrl); - if( ! $html ) { - echo "connection eror: $downloadUrl\n"; - continue; - } - - $baseUrl = 'http://www.php.net/get/{php-version}/from/this/mirror'; - $dom = new DOMDocument; - @$dom->loadHtml( $html ); - $items = $dom->getElementsByTagName('a'); - foreach( $items as $item ) { - $link = $item->getAttribute('href'); - if( preg_match($phpFilePattern, $link, $regs ) ) { - if( ! $includeOld && version_compare($regs[1],'5.3.0') < 0 ) { - continue; - } - $version = 'php-' . $regs[1]; - if( strpos($link, '/') === 0 ) { - $link = str_replace("{php-version}", $version . '.tar.bz2', $baseUrl); - } - $versions[$version] = array( 'url' => $link ); - } - } - } - uksort( $versions, array('self', 'versionCompare') ); - - return $versions; - } - - static function getSvnVersions() - { - // http://www.php.net/svn.php # svn - return array( - 'php-svn-head' => array( 'svn' => 'https://svn.php.net/repository/php/php-src/trunk' ), - 'php-svn-5.3' => array( 'svn' => 'https://svn.php.net/repository/php/php-src/branches/PHP_5_3' ), - 'php-svn-5.4' => array( 'svn' => 'https://svn.php.net/repository/php/php-src/branches/PHP_5_4' ), - ); - } - - static function getSnapshotVersions() - { - // http://snaps.php.net/php5.3-201202070630.tar.bz2 - } - - static function getVersionInfo($version, $includeOld = false) - { - $versions = self::getStableVersions($includeOld); - if( isset($versions[$version]) ) - return $versions[ $version ]; - - $versions = self::getSvnVersions(); - if( isset($versions[$version]) ) - return $versions[ $version ]; - - $managers = self::getReleaseManagers(); - foreach($managers as $id => $fullName) { - $versions = self::getReleaseManagerVersions($id); - if( isset($versions[$version]) ) - return $versions[ $version ]; - } - } - -} - diff --git a/src/PhpBrew/PrefixFinder.php b/src/PhpBrew/PrefixFinder.php new file mode 100644 index 000000000..e7140875c --- /dev/null +++ b/src/PhpBrew/PrefixFinder.php @@ -0,0 +1,16 @@ +formula = $formula; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + $brew = Utils::findBin('brew'); + + if ($brew === null) { + return null; + } + + $output = $this->execLine( + sprintf('%s --prefix %s', escapeshellcmd($brew), escapeshellarg($this->formula)) + ); + + if ($output === null) { + printf('Homebrew formula "%s" not found.' . PHP_EOL, $this->formula); + + return null; + } + + if (!file_exists($output)) { + printf('Homebrew prefix "%s" does not exist.' . PHP_EOL, $output); + + return null; + } + + return $output; + } + + private function execLine($command) + { + $output = array(); + exec($command, $output, $retval); + + if ($retval === 0) { + $output = array_filter($output); + + return end($output); + } + + return null; + } +} diff --git a/src/PhpBrew/PrefixFinder/ExecutablePrefixFinder.php b/src/PhpBrew/PrefixFinder/ExecutablePrefixFinder.php new file mode 100644 index 000000000..ac240bc56 --- /dev/null +++ b/src/PhpBrew/PrefixFinder/ExecutablePrefixFinder.php @@ -0,0 +1,39 @@ +name = $name; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + $bin = Utils::findBin($this->name); + + if ($bin === null) { + return null; + } + + return dirname($bin); + } +} diff --git a/src/PhpBrew/PrefixFinder/IncludePrefixFinder.php b/src/PhpBrew/PrefixFinder/IncludePrefixFinder.php new file mode 100644 index 000000000..73ede5117 --- /dev/null +++ b/src/PhpBrew/PrefixFinder/IncludePrefixFinder.php @@ -0,0 +1,33 @@ +path = $path; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + return Utils::findIncludePrefix($this->path); + } +} diff --git a/src/PhpBrew/PrefixFinder/LibPrefixFinder.php b/src/PhpBrew/PrefixFinder/LibPrefixFinder.php new file mode 100644 index 000000000..fe4926594 --- /dev/null +++ b/src/PhpBrew/PrefixFinder/LibPrefixFinder.php @@ -0,0 +1,33 @@ +path = $path; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + return Utils::findLibPrefix($this->path); + } +} diff --git a/src/PhpBrew/PrefixFinder/PkgConfigPrefixFinder.php b/src/PhpBrew/PrefixFinder/PkgConfigPrefixFinder.php new file mode 100644 index 000000000..14c692c40 --- /dev/null +++ b/src/PhpBrew/PrefixFinder/PkgConfigPrefixFinder.php @@ -0,0 +1,33 @@ +package = $package; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + return Utils::getPkgConfigPrefix($this->package); + } +} diff --git a/src/PhpBrew/PrefixFinder/UserProvidedPrefix.php b/src/PhpBrew/PrefixFinder/UserProvidedPrefix.php new file mode 100644 index 000000000..653604bc9 --- /dev/null +++ b/src/PhpBrew/PrefixFinder/UserProvidedPrefix.php @@ -0,0 +1,32 @@ +prefix = $prefix; + } + + /** + * {@inheritDoc} + */ + public function findPrefix() + { + return $this->prefix; + } +} diff --git a/src/PhpBrew/Process.php b/src/PhpBrew/Process.php deleted file mode 100644 index ab8080f44..000000000 --- a/src/PhpBrew/Process.php +++ /dev/null @@ -1,372 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace PhpBrew; - -/** - * Process is a thin wrapper around proc_* functions to ease - * start independent PHP processes. - * - * @author Fabien Potencier - * - * @api - */ -class Process -{ - const ERR = 'err'; - const OUT = 'out'; - - private $commandline; - private $cwd; - private $env; - private $stdin; - private $timeout; - private $options; - private $exitcode; - private $status; - private $stdout; - private $stderr; - - /** - * Constructor. - * - * @param string $commandline The command line to run - * @param string $cwd The working directory - * @param array $env The environment variables - * @param string $stdin The STDIN content - * @param integer $timeout The timeout in seconds - * @param array $options An array of options for proc_open - * - * @throws \RuntimeException When proc_open is not installed - * - * @api - */ - public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array()) - { - if (!function_exists('proc_open')) { - throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); - } - - $this->commandline = $commandline; - $this->cwd = null === $cwd ? getcwd() : $cwd; - if (null !== $env) { - $this->env = array(); - foreach ($env as $key => $value) { - $this->env[(binary) $key] = (binary) $value; - } - } else { - $this->env = null; - } - $this->stdin = $stdin; - $this->timeout = $timeout; - $this->options = array_merge(array('suppress_errors' => true, 'binary_pipes' => true, 'bypass_shell' => false), $options); - } - - /** - * Runs the process. - * - * The callback receives the type of output (out or err) and - * some bytes from the output in real-time. It allows to have feedback - * from the independent process during execution. - * - * The STDOUT and STDERR are also available after the process is finished - * via the getOutput() and getErrorOutput() methods. - * - * @param Closure|string|array $callback A PHP callback to run whenever there is some - * output available on STDOUT or STDERR - * - * @return integer The exit status code - * - * @throws \RuntimeException When process can't be launch or is stopped - * - * @api - */ - public function run($callback = null) - { - $this->stdout = ''; - $this->stderr = ''; - $that = $this; - $out = self::OUT; - $err = self::ERR; - $callback = function ($type, $data) use ($that, $callback, $out, $err) - { - if ($out == $type) { - $that->addOutput($data); - } else { - $that->addErrorOutput($data); - } - - if (null !== $callback) { - call_user_func($callback, $type, $data); - } - }; - - $descriptors = array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')); - - $process = proc_open($this->commandline, $descriptors, $pipes, $this->cwd, $this->env, $this->options); - - if (!is_resource($process)) { - throw new \RuntimeException('Unable to launch a new process.'); - } - - foreach ($pipes as $pipe) { - stream_set_blocking($pipe, false); - } - - if (null === $this->stdin) { - fclose($pipes[0]); - $writePipes = null; - } else { - $writePipes = array($pipes[0]); - $stdinLen = strlen($this->stdin); - $stdinOffset = 0; - } - unset($pipes[0]); - - while ($pipes || $writePipes) { - $r = $pipes; - $w = $writePipes; - $e = null; - - $n = @stream_select($r, $w, $e, $this->timeout); - - if (false === $n) { - break; - } elseif ($n === 0) { - proc_terminate($process); - - throw new \RuntimeException('The process timed out.'); - } - - if ($w) { - $written = fwrite($writePipes[0], (binary) substr($this->stdin, $stdinOffset), 8192); - if (false !== $written) { - $stdinOffset += $written; - } - if ($stdinOffset >= $stdinLen) { - fclose($writePipes[0]); - $writePipes = null; - } - } - - foreach ($r as $pipe) { - $type = array_search($pipe, $pipes); - $data = fread($pipe, 8192); - if (strlen($data) > 0) { - call_user_func($callback, $type == 1 ? $out : $err, $data); - } - if (false === $data || feof($pipe)) { - fclose($pipe); - unset($pipes[$type]); - } - } - } - - $this->status = proc_get_status($process); - - $time = 0; - while (1 == $this->status['running'] && $time < 1000000) { - $time += 1000; - usleep(1000); - $this->status = proc_get_status($process); - } - - $exitcode = proc_close($process); - - if ($this->status['signaled']) { - throw new \RuntimeException(sprintf('The process stopped because of a "%s" signal.', $this->status['stopsig'])); - } - - return $this->exitcode = $this->status['running'] ? $exitcode : $this->status['exitcode']; - } - - /** - * Returns the output of the process (STDOUT). - * - * This only returns the output if you have not supplied a callback - * to the run() method. - * - * @return string The process output - * - * @api - */ - public function getOutput() - { - return $this->stdout; - } - - /** - * Returns the error output of the process (STDERR). - * - * This only returns the error output if you have not supplied a callback - * to the run() method. - * - * @return string The process error output - * - * @api - */ - public function getErrorOutput() - { - return $this->stderr; - } - - /** - * Returns the exit code returned by the process. - * - * @return integer The exit status code - * - * @api - */ - public function getExitCode() - { - return $this->exitcode; - } - - /** - * Checks if the process ended successfully. - * - * @return Boolean true if the process ended successfully, false otherwise - * - * @api - */ - public function isSuccessful() - { - return 0 == $this->exitcode; - } - - /** - * Returns true if the child process has been terminated by an uncaught signal. - * - * It always returns false on Windows. - * - * @return Boolean - * - * @api - */ - public function hasBeenSignaled() - { - return $this->status['signaled']; - } - - /** - * Returns the number of the signal that caused the child process to terminate its execution. - * - * It is only meaningful if hasBeenSignaled() returns true. - * - * @return integer - * - * @api - */ - public function getTermSignal() - { - return $this->status['termsig']; - } - - /** - * Returns true if the child process has been stopped by a signal. - * - * It always returns false on Windows. - * - * @return Boolean - * - * @api - */ - public function hasBeenStopped() - { - return $this->status['stopped']; - } - - /** - * Returns the number of the signal that caused the child process to stop its execution - * - * It is only meaningful if hasBeenStopped() returns true. - * - * @return integer - * - * @api - */ - public function getStopSignal() - { - return $this->status['stopsig']; - } - - public function addOutput($line) - { - $this->stdout .= $line; - } - - public function addErrorOutput($line) - { - $this->stderr .= $line; - } - - public function getCommandLine() - { - return $this->commandline; - } - - public function setCommandLine($commandline) - { - $this->commandline = $commandline; - } - - public function getTimeout() - { - return $this->timeout; - } - - public function setTimeout($timeout) - { - $this->timeout = $timeout; - } - - public function getWorkingDirectory() - { - return $this->cwd; - } - - public function setWorkingDirectory($cwd) - { - $this->cwd = $cwd; - } - - public function getEnv() - { - return $this->env; - } - - public function setEnv(array $env) - { - $this->env = $env; - } - - public function getStdin() - { - return $this->stdin; - } - - public function setStdin($stdin) - { - $this->stdin = $stdin; - } - - public function getOptions() - { - return $this->options; - } - - public function setOptions(array $options) - { - $this->options = $options; - } -} - - - diff --git a/src/PhpBrew/ReleaseList.php b/src/PhpBrew/ReleaseList.php new file mode 100644 index 000000000..5b19d828f --- /dev/null +++ b/src/PhpBrew/ReleaseList.php @@ -0,0 +1,225 @@ +setReleases($releases); + } + + public function setReleases(array $releases) + { + $this->releases = $releases; + foreach ($this->releases as $major => $versionReleases) { + foreach ($versionReleases as $version => $release) { + $this->versions[ $version ] = $release; + } + } + } + + public function getReleases() + { + return $this->releases; + } + + public function loadJson($json) + { + if (!$json) { + throw new RuntimeException("Can't load releases. Empty JSON given."); + } + if ($releases = json_decode($json, true)) { + $this->setReleases($releases); + + return $releases; + } else { + throw new RuntimeException("Can't decode release json, invalid JSON string: " . substr($json, 0, 125)); + } + } + + public function loadJsonFile($file) + { + $this->loadJson(file_get_contents($file)); + } + + /** + * Returns the latest PHP version. + */ + public function getLatestVersion() + { + $releases = $this->getReleases(); + $latestMajor = array_shift($releases); + $latest = array_shift($latestMajor); + if (!$latest) { + throw new Exception('Latest major version not found.'); + } + + return $latest['version']; + } + + public function getLatestPatchVersion($version) + { + if (isset($this->releases[$version])) { + reset($this->releases[$version]); + + return current($this->releases[$version]); + } + } + + public function getVersion($version) + { + if (isset($this->releases[$version])) { + return $this->getLatestPatchVersion($version); + } elseif (isset($this->versions[$version])) { + return $this->versions[$version]; + } + + return false; + } + + /** + * Get version by minor version number. + */ + public function getVersions($key) + { + if (isset($this->releases[$key])) { + return $this->releases[$key]; + } + } + + public function foundLocalReleaseList() + { + $releasesFile = Config::getPHPReleaseListPath(); + + return file_exists($releasesFile); + } + + public function loadLocalReleaseList() + { + if ($this->foundLocalReleaseList()) { + $this->loadJsonFile(Config::getPHPReleaseListPath()); + + return $this->releases; + } + } + + public function save() + { + $localFilepath = Config::getPHPReleaseListPath(); + $json = json_encode($this->releases, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); + if (false === file_put_contents($localFilepath, $json)) { + throw new Exception("Can't store release json file"); + } + } + + public function fetchRemoteReleaseList(OptionResult $options) + { + $releases = self::buildReleaseListFromOfficialSite($options); + $this->setReleases($releases); + $this->save(); + } + + public static function getReadyInstance(OptionResult $options = null) + { + static $instance; + + if ($instance) { + return $instance; + } + + $instance = new self(); + + if ($instance->foundLocalReleaseList()) { + $instance->setReleases($instance->loadLocalReleaseList()); + } else { + $instance->fetchRemoteReleaseList($options); + } + + return $instance; + } + + private static function downloadReleaseListFromOfficialSite($version, $max, OptionResult $options) + { + $url = 'https://www.php.net/releases/index.php?' . http_build_query(array( + 'json' => true, + 'version' => $version, + 'max' => $max, + )); + + $file = DownloadFactory::getInstance(Logger::getInstance(), $options)->download($url); + $json = file_get_contents($file); + + return json_decode($json, true) ?? []; + } + + private static function buildReleaseListFromOfficialSite(OptionResult $options) + { + $obj = array_merge( + self::downloadReleaseListFromOfficialSite(8, 100, $options), + self::downloadReleaseListFromOfficialSite(7, 100, $options) + ); + + if ($options->get('old')) { + $obj = array_merge($obj, self::downloadReleaseListFromOfficialSite(5, 1000, $options)); + } + + $releaseVersions = array(); + foreach ($obj as $k => $v) { + if (preg_match('/^(\d+)\.(\d+)\./', $k, $matches)) { + list(, $major, $minor) = $matches; + $release = array('version' => $k); + if (isset($v['announcement']['English'])) { + $release['announcement'] = 'https://php.net' . $v['announcement']['English']; + } + + if (isset($v['date'])) { + $release['date'] = $v['date']; + } + foreach ($v['source'] as $source) { + if (isset($source['filename']) && preg_match('/\.tar\.bz2$/', $source['filename'])) { + $release['filename'] = $source['filename']; + $release['name'] = $source['name']; + if (isset($source['md5'])) { + $release['md5'] = $source['md5']; + } + if (isset($source['sha256'])) { + $release['sha256'] = $source['sha256']; + } + if (isset($source['date'])) { + $release['date'] = $source['date']; + } + } + } + $release['museum'] = isset($v['museum']) && $v['museum']; + $releaseVersions["$major.$minor"][$k] = $release; + } + } + + foreach ($releaseVersions as $key => $_) { + uksort($releaseVersions[$key], function ($a, $b) { + return version_compare($b, $a); + }); + } + + return $releaseVersions; + } +} diff --git a/src/PhpBrew/Tasks/AfterConfigureTask.php b/src/PhpBrew/Tasks/AfterConfigureTask.php new file mode 100644 index 000000000..fdcbab804 --- /dev/null +++ b/src/PhpBrew/Tasks/AfterConfigureTask.php @@ -0,0 +1,32 @@ +options->{'no-patch'}) { + $this->logger->info('===> Checking patches...'); + $patches = array(); + $patches[] = new IntlWith64bitPatch(); + $patches[] = new OpenSSLDSOPatch(); + $patches[] = new PHP56WithOpenSSL11Patch(); + foreach ($patches as $patch) { + $this->logger->info('Checking patch for ' . $patch->desc()); + if ($patch->match($build, $this->logger)) { + $patched = $patch->apply($build, $this->logger); + $this->logger->info("$patched changes patched."); + } + } + } + } +} diff --git a/src/PhpBrew/Tasks/Apxs2CheckTask.php b/src/PhpBrew/Tasks/Apxs2CheckTask.php index eac5341e5..ae7ff0ef3 100644 --- a/src/PhpBrew/Tasks/Apxs2CheckTask.php +++ b/src/PhpBrew/Tasks/Apxs2CheckTask.php @@ -1,42 +1,58 @@ getVariant('apxs2'); + $options = $parameters->getOptions(); - if( ! $apxs ) { + if (isset($options['--with-apxs2'])) { + $apxs = $options['--with-apxs2']; + } else { + // trying to find apxs binary in case it wasn't explicitly specified (+apxs variant without path) $apxs = Utils::findbin('apxs'); + $this->logger->debug("Found apxs2 binary: $apxs"); } - $this->logger->debug("Found apxs2 sbin: $apxs"); + if (!is_executable($apxs)) { + throw new Exception("apxs binary is not executable: $apxs"); + } // use apxs to check module dir permission - if( $apxs && $libdir = trim( Utils::pipe_execute( "$apxs -q LIBEXECDIR" ) ) ) { - if( false === is_writable($libdir) ) { - $msg = array(); - throw new Exception("Apache module dir $libdir is not writable.\nPlease consider using chmod or sudo."); + if ($libdir = exec("$apxs -q LIBEXECDIR")) { + if (false === is_writable($libdir)) { + $this->logger->error( + <<logger->error( + <<logger->info('===> Applying patch - apxs2 module version name ...'); - - // patch for libphp$(PHP_MAJOR_VERSION).so - $patch=<<<'EOS' -perl -i.bak -pe 's# -libphp\$\(PHP_MAJOR_VERSION\)\.#libphp\$\(PHP_VERSION\)\.#gx' configure Makefile.global -EOS; - Utils::system( $patch ) !== false or die('apxs2 patch failed.'); - - - $patch=<<<'EOS' -perl -i.bak -pe 's# -libs/libphp\$PHP_MAJOR_VERSION\. -#libs/libphp\$PHP_VERSION\.#gx' configure Makefile.global -EOS; - Utils::system( $patch ) !== false or die('apxs2 patch failed.'); - - - // replace .so files - $patch=<<<'EOS' -perl -i.bak -pe 's# -libs/libphp5.so -#libs/libphp\$PHP_VERSION\.so#gx' configure Makefile.global -EOS; - Utils::system( $patch ) !== false or die('apxs2 patch failed.'); - - - // patch for OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la - // libphp$(PHP_VERSION).la: - // replace .la files - $patch=<<<'EOS' -perl -i.bak -pe 's# -libs/libphp5.la -#libs/libphp\$PHP_VERSION\.la#gx' configure Makefile.global -EOS; - Utils::system( $patch ) !== false or die('apxs2 patch failed.'); - - - $patch=<<<'EOS' -perl -i.bak -pe 's# -libphp\$PHP_MAJOR_VERSION\.#libphp\$PHP_VERSION\.#gx' configure Makefile.global -EOS; - Utils::system( $patch ) !== false or die('apxs2 patch failed.'); - - } -} - - - diff --git a/src/PhpBrew/Tasks/BaseTask.php b/src/PhpBrew/Tasks/BaseTask.php index 4c2de9407..652525341 100644 --- a/src/PhpBrew/Tasks/BaseTask.php +++ b/src/PhpBrew/Tasks/BaseTask.php @@ -1,41 +1,50 @@ logger = $logger; - } + public $options; + public $startedAt; - public function setLogger($logger) - { - $this->logger = $logger; - } + public $finishedAt; - public function getLogger() + public function __construct(Logger $logger, OptionResult $options = null) { - return $this->logger; + $this->startedAt = microtime(true); + $this->logger = $logger; + if ($options) { + $this->options = $options; + } else { + $this->options = new OptionResult(); + } } - public function info($msg) - { - if($this->logger) + { + if ($this->logger) { $this->logger->info($msg); + } } public function debug($msg) - { - if($this->logger) + { + if ($this->logger) { $this->logger->debug($msg); + } } + public function __destruct() + { + $this->finishedAt = microtime(true); + } } - - - diff --git a/src/PhpBrew/Tasks/BeforeConfigureTask.php b/src/PhpBrew/Tasks/BeforeConfigureTask.php new file mode 100644 index 000000000..d98178417 --- /dev/null +++ b/src/PhpBrew/Tasks/BeforeConfigureTask.php @@ -0,0 +1,83 @@ +getSourceDirectory() . DIRECTORY_SEPARATOR . 'configure')) { + $this->debug("configure file not found, running './buildconf --force'..."); + + $buildConf = new BuildConfTask($this->logger); + $buildConf->run($build); + } + + foreach ((array) $this->options->patch as $patchPath) { + // copy patch file to here + $this->info("===> Applying patch file from $patchPath ..."); + + // Search for strip parameter + for ($i = 0; $i <= 16; ++$i) { + ob_start(); + system("patch -p$i --dry-run < $patchPath", $return); + ob_end_clean(); + + if ($return === 0) { + system("patch -p$i < $patchPath"); + break; + } + } + } + + // let's apply patch for libphp{php version}.so (apxs) + if ($build->isEnabledVariant('apxs2')) { + $apxs2Checker = new Apxs2CheckTask($this->logger); + $apxs2Checker->check($parameters); + } + + if (!$this->options->{'no-patch'}) { + $this->logger->info('===> Checking patches...'); + + $freeTypePatch = new FreeTypePatch(); + $readlinePatch = new ReadlinePatch(); + $needBuildConf = false; + + /** @var Patch[] $patches */ + $patches = array( + new Apache2ModuleNamePatch($build->getVersion()), + $freeTypePatch, + $readlinePatch + ); + + foreach ($patches as $patch) { + $this->logger->info('Checking patch for ' . $patch->desc()); + if ($patch->match($build, $this->logger)) { + $patched = $patch->apply($build, $this->logger); + $this->logger->info("$patched changes patched."); + + if ($patch === $freeTypePatch || $patch === $readlinePatch) { + $needBuildConf = $patched; + } + } + } + + if ($needBuildConf) { + $this->logger->info('Need to run buildconf'); + + $buildConf = new BuildConfTask($this->logger); + $buildConf->run($build); + } + } + } +} diff --git a/src/PhpBrew/Tasks/BuildConfTask.php b/src/PhpBrew/Tasks/BuildConfTask.php new file mode 100644 index 000000000..a19b8e57c --- /dev/null +++ b/src/PhpBrew/Tasks/BuildConfTask.php @@ -0,0 +1,24 @@ +logPath = $path; - } + if ($build->getState() >= Build::STATE_BUILD) { + $this->info('===> Already built, skipping...'); - public function build($nice = null) - { - $this->info("===> Building..."); + return; + } + + $this->info('===> Building...'); $cmd = new CommandBuilder('make'); - $cmd->append = true; - if($this->logPath) { - $cmd->stdout = $this->logPath; + + $cmd->setAppendLog(true); + $cmd->setLogPath($build->getBuildLogPath()); + $cmd->setStdout($this->options->{'stdout'}); + + if (!empty($targets)) { + foreach ($targets as $t) { + $cmd->addArg($t); + } } - if( $nice ) { - $cmd->nice($nice); + + if ($this->options->nice) { + $cmd->nice($this->options->nice); + } + + if ($makeJobs = $this->options->{'jobs'}) { + $cmd->addArg("-j{$makeJobs}"); } - $this->debug( '' . $cmd ); - $startTime = microtime(true); - $cmd->execute() !== false or die('Make failed.'); - $buildTime = ceil((microtime(true) - $startTime) / 60); - $this->info("Build finished: $buildTime minutes."); - } -} + $this->debug($cmd->buildCommand()); + if (!$this->options->dryrun) { + $startTime = microtime(true); + $code = $cmd->execute($lastline); + if ($code !== 0) { + throw new SystemCommandException("Make failed: $lastline", $build, $build->getBuildLogPath()); + } + $buildTime = round((microtime(true) - $startTime) / 60, 1); + $this->info("Build finished: $buildTime minutes."); + } + $build->setState(Build::STATE_BUILD); + } +} diff --git a/src/PhpBrew/Tasks/CleanTask.php b/src/PhpBrew/Tasks/CleanTask.php deleted file mode 100644 index 2f02aae25..000000000 --- a/src/PhpBrew/Tasks/CleanTask.php +++ /dev/null @@ -1,47 +0,0 @@ -logger->info('===> Cleaning...'); - $pwd = getcwd(); - chdir($path); - system('make clean'); - chdir($pwd); - return true; - } - - public function cleanByVersion($version, $verbose = false) - { - $home = Config::getPhpbrewRoot(); - $buildPrefix = Config::getVersionBuildPrefix( $version ); - return $this->clean($buildPrefix); - } - - /** - * - * @param string $buildId a build ID is a version string that followed by - * variants and options. - */ - public function cleanByBuildId($buildId) - { - // XXX: - } - -} - - - diff --git a/src/PhpBrew/Tasks/ConfigureTask.php b/src/PhpBrew/Tasks/ConfigureTask.php index b6b636f94..83ee0fe64 100644 --- a/src/PhpBrew/Tasks/ConfigureTask.php +++ b/src/PhpBrew/Tasks/ConfigureTask.php @@ -1,55 +1,79 @@ debug('Enabled variants: [' . implode(', ', array_keys($build->getEnabledVariants())) . ']'); + $this->debug('Disabled variants: [' . implode(', ', array_keys($build->getDisabledVariants())) . ']'); - public $o; + $cmd = new CommandBuilder('./configure'); + $cmd->args($this->renderOptions($parameters)); - public function setLogPath($path) - { - $this->logPath = $path; - } + $buildLogPath = $build->getBuildLogPath(); + if (file_exists($buildLogPath)) { + $newPath = $buildLogPath . '.' . filemtime($buildLogPath); + $this->info("Found existing build.log, renaming it to $newPath"); + rename($buildLogPath, $newPath); + } + $this->info("===> Configuring {$build->version}..."); + $cmd->setAppendLog(true); + $cmd->setLogPath($buildLogPath); + $cmd->setStdout($this->options->{'stdout'}); - public function setOptimizationLevel($o) - { - $this->o = $o; + if (!$this->options->{'stdout'}) { + $this->logger->info(PHP_EOL); + $this->logger->info("Use tail command to see what's going on:"); + $this->logger->info(' $ tail -F ' . escapeshellarg($buildLogPath) . PHP_EOL . PHP_EOL); + } + + $this->debug($cmd->buildCommand()); + + if ($this->options->nice) { + $cmd->nice($this->options->nice); + } + + if (!$this->options->dryrun) { + $code = $cmd->execute($lastline); + if ($code !== 0) { + throw new SystemCommandException("Configure failed: $lastline", $build, $buildLogPath); + } + } + $build->setState(Build::STATE_CONFIGURE); } - public function build($version) + private function renderOptions(ConfigureParameters $parameters) { - $root = Config::getPhpbrewRoot(); - $buildPrefix = Config::getVersionBuildPrefix( $version ); + $args = array(); + + foreach ($parameters->getOptions() as $option => $value) { + $arg = $option; + if ($value !== null) { + $arg .= '=' . $value; + } - if( ! file_exists('configure') ) { - $this->debug("configure file not found, running buildconf script..."); - system('./buildconf') !== false or die('buildconf error'); + $args[] = $arg; } - $cmd = new CommandBuilder('./configure'); + $pkgConfigPaths = $parameters->getPkgConfigPaths(); - // append cflags - if( $this->o ) { - $o = $this->o; - $cflags = getenv('CFLAGS'); - putenv("CFLAGS=$cflags -O$o"); - $_ENV['CFLAGS'] = "$cflags -O$o"; + if (count($pkgConfigPaths) > 0) { + $args[] = 'PKG_CONFIG_PATH=' . implode(PATH_SEPARATOR, $pkgConfigPaths); } - $args = array(); - $args[] = "--prefix=" . $buildPrefix; - $args[] = "--with-config-file-path={$buildPrefix}/etc"; - $args[] = "--with-config-file-scan-dir={$buildPrefix}/var/db"; - $args[] = "--with-pear={$buildPrefix}/lib/php"; - + return $args; } } - - diff --git a/src/PhpBrew/Tasks/DSymTask.php b/src/PhpBrew/Tasks/DSymTask.php new file mode 100644 index 000000000..c4a4182ff --- /dev/null +++ b/src/PhpBrew/Tasks/DSymTask.php @@ -0,0 +1,35 @@ +getBinDirectory() . DIRECTORY_SEPARATOR . 'php'; + $dSYM = $build->getBinDirectory() . DIRECTORY_SEPARATOR . 'php.dSYM'; + + return !file_exists($phpbin) && file_exists($dSYM); + } + + public function patch(Build $build, $options) + { + if ($this->check($build)) { + $this->logger->info('---> Moving php.dSYM to php '); + if (!$options->dryrun) { + $phpBin = $build->getBinDirectory() . DIRECTORY_SEPARATOR . 'php'; + $dSYM = $build->getBinDirectory() . DIRECTORY_SEPARATOR . 'php.dSYM'; + rename($dSYM, $phpBin); + } + } + } +} diff --git a/src/PhpBrew/Tasks/DownloadTask.php b/src/PhpBrew/Tasks/DownloadTask.php index 7526e4a75..cb5dc709f 100644 --- a/src/PhpBrew/Tasks/DownloadTask.php +++ b/src/PhpBrew/Tasks/DownloadTask.php @@ -1,54 +1,42 @@ downloadByUrl($info['url'], $force); - } - elseif( isset($info['svn']) ) { - $targetDir = $this->downloadFromSvn($info['svn']); + if (!is_writable($dir)) { + throw new Exception("Directory is not writable: $dir"); } - return $targetDir; - } - - public function downloadFromSvn($svnUrl) - { - $downloader = new \PhpBrew\Downloader\SvnDownloader( $this->getLogger() ); - $targetDir = $downloader->download($svnUrl); - return realpath($targetDir); - } - public function downloadByUrl($url, $forceExtract = false ) - { - $downloader = new \PhpBrew\Downloader\UrlDownloader( $this->getLogger() ); - $basename = $downloader->download($url); - - // unpack the tarball file - $targetDir = basename($basename, '.tar.bz2'); - - // if we need to extract again (?) - if( $forceExtract || ! file_exists($targetDir . DIRECTORY_SEPARATOR . 'configure') ) { - $this->info("===> Extracting $basename..."); - system( "tar xjf $basename" ) !== false or die('Extract failed.'); + $downloader = DownloadFactory::getInstance($this->logger, $this->options); + $basename = $downloader->resolveDownloadFileName($url); + if (!$basename) { + throw new Exception("Can not parse url: $url"); + } + $targetFilePath = $dir . DIRECTORY_SEPARATOR . $basename; + + if (!$this->options->force && file_exists($targetFilePath)) { + $this->logger->info('Checking distribution checksum...'); + $hash2 = hash_file($algo, $targetFilePath); + if ($hash && $hash2 != $hash) { + $this->logger->warn("Checksum mismatch: $hash2 != $hash"); + $this->logger->info('Re-Downloading...'); + $downloader->download($url, $targetFilePath); + } else { + $this->logger->info('Checksum matched: ' . $hash); + } } else { - $this->info("Found existing $targetDir, Skip extracting."); + $downloader->download($url, $targetFilePath); } - return realpath($targetDir); - } + return $targetFilePath; + } } - - diff --git a/src/PhpBrew/Tasks/ExtractTask.php b/src/PhpBrew/Tasks/ExtractTask.php new file mode 100644 index 000000000..8c2ec9cda --- /dev/null +++ b/src/PhpBrew/Tasks/ExtractTask.php @@ -0,0 +1,113 @@ +getName(); + + if ( + $build->getState() >= Build::STATE_EXTRACT + && file_exists($extractedDir . DIRECTORY_SEPARATOR . 'configure') + ) { + $this->info('===> Distribution file was successfully extracted, skipping...'); + + return $extractedDir; + } + + $extractDirTemp = $extractDir . DIRECTORY_SEPARATOR . 'tmp.' . time(); + + if (!file_exists($extractDirTemp)) { + mkdir($extractDirTemp, 0755, true); + } + + $this->rmDirs[] = $extractDirTemp; + + // This converts: '/opt/phpbrew/distfiles/php-7.0.2.tar.bz2' + // to just '/opt/phpbrew/tmp/distfiles/php-7.0.2' + $distBaseName = preg_replace('#\.tar\.(gz|bz2)$#', '', basename($targetFilePath)); + $extractedDirTemp = $extractDirTemp . DIRECTORY_SEPARATOR . $distBaseName; + + // NOTICE: Always extract to tmp directory prevent incomplete extraction + $this->info("===> Extracting $targetFilePath to $extractedDirTemp"); + $lastLine = system( + 'tar -C ' . escapeshellarg($extractDirTemp) . ' -xf ' . escapeshellarg($targetFilePath), + $ret + ); + + if ($ret !== 0) { + throw new SystemCommandException("Extract failed: $lastLine", $build); + } + + clearstatcache(true); + + if (!is_dir($extractedDirTemp)) { + // retry with github extracted dir path + $extractedDirTemp = $extractDirTemp . DIRECTORY_SEPARATOR . 'php-src-' . $distBaseName; + + if (!is_dir($extractedDirTemp)) { + throw new SystemCommandException("Unable to find $extractedDirTemp", $build); + } + } + + if (is_dir($extractedDir)) { + $this->info("===> Found existing build directory, removing $extractedDir ..."); + $lastLine = $this->rmDir($extractedDir, $ret); + + if ($ret !== 0) { + throw new SystemCommandException("Unable to remove $extractedDir: $lastLine", $build); + } + } + + $this->info("===> Moving $extractedDirTemp to $extractedDir"); + + if (!rename($extractedDirTemp, $extractedDir)) { + throw new SystemCommandException("Unable to move $extractedDirTemp to $extractedDir", $build); + } + + $build->setState(Build::STATE_EXTRACT); + + return $extractedDir; + } + + public function __destruct() + { + foreach ($this->rmDirs as $dir) { + $this->rmDir($dir); + } + + parent::__destruct(); + } + + private function rmDir($dir, &$return = null) + { + return system('rm -rf ' . escapeshellarg($dir), $return); + } +} diff --git a/src/PhpBrew/Tasks/FetchReleaseListTask.php b/src/PhpBrew/Tasks/FetchReleaseListTask.php new file mode 100644 index 000000000..d8d2fd358 --- /dev/null +++ b/src/PhpBrew/Tasks/FetchReleaseListTask.php @@ -0,0 +1,17 @@ +logger->info('===> Fetching release list...'); + $releaseList = new ReleaseList(); + $releaseList->fetchRemoteReleaseList($this->options); + + return $releaseList->getReleases(); + } +} diff --git a/src/PhpBrew/Tasks/InstallTask.php b/src/PhpBrew/Tasks/InstallTask.php index 9a9db4eb6..156b33406 100644 --- a/src/PhpBrew/Tasks/InstallTask.php +++ b/src/PhpBrew/Tasks/InstallTask.php @@ -1,30 +1,40 @@ logPath = $path; - } + $this->info('Installing...'); - public function install() - { - $this->info("Installing..."); - $cmd = new CommandBuilder('make install'); - $cmd->append = true; - if($this->logPath) { - $cmd->stdout = $this->logPath; + if ($this->options->sudo) { + $cmd = new CommandBuilder('sudo make install'); + if (!$this->options->dryrun) { + $code = $cmd->passthru($lastline); + if ($code !== 0) { + throw new SystemCommandException("Install failed: $lastline", $build, $build->getBuildLogPath()); + } + } + } else { + $cmd = new CommandBuilder('make install'); + $cmd->setAppendLog(true); + $cmd->setLogPath($build->getBuildLogPath()); + $cmd->setStdout($this->options->{'stdout'}); + if (!$this->options->dryrun) { + $code = $cmd->execute($lastline); + if ($code !== 0) { + throw new SystemCommandException("Install failed: $lastline", $build, $build->getBuildLogPath()); + } + } } - $cmd->execute() !== false or die('Install failed.'); + $build->setState(Build::STATE_INSTALL); } } - - diff --git a/src/PhpBrew/Tasks/MakeTask.php b/src/PhpBrew/Tasks/MakeTask.php new file mode 100644 index 000000000..459198f1c --- /dev/null +++ b/src/PhpBrew/Tasks/MakeTask.php @@ -0,0 +1,99 @@ +make($build->getSourceDirectory(), 'all', $build); + } + + public function install(Buildable $build) + { + return $this->make($build->getSourceDirectory(), 'install', $build); + } + + public function clean(Buildable $build) + { + return $this->make($build->getSourceDirectory(), 'clean', $build); + } + + public function setBuildLogPath($buildLogPath) + { + $this->buildLogPath = $buildLogPath; + } + + public function setQuiet() + { + $this->isQuiet = true; + } + + public function isQuiet() + { + return $this->isQuiet; + } + + private function isGNUMake($bin) + { + return preg_match('/GNU Make/', shell_exec("$bin --version")); + } + + + /** + * @param Buildable $build can be PeclExtension or Build object. + */ + private function make($path, $target = 'all', $build = null) + { + if (!file_exists($path . DIRECTORY_SEPARATOR . 'Makefile')) { + $this->logger->error("Makefile not found in path $path"); + + return false; + } + + // FreeBSD make doesn't support --quiet option + // We should prefer GNU make instead of BSD make. + // @see https://github.com/phpbrew/phpbrew/issues/529 + $gmake = Utils::findBin('gmake'); + $make = null; + if (!$gmake) { + $make = Utils::findBin('make'); + if ($make && $this->isGNUMake($make)) { + $gmake = $make; + } + } + + // Prefer 'gmake' rather than 'make' + $cmd = array($gmake ?: $make, '-C', escapeshellarg($path)); + + if ($this->isQuiet()) { + if ($gmake) { + $cmd[] = '--quiet'; + } else { + // make may be a link to gmake, we should prevent that. + // append '-Q' only when we're really sure it is BSD make. + if (php_uname('s') === 'FreeBSD') { + $cmd[] = '-Q'; + } + } + } + + $cmd[] = escapeshellarg($target); + if (!$this->logger->isDebug() && $this->buildLogPath) { + $cmd[] = ' >> ' . escapeshellarg($this->buildLogPath) . ' 2>&1'; + } + + $this->logger->info("===> Running make $target: " . implode(' ', $cmd)); + + return Utils::system($cmd, $this->logger, $build) === 0; + } +} diff --git a/src/PhpBrew/Tasks/PrepareDirectoryTask.php b/src/PhpBrew/Tasks/PrepareDirectoryTask.php index 69c766360..603c85938 100644 --- a/src/PhpBrew/Tasks/PrepareDirectoryTask.php +++ b/src/PhpBrew/Tasks/PrepareDirectoryTask.php @@ -1,24 +1,28 @@ getName(); + } + foreach ($dirs as $dir) { + if (!file_exists($dir)) { + $this->logger->debug("Creating directory $dir"); + mkdir($dir, 0755, true); + } + } } - } diff --git a/src/PhpBrew/Tasks/RemoveTask.php b/src/PhpBrew/Tasks/RemoveTask.php deleted file mode 100644 index ffb6d62ab..000000000 --- a/src/PhpBrew/Tasks/RemoveTask.php +++ /dev/null @@ -1,41 +0,0 @@ -remove($buildPrefix); - } - - /** - * - * @param string $buildId a build ID is a version string that followed by - * variants and options. - */ - public function removeByBuildId($buildId) - { - // XXX: - } - -} - - - diff --git a/src/PhpBrew/Tasks/TestTask.php b/src/PhpBrew/Tasks/TestTask.php index 34dd022ce..bb5b094c2 100644 --- a/src/PhpBrew/Tasks/TestTask.php +++ b/src/PhpBrew/Tasks/TestTask.php @@ -1,31 +1,34 @@ logPath = $path; - } - - public function test($nice = null) + public function run(Build $build, $nice = null) { - $this->info("Testing..."); + $this->info('===> Running tests...'); $cmd = new CommandBuilder('make test'); - if($nice) + + if ($nice) { $cmd->nice($nice); - $cmd->append = true; - if($this->logPath) { - $cmd->stdout = $this->logPath; } - $this->debug( '' . $cmd ); - $cmd->execute() !== false or die('Test failed.'); - } -} + $cmd->setAppendLog(true); + $cmd->setLogPath($build->getBuildLogPath()); + $cmd->setStdout($this->options->{'stdout'}); + putenv('NO_INTERACTION=1'); + $this->debug('' . $cmd); + $code = $cmd->execute($lastline); + if ($code !== 0) { + throw new SystemCommandException("Test failed: $lastline", $build); + } + } +} diff --git a/src/PhpBrew/Testing/CommandTestCase.php b/src/PhpBrew/Testing/CommandTestCase.php new file mode 100644 index 000000000..c8b8a2f15 --- /dev/null +++ b/src/PhpBrew/Testing/CommandTestCase.php @@ -0,0 +1,117 @@ +primaryVersion; + } + + public function setupApplication() + { + $console = Console::getInstance(); + $console->getLogger()->setQuiet(); + $console->getFormatter()->preferRawOutput(); + + return $console; + } + + protected function setUp(): void + { + parent::setUp(); + $this->previousPhpBrewRoot = getenv('PHPBREW_ROOT'); + $this->previousPhpBrewHome = getenv('PHPBREW_HOME'); + + // + // + + // already setup in phpunit.xml, but it seems don't work. + // putenv('PHPBREW_ROOT=' . getcwd() . '/.phpbrew'); + // putenv('PHPBREW_HOME=' . getcwd() . '/.phpbrew'); + + if ($options = Console::getInstance()->options) { + $option = new Option('no-progress'); + $option->setValue(true); + $options->set('no-progress', $option); + } + + if ($this->usesVCR) { + VCRAdapter::enableVCR($this); + } + } + + /* + * we don't have to restore it back. the parent environment variables + * won't change if the they are changed inside a process. + * but we might want to change it back if there is a test changed the environment variable. + */ + protected function tearDown(): void + { + if ($this->previousPhpBrewRoot !== null) { + // putenv('PHPBREW_ROOT=' . $this->previousPhpBrewRoot); + } + if ($this->previousPhpBrewHome !== null) { + // putenv('PHPBREW_HOME=' . $this->previousPhpBrewHome); + } + + if ($this->usesVCR) { + VCRAdapter::disableVCR(); + } + } + + public function assertCommandSuccess($args) + { + try { + if ($this->debug) { + fwrite(STDERR, $args . PHP_EOL); + } + + ob_start(); + $ret = parent::runCommand($args); + $output = ob_get_contents(); + ob_end_clean(); + + $this->assertTrue($ret, $output); + } catch (\CurlKit\CurlException $e) { + $this->markTestIncomplete($e->getMessage()); + } + } + + public function runCommand($args) + { + ob_start(); + $status = parent::runCommand($args); + ob_end_clean(); + + return $status; + } + + public function runCommandWithStdout($args) + { + return parent::runCommand($args); + } +} diff --git a/src/PhpBrew/Testing/PatchTestCase.php b/src/PhpBrew/Testing/PatchTestCase.php new file mode 100644 index 000000000..f938029d8 --- /dev/null +++ b/src/PhpBrew/Testing/PatchTestCase.php @@ -0,0 +1,75 @@ +isDir()) { + mkdir($dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName(), 0755, true); + } else { + copy($item, $dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); + } + } + } + + protected function cleanupBuildDirectory() + { + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + if (!is_dir($sourceDirectory)) { + return; + } + + $directoryIterator = new RecursiveDirectoryIterator($sourceDirectory, RecursiveDirectoryIterator::SKIP_DOTS); + $it = new RecursiveIteratorIterator($directoryIterator, RecursiveIteratorIterator::CHILD_FIRST); + foreach ($it as $file) { + if ($file->isDir()) { + rmdir($file->getPathname()); + } else { + unlink($file->getPathname()); + } + } + if (is_dir($sourceDirectory)) { + rmdir($sourceDirectory); + } elseif (is_file($sourceDirectory)) { + unlink($sourceDirectory); + } + } + + protected function setUp(): void + { + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + $this->cleanupBuildDirectory(); + if (!file_exists($sourceDirectory)) { + mkdir($sourceDirectory, 0755, true); + } + } + + protected function tearDown(): void + { + // don't clean up if the test failed. + if ($this->hasFailed()) { + return; + } + $this->cleanupBuildDirectory(); + } +} diff --git a/src/PhpBrew/Testing/VCRAdapter.php b/src/PhpBrew/Testing/VCRAdapter.php new file mode 100644 index 000000000..bc8db8256 --- /dev/null +++ b/src/PhpBrew/Testing/VCRAdapter.php @@ -0,0 +1,27 @@ +run(); - return trim($process->getOutput()); + if (!self::findBin('pkg-config')) { + return null; + } + + $path = exec('pkg-config --variable=prefix ' . escapeshellarg($package) . ' 2>/dev/null', $_, $ret); + + if ($ret !== 0) { + return null; + } + + if (!file_exists($path)) { + return null; + } + + return $path; } - static function system($command, $msg = 'execute fail') + public static function system($command, $logger = null, $build = null) { - $lastline = system( $command, $retval ); - if ( $retval != 0 ) { - throw new Exception($lastline); + if (is_array($command)) { + $command = implode(' ', $command); + } + + if ($logger) { + $logger->debug('Running Command:' . $command); + } + + $lastline = system($command, $returnValue); + if ($returnValue !== 0) { + throw new SystemCommandException("Command failed: $command returns: $lastline", $build); } + return $returnValue; } - static function findbin($bin) + /** + * Find executable binary by PATH environment. + * + * @param string $bin binary name + * + * @return string|null The path or NULL if the path does not exist + */ + public static function findBin($bin) { $path = getenv('PATH'); - $paths = explode( PATH_SEPARATOR , $path ); - foreach( $paths as $path ) { + $paths = explode(PATH_SEPARATOR, $path); + + foreach ($paths as $path) { $f = $path . DIRECTORY_SEPARATOR . $bin; - if( file_exists($f) ) { + // realpath will handle file existence or symbolic link automatically + $f = realpath($f); + if ($f !== false) { return $f; } } - } + return null; + } - static function pipe_execute($command) + /** + * Finds prefix using the given finders. + * + * @param PrefixFinder[] $prefixFinders + * @return string|null + */ + public static function findPrefix(array $prefixFinders) { - $proc = proc_open( $command , array( - array("pipe","r"), // stdin - array("pipe","w"), // stdout - array("pipe","w"), // stderr - ), $pipes); - return stream_get_contents($pipes[1]); - } -} + foreach ($prefixFinders as $prefixFinder) { + $prefix = $prefixFinder->findPrefix(); + if ($prefix !== null) { + return $prefix; + } + } + + return null; + } + public static function recursive_unlink($path, Logger $logger) + { + $directoryIterator = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS); + $it = new RecursiveIteratorIterator($directoryIterator, RecursiveIteratorIterator::CHILD_FIRST); + foreach ($it as $file) { + $logger->debug('Deleting ' . $file->getPathname()); + if ($file->isDir()) { + rmdir($file->getPathname()); + } else { + unlink($file->getPathname()); + } + } + if (is_dir($path)) { + rmdir($path); + } elseif (is_file($path)) { + unlink($path); + } + } + public static function editor($file) + { + $tty = exec('tty'); + $editor = escapeshellarg(getenv('EDITOR') ?: 'nano'); + exec("{$editor} {$file} > {$tty}", $_, $ret); + return $ret; + } +} diff --git a/src/PhpBrew/VariantBuilder.php b/src/PhpBrew/VariantBuilder.php index eb72b620a..94daa747c 100644 --- a/src/PhpBrew/VariantBuilder.php +++ b/src/PhpBrew/VariantBuilder.php @@ -1,48 +1,81 @@ register('debug', function() { - * - * }); - * $variantBuilder->build($build); + * VariantBuilder build variants to `./configure' parameters. */ class VariantBuilder { - /** - * available variants + * Available variant definitions. + * + * @var array|callable> */ - public $variants = array(); - + private $variants = array(); - public $conflicts = array( + private $conflicts = array( // PHP Version lower than 5.4.0 can only built one SAPI at the same time. - 'apxs2' => array( 'fpm','cgi' ), - ); - - public $options = array(); + 'apxs2' => array('fpm', 'cgi'), + 'editline' => array('readline'), + 'readline' => array('editline'), + // dtrace is not compatible with phpdbg: https://github.com/krakjoe/phpdbg/issues/38 + 'dtrace' => array('phpdbg'), + ); /** - * @var array $builtList is for checking built variants + * @var array is for checking built variants * * contains ['-pdo','mysql','-sqlite','-debug'] */ - public $builtList = array(); + private $builtList = array(); public $virtualVariants = array( 'dbs' => array( 'sqlite', 'mysql', 'pgsql', - 'pdo' + 'pdo', ), 'mb' => array( @@ -50,6 +83,27 @@ class VariantBuilder 'mbregex', ), + // provide no additional feature + 'neutral' => array(), + + 'small' => array( + 'bz2', + 'cli', + 'dom', + 'filter', + 'ipc', + 'json', + 'mbregex', + 'mbstring', + 'pcre', + 'phar', + 'posix', + 'readline', + 'xml', + 'curl', + 'openssl', + ), + // provide all basic features 'default' => array( 'bcmath', @@ -65,10 +119,10 @@ class VariantBuilder 'mbregex', 'mbstring', 'mhash', - 'mcrypt', 'pcntl', 'pcre', 'pdo', + 'pear', 'phar', 'posix', 'readline', @@ -76,142 +130,347 @@ class VariantBuilder 'tokenizer', 'xml', 'curl', + 'openssl', 'zip', - 'bz2', - ) + ), ); - public function __construct() { - $self = $this; - // init variant builders - - $this->variants['all'] = '--enable-all'; - $this->variants['dba'] = '--enable-dba'; - $this->variants['ipv6'] = '--enable-ipv6'; - $this->variants['dom'] = '--enable-dom'; - $this->variants['all'] = '--enable-all'; + $this->variants['all'] = '--enable-all'; + $this->variants['dba'] = '--enable-dba'; + $this->variants['ipv6'] = '--enable-ipv6'; + $this->variants['dom'] = '--enable-dom'; $this->variants['calendar'] = '--enable-calendar'; - $this->variants['wddx'] = '--enable-wddx'; - - $this->variants['cli'] = '--enable-cli'; - $this->variants['fpm'] = '--enable-fpm'; - $this->variants['ftp'] = '--enable-ftp'; - $this->variants['filter'] = '--enable-filter'; - $this->variants['gcov'] = '--enable-gcov'; - - - $this->variants['json'] = '--enable-json'; - $this->variants['hash'] = '--enable-hash'; - $this->variants['exif'] = '--enable-exif'; - $this->variants['mbstring'] = '--enable-mbstring'; - $this->variants['mbregex'] = '--enable-mbregex'; - - $this->variants['pdo'] = '--enable-pdo'; - $this->variants['posix'] = '--enable-posix'; - $this->variants['embed'] = '--enable-embed'; - $this->variants['sockets'] = '--enable-sockets'; - $this->variants['debug'] = '--enable-debug'; - $this->variants['zip'] = '--enable-zip'; - $this->variants['bcmath'] = '--enable-bcmath'; - $this->variants['fileinfo'] = '--enable-fileinfo'; - $this->variants['ctype'] = '--enable-ctype'; - $this->variants['cgi'] = '--enable-cgi'; - $this->variants['soap'] = '--enable-soap'; - $this->variants['pcntl'] = '--enable-pcntl'; - $this->variants['intl'] = '--enable-intl'; - $this->variants['phar'] = '--enable-phar'; - $this->variants['session'] = '--enable-session'; - $this->variants['tokenizer'] = '--enable-tokenizer'; - - // PHP 5.5 only variants - $this->variants['opcache'] = '--enable-opcache'; - - $this->variants['imap'] = '--with-imap-ssl'; - $this->variants['tidy'] = '--with-tidy'; - $this->variants['kerberos'] = '--with-kerberos'; - $this->variants['xmlrpc'] = '--with-xmlrpc'; - $this->variants['pcre'] = function($build, $prefix = null) { - if ( $prefix ) { - return array("--with-pcre-regex=$prefix", "--with-pcre-dir=$prefix"); + $this->variants['wddx'] = '--enable-wddx'; + $this->variants['static'] = '--enable-static'; + $this->variants['inifile'] = '--enable-inifile'; + $this->variants['inline'] = '--enable-inline-optimization'; + + $this->variants['cli'] = '--enable-cli'; + + $this->variants['ftp'] = '--enable-ftp'; + $this->variants['filter'] = '--enable-filter'; + $this->variants['gcov'] = '--enable-gcov'; + $this->variants['zts'] = function (ConfigureParameters $params, Build $build) { + if ($build->compareVersion('8.0') < 0) { + return $params->withOption('--enable-maintainer-zts'); } - if ( $prefix = Utils::find_include_prefix('pcre.h') ) { - return array("--with-pcre-regex=$prefix", "--with-pcre-dir=$prefix"); + + return $params->withOption('--enable-zts'); + }; + + $this->variants['json'] = function (ConfigureParameters $params, Build $build) { + if ($build->compareVersion('8.0') < 0) { + return $params->withOption('--enable-json'); } - return array("--with-pcre-regex"); + + return $params; }; + $this->variants['hash'] = '--enable-hash'; + $this->variants['exif'] = '--enable-exif'; - $this->variants['mhash'] = function($build, $prefix = null) { - if ( $prefix ) { - return "--with-mhash=$prefix"; + $this->variants['mbstring'] = function (ConfigureParameters $params, Build $build, $value) { + $params = $params->withOption('--enable-mbstring'); + + if ($build->compareVersion('7.4') >= 0 && !$build->isDisabledVariant('mbregex')) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('oniguruma.h'), + new BrewPrefixFinder('oniguruma'), + )); + + if ($prefix !== null) { + $params = $params->withPkgConfigPath($prefix . '/lib/pkgconfig'); + } } - if ( $prefix = Utils::find_include_prefix('mhash.h') ) { - return "--with-mhash=$prefix"; + + return $params; + }; + + $this->variants['mbregex'] = '--enable-mbregex'; + $this->variants['libgcc'] = '--enable-libgcc'; + + $this->variants['pdo'] = '--enable-pdo'; + $this->variants['posix'] = '--enable-posix'; + $this->variants['embed'] = '--enable-embed'; + $this->variants['sockets'] = '--enable-sockets'; + $this->variants['debug'] = '--enable-debug'; + $this->variants['phpdbg'] = '--enable-phpdbg'; + + $this->variants['zip'] = function (ConfigureParameters $params, Build $build) { + if ($build->compareVersion('7.4') < 0) { + return $params->withOption('--enable-zip'); } - return "--with-mhash"; // let autotool to find it. + + return $params->withOption('--with-zip'); }; - $this->variants['mcrypt'] = function($build, $prefix = null) { - if ( $prefix ) { - return "--with-mcrypt=$prefix"; + $this->variants['bcmath'] = '--enable-bcmath'; + $this->variants['fileinfo'] = '--enable-fileinfo'; + $this->variants['ctype'] = '--enable-ctype'; + $this->variants['cgi'] = '--enable-cgi'; + $this->variants['soap'] = '--enable-soap'; + $this->variants['gcov'] = '--enable-gcov'; + $this->variants['pcntl'] = '--enable-pcntl'; + + $this->variants['phar'] = '--enable-phar'; + $this->variants['session'] = '--enable-session'; + $this->variants['tokenizer'] = '--enable-tokenizer'; + + $this->variants['opcache'] = '--enable-opcache'; + + $this->variants['imap'] = function (ConfigureParameters $params, Build $build, $value) { + $imapPrefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('imap-uw'), + )); + + $kerberosPrefix = Utils::findPrefix(array( + new BrewPrefixFinder('krb5'), + )); + + $opensslPrefix = Utils::findPrefix(array( + new BrewPrefixFinder('openssl'), + new PkgConfigPrefixFinder('openssl'), + new IncludePrefixFinder('openssl/opensslv.h'), + )); + + // OpenSSL 3 removes RSA_SSLV23_PADDING and so is not compatible with PHP < 8.1, and Homebrew defaults to openssl@3 + // If we detect homebrew openssl@3, which is the default, change it to openssl@1.1 + // Fixed in PHP since 8.1.0: https://github.com/php/php-src/commit/a0972deb0f441fc7991001cb51efc994b70a3b51 + if ($opensslPrefix !== null && $build->compareVersion('8.1') < 0 && $opensslPrefix === (new BrewPrefixFinder('openssl@3'))->findPrefix()) { + $opensslPrefix = (new BrewPrefixFinder('openssl@1.1'))->findPrefix(); + if ($opensslPrefix === null) { + throw new Exception('PHP < 8.1 requires openssl@1.1.'); + } } - if ( $prefix = Utils::find_include_prefix('mcrypt.h') ) { - return "--with-mcrypt=$prefix"; + + return $params->withOption('--with-imap', $imapPrefix) + ->withOptionOrPkgConfigPath($build, '--with-kerberos', $kerberosPrefix) + ->withOptionOrPkgConfigPath($build, '--with-imap-ssl', $opensslPrefix); + }; + + $this->variants['ldap'] = function (ConfigureParameters $params, Build $_, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('ldap.h'), + new BrewPrefixFinder('openldap'), + )); + + if ($prefix !== null) { + $params = $params->withOption('--with-ldap', $prefix); } - return "--with-mcrypt"; // let autotool to find it. + + return $params; }; - $this->variants['zlib'] = function($build) { - if( $prefix = Utils::find_include_prefix('zlib.h') ) { - return '--with-zlib=' . $prefix; + $this->variants['tidy'] = '--with-tidy'; + $this->variants['kerberos'] = '--with-kerberos'; + $this->variants['xmlrpc'] = '--with-xmlrpc'; + + $this->variants['fpm'] = function (ConfigureParameters $params) { + $params = $params->withOption('--enable-fpm'); + + if ($bin = Utils::findBin('systemctl') && Utils::findIncludePrefix('systemd/sd-daemon.h')) { + $params = $params->withOption('--with-fpm-systemd'); } + + return $params; }; - $this->variants['curl'] = function($build, $prefix = null) { - if ( $prefix ) { - return "--with-curl=$prefix"; + $this->variants['dtrace'] = function (ConfigureParameters $params) { + return $params->withOption('--enable-dtrace'); + }; + + $this->variants['pcre'] = function (ConfigureParameters $params, Build $build, $value) { + // Apple Silicon will crash on < 8.1.11 due to the bundled PCRE2 not being compatible with Apple Sillicon, so get an updated version if we can + // PHP 8.1.11 and above have the fix applied to its bundled PCRE2: https://github.com/php/php-src/commit/f8b217a3452e76113b833eec8a49bc2b6e8d1fdd + if ($build->compareVersion('8.0') >= 0 && $build->compareVersion('8.1.11') < 0 && $build->osName === 'Darwin' && $build->osArch === 'arm64') { + $prefix = Utils::findPrefix([ + new UserProvidedPrefix($value), + new IncludePrefixFinder('pcre2.h'), + new BrewPrefixFinder('pcre2'), + ]); + + if ($prefix === null) { + throw new Exception('Unable to find PCRE2 library. PHP 8.0 on Apple Silicon requires a newer version of PCRE2 than is bundled with PHP 8.0.'); + } + + $params = $params->withOption('--with-external-pcre', $prefix); + return $params; } - if( $prefix = Utils::find_include_prefix('curl/curl.h') ) { - return "--with-zlib=$prefix"; + + // PCRE is bundled with PHP since 7.4 + if ($build->compareVersion('7.4') >= 0) { + return $params; } - if( $prefix = Utils::get_pkgconfig_prefix('libcurl') ) { - return "--with-curl=$prefix"; + + $params = $params->withOption('--with-pcre-regex'); + + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('pcre.h'), + new BrewPrefixFinder('pcre'), + )); + + if ($prefix !== null) { + $params = $params->withOption('--with-pcre-dir', $prefix); } + + return $params; }; - $this->variants['readline'] = function($build,$prefix = null) { - if ( $prefix = Utils::find_include_prefix( 'readline' . DIRECTORY_SEPARATOR . 'readline.h') ) { - $opts = array(); - $opts[] = '--with-readline=' . $prefix; - if ( $prefix = Utils::find_include_prefix('editline' . DIRECTORY_SEPARATOR . 'readline.h') ) { - $opts[] = '--with-libedit=' . $prefix; - } - return $opts; - } - return '--with-readline'; + $this->variants['mhash'] = function (ConfigureParameters $params, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('mhash.h'), + new BrewPrefixFinder('mhash'), + )); + + return $params->withOption('--with-mhash', $prefix); + }; + + $this->variants['mcrypt'] = function (ConfigureParameters $params, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('mcrypt.h'), + new BrewPrefixFinder('mcrypt'), + )); + + return $params->withOption('--with-mcrypt', $prefix); + }; + + $this->variants['zlib'] = function (ConfigureParameters $params, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('zlib'), + new IncludePrefixFinder('zlib.h'), + )); + + return $params->withOptionOrPkgConfigPath($build, '--with-zlib', $prefix); }; - $this->variants['gd'] = function($build, $prefix = null) use ($self) { - $opts = array(); + $this->variants['curl'] = function (ConfigureParameters $params, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('curl'), + new PkgConfigPrefixFinder('libcurl'), + new IncludePrefixFinder('curl/curl.h'), + )); + + return $params->withOptionOrPkgConfigPath($build, '--with-curl', $prefix); + }; + + /* + Users might prefer readline over libedit because only readline supports + readline_list_history() (http://www.php.net/readline-list-history). + On the other hand we want libedit to be the default because its license + is compatible with PHP's which means PHP can be distributable. + + related issue https://github.com/phpbrew/phpbrew/issues/497 + + The default libreadline version that comes with OS X is too old and + seems to be missing symbols like rl_mark, rl_pending_input, + rl_history_list, rl_on_new_line. This is not detected by ./configure + + So we should prefer macports/homebrew library than the system readline library. + @see https://bugs.php.net/bug.php?id=48608 + */ + $this->variants['readline'] = function (ConfigureParameters $params, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('readline'), + new IncludePrefixFinder('readline/readline.h'), + )); + + return $params->withOption('--with-readline', $prefix); + }; + + /* + * editline is conflict with readline + * + * one must tap the homebrew/dupes to use this formula + * + * brew tap homebrew/dupes + */ + $this->variants['editline'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('editline/readline.h'), + new BrewPrefixFinder('libedit'), + )); + + return $parameters->withOption('--with-libedit', $prefix); + }; + + /* + * It looks like gd won't be compiled without "shared" + * + * Suggested options is +gd=shared,{prefix} + * + * Issue: gd.so: undefined symbol: gdImageCreateFromWebp might happend + * + * Adding --with-libpath=lib or --with-libpath=lib/x86_64-linux-gnu + * might solve the gd issue. + * + * The configure script in ext/gd detects libraries by something like + * test -f $PREFIX/$LIBPATH/libxxx.a, where $PREFIX is what you passed + * in --with-xxxx-dir and $LIBPATH can varies in different OS. + * + * By adding --with-libpath, you can set it up properly. + * + * @see https://github.com/phpbrew/phpbrew/issues/461 + */ + $this->variants['gd'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('gd.h'), + new BrewPrefixFinder('gd'), + )); + + if ($build->compareVersion('7.4') < 0) { + $option = '--with-gd'; + } else { + $option = '--enable-gd'; + } + + $value = 'shared'; - // it looks like gd won't be compiled without "shared" - // suggested options is +gd=shared,/usr + if ($prefix !== null) { + $value .= ',' . $prefix; + } + + $parameters = $parameters->withOption($option, $value); - if ( $prefix ) { - $opts[] = "--with-gd=$prefix"; - } else if ( $prefix = Utils::find_include_prefix('gd.h') ) { - $opts[] = "--with-gd=shared,$prefix"; + if ($build->compareVersion('5.5') < 0) { + $parameters = $parameters->withOption('--enable-gd-native-ttf'); } - $opts[] = '--enable-gd-native-ttf'; + if ( + ($prefix = Utils::findPrefix(array( + new IncludePrefixFinder('jpeglib.h'), + new BrewPrefixFinder('libjpeg'), + ))) !== null + ) { + if ($build->compareVersion('7.4') < 0) { + $option = '--with-jpeg-dir'; + } else { + $option = '--with-jpeg'; + } - if( $prefix = Utils::find_include_prefix('jpeglib.h') ) { - $opts[] = "--with-jpeg-dir=$prefix"; + $parameters = $parameters->withOption($option, $prefix); } - if( $prefix = Utils::find_include_prefix('png.h', 'libpng12/pngconf.h') ) { - $opts[] = "--with-png-dir=$prefix"; + + if ( + $build->compareVersion('7.4') < 0 && ($prefix = Utils::findPrefix(array( + new IncludePrefixFinder('png.h'), + new IncludePrefixFinder('libpng12/pngconf.h'), + new BrewPrefixFinder('libpng'), + ))) !== null + ) { + $parameters = $parameters->withOption('--with-png-dir', $prefix); } // the freetype-dir option does not take prefix as its value, @@ -219,36 +478,76 @@ public function __construct() // // from configure: // for path in $i/include/freetype2/freetype/freetype.h - if ( $prefix = Utils::find_include_prefix('freetype2/freetype.h') ) { - $opts[] = "--with-freetype-dir=$prefix"; - } else if ( $prefix = Utils::find_include_prefix("freetype2/freetype/freetype.h") ) { - $opts[] = "--with-freetype-dir=$prefix"; + if ( + ($prefix = Utils::findPrefix(array( + new IncludePrefixFinder('freetype2/freetype.h'), + new IncludePrefixFinder('freetype2/freetype/freetype.h'), + new BrewPrefixFinder('freetype'), + ))) !== null + ) { + if ($build->compareVersion('7.4') < 0) { + $option = '--with-freetype-dir'; + } else { + $option = '--with-freetype'; + } + + $parameters = $parameters->withOption($option, $prefix); } - return $opts; + + return $parameters; }; + /* + --enable-intl - /** - * with icu - */ - $this->variants['icu'] = function($build, $val = null) use($self) { - if( $val ) { - return '--with-icu-dir=' . $val; - } - // the last one path is for Ubuntu - if ( $prefix = Utils::find_lib_prefix('icu/pkgdata.inc','icu/Makefile.inc') ) { - return '--with-icu-dir=' . $prefix; - } + To build the extension you need to install the » ICU library, version + 4.0.0 or newer is required. + + This extension is bundled with PHP as of PHP version 5.3.0. + Alternatively, the PECL version of this extension may be used with all + PHP versions greater than 5.2.0 (5.2.4+ recommended). + + This requires --with-icu-dir=/.... + + Please note prefix must provide {prefix}/bin/icu-config for autoconf + to find the related icu-config binary, or the configure will fail. + + Issue: https://github.com/phpbrew/phpbrew/issues/433 + */ + $this->variants['intl'] = function (ConfigureParameters $parameters, Build $build) { + $parameters = $parameters->withOption('--enable-intl'); + + $prefix = Utils::findPrefix(array( + new PkgConfigPrefixFinder('icu-i18n'), + new BrewPrefixFinder('icu4c'), + )); - // For macports - if ( $prefix = Utils::get_pkgconfig_prefix('icu-i18n') ) { - return '--with-icu-dir=' . $prefix; + if ($build->compareVersion('7.4') < 0) { + if ($prefix !== null) { + $parameters = $parameters->withOption('--with-icu-dir', $prefix); + } + } else { + if ($prefix !== null) { + $parameters = $parameters->withPkgConfigPath($prefix . '/lib/pkgconfig'); + } } - die("libicu not found, please install libicu-dev or libicu library/development files."); + + return $parameters; }; + $this->variants['sodium'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('libsodium'), + new PkgConfigPrefixFinder('libsodium'), + new IncludePrefixFinder('sodium.h'), + new LibPrefixFinder('libsodium.a'), + )); - /** + return $parameters->withOption('--with-sodium', $prefix); + }; + + /* * --with-openssl option * * --with-openssh=shared @@ -256,368 +555,546 @@ public function __construct() * * On ubuntu you need to install libssl-dev */ - $this->variants['openssl'] = function($build, $val = null) use($self) { - if( $val ) { - return "--with-openssl=$val"; - } - if ( $prefix = Utils::find_include_prefix('openssl/opensslv.h') ) { - return "--with-openssl=$prefix"; - } - if ( $prefix = Utils::get_pkgconfig_prefix('openssl') ) { - return "--with-openssl=$prefix"; + $this->variants['openssl'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('openssl'), + new PkgConfigPrefixFinder('openssl'), + new IncludePrefixFinder('openssl/opensslv.h'), + )); + + // OpenSSL 3 removes RSA_SSLV23_PADDING and so is not compatible with PHP < 8.1, and Homebrew defaults to openssl@3 + // If we detect homebrew openssl@3, which is the default, change it to openssl@1.1 + // Fixed in PHP since 8.1.0: https://github.com/php/php-src/commit/a0972deb0f441fc7991001cb51efc994b70a3b51 + if ($prefix !== null && $build->compareVersion('8.1') < 0 && $prefix === (new BrewPrefixFinder('openssl@3'))->findPrefix()) { + $prefix = (new BrewPrefixFinder('openssl@1.1'))->findPrefix(); + if ($prefix === null) { + throw new Exception('PHP < 8.1 requires openssl@1.1.'); + } } - // This will create openssl.so file for dynamic loading. - echo "Compiling with openssl=shared, please install libssl-dev or openssl header files if you need"; - return "--with-openssl=shared"; + + return $parameters->withOptionOrPkgConfigPath($build, '--with-openssl', $prefix); }; /* + quote from the manual page: + + > MySQL Native Driver is a replacement for the MySQL Client Library + > (libmysqlclient). MySQL Native Driver is part of the official PHP + > sources as of PHP 5.3.0. + + > The MySQL database extensions MySQL extension, mysqli and PDO MYSQL all + > communicate with the MySQL server. In the past, this was done by the + > extension using the services provided by the MySQL Client Library. The + > extensions were compiled against the MySQL Client Library in order to + > use its client-server protocol. + + > With MySQL Native Driver there is now an alternative, as the MySQL + > database extensions can be compiled to use MySQL Native Driver instead + > of the MySQL Client Library. + + mysqlnd should be prefered over the native client library. + --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base directory. If mysqlnd is passed as DIR, the MySQL native driver will be used [/usr/local] + --with-mysqli[=FILE] Include MySQLi support. FILE is the path to mysql_config. If mysqlnd is passed as FILE, the MySQL native driver will be used [mysql_config] + --with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directoy If mysqlnd is passed as DIR, the MySQL native native driver will be used [/usr/local] - --with-mysql // deprecated + --with-mysql deprecated in 7.0 + + --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions + + mysqlnd was added since php 5.3 */ - $this->variants['mysql'] = function($build, $prefix = 'mysqlnd' ) use ($self) { - $opts = array( - "--with-mysql=$prefix", - "--with-mysqli=$prefix" - ); - if ( $build->hasVariant('pdo') ) { - $opts[] = "--with-pdo-mysql=$prefix"; + $this->variants['mysql'] = function (ConfigureParameters $parameters, Build $build, $value) { + if ($value === null) { + $value = 'mysqlnd'; } - return $opts; - }; + if ($build->compareVersion('7.0') < 0) { + $parameters = $parameters->withOption('--with-mysql', $value); + } - $this->variants['sqlite'] = function($build, $prefix = null ) use ($self) { - $opts = array( - '--with-sqlite3' . ($prefix ? "=$prefix" : '') - ); - if ( $build->hasVariant('pdo') ) { - $opts[] = '--with-pdo-sqlite'; + $parameters = $parameters->withOption('--with-mysqli', $value); + + if ($build->isEnabledVariant('pdo')) { + $parameters = $parameters->withOption('--with-pdo-mysql', $value); } - return $opts; - }; - $this->variants['pgsql'] = function($build, $prefix = null) use($self) { - $opts = array(); - $opts[] = '--with-pgsql' . ($prefix ? "=$prefix" : ''); - if ( $build->hasVariant('pdo') ) { - $opts[] = '--with-pdo-pgsql' . ($prefix ? "=$prefix" : ''); + $foundSock = false; + if ($bin = Utils::findBin('mysql_config')) { + if ($output = exec_line("$bin --socket")) { + $foundSock = true; + $parameters = $parameters->withOption('--with-mysql-sock', $output); + } } - return $opts; - }; + if (!$foundSock) { + $possiblePaths = array( + /* macports mysql ... */ + '/opt/local/var/run/mysql57/mysqld.sock', + '/opt/local/var/run/mysql56/mysqld.sock', + '/opt/local/var/run/mysql55/mysqld.sock', + '/opt/local/var/run/mysql54/mysqld.sock', + + '/tmp/mysql.sock', /* homebrew mysql sock */ + '/var/run/mysqld/mysqld.sock', /* ubuntu */ + '/var/mysql/mysql.sock', + ); + + foreach ($possiblePaths as $path) { + if (file_exists($path)) { + $parameters = $parameters->withOption('--with-mysql-sock', $path); + break; + } + } + } - $this->variants['xml'] = function($build) { - $options = array( - '--enable-dom', - '--enable-libxml', - '--enable-simplexml', - '--enable-xml', - '--enable-xmlreader', - '--enable-xmlwriter', - '--with-xsl' - ); - if ( $prefix = Utils::get_pkgconfig_prefix('libxml') ) { - $options[] = "--with-libxml-dir=$prefix"; - } else if ( $prefix = Utils::find_include_prefix('libxml2/libxml/globals.h') ) { - $options[] = "--with-libxml-dir=$prefix"; - } else if ( $prefix = Utils::find_lib_prefix('libxml2.a') ) { - $options[] = "--with-libxml-dir=$prefix"; - } - return $options; + return $parameters; }; - $this->variants['xml_all'] = $this->variants['xml']; + $this->variants['sqlite'] = function (ConfigureParameters $parameters, Build $build, $value) { + $parameters = $parameters->withOption('--with-sqlite3', $value); - $this->variants['apxs2'] = function($build, $prefix = null) use ($self) { - $a = '--with-apxs2'; - if( $prefix ) { - return '--with-apxs2=' . $prefix; - } - if ( $bin = Utils::find_bin_by_prefix('apxs2') ) { - return '--with-apxs2=' . $bin; + if ($build->isEnabledVariant('pdo')) { + $parameters = $parameters->withOption('--with-pdo-sqlite', $value); } - if ( $bin = Utils::find_bin_by_prefix('apxs') ) { - return '--with-apxs2=' . $bin; - } - return $a; + + return $parameters; }; + /** + * The --with-pgsql=[DIR] and --with-pdo-pgsql=[DIR] requires [DIR]/bin/pg_config to be found. + */ + $this->variants['pgsql'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new ExecutablePrefixFinder('pg_config'), + new BrewPrefixFinder('libpq'), + )); + + $parameters = $parameters->withOption('--with-pgsql', $prefix); - $this->variants['gettext'] = function($build, $prefix = null) { - if ( $prefix ) { - return '--with-gettext=' . $prefix; + if ($build->isEnabledVariant('pdo')) { + $parameters = $parameters->withOption('--with-pdo-pgsql', $prefix); } - if ( $prefix = Utils::find_include_prefix('libintl.h') ) { - return '--with-gettext=' . $prefix; + + return $parameters; + }; + + $this->variants['xml'] = function (ConfigureParameters $parameters, Build $build, $value) { + $parameters = $parameters->withOption('--enable-dom'); + + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('libxml2'), + new PkgConfigPrefixFinder('libxml'), + new IncludePrefixFinder('libxml2/libxml/globals.h'), + new LibPrefixFinder('libxml2.a'), + )); + + if ($build->compareVersion('7.4') < 0) { + $parameters = $parameters->withOption('--enable-libxml'); + + if ($prefix !== null) { + $parameters = $parameters->withOption('--with-libxml-dir', $prefix); + } + } else { + $parameters = $parameters->withOption('--with-libxml'); + + if ($prefix !== null) { + $parameters = $parameters->withPkgConfigPath($prefix . '/lib/pkgconfig'); + } } - return '--with-gettext'; + + return $parameters + ->withOption('--enable-simplexml') + ->withOption('--enable-xml') + ->withOption('--enable-xmlreader') + ->withOption('--enable-xmlwriter') + ->withOption('--with-xsl'); }; + $this->variants['apxs2'] = function (ConfigureParameters $parameters, Build $build, $value) { + if ($value) { + return $parameters->withOption('--with-apxs2', $value); + } - $this->variants['iconv'] = function($build, $prefix = null) { - if ( $prefix ) { - return "--with-iconv=$prefix"; + if ($bin = Utils::findBinByPrefix('apxs2')) { + return $parameters->withOption('--with-apxs2', $bin); } - /* - * php can't be compile with --with-iconv=/usr because it uses giconv - * - * https://bugs.php.net/bug.php?id=48451 - * - // detect include path for iconv.h - if( $prefix = Utils::find_include_prefix('giconv.h', 'iconv.h') ) { - return "--with-iconv=$prefix"; + + if ($bin = Utils::findBinByPrefix('apxs')) { + return $parameters->withOption('--with-apxs2', $bin); } - */ - return "--with-iconv"; + + /* Special paths for homebrew */ + $possiblePaths = array( + // macports apxs path + '/usr/local/opt/httpd24/bin/apxs', + '/usr/local/opt/httpd23/bin/apxs', + '/usr/local/opt/httpd22/bin/apxs', + '/usr/local/opt/httpd21/bin/apxs', + + '/usr/local/sbin/apxs', // homebrew apxs prefix + '/usr/local/bin/apxs', + '/usr/sbin/apxs', // it's possible to find apxs under this path (OS X) + '/usr/bin/apxs', // not sure if this one helps + ); + + $path = first_existing_executable($possiblePaths); + + return $parameters->withOption('--with-apxs2', $path); }; - $this->variants['bz2'] = function($build, $prefix = null) { - if ( $prefix ) { - return "--with-bz2=$prefix"; - } - if ( $prefix = Utils::find_include_prefix('bzlib.h') ) { - return "--with-bz2=$prefix"; + $this->variants['gettext'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('libintl.h'), + new BrewPrefixFinder('gettext'), + )); + + return $parameters->withOption('--with-gettext', $prefix); + }; + + $this->variants['iconv'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + // PHP can't be compiled with --with-iconv=/usr because it uses giconv + // https://bugs.php.net/bug.php?id=48451 + new UserProvidedPrefix($value), + new BrewPrefixFinder('libiconv'), + )); + + return $parameters->withOption('--with-iconv', $prefix); + }; + + $this->variants['bz2'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('bzip2'), + new IncludePrefixFinder('bzlib.h'), + )); + + return $parameters->withOption('--with-bz2', $prefix); + }; + + $this->variants['ipc'] = function (ConfigureParameters $parameters, Build $build) { + return $parameters + ->withOption('--enable-shmop') + ->withOption('--enable-sysvsem') + ->withOption('--enable-sysvshm') + ->withOption('--enable-sysvmsg'); + }; + + $this->variants['gmp'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new IncludePrefixFinder('gmp.h'), + )); + + return $parameters->withOption('--with-gmp', $prefix); + }; + + $this->variants['pear'] = function (ConfigureParameters $parameters, Build $build, $value) { + if ($value === null) { + $value = $build->getInstallPrefix() . '/lib/php/pear'; } - return '--with-bz2'; + + return $parameters->withOption('--with-pear', $value); }; - $this->variants['ipc'] = function($build) { - return array( - '--enable-shmop', - '--enable-sysvsem', - '--enable-sysvshm', - '--enable-sysvmsg', - ); + /* + * --with-snmp option + * + * --with-snmp=[dir] + * + * On macOS, you need to use the brew to install the net-snmp + * + * On ubuntu you need to install libsnmp-dev + * On Ubuntu 18.04+, it should ensure the /usr/include/net-snmp/net-snmp-config.h is available. + * On Ubuntu 22.04+, it should ensure the pkg-config --variable=prefix netsnmp can find the net-snmp prefix. + */ + $this->variants['snmp'] = function (ConfigureParameters $parameters, Build $build, $value) { + $prefix = Utils::findPrefix(array( + new UserProvidedPrefix($value), + new BrewPrefixFinder('net-snmp'), + new PkgConfigPrefixFinder('netsnmp'), + new IncludePrefixFinder('net-snmp/net-snmp-config.h'), + )); + + return $parameters->withOptionOrPkgConfigPath($build, '--with-snmp', $prefix); }; + + // merge virtual variants with config file + $customVirtualVariants = Config::getConfigParam('variants'); + $customVirtualVariantsToAdd = array(); + + if (!empty($customVirtualVariants)) { + foreach ($customVirtualVariants as $key => $extension) { + // The extension might be null + if (!empty($extension)) { + $customVirtualVariantsToAdd[$key] = array_keys($extension); + } + } + } + + $this->virtualVariants = array_merge($customVirtualVariantsToAdd, $this->virtualVariants); + + // create +everything variant + $this->virtualVariants['everything'] = array_diff( + array_keys($this->variants), + array('apxs2', 'all') // <- except these ones + ); } - private function _getConflict($build, $feature) + private function getConflict(Build $build, $feature) { - if( isset( $this->conflicts[ $feature ] ) ) { + if (isset($this->conflicts[ $feature ])) { $conflicts = array(); - foreach( $this->conflicts[ $feature ] as $f ) { - if( $build->isEnabledVariant($f) ) + + foreach ($this->conflicts[ $feature ] as $f) { + if ($build->isEnabledVariant($f)) { $conflicts[] = $f; + } } + return $conflicts; } + return false; } - - public function checkConflicts($build) + private function checkConflicts(Build $build) { - if ( $build->isEnabledVariant('apxs2') && version_compare( $build->getVersion() , 'php-5.4.0' ) < 0 ) - { - if( $conflicts = $this->_getConflict($build,'apxs2') ) { + if ($build->isEnabledVariant('apxs2') && version_compare($build->getVersion(), '5.4.0') < 0) { + if ($conflicts = $this->getConflict($build, 'apxs2')) { $msgs = array(); - $msgs[] = "PHP Version lower than 5.4.0 can only build one SAPI at the same time."; - $msgs[] = "+apxs2 is in conflict with " . join(',',$conflicts); - foreach( $conflicts as $c ) { + $msgs[] = 'PHP Version lower than 5.4.0 can only build one SAPI at the same time.'; + $msgs[] = '+apxs2 is in conflict with ' . implode(',', $conflicts); + + foreach ($conflicts as $c) { $msgs[] = "Disabling $c"; $build->disableVariant($c); } - echo join("\n",$msgs) . "\n"; + + echo implode(PHP_EOL, $msgs) . PHP_EOL; } } - return true; - } - public function checkPkgPrefix($option,$pkgName) - { - $prefix = Utils::get_pkgconfig_prefix($pkgName); - return $prefix ? $option . '=' . $prefix : $option; + return true; } public function getVariantNames() { - return array_keys( $this->variants ); + return array_keys($this->variants); } - - /** - * Build options from variant + * Build `./configure' parameters from an enabled variant. + * + * @param string $variant Variant name + * @param string|null $value User-provided value for the variant * - * @param string $feature variant name - * @param string $userValue option value. + * @return ConfigureParameters + * + * @throws Exception */ - public function buildVariant($build, $feature, $userValue = null) + private function buildEnabledVariant(Build $build, $variant, $value, ConfigureParameters $parameters) { - if( ! isset( $this->variants[ $feature ] )) { - throw new Exception("Variant '$feature' is not defined."); + if (!isset($this->variants[$variant])) { + throw new Exception(sprintf('Variant "%s" is not defined', $variant)); } // Skip if we've built it - if ( in_array($feature, $this->builtList) ) - return array(); + if (in_array($variant, $this->builtList)) { + return $parameters; + } // Skip if we've disabled it - if ( isset($this->disables[ $feature ] )) - return array(); - - $this->builtList[] = $feature; - $cb = $this->variants[ $feature ]; - - if ( is_array($cb) ) { - return $cb; - } elseif ( is_string($cb) ) { - return array($cb); - } elseif( is_callable($cb) ) { - $args = is_string($userValue) ? array($build,$userValue) : array($build); - return (array) call_user_func_array($cb, $args); - } else { - throw OopsException; + if (isset($this->disables[$variant])) { + return $parameters; } + + $this->builtList[] = $variant; + + return $this->buildVariantFromDefinition($build, $this->variants[$variant], $value, $parameters); } - public function buildDisableVariant($build , $feature,$userValue = null) + /** + * Build `./configure' parameters from a disabled variant. + * + * @param string $variant Variant name + * + * @return ConfigureParameters + * + * @throws Exception + */ + private function buildDisabledVariant(Build $build, $variant, ConfigureParameters $parameters) { - if( isset( $this->variants[ $feature ] )) { - if ( in_array('-'.$feature, $this->builtList) ) - return array(); - - $this->builtList[] = '-'.$feature; - $func = $this->variants[ $feature ]; - - - // build the option from enabled variant, - // then convert the '--enable' and '--with' options - // to '--disable' and '--without' - $args = is_string($userValue) ? array($build,$userValue) : array($build); - if ( is_string($func) ) { - $disableOptions = (array) $func; - } else if ( is_callable($func) ) { - $disableOptions = (array) call_user_func_array($func,$args); - } else { - throw new Exception("Unsupported variant handler type. neither string nor callable."); - } + if (!isset($this->variants[$variant])) { + throw new Exception(sprintf('Variant "%s" is not defined', $variant)); + } - $resultOptions = array(); + // Skip if we've built it + if (in_array('-' . $variant, $this->builtList)) { + return $parameters; + } - foreach($disableOptions as $option) { - // strip option value after the equal sign '=' - $option = preg_replace("/=.*$/", "", $option); + $this->builtList[] = '-' . $variant; - // convert --enable-xxx to --disable-xxx - $option = preg_replace("/^--enable-/", "--disable-", $option); + $disabledParameters = $this->buildVariantFromDefinition( + $build, + $this->variants[$variant], + null, + new ConfigureParameters() + ); - // convert --with-xxx to --without-xxx - $option = preg_replace("/^--with-/", "--without-", $option); - $resultOptions[] = $option; - } + foreach ($disabledParameters->getOptions() as $option => $_) { + // convert --enable-xxx to --disable-xxx + $option = preg_replace('/^--enable-/', '--disable-', $option); - return $resultOptions; - } - else { - throw new Exception("Variant $feature is not defined."); - } - } + // convert --with-xxx to --without-xxx + $option = preg_replace('/^--with-/', '--without-', $option); + $parameters = $parameters->withOption($option); + } + return $parameters; + } - public function addOptions($options) + /** + * Build `./configure' parameters from a variant definition. + * + * @param string|array|callable $definition Variant definition + * @param string|null $value User-provided value for the variant + * + * @return ConfigureParameters + * + * @throws Exception + */ + private function buildVariantFromDefinition(Build $build, $definition, $value, ConfigureParameters $parameters) { - // skip false value - if( ! $options ) { - return; - } - if (is_string($options) ) { - $this->options[] = $options; + if (is_string($definition)) { + $parameters = $parameters->withOption($definition); + } elseif (is_array($definition)) { + foreach ($definition as $option => $value) { + $parameters = $parameters->withOption($option, $value); + } + } elseif (is_callable($definition)) { + $parameters = call_user_func_array($definition, array( + $parameters, + $build, + $value, + )); } else { - $this->options = array_merge($this->options,$options); + throw new OopsException(); } - } - + return $parameters; + } /** - * build configure options from variants + * Build variants to configure options from php build object. + * + * @param Build $build The build object, contains version information + * + * @return ConfigureParameters + * + * @throws Exception */ - public function build($build) + public function build(Build $build, ConfigureParameters $parameters = null) { + $customVirtualVariants = Config::getConfigParam('variants'); + foreach (array_keys($build->getEnabledVariants()) as $variantName) { + if (isset($customVirtualVariants[$variantName])) { + foreach ($customVirtualVariants[$variantName] as $lib => $params) { + if (is_array($params)) { + $this->variants[$lib] = $params; + } + } + } + } + + if ($parameters === null) { + $parameters = new ConfigureParameters(); + } + // reset builtList $this->builtList = array(); // reset built options - if ( $build->hasVariant('all') ) { - $this->options = array(); - } else { + if (!$build->isEnabledVariant('all') && !$build->isEnabledVariant('neutral')) { // build common options - $this->options = array( - '--disable-all', - '--enable-phar', - '--enable-session', - '--enable-short-tags', - '--enable-tokenizer', - '--with-pcre-regex', - ); - if( $prefix = Utils::find_include_prefix('zlib.h') ) { - $this->addOptions('--with-zlib=' . $prefix); + $parameters = $parameters + ->withOption('--disable-all') + ->withOption('--enable-phar') + ->withOption('--enable-session') + ->withOption('--enable-short-tags') + ->withOption('--enable-tokenizer'); + + if ($build->compareVersion('7.4') < 0) { + $parameters = $parameters->withOption('--with-pcre-regex'); } - } - if ( $prefix = Utils::find_lib_prefix('i386-linux-gnu') ) { - $this->addOptions("--with-libdir=lib/i386-linux-gnu"); - } else if ( $prefix = Utils::find_lib_prefix('x86_64-linux-gnu') ) { - $this->addOptions("--with-libdir=lib/x86_64-linux-gnu"); + if ($value = Utils::findIncludePrefix('zlib.h')) { + $parameters = $parameters->withOption('--with-zlib', $value); + } } + if ($value = Utils::findLibPrefix('x86_64-linux-gnu')) { + $parameters = $parameters->withOption('--with-libdir', 'lib/x86_64-linux-gnu'); + } elseif ($value = Utils::findLibPrefix('i386-linux-gnu')) { + $parameters = $parameters->withOption('--with-libdir', 'lib/i386-linux-gnu'); + } - + if ($build->compareVersion('5.6') >= 0) { + $build->enableVariant('opcache'); + } // enable/expand virtual variants - foreach( $this->virtualVariants as $name => $variantNames ) { - if( $build->isEnabledVariant($name) ) { - foreach( $variantNames as $subVariantName ) { - $build->enableVariant( $subVariantName ); + foreach ($this->virtualVariants as $name => $variantNames) { + if ($build->isEnabledVariant($name)) { + foreach ($variantNames as $subVariantName) { + // enable the sub-variant only if it's not already enabled + // in order to not override a non-default value with the default + if (!$build->isEnabledVariant($subVariantName)) { + $build->enableVariant($subVariantName); + } } + // it's a virtual variant, can not be built by buildVariant // method. - $build->removeVariant( $name ); + $build->removeVariant($name); } } // Remove these enabled variant for disabled variants. $build->resolveVariants(); - // before we build these options from variants, // we need to check the enabled and disabled variants $this->checkConflicts($build); - - foreach( $build->getVariants() as $feature => $userValue ) { - if( $options = $this->buildVariant( $build, $feature , $userValue ) ) { - $this->addOptions($options); - } + foreach ($build->getEnabledVariants() as $variant => $value) { + $parameters = $this->buildEnabledVariant($build, $variant, $value, $parameters); } - foreach( $build->getDisabledVariants() as $feature => $true ) { - if( $options = $this->buildDisableVariant($build, $feature ) ) { - $this->addOptions($options); - } + foreach ($build->getDisabledVariants() as $variant => $_) { + $parameters = $this->buildDisabledVariant($build, $variant, $parameters); } - /* - $opts = array_merge( $opts , - $this->getVersionSpecificOptions($version) ); - */ - $options = array_merge(array(),$this->options); + foreach ($build->getExtraOptions() as $option) { + $parameters = $parameters->withOption($option); + } - // reset options - $this->options = array(); - return $options; + return $parameters; } } - diff --git a/src/PhpBrew/VariantFinder.php b/src/PhpBrew/VariantFinder.php deleted file mode 100644 index 9e4b10c65..000000000 --- a/src/PhpBrew/VariantFinder.php +++ /dev/null @@ -1,4 +0,0 @@ - $val ); - } - return array( $str => true ); - } - - - static function parseCommandArguments($args) + /** + * @param string[] $args + * + * @return array + * + * @throws InvalidVariantSyntaxException + */ + public static function parseCommandArguments(array $args) { $extra = array(); - $enabledVariants = array(); $disabledVariants = array(); - // split variant strings - $startExtra = false; - foreach( $args as $arg ) { - if( $arg === '--' ) { - $startExtra = true; - continue; + while (true) { + $arg = array_shift($args); + + if ($arg === null) { + break; + } + + if ($arg === '') { + throw new InvalidVariantSyntaxException('Variant cannot be empty'); } - if( ! $startExtra ) { - if( $arg[0] === '+' || $arg[0] === '-' ) { - if( substr($arg,0,2) === '--' ) { - throw new Exception("Invalid variant option $arg"); - } - - $variantStrs = preg_split('#(?=[+-])#', $arg); - $variantStrs = array_filter($variantStrs); - - foreach( $variantStrs as $str ) { - if($str[0] == '+') { - $a = self::splitVariantString( substr($str,1) ); - $enabledVariants = array_merge( $enabledVariants, $a ); - } elseif($str[0] == '-' ) { - $a = self::splitVariantString( substr($str,1) ); - $disabledVariants = array_merge( $disabledVariants, $a ); - } else { - throw new OopsException; - } - } - - - } else { - throw new Exception("Invalid variant option $arg"); - } - } else { - $extra[] = $arg; + if ($arg === '--') { + $extra = $args; + break; } + + $operator = substr($arg, 0, 1); + + switch ($operator) { + case '+': + $target =& $enabledVariants; + break; + case '-': + $target =& $disabledVariants; + break; + default: + throw new InvalidVariantSyntaxException('Variant must start with a + or -'); + } + + $variant = substr($arg, 1); + list($name, $value) = array_pad(explode('=', $variant, 2), 2, null); + + if ($name === '') { + throw new InvalidVariantSyntaxException('Variant name cannot be empty'); + } + + $target[$name] = $value; } + return array( 'enabled_variants' => $enabledVariants, 'disabled_variants' => $disabledVariants, 'extra_options' => $extra, ); - } - - static function revealCommandArguments($info) + /** + * Reveal the variants info to command arguments. + */ + public static function revealCommandArguments(array $info) { - $out = ''; + $args = array(); + + foreach ($info['enabled_variants'] as $k => $v) { + $arg = '+' . $k; - foreach( $info['enabled_variants'] as $k => $v ) { - $out .= '+' . $k; - if (! is_bool($v)) { - $out .= '=' . $v . ' '; + if (!is_bool($v)) { + $arg .= '=' . $v; } + + $args[] = $arg; } - if( ! empty($info['disabled_variants']) ) { - $out .= " " . '-' . join('-', array_keys($info['disabled_variants'])); + + if (!empty($info['disabled_variants'])) { + foreach ($info['disabled_variants'] as $k => $_) { + $args[] = '-' . $k; + } } - if( ! empty($info['extra_options']) ) { - $out .= " " . '-- ' . join(' ', $info['extra_options']); + if (!empty($info['extra_options'])) { + $args = array_merge($args, array('--'), $info['extra_options']); } - return $out; - } + return implode(' ', $args); + } } - - - diff --git a/src/PhpBrew/VersionDslParser.php b/src/PhpBrew/VersionDslParser.php new file mode 100644 index 000000000..537207973 --- /dev/null +++ b/src/PhpBrew/VersionDslParser.php @@ -0,0 +1,84 @@ + $version, + 'url' => $this->buildGitHubUrl('php', $version), + 'is_tag' => true, + ); + } + + // make url + $url = str_replace(self::$schemes, 'https://github.com/', $dsl); + + // parse github fork owner and branch + if ( + preg_match( + "#https?://(www\.)?github\.com/([0-9a-zA-Z-._]+)/php-src(@([0-9a-zA-Z-._]+))?#", + $url, + $matches + ) + ) { + $owner = $matches[2]; + $branch = isset($matches[4]) ? $matches[4] : 'master'; + $version = preg_replace('/^php-/', '', $branch); + + if ($owner !== 'php') { + $version = $owner . '-' . $version; + } + + return array( + 'version' => 'php-' . $version, + 'url' => $this->buildGitHubUrl($owner, $branch), + ); + } + + // non github url + if (preg_match('#^https?://#', $url)) { + if (!preg_match('#(php-(\d.\d+.\d+(?:(?:RC|alpha|beta)\d+)?)\.tar\.(?:gz|bz2))#', $url, $matches)) { + throw new Exception("Can not find version name from the given URL: $url"); + } + + return array( + 'version' => "php-{$matches[2]}", + 'url' => $url, + ); + } + + return false; + } + + /** + * Builds the URL of the package on GitHub + * + * @param string $owner Repository owner + * @param string $ref Git commit reference + * + * @return string + */ + private function buildGitHubUrl($owner, $ref) + { + return sprintf( + 'https://github.com/%s/php-src/archive/%s.tar.gz', + rawurlencode($owner), + rawurlencode($ref) + ); + } +} diff --git a/tests/PhpBrew/BuildSettings/BuildSettingsTest.php b/tests/PhpBrew/BuildSettings/BuildSettingsTest.php new file mode 100644 index 000000000..35e355dae --- /dev/null +++ b/tests/PhpBrew/BuildSettings/BuildSettingsTest.php @@ -0,0 +1,144 @@ + array( + 'sqlite' => null + ) + )); + + $this->assertTrue($settings->isEnabledVariant('sqlite')); + } + + public function testConstructorWithDisabledVariants() + { + $settings = new BuildSettings(array( + 'disabled_variants' => array( + 'sqlite' => true + ) + )); + + $this->assertFalse($settings->isEnabledVariant('sqlite')); + } + + public function testToArray() + { + $enabledVariants = array( + 'sqlite' => null, + 'curl' => 'yes', + ); + $disabledVariants = array( + 'dom' => null, + ); + $extraOptions = array(); + $settings = new BuildSettings(array( + 'enabled_variants' => $enabledVariants, + 'disabled_variants' => $disabledVariants, + 'extra_options' => $extraOptions, + )); + + $expected = array( + 'enabled_variants' => $enabledVariants, + 'disabled_variants' => $disabledVariants, + 'extra_options' => $extraOptions, + ); + $this->assertEquals($expected, $settings->toArray()); + } + + public function testEnableVariant() + { + $settings = new BuildSettings(); + $settings->enableVariant('curl'); + + $this->assertTrue($settings->isEnabledVariant('curl')); + } + + public function testEnableVariants() + { + $variants = array( + 'sqlite' => null, + 'curl' => 'yes', + 'dom' => null + ); + $settings = new BuildSettings(); + $settings->enableVariants($variants); + + $this->assertEquals($variants, $settings->getEnabledVariants()); + } + + public function testDisableVariants() + { + $variants = array( + 'sqlite' => null, + 'curl' => 'yes', + 'dom' => null + ); + $settings = new BuildSettings(); + $settings->disableVariants($variants); + + $expected = array( + 'sqlite' => null, + 'curl' => null, + 'dom' => null + ); + $this->assertEquals($expected, $settings->getDisabledVariants()); + } + + public function testIsEnabledVariant() + { + $settings = new BuildSettings(); + $settings->enableVariant('sqlite'); + $settings->disableVariant('curl'); + + $this->assertTrue($settings->isEnabledVariant('sqlite')); + $this->assertFalse($settings->isEnabledVariant('curl')); + } + + public function testRemoveVariant() + { + $settings = new BuildSettings(); + $settings->enableVariant('sqlite'); + + $this->assertTrue($settings->isEnabledVariant('sqlite')); + $settings->removeVariant('sqlite'); + $this->assertFalse($settings->isEnabledVariant('sqlite')); + } + + public function testResolveVariants() + { + $settings = new BuildSettings(); + $settings->enableVariant('sqlite'); + $settings->disableVariant('sqlite'); + $settings->resolveVariants(); + + $this->assertEquals(array(), $settings->getEnabledVariants()); + } + + public function testGetVariants() + { + $settings = new BuildSettings(); + $settings->enableVariant('sqlite'); + $settings->enableVariant('curl'); + $settings->disableVariant('dom'); + + $this->assertEquals(array('sqlite' => null, 'curl' => null), $settings->getEnabledVariants()); + } + + public function testGetDisabledVariants() + { + $settings = new BuildSettings(); + $settings->enableVariant('sqlite'); + $settings->enableVariant('curl'); + $settings->disableVariant('dom'); + + $this->assertEquals(array('dom' => null), $settings->getDisabledVariants()); + } +} diff --git a/tests/PhpBrew/BuildTest.php b/tests/PhpBrew/BuildTest.php index d533cea4e..522cc98c3 100644 --- a/tests/PhpBrew/BuildTest.php +++ b/tests/PhpBrew/BuildTest.php @@ -1,29 +1,31 @@ setVersion('5.3.1'); - $build->enableVariant('debug'); - $build->enableVariant('icu'); - $build->enableVariant('sqlite'); + $this->assertSame(1, $build->compareVersion('5.3.0')); + $this->assertSame(1, $build->compareVersion('5.3')); + $this->assertSame(-1, $build->compareVersion('5.4.0')); + $this->assertSame(-1, $build->compareVersion('5.4')); + } - $build->disableVariant('sqlite'); - $build->disableVariant('mysql'); + public function testNeutralVirtualVariant() + { + $build = new Build('5.5.0'); + $build->enableVariant('neutral'); $build->resolveVariants(); - is( 1 , $build->compareVersion('5.3.0') ); - is( 1 , $build->compareVersion('5.3') ); - is( -1 , $build->compareVersion('5.4.0') ); - is( -1 , $build->compareVersion('5.4') ); - - - $id = $build->getIdentifier(); - ok($id); - is('php-5.3.1-debug-icu-dev',$id); + $this->assertTrue($build->isEnabledVariant('neutral')); } } - diff --git a/tests/PhpBrew/Command/DownloadCommandTest.php b/tests/PhpBrew/Command/DownloadCommandTest.php new file mode 100644 index 000000000..7faccb722 --- /dev/null +++ b/tests/PhpBrew/Command/DownloadCommandTest.php @@ -0,0 +1,40 @@ +markTestSkipped('Skip heavy test on Travis'); + } + + $this->assertCommandSuccess("phpbrew init"); + $this->assertCommandSuccess("phpbrew -q download $versionName"); + + // re-download should just check the checksum instead of extracting it + $this->assertCommandSuccess("phpbrew -q download $versionName"); + $this->assertCommandSuccess("phpbrew -q download -f $versionName"); + } +} diff --git a/tests/PhpBrew/Command/EnvCommandTest.php b/tests/PhpBrew/Command/EnvCommandTest.php new file mode 100644 index 000000000..6ad4d734f --- /dev/null +++ b/tests/PhpBrew/Command/EnvCommandTest.php @@ -0,0 +1,32 @@ +assertCommandSuccess("phpbrew env"); + } +} diff --git a/tests/PhpBrew/Command/ExtensionCommandTest.php b/tests/PhpBrew/Command/ExtensionCommandTest.php new file mode 100644 index 000000000..0f3eab537 --- /dev/null +++ b/tests/PhpBrew/Command/ExtensionCommandTest.php @@ -0,0 +1,61 @@ +markTestSkipped("This test can not be run against system php"); + $this->assertTrue($this->runCommandWithStdout("phpbrew ext install $extensionName $extensionVersion")); + } + + /** + * @outputBuffering enabled + * @dataProvider extensionNameProvider + * @depends testExtInstallCommand + */ + public function testExtShowCommand($extensionName, $extensionVersion) + { + $this->assertTrue($this->runCommandWithStdout("phpbrew ext show $extensionName")); + } + + + + /** + * @outputBuffering enabled + * @dataProvider extensionNameProvider + * @depends testExtInstallCommand + */ + public function testExtCleanCommand($extensionName, $extensionVersion) + { + $this->assertTrue($this->runCommandWithStdout("phpbrew ext clean $extensionName")); + } + + /** + * @outputBuffering enabled + * @depends testExtInstallCommand + */ + public function testExtListCommand() + { + $this->assertTrue($this->runCommandWithStdout('phpbrew ext --show-path --show-options')); + } +} diff --git a/tests/PhpBrew/Command/InfoCommandTest.php b/tests/PhpBrew/Command/InfoCommandTest.php new file mode 100644 index 000000000..99670e549 --- /dev/null +++ b/tests/PhpBrew/Command/InfoCommandTest.php @@ -0,0 +1,20 @@ +assertCommandSuccess("phpbrew info"); + } +} diff --git a/tests/PhpBrew/Command/InitCommandTest.php b/tests/PhpBrew/Command/InitCommandTest.php new file mode 100644 index 000000000..70e413fbe --- /dev/null +++ b/tests/PhpBrew/Command/InitCommandTest.php @@ -0,0 +1,22 @@ +assertTrue($this->runCommand("phpbrew init")); + ob_end_clean(); + } +} diff --git a/tests/PhpBrew/Command/InstallCommandTest.php b/tests/PhpBrew/Command/InstallCommandTest.php new file mode 100644 index 000000000..d0d2602ce --- /dev/null +++ b/tests/PhpBrew/Command/InstallCommandTest.php @@ -0,0 +1,100 @@ +markTestSkipped('Skip heavy test on Travis'); + } + + $this->assertCommandSuccess("phpbrew init"); + $this->assertCommandSuccess("phpbrew known --update"); + + $versionName = $this->getPrimaryVersion(); + $this->assertCommandSuccess("phpbrew install php-{$versionName} +cli+posix+intl+gd"); + $this->assertListContains("php-{$versionName}"); + } + + /** + * @depends testInstallCommand + */ + public function testEnvCommand() + { + $versionName = $this->getPrimaryVersion(); + $this->assertCommandSuccess("phpbrew env php-{$versionName}"); + } + + /** + * @depends testInstallCommand + * @group mayignore + */ + public function testCtagsCommand() + { + $versionName = $this->getPrimaryVersion(); + $this->assertCommandSuccess("phpbrew ctags php-{$versionName}"); + } + + /** + * @group install + * @group mayignore + */ + public function testGitHubInstallCommand() + { + if (getenv('GITHUB_ACTIONS')) { + $this->markTestSkipped('Skip heavy test on Travis'); + } + + $this->assertCommandSuccess( + 'phpbrew --debug install --dryrun github:php/php-src@PHP-7.0 as php-7.0.0 +cli+posix' + ); + } + + /** + * @depends testInstallCommand + * @group install + */ + public function testInstallAsCommand() + { + $versionName = $this->getPrimaryVersion(); + $this->assertCommandSuccess("phpbrew install php-{$versionName} as myphp +cli+soap"); + $this->assertListContains("myphp"); + } + + /** + * @depends testInstallCommand + */ + public function testCleanCommand() + { + $versionName = $this->getPrimaryVersion(); + $this->assertCommandSuccess("phpbrew clean php-{$versionName}"); + } + + protected function assertListContains($string) + { + $this->assertContains($string, BuildFinder::findInstalledBuilds()); + } +} diff --git a/tests/PhpBrew/Command/KnownCommandTest.php b/tests/PhpBrew/Command/KnownCommandTest.php new file mode 100644 index 000000000..b029e1e90 --- /dev/null +++ b/tests/PhpBrew/Command/KnownCommandTest.php @@ -0,0 +1,52 @@ +assertCommandSuccess('phpbrew --quiet known'); + } + + /** + * @outputBuffering enabled + * @group mayignore + */ + public function testMoreOption() + { + $this->assertCommandSuccess('phpbrew --quiet known --more'); + } + + /** + * @outputBuffering enabled + * @group mayignore + */ + public function testOldMoreOption() + { + $this->assertCommandSuccess('phpbrew --quiet known --old --more'); + } + + + /** + * @outputBuffering enabled + * @group mayignore + */ + public function testKnownUpdateCommand() + { + $this->assertCommandSuccess('phpbrew --quiet known --update'); + $this->assertCommandSuccess('phpbrew --quiet known -u'); + } +} diff --git a/tests/PhpBrew/Command/ListCommandTest.php b/tests/PhpBrew/Command/ListCommandTest.php new file mode 100644 index 000000000..8b5ba7f63 --- /dev/null +++ b/tests/PhpBrew/Command/ListCommandTest.php @@ -0,0 +1,20 @@ +assertCommandSuccess("phpbrew list"); + } +} diff --git a/tests/PhpBrew/Command/PathCommandTest.php b/tests/PhpBrew/Command/PathCommandTest.php new file mode 100644 index 000000000..19e159a9e --- /dev/null +++ b/tests/PhpBrew/Command/PathCommandTest.php @@ -0,0 +1,40 @@ +runCommandWithStdout("phpbrew path $arg"); + $path = ob_get_clean(); + $this->assertRegExp($pattern, $path); + } +} diff --git a/tests/PhpBrew/Command/UpdateCommandTest.php b/tests/PhpBrew/Command/UpdateCommandTest.php new file mode 100644 index 000000000..3aaf44bde --- /dev/null +++ b/tests/PhpBrew/Command/UpdateCommandTest.php @@ -0,0 +1,23 @@ +assertCommandSuccess("phpbrew --quiet update --old"); + } +} diff --git a/tests/PhpBrew/Command/VariantsCommandTest.php b/tests/PhpBrew/Command/VariantsCommandTest.php new file mode 100644 index 000000000..4457be55b --- /dev/null +++ b/tests/PhpBrew/Command/VariantsCommandTest.php @@ -0,0 +1,20 @@ +assertCommandSuccess("phpbrew variants"); + } +} diff --git a/tests/PhpBrew/CommandBuilderTest.php b/tests/PhpBrew/CommandBuilderTest.php new file mode 100644 index 000000000..b55781a77 --- /dev/null +++ b/tests/PhpBrew/CommandBuilderTest.php @@ -0,0 +1,89 @@ +assertEquals(0, $cmd->execute()); + ob_end_clean(); + } + + /** + * @dataProvider provideTestGetCommandTestCases + */ + public function testGetCommand($appendLog, $stdout, $logPath, $expected) + { + $cmd = new CommandBuilder('ls'); + $cmd->setAppendLog($appendLog); + $cmd->setStdout($stdout); + $cmd->setLogPath($logPath); + $this->assertEquals($expected, $cmd->buildCommand()); + ob_start(); + $this->assertEquals(0, $cmd->execute()); + ob_end_clean(); + } + + public function provideTestGetCommandTestCases() + { + return array( + array( + 'appendLog' => true, + 'stdout' => true, + 'logPath' => '/tmp/build.log', + 'expected' => 'ls 2>&1' + ), + array( + 'appendLog' => false, + 'stdout' => true, + 'logPath' => '/tmp/build.log', + 'expected' => 'ls 2>&1' + ), + array( + 'appendLog' => true, + 'stdout' => false, + 'logPath' => '/tmp/build.log', + 'expected' => "ls >> '/tmp/build.log' 2>&1" + ), + array( + 'appendLog' => false, + 'stdout' => false, + 'logPath' => '/tmp/build with whitespaces.log', + 'expected' => "ls > '/tmp/build with whitespaces.log' 2>&1" + ), + array( + 'appendLog' => true, + 'stdout' => false, + 'logPath' => null, + 'expected' => 'ls' + ), + array( + 'appendLog' => false, + 'stdout' => false, + 'logPath' => null, + 'expected' => 'ls' + ), + array( + 'appendLog' => true, + 'stdout' => false, + 'logPath' => null, + 'expected' => 'ls' + ), + array( + 'appendLog' => false, + 'stdout' => false, + 'logPath' => null, + 'expected' => 'ls' + ), + ); + } +} diff --git a/tests/PhpBrew/CompletionTest.php b/tests/PhpBrew/CompletionTest.php new file mode 100644 index 000000000..330c44fe3 --- /dev/null +++ b/tests/PhpBrew/CompletionTest.php @@ -0,0 +1,28 @@ +expectOutputString( + file_get_contents(__DIR__ . '/../../completion/' . $shell . '/_phpbrew') + ); + + $this->app->run(array('phpbrew', $shell, '--bind', 'phpbrew', '--program', 'phpbrew')); + } + + public static function completionProvider() + { + return array( + 'bash' => array('bash'), + 'zsh' => array('zsh'), + ); + } +} diff --git a/tests/PhpBrew/ConfigTest.php b/tests/PhpBrew/ConfigTest.php index 4264decab..b2ffb7454 100644 --- a/tests/PhpBrew/ConfigTest.php +++ b/tests/PhpBrew/ConfigTest.php @@ -1,12 +1,262 @@ null, + 'PHPBREW_ROOT' => null, + 'HOME' => null + ); + $this->withEnv($env, function () { + Config::getHome(); + }); + } + + public function testGetPhpbrewHomeWhenHOMEIsDefined() + { + $env = array( + 'HOME' => getenv('PHPBREW_ROOT'), + 'PHPBREW_HOME' => null + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/.phpbrew', Config::getHome()); + }); + } + + public function testGetPhpbrewHomeWhenPhpBrewHomeIsDefined() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew', Config::getHome()); + }); + } + + public function testGetPhpbrewRootWhenPhpBrewRootIsDefined() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew', Config::getRoot()); + }); + } + + public function testGetPhpbrewRootWhenHOMEIsDefined() + { + $env = array( + 'HOME' => getenv('PHPBREW_ROOT'), + 'PHPBREW_ROOT' => null + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/.phpbrew', Config::getRoot()); + }); + } + + public function testGetBuildDir() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/build', Config::getBuildDir()); + }); + } + + public function testGetDistFileDir() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/distfiles', Config::getDistFileDir()); + }); + } + + public function testGetTempFileDir() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/tmp', Config::getTempFileDir()); + }); + } + + public function testGetCurrentPhpName() + { + $env = array('PHPBREW_PHP' => '5.6.3'); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('5.6.3', Config::getCurrentPhpName()); + }); + } + + public function testGetCurrentBuildDir() + { + $env = array('PHPBREW_PHP' => '5.6.3'); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/build/5.6.3', Config::getCurrentBuildDir()); + }); + } + + public function testGetPHPReleaseListPath() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/php-releases.json', Config::getPHPReleaseListPath()); + }); + } + + public function testGetInstallPrefix() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/php', Config::getInstallPrefix()); + }); + } + + public function testGetVersionInstallPrefix() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1', Config::getVersionInstallPrefix('5.5.1')); + }); } -} + public function testGetVersionEtcPath() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1/etc', Config::getVersionEtcPath('5.5.1')); + }); + } + + public function testGetVersionBinPath() + { + $this->withEnv(array(), function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1/bin', Config::getVersionBinPath('5.5.1')); + }); + } + + public function testGetCurrentPhpConfigBin() + { + $env = array( + 'PHPBREW_PHP' => '5.5.1' + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1/bin/php-config', Config::getCurrentPhpConfigBin()); + }); + } + + public function testGetCurrentPhpizeBin() + { + $env = array( + 'PHPBREW_PHP' => '5.5.1' + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1/bin/phpize', Config::getCurrentPhpizeBin()); + }); + } + + public function testGetCurrentPhpConfigScanPath() + { + $env = array( + 'PHPBREW_PHP' => '5.5.1' + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1/var/db', Config::getCurrentPhpConfigScanPath()); + }); + } + + public function testGetCurrentPhpDir() + { + $env = array( + 'PHPBREW_PHP' => '5.5.1' + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew/php/5.5.1', Config::getCurrentPhpDir()); + }); + } + + public function testGetLookupPrefix() + { + $env = array( + 'PHPBREW_LOOKUP_PREFIX' => getenv('PHPBREW_ROOT'), + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew', Config::getLookupPrefix()); + }); + } + + public function testGetCurrentPhpBin() + { + $env = array( + 'PHPBREW_PATH' => getenv('PHPBREW_ROOT'), + ); + $this->withEnv($env, function ($self) { + $self->assertStringEndsWith('.phpbrew', Config::getCurrentPhpBin()); + }); + } + + public function testGetConfigParam() + { + $env = array( + // I guess this causes the failure here: https://travis-ci.org/phpbrew/phpbrew/jobs/95057923 + // 'PHPBREW_ROOT' => __DIR__ . '/../fixtures', + 'PHPBREW_ROOT' => 'tests/fixtures', + ); + $this->withEnv($env, function ($self) { + $config = Config::getConfig(); + $self->assertSame(array('key1' => 'value1', 'key2' => 'value2'), $config); + $self->assertEquals('value1', Config::getConfigParam('key1')); + $self->assertEquals('value2', Config::getConfigParam('key2')); + }); + } + + /** + * PHPBREW_HOME and PHPBREW_ROOT are automatically defined if + * the function which invokes this method doesn't set them explicitly. + * Set PHPBREW_HOME and PHPBREW_ROOT to null when you want to unset them. + */ + public function withEnv($newEnv, $callback) + { + // reset environment variables + $oldEnv = $this->resetEnv($newEnv + array( + 'HOME' => null, + 'PHPBREW_HOME' => getenv('PHPBREW_HOME'), + 'PHPBREW_PATH' => null, + 'PHPBREW_PHP' => null, + 'PHPBREW_ROOT' => getenv('PHPBREW_ROOT'), + 'PHPBREW_LOOKUP_PREFIX' => null + )); + + try { + $callback($this); + $this->resetEnv($oldEnv); + } catch (\Exception $e) { + $this->resetEnv($oldEnv); + throw $e; + } + } + + public function resetEnv($env) + { + $oldEnv = array(); + foreach ($env as $key => $value) { + $oldEnv[$key] = getenv($key); + $this->putEnv($key, $value); + } + return $oldEnv; + } + + public function putEnv($key, $value) + { + $setting = $key; + + if ($value !== null) { + $setting .= '=' . $value; + } + + $this->assertTrue(putenv($setting)); + } +} diff --git a/tests/PhpBrew/ConfigureParametersTest.php b/tests/PhpBrew/ConfigureParametersTest.php new file mode 100644 index 000000000..6869783e0 --- /dev/null +++ b/tests/PhpBrew/ConfigureParametersTest.php @@ -0,0 +1,69 @@ +configureParameters = new ConfigureParameters(); + } + + public function testDefaults() + { + $this->assertSame(array(), $this->configureParameters->getOptions()); + $this->assertSame(array(), $this->configureParameters->getPkgConfigPaths()); + } + + public function testWithOptionAndValue() + { + $this->assertSame(array( + '--with-foo' => 'bar', + ), $this->configureParameters + ->withOption('--with-foo', 'bar') + ->getOptions()); + } + + public function testWithOptionAndNoValue() + { + $this->assertSame(array( + '--with-foo' => null, + ), $this->configureParameters + ->withOption('--with-foo') + ->getOptions()); + } + + public function testWithSameOptionAndValue() + { + $this->assertSame(array( + '--with-foo' => 'bar', + ), $this->configureParameters + ->withOption('--with-foo', 'bar') + ->withOption('--with-foo', 'bar') + ->getOptions()); + } + + public function testWithPkgConfigPath() + { + $this->assertSame(array( + '/usr/lib/pkgconfig', + ), $this->configureParameters + ->withPkgConfigPath('/usr/lib/pkgconfig') + ->getPkgConfigPaths()); + } + + public function testWithSamePkgConfigPath() + { + $this->assertSame(array( + '/usr/lib/pkgconfig', + ), $this->configureParameters + ->withPkgConfigPath('/usr/lib/pkgconfig') + ->withPkgConfigPath('/usr/lib/pkgconfig') + ->getPkgConfigPaths()); + } +} diff --git a/tests/PhpBrew/Distribution/DistributionUrlPolicyTest.php b/tests/PhpBrew/Distribution/DistributionUrlPolicyTest.php new file mode 100644 index 000000000..ecb962db7 --- /dev/null +++ b/tests/PhpBrew/Distribution/DistributionUrlPolicyTest.php @@ -0,0 +1,41 @@ +policy = new DistributionUrlPolicy(); + } + + /** + * @dataProvider versionDataProvider + */ + public function testBuildUrl($version, $filename, $distUrl) + { + $this->assertSame( + $distUrl, + $this->policy->buildUrl($version, $filename) + ); + } + + public function versionDataProvider() + { + return array( + array('5.3.29', 'php-5.3.29.tar.bz2', 'https://museum.php.net/php5/php-5.3.29.tar.bz2'), + array('5.4.7', 'php-5.4.7.tar.bz2', 'https://museum.php.net/php5/php-5.4.7.tar.bz2'), + array('5.4.21', 'php-5.4.21.tar.bz2', 'https://museum.php.net/php5/php-5.4.21.tar.bz2'), + array('5.4.22', 'php-5.4.22.tar.bz2', 'https://www.php.net/distributions/php-5.4.22.tar.bz2'), + array('5.6.23', 'php-5.6.23.tar.bz2', 'https://www.php.net/distributions/php-5.6.23.tar.bz2'), + ); + } +} diff --git a/tests/PhpBrew/Downloader/DownloaderTest.php b/tests/PhpBrew/Downloader/DownloaderTest.php new file mode 100644 index 000000000..af411005f --- /dev/null +++ b/tests/PhpBrew/Downloader/DownloaderTest.php @@ -0,0 +1,69 @@ +logger = Logger::getInstance(); + $this->logger->setQuiet(); + + VCRAdapter::enableVCR($this); + } + + protected function tearDown(): void + { + VCRAdapter::disableVCR(); + } + + /** + * @group noVCR + */ + public function testDownloadByWgetCommand() + { + $this->assertDownloaderWorks('PhpBrew\Downloader\WgetCommandDownloader'); + } + + /** + * @group noVCR + */ + public function testDownloadByCurlCommand() + { + $this->assertDownloaderWorks('PhpBrew\Downloader\CurlCommandDownloader'); + } + + public function testDownloadByCurlExtension() + { + $this->assertDownloaderWorks('PhpBrew\Downloader\PhpCurlDownloader'); + } + + public function testDownloadByFileFunction() + { + $this->assertDownloaderWorks('PhpBrew\Downloader\PhpStreamDownloader'); + } + + private function assertDownloaderWorks($downloader) + { + $instance = DownloadFactory::getInstance($this->logger, new OptionResult(), $downloader); + if ($instance->hasSupport(false)) { + $actualFilePath = tempnam(Config::getTempFileDir(), ''); + $instance->download('http://httpbin.org/', $actualFilePath); + $this->assertFileExists($actualFilePath); + } else { + $this->markTestSkipped(); + } + } +} diff --git a/tests/PhpBrew/Downloader/UrlDownloaderTest.php b/tests/PhpBrew/Downloader/UrlDownloaderTest.php deleted file mode 100644 index aa570ca73..000000000 --- a/tests/PhpBrew/Downloader/UrlDownloaderTest.php +++ /dev/null @@ -1,13 +0,0 @@ -getPrimaryVersion(); + $this->runCommand("phpbrew use php-{$versionName}"); + } + + /** + * @group noVCR + */ + public function testPackageUrl() + { + if (getenv('GITHUB_ACTIONS')) { + $this->markTestSkipped('Skipping since VCR cannot properly record this request'); + } + + $logger = new Logger(); + $logger->setQuiet(); + $peclProvider = new PeclProvider($logger, new OptionResult()); + $downloader = new ExtensionDownloader($logger, new OptionResult()); + $peclProvider->setPackageName('APCu'); + $extractPath = $downloader->download($peclProvider, 'latest'); + $this->assertFileExists($extractPath); + } + + public function packageNameProvider() + { + return array( + // xdebug requires at least php 5.4 + // array('xdebug'), + array(version_compare(PHP_VERSION, '5.5', '=='),'APCu', 'stable', array()), + // array(version_compare(PHP_VERSION, '5.5', '=='),'yaml', 'stable', array()), + ); + } + + /** + * @dataProvider packageNameProvider + */ + public function testInstallPackages($build, $extensionName, $extensionVersion, $options) + { + if (!$build) { + $this->markTestSkipped('skip extension build test'); + return; + } + $logger = new Logger(); + $logger->setDebug(); + $manager = new ExtensionManager($logger); + $peclProvider = new PeclProvider(); + $downloader = new ExtensionDownloader($logger, new OptionResult()); + $peclProvider->setPackageName($extensionName); + $downloader->download($peclProvider, $extensionVersion); + $ext = ExtensionFactory::lookup($extensionName); + $this->assertNotNull($ext); + $manager->installExtension($ext, $options); + } +} diff --git a/tests/PhpBrew/Extension/ExtensionManagerTest.php b/tests/PhpBrew/Extension/ExtensionManagerTest.php new file mode 100644 index 000000000..e15340f34 --- /dev/null +++ b/tests/PhpBrew/Extension/ExtensionManagerTest.php @@ -0,0 +1,40 @@ +setQuiet(); + $this->manager = new ExtensionManager($logger); + + VCRAdapter::enableVCR($this); + } + + protected function tearDown(): void + { + VCRAdapter::disableVCR(); + } + + public function testCleanExtension() + { + $ext = ExtensionFactory::lookup('xdebug', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertTrue($this->manager->cleanExtension($ext)); + } +} diff --git a/tests/PhpBrew/Extension/ExtensionTest.php b/tests/PhpBrew/Extension/ExtensionTest.php new file mode 100644 index 000000000..50633fc03 --- /dev/null +++ b/tests/PhpBrew/Extension/ExtensionTest.php @@ -0,0 +1,121 @@ +assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\PeclExtension', $ext); + $this->assertEquals('xdebug', $ext->getName()); + $this->assertEquals('xdebug', $ext->getExtensionName()); + $this->assertEquals('xdebug.so', $ext->getSharedLibraryName()); + $this->assertTrue($ext->isZend()); + } + + public function testOpcache() + { + $ext = ExtensionFactory::lookup('opcache', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\M4Extension', $ext); + $this->assertEquals('opcache', $ext->getName()); + $this->assertEquals('opcache', $ext->getExtensionName()); + $this->assertEquals('opcache.so', $ext->getSharedLibraryName()); + $this->assertTrue($ext->isZend()); + } + + public function testOpenSSL() + { + $ext = ExtensionFactory::lookup('openssl', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\M4Extension', $ext); + $this->assertEquals('openssl', $ext->getName()); + $this->assertEquals('openssl', $ext->getExtensionName()); + $this->assertEquals('openssl.so', $ext->getSharedLibraryName()); + $this->assertFalse($ext->isZend()); + } + + public function testSoap() + { + $ext = ExtensionFactory::lookup('soap', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\PeclExtension', $ext); + $this->assertEquals('soap', $ext->getName()); + $this->assertEquals('soap', $ext->getExtensionName()); + $this->assertEquals('soap.so', $ext->getSharedLibraryName()); + $this->assertFalse($ext->isZend()); + } + + public function testSplTypes() + { + $ext = ExtensionFactory::lookup('SPL_Types', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\PeclExtension', $ext); + $this->assertEquals('SPL_Types', $ext->getName()); + $this->assertEquals('spl_types', $ext->getExtensionName()); + $this->assertEquals('spl_types.so', $ext->getSharedLibraryName()); + $this->assertFalse($ext->isZend()); + } + + public function testXhprof() + { + $ext = ExtensionFactory::lookup('xhprof', array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertInstanceOf('PhpBrew\Extension\PeclExtension', $ext); + $this->assertEquals('xhprof', $ext->getName()); + $this->assertEquals('xhprof', $ext->getExtensionName()); + $this->assertEquals('xhprof.so', $ext->getSharedLibraryName()); + $this->assertFalse($ext->isZend()); + } + + public function extensionNameProvider() + { + $extNames = scandir(getenv('PHPBREW_EXTENSION_DIR')); + $data = array(); + + foreach ($extNames as $extName) { + if ($extName == "." || $extName == "..") { + continue; + } + $data[] = array($extName); + } + return $data; + } + + + /** + * @dataProvider extensionNameProvider + */ + public function testGenericExtensionMetaInformation($extName) + { + $ext = ExtensionFactory::lookup($extName, array(getenv('PHPBREW_EXTENSION_DIR'))); + $this->assertInstanceOf('PhpBrew\Extension\Extension', $ext); + $this->assertNotEmpty($ext->getName()); + } +} diff --git a/tests/PhpBrew/Extension/KnownCommandTest.php b/tests/PhpBrew/Extension/KnownCommandTest.php new file mode 100644 index 000000000..b483c6073 --- /dev/null +++ b/tests/PhpBrew/Extension/KnownCommandTest.php @@ -0,0 +1,71 @@ +setQuiet(); + + $provider = new PeclProvider($logger, new OptionResult()); + $provider->setPackageName('xdebug'); + + $extensionDownloader = new ExtensionDownloader($logger, new OptionResult()); + $versionList = $extensionDownloader->knownReleases($provider); + + $this->assertNotCount(0, $versionList); + } + + public function testGithubPackage() + { + if (getenv('GITHUB_ACTIONS')) { + $this->markTestSkipped('Avoid bugging GitHub on Travis since the test is likely to fail because of a 403'); + } + + $logger = new Logger(); + $logger->setQuiet(); + + $provider = new GithubProvider(); + $provider->setOwner('phalcon'); + $provider->setRepository('cphalcon'); + $provider->setPackageName('phalcon'); + if (getenv('github_token')) { //load token from travis-ci + $provider->setAuth(getenv('github_token')); + } + + $extensionDownloader = new ExtensionDownloader($logger, new OptionResult()); + $versionList = $extensionDownloader->knownReleases($provider); + $this->assertNotCount(0, $versionList); + } + + public function testBitbucketPackage() + { + + $logger = new Logger(); + $logger->setQuiet(); + + $provider = new BitbucketProvider(); + $provider->setOwner('osmanov'); + $provider->setRepository('pecl-event'); + $provider->setPackageName('event'); + + $extensionDownloader = new ExtensionDownloader($logger, new OptionResult()); + $versionList = $extensionDownloader->knownReleases($provider); + + $this->assertNotCount(0, $versionList); + } +} diff --git a/tests/PhpBrew/Extension/Provider/RepositoryDslParserTest.php b/tests/PhpBrew/Extension/Provider/RepositoryDslParserTest.php new file mode 100644 index 000000000..b0ed7cf27 --- /dev/null +++ b/tests/PhpBrew/Extension/Provider/RepositoryDslParserTest.php @@ -0,0 +1,69 @@ +parser = new RepositoryDslParser(); + } + + public static function dslProvider() + { + return array( + // pecl + array('xdebug', 'pecl', null, 'xdebug'), // standard pecl package name + array('APCu', 'pecl', null, 'APCu'), // pecl package name with mixed uppercase/lowercase + array('com_dotnet', 'pecl', null, 'com_dotnet'), // pecl package name with _ + // github + array('github:foo/bar', 'github', 'foo', 'bar'), // short github dsl + array('git@github.com:foo/bar', 'github', 'foo', 'bar'), // long github dsl + array('http://github.com/foo/bar', 'github', 'foo', 'bar'), // raw http guthub url + array('https://github.com/foo/bar', 'github', 'foo', 'bar'), // raw https guthub url + + // somebody really likes to type GitHub URLs... + array('https://www.github.com/foo/bar', 'github', 'foo', 'bar'), + // bitbucket + array('bitbucket:foo/bar', 'bitbucket', 'foo', 'bar'), // short bitbucket dsl + array('git@bitbucket.org:foo/bar', 'bitbucket', 'foo', 'bar'), // long bitbucket dsl + array('http://bitbucket.org/foo/bar', 'bitbucket', 'foo', 'bar'), // raw http bitbucket url + array('https://bitbucket.org/foo/bar', 'bitbucket', 'foo', 'bar'), // raw https bitbucket url + + // somebody really likes to type BitBuckets URLs... + array('http://www.bitbucket.org/foo/bar', 'bitbucket', 'foo', 'bar'), + // user is feeling luky and finds extension that is not on github or bitbucket + array('http://luky.feelings.org/foo/bar', 'luky', 'foo', 'bar'), // raw http luky url + array('https://luky.feelings.org/foo/bar', 'luky', 'foo', 'bar'), // raw https luky url + + // somebody is really luky if this ext compiles... + array('http://www.luky.feelings.org/foo/bar', 'luky', 'foo', 'bar'), + ); + } + + /** + * @dataProvider dslProvider + */ + public function testGithubDsl($dsl, $repo, $owner, $package) + { + $this->assertSame( + array( + 'repository' => $repo, + 'owner' => $owner, + 'package' => $package + ), + $this->parser->parse($dsl) + ); + } +} diff --git a/tests/PhpBrew/ExtensionInstallerTest.php b/tests/PhpBrew/ExtensionInstallerTest.php deleted file mode 100644 index 7f37a4bc4..000000000 --- a/tests/PhpBrew/ExtensionInstallerTest.php +++ /dev/null @@ -1,44 +0,0 @@ -findPeclPackageUrl('APC'); - ok($url); - } - - - public function packageNameProvider() - { - return array( - array('APC'), - array('xdebug'), - // array('yaml'), - ); - } - - - /** - * @dataProvider packageNameProvider - */ - public function testInstallPackages($packageName) - { - if( ! file_exists('tmp') ) { - mkdir('tmp'); - } - chdir('tmp'); - $logger = new CLIFramework\Logger; - $installer = new PhpBrew\ExtensionInstaller($logger); - ok($installer); - $installedPath = $installer->installFromPecl($packageName); - chdir('..'); - path_ok( $installedPath ); - } -} - diff --git a/tests/PhpBrew/Patches/Apache2ModuleNamePatchTest.php b/tests/PhpBrew/Patches/Apache2ModuleNamePatchTest.php new file mode 100644 index 000000000..d14ebdb1c --- /dev/null +++ b/tests/PhpBrew/Patches/Apache2ModuleNamePatchTest.php @@ -0,0 +1,55 @@ +setQuiet(); + + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + + if (!is_dir($sourceDirectory)) { + $this->markTestSkipped("$sourceDirectory does not exist."); + } + + $this->setupBuildDirectory($version); + + $build = new Build($version); + $build->setSourceDirectory($sourceDirectory); + $build->enableVariant('apxs2'); + $this->assertTrue($build->isEnabledVariant('apxs2')); + + $patch = new Apache2ModuleNamePatch($version); + $matched = $patch->match($build, $logger); + $this->assertTrue($matched, 'patch matched'); + $patchedCount = $patch->apply($build, $logger); + + $sourceExpectedDirectory = getenv('PHPBREW_EXPECTED_PHP_DIR') . DIRECTORY_SEPARATOR . $version . '-apxs-patch'; + $this->assertEquals($expectedPatchedCount, $patchedCount); + $this->assertFileEquals($sourceExpectedDirectory . $makefile, $sourceDirectory . $makefile); + $this->assertFileEquals($sourceExpectedDirectory . '/configure', $sourceDirectory . '/configure'); + } +} diff --git a/tests/PhpBrew/Patches/FreeTypePatchTest.php b/tests/PhpBrew/Patches/FreeTypePatchTest.php new file mode 100644 index 000000000..4212f87c2 --- /dev/null +++ b/tests/PhpBrew/Patches/FreeTypePatchTest.php @@ -0,0 +1,31 @@ +setQuiet(); + + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + + $this->setupBuildDirectory('7.3.12'); + + $build = new Build('7.3.12'); + $build->setSourceDirectory($sourceDirectory); + $build->enableVariant('gd'); + + $patch = new FreeTypePatch(); + $this->assertTrue($patch->match($build, $logger)); + $this->assertGreaterThan(0, $patch->apply($build, $logger)); + + $expectedDirectory = getenv('PHPBREW_EXPECTED_PHP_DIR') . DIRECTORY_SEPARATOR . '7.3.12-freetype-patch'; + $this->assertFileEquals($expectedDirectory . '/ext/gd/config.m4', $sourceDirectory . '/ext/gd/config.m4'); + } +} diff --git a/tests/PhpBrew/Patches/IntlWith64bitPatchTest.php b/tests/PhpBrew/Patches/IntlWith64bitPatchTest.php new file mode 100644 index 000000000..8464055a4 --- /dev/null +++ b/tests/PhpBrew/Patches/IntlWith64bitPatchTest.php @@ -0,0 +1,43 @@ +setQuiet(); + + $fromVersion = '5.3.29'; + $sourceFixtureDirectory = getenv('PHPBREW_FIXTURES_PHP_DIR') . DIRECTORY_SEPARATOR . $fromVersion; + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + + if (!is_dir($sourceDirectory)) { + $this->markTestSkipped("$sourceDirectory does not exist."); + } + + // Copy the source Makefile to the Makefile + // copy($sourceFixtureDirectory . '/Makefile', $sourceDirectory . '/Makefile'); + $this->setupBuildDirectory($fromVersion); + + $build = new Build($fromVersion); + $build->setSourceDirectory($sourceDirectory); + $build->enableVariant('intl'); + $this->assertTrue($build->isEnabledVariant('intl')); + + $patch = new IntlWith64bitPatch(); + $matched = $patch->match($build, $logger); + $this->assertTrue($matched, 'patch matched'); + $patchedCount = $patch->apply($build, $logger); + $this->assertEquals(3, $patchedCount); + + $sourceExpectedDirectory = getenv('PHPBREW_EXPECTED_PHP_DIR') . DIRECTORY_SEPARATOR . $fromVersion; + $this->assertFileEquals($sourceExpectedDirectory . '/Makefile', $sourceDirectory . '/Makefile'); + } +} diff --git a/tests/PhpBrew/Patches/OpenSSLDSOPatchTest.php b/tests/PhpBrew/Patches/OpenSSLDSOPatchTest.php new file mode 100644 index 000000000..78586c327 --- /dev/null +++ b/tests/PhpBrew/Patches/OpenSSLDSOPatchTest.php @@ -0,0 +1,40 @@ +markTestSkipped('openssl DSO patch test only runs on darwin platform'); + } + + $logger = new Logger(); + $logger->setQuiet(); + + $fromVersion = '5.5.17'; + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + + $this->setupBuildDirectory($fromVersion); + + $build = new Build($fromVersion); + $build->setSourceDirectory($sourceDirectory); + $build->enableVariant('openssl'); + $this->assertTrue($build->isEnabledVariant('openssl')); + + $patch = new OpenSSLDSOPatch(); + $matched = $patch->match($build, $logger); + $this->assertTrue($matched, 'patch matched'); + $patchedCount = $patch->apply($build, $logger); + $this->assertEquals(10, $patchedCount); + } +} diff --git a/tests/PhpBrew/Patches/PHP56WithOpenSSL11PatchTest.php b/tests/PhpBrew/Patches/PHP56WithOpenSSL11PatchTest.php new file mode 100644 index 000000000..428cc5ec3 --- /dev/null +++ b/tests/PhpBrew/Patches/PHP56WithOpenSSL11PatchTest.php @@ -0,0 +1,56 @@ +setQuiet(); + + $sourceDirectory = getenv('PHPBREW_BUILD_PHP_DIR'); + + $this->setupBuildDirectory($version); + + $build = new Build($version); + $build->setSourceDirectory($sourceDirectory); + $build->enableVariant('openssl'); + $this->assertTrue($build->isEnabledVariant('openssl')); + + $patch = new PHP56WithOpenSSL11Patch(); + $this->assertTrue($patch->match($build, $logger)); + + $this->assertGreaterThan(0, $patch->apply($build, $logger)); + + $expectedDirectory = getenv('PHPBREW_EXPECTED_PHP_DIR') . '/' . $version . '-php56-openssl11-patch'; + + foreach ( + array( + 'ext/openssl/openssl.c', + 'ext/openssl/xp_ssl.c', + 'ext/phar/util.c', + ) as $path + ) { + $this->assertFileEquals( + $expectedDirectory . '/' . $path, + $sourceDirectory . '/' . $path + ); + } + } + + public static function versionProvider() + { + return array( + array('5.6.40'), + ); + } +} diff --git a/tests/PhpBrew/PrefixFinder/ExecutablePrefixFinderTest.php b/tests/PhpBrew/PrefixFinder/ExecutablePrefixFinderTest.php new file mode 100644 index 000000000..7cae60e60 --- /dev/null +++ b/tests/PhpBrew/PrefixFinder/ExecutablePrefixFinderTest.php @@ -0,0 +1,24 @@ +assertNotNull($epf->findPrefix()); + } + + public function testFindInvalid() + { + $epf = new ExecutablePrefixFinder('inexistent-binary'); + $this->assertNull($epf->findPrefix()); + } +} diff --git a/tests/PhpBrew/ReleaseListTest.php b/tests/PhpBrew/ReleaseListTest.php new file mode 100644 index 000000000..e56f1fb6c --- /dev/null +++ b/tests/PhpBrew/ReleaseListTest.php @@ -0,0 +1,73 @@ +releaseList = new ReleaseList(); + $this->releaseList->loadJsonFile(__DIR__ . '/../fixtures/php-releases.json'); + } + + public function testGetVersions() + { + $versions = $this->releaseList->getVersions("7.2"); + $this->assertSame( + $versions['7.2.0'], + array( + 'version' => "7.2.0", + 'announcement' => "https://php.net/releases/7_2_0.php", + 'date' => "30 Nov 2017", + 'filename' => "php-7.2.0.tar.bz2", + 'name' => "PHP 7.2.0 (tar.bz2)", + 'sha256' => "2bfefae4226b9b97879c9d33078e50bdb5c17f45ff6e255951062a529720c64a", + 'museum' => false + ) + ); + } + + public function versionDataProvider() + { + return array( + array("7.3", "7.3.0"), + array("7.2", "7.2.13"), + array("5.4", "5.4.45"), + array("5.6", "5.6.39"), + ); + } + + /** + * @dataProvider versionDataProvider + */ + public function testLatestPatchVersion($major, $minor) + { + $version = $this->releaseList->getLatestPatchVersion($major, $minor); + $this->assertInternalType('array', $version); + $this->assertEquals($version['version'], $minor); + } + + /** + * @dataProvider versionDataProvider + */ + public function testGetLatestVersion($major, $minor) + { + $latestVersion = $this->releaseList->getLatestVersion(); + + $this->assertNotNull($latestVersion); + + $versions = $this->releaseList->getVersions($major); + + foreach ($versions as $versionInfo) { + $this->assertTrue($latestVersion >= $versionInfo['version']); + } + } +} diff --git a/tests/PhpBrew/Tasks/MakeTaskTest.php b/tests/PhpBrew/Tasks/MakeTaskTest.php new file mode 100644 index 000000000..2e7461ccd --- /dev/null +++ b/tests/PhpBrew/Tasks/MakeTaskTest.php @@ -0,0 +1,101 @@ +setQuiet(); + return $logger; + } + + protected function setUp(): void + { + $this->make = new MakeTask($this->createLogger(), new OptionResult()); + $this->make->setQuiet(); + } + + public function testMakeInstall() + { + $this->assertTrue($this->make->install(new MakeTaskTestBuild())); + } + + public function testMakeClean() + { + $this->assertTrue($this->make->clean(new MakeTaskTestBuild())); + } + + public function testRunWithValidTarget() + { + $build = new MakeTaskTestBuild(); + $this->assertTrue($this->make->run($build)); + } + + public function testWhenThereIsNoMakefile() + { + // ignores error messages generated by make command + ob_start(); + $this->assertFalse($this->make->install(new MakeTaskTestNoSuchFileBuild())); + ob_end_clean(); + } + + public function testSetQuiet() + { + $make = new MakeTask($this->createLogger(), new OptionResult()); + + $this->assertFalse($make->isQuiet()); + + $make->setQuiet(); + + $this->assertTrue($make->isQuiet()); + } +} + +class MakeTaskTestBuild implements Buildable +{ + public function getSourceDirectory() + { + return __DIR__ . '/../../fixtures/make/'; + } + + public function getBuildLogPath() + { + return null; + } + + public function isBuildable() + { + return true; + } +} + +class MakeTaskTestNoSuchFileBuild implements Buildable +{ + public function getSourceDirectory() + { + return __DIR__ . '/../../fixtures/make/dummy'; + } + + public function getBuildLogPath() + { + return null; + } + + public function isBuildable() + { + return false; + } +} diff --git a/tests/PhpBrew/UtilsTest.php b/tests/PhpBrew/UtilsTest.php index b846cfb69..f7a02689f 100644 --- a/tests/PhpBrew/UtilsTest.php +++ b/tests/PhpBrew/UtilsTest.php @@ -1,21 +1,38 @@ assertInternalType('boolean', Utils::support64bit()); } - public function testLookupPrefix() { - ok( Utils::get_lookup_prefixes() ); + public function testLookupPrefix() + { + $this->assertNotEmpty(Utils::getLookupPrefixes()); } - public function testPrefix() { - ok( Utils::find_lib_prefix('icu/pkgdata.inc','icu/Makefile.inc') ); - ok( Utils::find_include_prefix('openssl/opensslv.h') ); + public function testFindIcuPkgData() + { + $this->markTestSkipped('icu/pkgdata.inc is not found on Ubuntu Linux'); + $this->assertNotNull(Utils::findLibPrefix('icu/pkgdata.inc', 'icu/Makefile.inc')); } -} + public function testPrefix() + { + $this->assertNotNull(Utils::findIncludePrefix('openssl/opensslv.h')); + } + + public function testFindbin() + { + $this->assertNotNull(Utils::findBin('ls')); + } +} diff --git a/tests/PhpBrew/VariantBuilderTest.php b/tests/PhpBrew/VariantBuilderTest.php index ef1441dce..becdae77a 100644 --- a/tests/PhpBrew/VariantBuilderTest.php +++ b/tests/PhpBrew/VariantBuilderTest.php @@ -1,74 +1,362 @@ array( + array('apxs2'), + array('--with-apxs2'), + ), + 'bz2' => array( + array('bz2'), + array('--with-bz2'), + ), + 'curl' => array( + array('curl'), + array('--with-curl'), + ), + 'debug' => array( + array('debug'), + array('--enable-debug'), + ), + 'editline' => array( + array('editline'), + array('--with-libedit'), + ), + 'gd' => array( + array('gd'), + array( + '--with-gd', + '--with-png-dir', + '--with-jpeg-dir', + ), + ), + 'gettext' => array( + array('gettext'), + array('--with-gettext'), + ), + 'gmp' => array( + array('gmp'), + array('--with-gmp'), + ), + 'iconv' => array( + array('iconv'), + array('--with-iconv'), + ), + 'intl' => array( + array('intl'), + array('--enable-intl'), + ), + 'ipc' => array( + array('ipc'), + array( + '--enable-shmop', + '--enable-sysvshm', + ), + ), + 'mcrypt' => array( + array('mcrypt'), + array('--with-mcrypt'), + ), + 'mhash' => array( + array('mhash'), + array('--with-mhash'), + ), + 'mysql' => array( + array('mysql'), + array('--with-mysqli'), + ), + 'openssl' => array( + array('openssl'), + array('--with-openssl'), + ), + 'pdo-mysql' => array( + array('mysql', 'pdo'), + array('--with-pdo-mysql'), + ), + 'pdo-pgsql' => array( + array('pgsql', 'pdo'), + array('--with-pdo-pgsql'), + ), + 'pdo-sqlite' => array( + array('sqlite', 'pdo'), + array('--with-pdo-sqlite'), + ), + 'pgsql' => array( + array('pgsql'), + array('--with-pgsql'), + ), + 'readline' => array( + array('readline'), + array('--with-readline'), + ), + 'sqlite' => array( + array('sqlite'), + array('--with-sqlite3'), + ), + 'xml' => array( + array('xml'), + array( + '--enable-dom', + '--enable-libxml', + '--enable-simplexml', + '--with-libxml-dir', + ), + ), + 'zlib' => array( + array('zlib'), + array('--with-zlib'), + ), + 'snmp' => array( + array('snmp'), + array('--with-snmp'), + ), + ); + } + + /** + * @dataProvider variantOptionProvider + */ + public function testVariantOption(array $variants, $expectedOptions) { - $variants = new PhpBrew\VariantBuilder; - ok($variants); + $build = new Build('5.5.0'); + foreach ($variants as $variant) { + if (getenv('GITHUB_ACTIONS') && in_array($variant, array("apxs2", "gd", "editline"))) { + $this->markTestSkipped("GitHub actions doesn't support $variant}."); + } + + $build->enableVariant($variant); + } + $build->resolveVariants(); + $variantBuilder = new VariantBuilder(); + $options = $variantBuilder->build($build)->getOptions(); - $build = new PhpBrew\Build; - $build->setVersion('5.3.0'); + foreach ($expectedOptions as $expectedOption) { + $this->assertArrayHasKey($expectedOption, $options); + } + } + + public function test() + { + $variants = new VariantBuilder(); + $build = new Build('5.3.0'); $build->enableVariant('debug'); - $build->enableVariant('icu'); $build->enableVariant('sqlite'); - $build->enableVariant('xml_all'); - $build->enableVariant('apxs2','/opt/local/apache2/apxs2'); + $build->enableVariant('xml'); + $build->enableVariant('apxs2', '/opt/local/apache2/apxs2'); $build->disableVariant('sqlite'); $build->disableVariant('mysql'); $build->resolveVariants(); + $options = $variants->build($build)->getOptions(); - $options = $variants->build($build); - ok( in_array('--enable-debug',$options) ); - ok( in_array('--enable-libxml',$options) ); - ok( in_array('--enable-simplexml',$options) ); + $this->assertArrayHasKey('--enable-debug', $options); + $this->assertArrayHasKey('--enable-libxml', $options); + $this->assertArrayHasKey('--enable-simplexml', $options); - ok( in_array('--with-apxs2=/opt/local/apache2/apxs2',$options) ); + $this->assertArrayHasKey('--with-apxs2', $options); + $this->assertSame('/opt/local/apache2/apxs2', $options['--with-apxs2']); - ok( in_array('--without-sqlite3',$options) ); - ok( in_array('--without-mysql',$options) ); - ok( in_array('--without-mysqli',$options) ); + $this->assertArrayHasKey('--without-sqlite3', $options); + $this->assertArrayHasKey('--without-mysql', $options); + $this->assertArrayHasKey('--without-mysqli', $options); + $this->assertArrayHasKey('--disable-all', $options); + } + + public function testEverything() + { + $variants = new VariantBuilder(); + + $build = new Build('5.6.0'); + $build->enableVariant('everything'); + $build->disableVariant('openssl'); + $build->resolveVariants(); + + $options = $variants->build($build)->getOptions(); + + $this->assertArrayNotHasKey('--enable-all', $options); + $this->assertArrayNotHasKey('--with-apxs2', $options); + $this->assertArrayNotHasKey('--with-openssl', $options); } public function testMysqlPdoVariant() { - $variants = new PhpBrew\VariantBuilder; - ok($variants); + $variants = new VariantBuilder(); - $build = new PhpBrew\Build; - $build->setVersion('5.3.0'); + $build = new Build('5.3.0'); $build->enableVariant('pdo'); $build->enableVariant('mysql'); $build->enableVariant('sqlite'); $build->resolveVariants(); - $options = $variants->build($build); - ok( in_array('--enable-pdo',$options) ); - ok( in_array('--with-mysql=mysqlnd',$options) ); - ok( in_array('--with-mysqli=mysqlnd',$options) ); - ok( in_array('--with-pdo-mysql=mysqlnd',$options) ); - ok( in_array('--with-pdo-sqlite',$options) ); + $options = $variants->build($build)->getOptions(); + $this->assertArrayHasKey('--enable-pdo', $options); + $this->assertArrayHasKey('--with-mysql', $options); + $this->assertSame('mysqlnd', $options['--with-mysql']); + $this->assertArrayHasKey('--with-mysqli', $options); + $this->assertSame('mysqlnd', $options['--with-mysqli']); + $this->assertArrayHasKey('--with-pdo-mysql', $options); + $this->assertSame('mysqlnd', $options['--with-pdo-mysql']); + $this->assertArrayHasKey('--with-pdo-sqlite', $options); } - public function testAllVariant() { - $variants = new PhpBrew\VariantBuilder; - ok($variants); - - $build = new PhpBrew\Build; - $build->setVersion('5.3.0'); + $variants = new VariantBuilder(); + $build = new Build('5.3.0'); $build->enableVariant('all'); $build->disableVariant('mysql'); $build->disableVariant('apxs2'); $build->resolveVariants(); - $options = $variants->build($build); - ok( in_array('--enable-all',$options) ); - ok( in_array('--without-apxs2',$options) ); - ok( in_array('--without-mysql',$options) ); + $options = $variants->build($build)->getOptions(); + $this->assertArrayHasKey('--enable-all', $options); + $this->assertArrayHasKey('--without-apxs2', $options); + $this->assertArrayHasKey('--without-mysql', $options); } -} + /** + * A test case for `neutral' virtual variant. + */ + public function testNeutralVirtualVariant() + { + $variants = new VariantBuilder(); + $build = new Build('5.3.0'); + // $build->setVersion('5.3.0'); + $build->enableVariant('neutral'); + $build->resolveVariants(); + $options = $variants->build($build)->getOptions(); + // ignore `--with-libdir` because this option should be set depending on client environments + unset($options['--with-libdir']); + + $this->assertEquals(array(), $options); + } + + /** + * @param string $version + * @param string $expected + * + * @dataProvider libXmlProvider + */ + public function testLibXml($version, $expected) + { + $build = new Build($version); + $build->enableVariant('xml'); + + $builder = new VariantBuilder(); + $options = $builder->build($build)->getOptions(); + + $this->assertArrayHasKey($expected, $options); + } + + public static function libXmlProvider() + { + return array( + array('7.3.0', '--enable-libxml'), + + // see https://github.com/php/php-src/pull/4037 + array('7.4.0-dev', '--with-libxml'), + ); + } + + /** + * @param string $version + * @param string $expected + * + * @dataProvider zipProvider + */ + public function testZip($version, $expected) + { + $build = new Build($version); + $build->enableVariant('zip'); + + $builder = new VariantBuilder(); + $options = $builder->build($build)->getOptions(); + + $this->assertArrayHasKey($expected, $options); + } + + public static function zipProvider() + { + return array( + array('7.3.0', '--enable-zip'), + + // see https://github.com/php/php-src/pull/4072 + array('7.4.0-dev', '--with-zip'), + ); + } + + /** + * @param string $version + * @param string $expected + * + * @dataProvider ztsProvider + */ + public function testZts($version, $expected) + { + $build = new Build($version); + $build->enableVariant('zts'); + + $builder = new VariantBuilder(); + $options = $builder->build($build)->getOptions(); + + $this->assertArrayHasKey($expected, $options); + } + + public static function ztsProvider() + { + return array( + array('5.3.0', '--enable-maintainer-zts'), + array('5.4.0', '--enable-maintainer-zts'), + array('5.5.0', '--enable-maintainer-zts'), + array('5.6.0', '--enable-maintainer-zts'), + array('7.0.0', '--enable-maintainer-zts'), + array('7.1.0', '--enable-maintainer-zts'), + array('7.3.0', '--enable-maintainer-zts'), + array('7.4.0', '--enable-maintainer-zts'), + array('8.0.0', '--enable-zts'), + ); + } + + /** + * @param string $version + * @param string $expected + * + * @dataProvider snmpProvider + */ + public function testSnmp($version, $expected) + { + $build = new Build($version); + $build->enableVariant('snmp'); + + $builder = new VariantBuilder(); + $options = $builder->build($build)->getOptions(); + + $this->assertArrayHasKey($expected, $options); + } + + public static function snmpProvider() + { + return array( + array('5.6.0', '--with-snmp'), + array('7.0.0', '--with-snmp'), + array('7.1.0', '--with-snmp'), + array('7.3.0', '--with-snmp'), + array('7.4.0', '--with-snmp'), + array('8.0.0', '--with-snmp'), + ); + } +} diff --git a/tests/PhpBrew/VariantParserTest.php b/tests/PhpBrew/VariantParserTest.php index 07ac37198..f161a0bb9 100644 --- a/tests/PhpBrew/VariantParserTest.php +++ b/tests/PhpBrew/VariantParserTest.php @@ -1,34 +1,207 @@ assertEquals(array( + 'enabled_variants' => array( + 'pdo' => null, + 'sqlite' => null, + 'debug' => null, + 'apxs' => '/opt/local/apache2/bin/apxs', + 'calendar' => null, + ), + 'disabled_variants' => array( + 'mysql' => null, + ), + 'extra_options' => array( + '--with-icu-dir=/opt/local', + ), + ), $this->parse(array( + '+pdo', + '+sqlite', + '+debug', + '+apxs=/opt/local/apache2/bin/apxs', + '+calendar', + '-mysql', + '--', + '--with-icu-dir=/opt/local', + ))); } public function testVariantAll() { - $arg = '+all -apxs2 -mysql'; - $args = preg_split('#\s+#',$arg); - $info = VariantParser::parseCommandArguments($args); - ok($info['enabled_variants']); - ok($info['enabled_variants']['all']); - ok($info['disabled_variants']); - ok($info['disabled_variants']['mysql']); - ok($info['disabled_variants']['apxs2']); + $this->assertEquals(array( + 'enabled_variants' => array( + 'all' => null, + ), + 'disabled_variants' => array( + 'apxs2' => null, + 'mysql' => null, + ), + 'extra_options' => array(), + ), $this->parse(array( + '+all', + '-apxs2', + '-mysql', + ))); + } + + /** + * @dataProvider variantGroupOverloadProvider + */ + public function testVariantGroupOverload(array $args, array $expectedEnabledVariants) + { + $info = $this->parse($args); + $this->assertEquals($expectedEnabledVariants, $info['enabled_variants']); + } + + public static function variantGroupOverloadProvider() + { + return array( + 'overrides default variant value' => array( + array('+default', '+openssl=/usr'), + array( + 'default' => null, + 'openssl' => '/usr', + ), + ), + 'order must be irrelevant' => array( + array('+openssl=/usr', '+default'), + array( + 'openssl' => '/usr', + 'default' => null, + ), + ), + 'negative variant' => array( + array('+default', '-openssl'), + array( + 'default' => null, + ), + ), + 'negative variant precedence' => array( + array('-openssl', '+default'), + array( + 'default' => null, + ), + ), + 'negative variant with an overridden value' => array( + array('+default', '-openssl=/usr'), + array( + 'default' => null, + ), + ), + ); + } + + /** + * @link https://github.com/phpbrew/phpbrew/issues/495 + */ + public function testBug495() + { + $this->assertEquals(array( + 'enabled_variants' => array( + 'gmp' => '/path/x86_64-linux-gnu' + ), + 'disabled_variants' => array( + 'openssl' => null, + 'xdebug' => null, + ), + 'extra_options' => array(), + ), $this->parse(array( + '+gmp=/path/x86_64-linux-gnu', + '-openssl', + '-xdebug', + ))); } -} + public function testVariantUserValueContainsVersion() + { + $this->assertEquals(array( + 'enabled_variants' => array( + 'openssl' => '/usr/local/Cellar/openssl/1.0.2e', + 'gettext' => '/usr/local/Cellar/gettext/0.19.7', + ), + 'disabled_variants' => array(), + 'extra_options' => array(), + ), $this->parse(array( + '+openssl=/usr/local/Cellar/openssl/1.0.2e', + '+gettext=/usr/local/Cellar/gettext/0.19.7', + ))); + } + + /** + * @dataProvider revealCommandArgumentsProvider + */ + public function testRevealCommandArguments(array $info, $expected) + { + $this->assertEquals($expected, VariantParser::revealCommandArguments($info)); + } + + public static function revealCommandArgumentsProvider() + { + return array( + array( + array( + 'enabled_variants' => array( + 'mysql' => true, + 'openssl' => '/usr', + ), + 'disabled_variants' => array( + 'apxs2' => true, + ), + 'extra_options' => array( + '--with-icu-dir=/usr' + ), + ), + '+mysql +openssl=/usr -apxs2 -- --with-icu-dir=/usr', + ), + ); + } + + /** + * @dataProvider invalidSyntaxProvider + * @requires PHPUnit 5.2 + */ + public function testInvalidSyntax(array $args, $expectedMessage) + { + $this->expectException('PhpBrew\\InvalidVariantSyntaxException'); + $this->expectExceptionMessage($expectedMessage); + + $this->parse($args); + } + + public static function invalidSyntaxProvider() + { + return array( + 'Empty argument' => array( + array(''), + 'Variant cannot be empty', + ), + 'Empty variant name' => array( + array('+'), + 'Variant name cannot be empty', + ), + 'Empty variant name with value' => array( + array('-='), + 'Variant name cannot be empty', + ), + 'Invalid operator' => array( + array('~'), + 'Variant must start with a + or -', + ), + ); + } + + private function parse(array $args) + { + return VariantParser::parseCommandArguments($args); + } +} diff --git a/tests/PhpBrew/VersionDslParserTest.php b/tests/PhpBrew/VersionDslParserTest.php new file mode 100644 index 000000000..26f6f8149 --- /dev/null +++ b/tests/PhpBrew/VersionDslParserTest.php @@ -0,0 +1,150 @@ +parser = new VersionDslParser(); + } + + public static function dslProvider() + { + return array( + // official + // implicit branch + array( + 'github:php/php-src', + 'https://github.com/php/php-src/archive/master.tar.gz', + 'php-master', + ), + // explicit branch + array('github:php/php-src@branch', 'https://github.com/php/php-src/archive/branch.tar.gz', 'php-branch'), + // implicit branch + array('github.com:php/php-src', 'https://github.com/php/php-src/archive/master.tar.gz', 'php-master'), + // explicit branch + array( + 'github.com:php/php-src@branch', + 'https://github.com/php/php-src/archive/branch.tar.gz', + 'php-branch', + ), + // implicit branch + array('git@github.com:php/php-src', 'https://github.com/php/php-src/archive/master.tar.gz', 'php-master'), + // explicit branch + array( + 'git@github.com:php/php-src@branch', + 'https://github.com/php/php-src/archive/branch.tar.gz', + 'php-branch', + ), + // tag + array( + 'git@github.com:php/php-src@php-7.1.0RC3', + 'https://github.com/php/php-src/archive/php-7.1.0RC3.tar.gz', + 'php-7.1.0RC3', + ), + + // pre-release versions without the github: prefix + array( + 'php-7.2.0alpha1', + 'https://github.com/php/php-src/archive/php-7.2.0alpha1.tar.gz', + 'php-7.2.0alpha1', + ), + array( + '7.2.0beta2', + 'https://github.com/php/php-src/archive/php-7.2.0beta2.tar.gz', + 'php-7.2.0beta2', + ), + array( + 'php-7.2.0RC3', + 'https://github.com/php/php-src/archive/php-7.2.0RC3.tar.gz', + 'php-7.2.0RC3', + ), + + // github urls + array( + 'https://www.github.com/php/php-src', + 'https://github.com/php/php-src/archive/master.tar.gz', + 'php-master', + ), + array( + 'http://www.github.com/php/php-src', + 'https://github.com/php/php-src/archive/master.tar.gz', + 'php-master', + ), + array('www.github.com/php/php-src', 'https://github.com/php/php-src/archive/master.tar.gz', 'php-master'), + + // forks + array('github:marc/php-src', 'https://github.com/marc/php-src/archive/master.tar.gz', 'php-marc-master'), + // implicit branch + array( + 'github.com:marc/php-src', + 'https://github.com/marc/php-src/archive/master.tar.gz', + 'php-marc-master', + ), + array( + 'git@github.com:marc/php-src', + 'https://github.com/marc/php-src/archive/master.tar.gz', + 'php-marc-master', + ), + array( + 'https://www.github.com/marc/php-src', + 'https://github.com/marc/php-src/archive/master.tar.gz', + 'php-marc-master', + ), + // tag in fork + array( + 'git@github.com:marc/php-src@php-7.1.0RC3', + 'https://github.com/marc/php-src/archive/php-7.1.0RC3.tar.gz', + 'php-marc-7.1.0RC3', + ), + + // Other URLs + array( + 'https://www.php.net/~ab/php-7.0.0alpha1.tar.gz', + 'https://www.php.net/~ab/php-7.0.0alpha1.tar.gz', + 'php-7.0.0alpha1', + ), + array( + 'https://www.php.net/~ab/php-7.0.0beta2.tar.gz', + 'https://www.php.net/~ab/php-7.0.0beta2.tar.gz', + 'php-7.0.0beta2', + ), + array( + 'https://www.php.net/~ab/php-7.0.0RC3.tar.gz', + 'https://www.php.net/~ab/php-7.0.0RC3.tar.gz', + 'php-7.0.0RC3', + ), + array('https://www.php.net/~ab/php-7.0.0.tar.gz', 'https://www.php.net/~ab/php-7.0.0.tar.gz', 'php-7.0.0'), + array( + 'http://php.net/distributions/php-5.6.14.tar.bz2', + 'http://php.net/distributions/php-5.6.14.tar.bz2', + 'php-5.6.14', + ), + ); + } + + /** + * @dataProvider dslProvider + */ + public function testGithubDsl($dsl, $url, $version) + { + $info = $this->parser->parse($dsl); + + $this->assertSame($version, $info['version']); + $this->assertSame($url, $info['url']); + } +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a999c2c26..4934a6e4e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,2 +1,14 @@ setCassettePath('tests/fixtures/vcr_cassettes') + ->enableLibraryHooks(array('curl', 'stream_wrapper')) + ->setStorage('json'); diff --git a/tests/expected/php/5.3.29/Makefile b/tests/expected/php/5.3.29/Makefile new file mode 100644 index 000000000..5601e9cbd --- /dev/null +++ b/tests/expected/php/5.3.29/Makefile @@ -0,0 +1,1811 @@ +srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +EGREP = grep -E +SED = /opt/local/bin/gsed +CONFIGURE_COMMAND = './configure' '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +CONFIGURE_OPTIONS = '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +PHP_MAJOR_VERSION = 5 +PHP_MINOR_VERSION = 3 +PHP_RELEASE_VERSION = 29 +PHP_EXTRA_VERSION = +AWK = gawk +YACC = exit 0; +RE2C = re2c +RE2C_FLAGS = +SHLIB_SUFFIX_NAME = dylib +SHLIB_DL_SUFFIX_NAME = so +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(CXX) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +INSTALL_CLI = $(mkinstalldirs) $(INSTALL_ROOT)$(bindir); $(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT) +php_fpm_user = nobody +php_fpm_group = nobody +php_fpm_sysconfdir = /Users/c9s/.phpbrew/php/php-5.3.29/etc +php_fpm_localstatedir = /Users/c9s/.phpbrew/php/php-5.3.29/var +php_fpm_prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +SAPI_FPM_PATH = sapi/fpm/php-fpm +BUILD_FPM = $(CXX) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(SAPI_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) +PROG_SENDMAIL = /usr/sbin/sendmail +OPENSSL_SHARED_LIBADD = +SQLITE3_SHARED_LIBADD = +ZLIB_SHARED_LIBADD = +BZ2_SHARED_LIBADD = +CURL_SHARED_LIBADD = +DOM_SHARED_LIBADD = +FILTER_SHARED_LIBADD = +GETTEXT_SHARED_LIBADD = +INTL_SHARED_LIBADD = +JSON_SHARED_LIBADD = +MBSTRING_SHARED_LIBADD = +MCRYPT_SHARED_LIBADD = +MYSQL_SHARED_LIBADD = +MYSQLI_SHARED_LIBADD = +PDO_MYSQL_SHARED_LIBADD = +PDO_MYSQL_MODULE_TYPE = external +PDO_PGSQL_SHARED_LIBADD = +PDO_SQLITE_SHARED_LIBADD = +PGSQL_SHARED_LIBADD = +READLINE_SHARED_LIBADD = +SESSION_SHARED_LIBADD = +SIMPLEXML_SHARED_LIBADD = +SOAP_SHARED_LIBADD = +XML_SHARED_LIBADD = +XMLREADER_SHARED_LIBADD = +XMLWRITER_SHARED_LIBADD = +XSL_SHARED_LIBADD = +ZIP_SHARED_LIBADD = +PHP_INSTALLED_SAPIS = cli fpm +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +PHP_CLI_TARGET = $(SAPI_CLI_PATH) +PHP_SAPI_OBJS = sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_mach.lo main/internal_functions.lo +PHP_CLI_OBJS = ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo main/internal_functions_cli.lo +PHP_GLOBAL_OBJS = ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/gettext/gettext.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_salsa.lo ext/intl/php_intl.lo ext/intl/intl_error.lo ext/intl/intl_convert.lo ext/intl/collator/collator.lo ext/intl/collator/collator_class.lo ext/intl/collator/collator_sort.lo ext/intl/collator/collator_convert.lo ext/intl/collator/collator_locale.lo ext/intl/collator/collator_compare.lo ext/intl/collator/collator_attr.lo ext/intl/collator/collator_create.lo ext/intl/collator/collator_is_numeric.lo ext/intl/collator/collator_error.lo ext/intl/common/common_error.lo ext/intl/formatter/formatter.lo ext/intl/formatter/formatter_main.lo ext/intl/formatter/formatter_class.lo ext/intl/formatter/formatter_attr.lo ext/intl/formatter/formatter_data.lo ext/intl/formatter/formatter_format.lo ext/intl/formatter/formatter_parse.lo ext/intl/normalizer/normalizer.lo ext/intl/normalizer/normalizer_class.lo ext/intl/normalizer/normalizer_normalize.lo ext/intl/locale/locale.lo ext/intl/locale/locale_class.lo ext/intl/locale/locale_methods.lo ext/intl/dateformat/dateformat.lo ext/intl/dateformat/dateformat_class.lo ext/intl/dateformat/dateformat_attr.lo ext/intl/dateformat/dateformat_data.lo ext/intl/dateformat/dateformat_format.lo ext/intl/dateformat/dateformat_parse.lo ext/intl/msgformat/msgformat.lo ext/intl/msgformat/msgformat_attr.lo ext/intl/msgformat/msgformat_class.lo ext/intl/msgformat/msgformat_data.lo ext/intl/msgformat/msgformat_format.lo ext/intl/msgformat/msgformat_helpers.lo ext/intl/msgformat/msgformat_parse.lo ext/intl/grapheme/grapheme_string.lo ext/intl/grapheme/grapheme_util.lo ext/intl/resourcebundle/resourcebundle.lo ext/intl/resourcebundle/resourcebundle_class.lo ext/intl/resourcebundle/resourcebundle_iterator.lo ext/intl/idn/idn.lo ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_pgsql/pdo_pgsql.lo ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo ext/mysqlnd/mysqlnd.lo ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo ext/mysqlnd/mysqlnd_loaddata.lo ext/mysqlnd/mysqlnd_net.lo ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo +PHP_MODULES = +PHP_ZEND_EX = +EXT_LIBS = +abs_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +abs_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +exec_prefix = ${prefix} +program_prefix = +program_suffix = +includedir = ${prefix}/include +libdir = ${exec_prefix}/lib/php +mandir = ${prefix}/man +phplibdir = /Users/c9s/.phpbrew/build/php-5.3.29/modules +phptempdir = /Users/c9s/.phpbrew/build/php-5.3.29/libs +prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +localstatedir = ${prefix}/var +datadir = ${prefix}/share/php +datarootdir = /Users/c9s/.phpbrew/php/php-5.3.29/php +sysconfdir = ${prefix}/etc +EXEEXT = .dSYM +CC = gcc +CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static +CFLAGS_CLEAN = -g -O2 -fvisibility=hidden -DZTS +CPP = gcc -E +CPPFLAGS = -no-cpp-precomp +CXX = c++ +CXXFLAGS = -g -O2 -prefer-non-pic -static +CXXFLAGS_CLEAN = -g -O2 +DEBUG_CFLAGS = +EXTENSION_DIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php/extensions/no-debug-zts-20090626 +EXTRA_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LDFLAGS_PROGRAM = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LIBS = -lz -lexslt -lresolv -ledit -lncurses -lpq -lpq -lmcrypt -lltdl -lintl -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm -lxml2 -lcurl -lxml2 -licui18n -licuuc -licudata -licuio -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lstdc++ +ZEND_EXTRA_LIBS = +INCLUDES = -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -I/opt/local/include -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl -I/opt/local/include/postgresql92 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -I/usr/include/libxml2 -I$(top_builddir)/TSRM -I$(top_builddir)/Zend +EXTRA_INCLUDES = +INCLUDE_PATH = .:/Users/c9s/.phpbrew/php/php-5.3.29/lib/php +INSTALL_IT = : +LFLAGS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent --preserve-dup-deps +LN_S = ln -s +NATIVE_RPATHS = -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/local/lib/postgresql92 +PEAR_INSTALLDIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php +PHP_BUILD_DATE = 2015-07-17 +PHP_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +PHP_LIBS = +OVERALL_TARGET = $(SAPI_FPM_PATH) +PHP_RPATHS = -R /opt/local/lib -R /opt/local/lib/postgresql92 +PHP_SAPI = fpm +PHP_VERSION = 5.3.29 +PHP_VERSION_ID = 50329 +SHELL = /bin/sh +SHARED_LIBTOOL = $(LIBTOOL) +WARNING_LEVEL = +PHP_FRAMEWORKS = +PHP_FRAMEWORKPATH = +INSTALL_HEADERS = ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h ext/date/lib/timelib_config.h ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/ ext/libxml/php_libxml.h ext/pcre/php_pcre.h ext/pcre/pcrelib/ ext/sqlite3/libsqlite/sqlite3.h ext/dom/xml_common.h ext/filter/php_filter.h ext/hash/php_hash.h ext/hash/php_hash_md.h ext/hash/php_hash_sha.h ext/hash/php_hash_ripemd.h ext/hash/php_hash_haval.h ext/hash/php_hash_tiger.h ext/hash/php_hash_gost.h ext/hash/php_hash_snefru.h ext/hash/php_hash_whirlpool.h ext/hash/php_hash_adler32.h ext/hash/php_hash_crc32.h ext/hash/php_hash_salsa.h ext/hash/php_hash_types.h ext/json/php_json.h ext/mbstring/oniguruma/oniguruma.h ext/mbstring/php_mbregex.h ext/mbstring/php_onig_compat.h ext/mbstring/libmbfl/config.h ext/mbstring/libmbfl/mbfl/eaw_table.h ext/mbstring/libmbfl/mbfl/mbfilter.h ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h ext/mbstring/libmbfl/mbfl/mbfilter_pass.h ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h ext/mbstring/libmbfl/mbfl/mbfl_allocators.h ext/mbstring/libmbfl/mbfl/mbfl_consts.h ext/mbstring/libmbfl/mbfl/mbfl_convert.h ext/mbstring/libmbfl/mbfl/mbfl_defs.h ext/mbstring/libmbfl/mbfl/mbfl_encoding.h ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h ext/mbstring/libmbfl/mbfl/mbfl_ident.h ext/mbstring/libmbfl/mbfl/mbfl_language.h ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h ext/mbstring/libmbfl/mbfl/mbfl_string.h ext/mbstring/mbstring.h ext/mysqli/php_mysqli_structs.h ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/session/php_session.h ext/session/mod_files.h ext/session/mod_user.h ext/sockets//php_sockets.h ext/spl/php_spl.h ext/spl/spl_array.h ext/spl/spl_directory.h ext/spl/spl_engine.h ext/spl/spl_exceptions.h ext/spl/spl_functions.h ext/spl/spl_iterators.h ext/spl/spl_observer.h ext/spl/spl_dllist.h ext/spl/spl_heap.h ext/spl/spl_fixedarray.h ext/standard/ ext/xml/ ext/mysqlnd/ Zend/ TSRM/ include/ main/ main/streams/ +ZEND_EXT_TYPE = zend_extension +all_targets = $(OVERALL_TARGET) $(PHP_MODULES) $(PHP_ZEND_EX) $(PHP_CLI_TARGET) pharcmd +install_targets = install-sapi install-cli install-build install-headers install-programs install-pear install-pharcmd +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: +cli: $(SAPI_CLI_PATH) + +$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) + $(BUILD_CLI) + +install-cli: $(SAPI_CLI_PATH) + @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/" + @$(INSTALL_CLI) + @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1 +fpm: $(SAPI_FPM_PATH) + +sapi/fpm/fpm: + @mkdir -p sapi/fpm/fpm + @mkdir -p sapi/fpm/fpm/events + +$(SAPI_FPM_PATH): sapi/fpm/fpm $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(SAPI_EXTRA_DEPS) + $(BUILD_FPM) + +sapi/fpm/fpm/fpm_conf.lo: sapi/fpm/../../main/build-defs.h + +install-build: install-fpm + +install-fpm: install-sapi + @echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(sbindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir) + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run + @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) + + @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : + + @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8 + @$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8 + + @echo "Installing PHP FPM status page: $(INSTALL_ROOT)$(datadir)/fpm/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm + @$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html + +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/data_file.c +phpincludedir=$(prefix)/include/php + +PDO_HEADER_FILES= \ + php_pdo.h \ + php_pdo_driver.h + + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.re + (cd $(top_srcdir); $(RE2C) -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re) + +install-pdo-headers: + @echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo + @for f in $(PDO_HEADER_FILES); do \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + else \ + echo "hmmm"; \ + fi \ + done; + +# mini hack +install: $(all_targets) $(install_targets) install-pdo-headers + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re) + +pharcmd: ext/phar/phar.php ext/phar/phar.phar + +PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' +PHP_PHARCMD_EXECUTABLE = ` \ + if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ + $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ + if test "x$(PHP_MODULES)" != "x"; then \ + $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ + for i in bz2 zlib phar; do \ + if test -f "$(top_builddir)/modules/$$i.la"; then \ + . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + fi; \ + done; \ + fi; \ + else \ + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ + fi;` +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + +ext/phar/phar/phar.inc: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc + -@test -d ext/phar/phar || mkdir ext/phar/phar + -@test -f ext/phar/phar/phar.inc || cp /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc ext/phar/phar/phar.inc + +ext/phar/phar.php: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.php" + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php > ext/phar/phar.php + +ext/phar/phar.phar: ext/phar/phar.php ext/phar/phar/phar.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.phar" + -@rm -f ext/phar/phar.phar + -@rm -f /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.phar + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_BANG)" /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/ + -@chmod +x ext/phar/phar.phar + +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + $(INSTALL) ext/phar/phar.phar $(INSTALL_ROOT)$(bindir) + -@rm -f $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f $(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) + +ext/standard/info.lo: ext/standard/../../main/build-defs.h + +ext/standard/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h +$(top_srcdir)/Zend/zend_language_parser.c: +$(top_srcdir)/Zend/zend_language_scanner.c: +ext/tokenizer/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c +# -*- makefile -*- + +peardir=$(PEAR_INSTALLDIR) + +# Skip all php.ini files altogether +PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 + +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` +PEAR_PREFIX = -dp a${program_prefix} +PEAR_SUFFIX = -ds a$(program_suffix) + +install-pear-installer: $(SAPI_CLI_PATH) + @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + +install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" + @if test ! -f pear/install-pear-nozlib.phar; then \ + if test -f /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar; then \ + cp /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + else \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P pear/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o pear/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n /Users/c9s/.phpbrew/build/php-5.3.29/pear/fetch.php http://pear.php.net/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + fi \ + fi \ + fi + @if test -f pear/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ + $(MAKE) -s install-pear-installer; \ + else \ + cat /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear.txt; \ + fi + + +# +# Build environment install +# + +phpincludedir = $(includedir)/php +phpbuilddir = $(libdir)/build + +BUILD_FILES = \ + scripts/phpize.m4 \ + build/mkdep.awk \ + build/scan_makefile_in.awk \ + build/libtool.m4 \ + Makefile.global \ + acinclude.m4 \ + ltmain.sh \ + run-tests.php + +BUILD_FILES_EXEC = \ + build/shtool \ + config.guess \ + config.sub + +bin_SCRIPTS = phpize php-config +man_PAGES = phpize php-config + +install-build: + @echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ + (cd $(top_srcdir) && \ + $(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \ + $(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) + +install-programs: scripts/phpize scripts/php-config + @echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @for prog in $(bin_SCRIPTS); do \ + echo " program: $(program_prefix)$${prog}$(program_suffix)"; \ + $(INSTALL) -m 755 scripts/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \ + done + @echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @for page in $(man_PAGES); do \ + echo " page: $(program_prefix)$${page}$(program_suffix).1"; \ + $(INSTALL_DATA) scripts/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \ + done + +scripts/phpize: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/phpize.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +scripts/php-config: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/php-config.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +# +# Zend +# + +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l) + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y + @$(YACC) -p zend -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y + @$(YACC) -p ini_ -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l) + +Zend/zend_indent.lo Zend/zend_highlight.lo Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_execute.h /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_opcodes.h +sapi/fpm/fpm/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo +sapi/fpm/fpm/fpm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo +sapi/fpm/fpm/fpm_children.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo +sapi/fpm/fpm/fpm_cleanup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c -o sapi/fpm/fpm/fpm_cleanup.lo +sapi/fpm/fpm/fpm_clock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c -o sapi/fpm/fpm/fpm_clock.lo +sapi/fpm/fpm/fpm_conf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c -o sapi/fpm/fpm/fpm_conf.lo +sapi/fpm/fpm/fpm_env.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c -o sapi/fpm/fpm/fpm_env.lo +sapi/fpm/fpm/fpm_events.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c -o sapi/fpm/fpm/fpm_events.lo +sapi/fpm/fpm/fpm_log.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c -o sapi/fpm/fpm/fpm_log.lo +sapi/fpm/fpm/fpm_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo +sapi/fpm/fpm/fpm_php.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo +sapi/fpm/fpm/fpm_php_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c -o sapi/fpm/fpm/fpm_php_trace.lo +sapi/fpm/fpm/fpm_process_ctl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c -o sapi/fpm/fpm/fpm_process_ctl.lo +sapi/fpm/fpm/fpm_request.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c -o sapi/fpm/fpm/fpm_request.lo +sapi/fpm/fpm/fpm_shm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c -o sapi/fpm/fpm/fpm_shm.lo +sapi/fpm/fpm/fpm_scoreboard.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c -o sapi/fpm/fpm/fpm_scoreboard.lo +sapi/fpm/fpm/fpm_signals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c -o sapi/fpm/fpm/fpm_signals.lo +sapi/fpm/fpm/fpm_sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c -o sapi/fpm/fpm/fpm_sockets.lo +sapi/fpm/fpm/fpm_status.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c -o sapi/fpm/fpm/fpm_status.lo +sapi/fpm/fpm/fpm_stdio.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c -o sapi/fpm/fpm/fpm_stdio.lo +sapi/fpm/fpm/fpm_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c -o sapi/fpm/fpm/fpm_unix.lo +sapi/fpm/fpm/fpm_worker_pool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c -o sapi/fpm/fpm/fpm_worker_pool.lo +sapi/fpm/fpm/zlog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c -o sapi/fpm/fpm/zlog.lo +sapi/fpm/fpm/events/select.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c -o sapi/fpm/fpm/events/select.lo +sapi/fpm/fpm/events/poll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c -o sapi/fpm/fpm/events/poll.lo +sapi/fpm/fpm/events/epoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c -o sapi/fpm/fpm/events/epoll.lo +sapi/fpm/fpm/events/kqueue.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c -o sapi/fpm/fpm/events/kqueue.lo +sapi/fpm/fpm/events/devpoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c -o sapi/fpm/fpm/events/devpoll.lo +sapi/fpm/fpm/events/port.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c -o sapi/fpm/fpm/events/port.lo +sapi/fpm/fpm/fpm_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c -o sapi/fpm/fpm/fpm_trace.lo +sapi/fpm/fpm/fpm_trace_mach.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c -o sapi/fpm/fpm/fpm_trace_mach.lo +ext/date/php_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c -o ext/date/php_date.lo +ext/date/lib/astro.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c -o ext/date/lib/astro.lo +ext/date/lib/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c -o ext/date/lib/dow.lo +ext/date/lib/parse_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo +ext/date/lib/parse_tz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo +ext/date/lib/timelib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c -o ext/date/lib/timelib.lo +ext/date/lib/tm2unixtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c -o ext/date/lib/tm2unixtime.lo +ext/date/lib/unixtime2tm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c -o ext/date/lib/unixtime2tm.lo +ext/date/lib/parse_iso_intervals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c -o ext/date/lib/parse_iso_intervals.lo +ext/date/lib/interval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c -o ext/date/lib/interval.lo +ext/ereg/ereg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c -o ext/ereg/ereg.lo +ext/ereg/regex/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c -o ext/ereg/regex/regcomp.lo +ext/ereg/regex/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c -o ext/ereg/regex/regexec.lo +ext/ereg/regex/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c -o ext/ereg/regex/regerror.lo +ext/ereg/regex/regfree.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c -o ext/ereg/regex/regfree.lo +ext/libxml/libxml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/libxml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c -o ext/libxml/libxml.lo +ext/openssl/openssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c -o ext/openssl/openssl.lo +ext/openssl/xp_ssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo +ext/pcre/pcrelib/pcre_chartables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo +ext/pcre/pcrelib/pcre_ucd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c -o ext/pcre/pcrelib/pcre_ucd.lo +ext/pcre/pcrelib/pcre_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c -o ext/pcre/pcrelib/pcre_compile.lo +ext/pcre/pcrelib/pcre_config.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c -o ext/pcre/pcrelib/pcre_config.lo +ext/pcre/pcrelib/pcre_exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo +ext/pcre/pcrelib/pcre_fullinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c -o ext/pcre/pcrelib/pcre_fullinfo.lo +ext/pcre/pcrelib/pcre_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c -o ext/pcre/pcrelib/pcre_get.lo +ext/pcre/pcrelib/pcre_globals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c -o ext/pcre/pcrelib/pcre_globals.lo +ext/pcre/pcrelib/pcre_maketables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c -o ext/pcre/pcrelib/pcre_maketables.lo +ext/pcre/pcrelib/pcre_newline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c -o ext/pcre/pcrelib/pcre_newline.lo +ext/pcre/pcrelib/pcre_ord2utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c -o ext/pcre/pcrelib/pcre_ord2utf8.lo +ext/pcre/pcrelib/pcre_refcount.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c -o ext/pcre/pcrelib/pcre_refcount.lo +ext/pcre/pcrelib/pcre_study.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c -o ext/pcre/pcrelib/pcre_study.lo +ext/pcre/pcrelib/pcre_tables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c -o ext/pcre/pcrelib/pcre_tables.lo +ext/pcre/pcrelib/pcre_valid_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c -o ext/pcre/pcrelib/pcre_valid_utf8.lo +ext/pcre/pcrelib/pcre_version.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c -o ext/pcre/pcrelib/pcre_version.lo +ext/pcre/pcrelib/pcre_xclass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c -o ext/pcre/pcrelib/pcre_xclass.lo +ext/pcre/php_pcre.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo +ext/sqlite3/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo +ext/sqlite3/libsqlite/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo +ext/zlib/zlib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c -o ext/zlib/zlib.lo +ext/zlib/zlib_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo +ext/zlib/zlib_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c -o ext/zlib/zlib_filter.lo +ext/bcmath/bcmath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo +ext/bcmath/libbcmath/src/add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c -o ext/bcmath/libbcmath/src/add.lo +ext/bcmath/libbcmath/src/div.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c -o ext/bcmath/libbcmath/src/div.lo +ext/bcmath/libbcmath/src/init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c -o ext/bcmath/libbcmath/src/init.lo +ext/bcmath/libbcmath/src/neg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo +ext/bcmath/libbcmath/src/outofmem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c -o ext/bcmath/libbcmath/src/outofmem.lo +ext/bcmath/libbcmath/src/raisemod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo +ext/bcmath/libbcmath/src/rt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c -o ext/bcmath/libbcmath/src/rt.lo +ext/bcmath/libbcmath/src/sub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c -o ext/bcmath/libbcmath/src/sub.lo +ext/bcmath/libbcmath/src/compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c -o ext/bcmath/libbcmath/src/compare.lo +ext/bcmath/libbcmath/src/divmod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c -o ext/bcmath/libbcmath/src/divmod.lo +ext/bcmath/libbcmath/src/int2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c -o ext/bcmath/libbcmath/src/int2num.lo +ext/bcmath/libbcmath/src/num2long.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c -o ext/bcmath/libbcmath/src/num2long.lo +ext/bcmath/libbcmath/src/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c -o ext/bcmath/libbcmath/src/output.lo +ext/bcmath/libbcmath/src/recmul.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c -o ext/bcmath/libbcmath/src/recmul.lo +ext/bcmath/libbcmath/src/sqrt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c -o ext/bcmath/libbcmath/src/sqrt.lo +ext/bcmath/libbcmath/src/zero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c -o ext/bcmath/libbcmath/src/zero.lo +ext/bcmath/libbcmath/src/debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c -o ext/bcmath/libbcmath/src/debug.lo +ext/bcmath/libbcmath/src/doaddsub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c -o ext/bcmath/libbcmath/src/doaddsub.lo +ext/bcmath/libbcmath/src/nearzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c -o ext/bcmath/libbcmath/src/nearzero.lo +ext/bcmath/libbcmath/src/num2str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c -o ext/bcmath/libbcmath/src/num2str.lo +ext/bcmath/libbcmath/src/raise.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c -o ext/bcmath/libbcmath/src/raise.lo +ext/bcmath/libbcmath/src/rmzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c -o ext/bcmath/libbcmath/src/rmzero.lo +ext/bcmath/libbcmath/src/str2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c -o ext/bcmath/libbcmath/src/str2num.lo +ext/bz2/bz2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c -o ext/bz2/bz2.lo +ext/bz2/bz2_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo +ext/calendar/calendar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c -o ext/calendar/calendar.lo +ext/calendar/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c -o ext/calendar/dow.lo +ext/calendar/french.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c -o ext/calendar/french.lo +ext/calendar/gregor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c -o ext/calendar/gregor.lo +ext/calendar/jewish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c -o ext/calendar/jewish.lo +ext/calendar/julian.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c -o ext/calendar/julian.lo +ext/calendar/easter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c -o ext/calendar/easter.lo +ext/calendar/cal_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c -o ext/calendar/cal_unix.lo +ext/ctype/ctype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/ctype/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c -o ext/ctype/ctype.lo +ext/curl/interface.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c -o ext/curl/interface.lo +ext/curl/multi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c -o ext/curl/multi.lo +ext/curl/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c -o ext/curl/streams.lo +ext/dom/php_dom.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c -o ext/dom/php_dom.lo +ext/dom/attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c -o ext/dom/attr.lo +ext/dom/document.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c -o ext/dom/document.lo +ext/dom/domerrorhandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c -o ext/dom/domerrorhandler.lo +ext/dom/domstringlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c -o ext/dom/domstringlist.lo +ext/dom/domexception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c -o ext/dom/domexception.lo +ext/dom/namelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c -o ext/dom/namelist.lo +ext/dom/processinginstruction.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c -o ext/dom/processinginstruction.lo +ext/dom/cdatasection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c -o ext/dom/cdatasection.lo +ext/dom/documentfragment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c -o ext/dom/documentfragment.lo +ext/dom/domimplementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo +ext/dom/element.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c -o ext/dom/element.lo +ext/dom/node.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c -o ext/dom/node.lo +ext/dom/string_extend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c -o ext/dom/string_extend.lo +ext/dom/characterdata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c -o ext/dom/characterdata.lo +ext/dom/documenttype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c -o ext/dom/documenttype.lo +ext/dom/domimplementationlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo +ext/dom/entity.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c -o ext/dom/entity.lo +ext/dom/nodelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c -o ext/dom/nodelist.lo +ext/dom/text.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c -o ext/dom/text.lo +ext/dom/comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c -o ext/dom/comment.lo +ext/dom/domconfiguration.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c -o ext/dom/domconfiguration.lo +ext/dom/domimplementationsource.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c -o ext/dom/domimplementationsource.lo +ext/dom/entityreference.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c -o ext/dom/entityreference.lo +ext/dom/notation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c -o ext/dom/notation.lo +ext/dom/xpath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c -o ext/dom/xpath.lo +ext/dom/dom_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c -o ext/dom/dom_iterators.lo +ext/dom/typeinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c -o ext/dom/typeinfo.lo +ext/dom/domerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c -o ext/dom/domerror.lo +ext/dom/domlocator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c -o ext/dom/domlocator.lo +ext/dom/namednodemap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c -o ext/dom/namednodemap.lo +ext/dom/userdatahandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo +ext/exif/exif.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c + $(LIBTOOL) --mode=compile $(CC) -Iext/exif/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c -o ext/exif/exif.lo +ext/fileinfo/fileinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo +ext/fileinfo/libmagic/apptype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c -o ext/fileinfo/libmagic/apptype.lo +ext/fileinfo/libmagic/ascmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c -o ext/fileinfo/libmagic/ascmagic.lo +ext/fileinfo/libmagic/cdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c -o ext/fileinfo/libmagic/cdf.lo +ext/fileinfo/libmagic/cdf_time.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c -o ext/fileinfo/libmagic/cdf_time.lo +ext/fileinfo/libmagic/compress.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c -o ext/fileinfo/libmagic/compress.lo +ext/fileinfo/libmagic/encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo +ext/fileinfo/libmagic/fsmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c -o ext/fileinfo/libmagic/fsmagic.lo +ext/fileinfo/libmagic/funcs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c -o ext/fileinfo/libmagic/funcs.lo +ext/fileinfo/libmagic/is_tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c -o ext/fileinfo/libmagic/is_tar.lo +ext/fileinfo/libmagic/magic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c -o ext/fileinfo/libmagic/magic.lo +ext/fileinfo/libmagic/print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c -o ext/fileinfo/libmagic/print.lo +ext/fileinfo/libmagic/readcdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c -o ext/fileinfo/libmagic/readcdf.lo +ext/fileinfo/libmagic/readelf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo +ext/fileinfo/libmagic/softmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo +ext/filter/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c -o ext/filter/filter.lo +ext/filter/sanitizing_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c -o ext/filter/sanitizing_filters.lo +ext/filter/logical_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c -o ext/filter/logical_filters.lo +ext/filter/callback_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c -o ext/filter/callback_filter.lo +ext/gettext/gettext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c + $(LIBTOOL) --mode=compile $(CC) -Iext/gettext/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c -o ext/gettext/gettext.lo +ext/hash/hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c -o ext/hash/hash.lo +ext/hash/hash_md.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c -o ext/hash/hash_md.lo +ext/hash/hash_sha.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c -o ext/hash/hash_sha.lo +ext/hash/hash_ripemd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c -o ext/hash/hash_ripemd.lo +ext/hash/hash_haval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c -o ext/hash/hash_haval.lo +ext/hash/hash_tiger.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c -o ext/hash/hash_tiger.lo +ext/hash/hash_gost.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c -o ext/hash/hash_gost.lo +ext/hash/hash_snefru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c -o ext/hash/hash_snefru.lo +ext/hash/hash_whirlpool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c -o ext/hash/hash_whirlpool.lo +ext/hash/hash_adler32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c -o ext/hash/hash_adler32.lo +ext/hash/hash_crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c -o ext/hash/hash_crc32.lo +ext/hash/hash_salsa.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c -o ext/hash/hash_salsa.lo +ext/intl/php_intl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c -o ext/intl/php_intl.lo +ext/intl/intl_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c -o ext/intl/intl_error.lo +ext/intl/intl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c -o ext/intl/intl_convert.lo +ext/intl/collator/collator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo +ext/intl/collator/collator_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c -o ext/intl/collator/collator_class.lo +ext/intl/collator/collator_sort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo +ext/intl/collator/collator_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c -o ext/intl/collator/collator_convert.lo +ext/intl/collator/collator_locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c -o ext/intl/collator/collator_locale.lo +ext/intl/collator/collator_compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c -o ext/intl/collator/collator_compare.lo +ext/intl/collator/collator_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c -o ext/intl/collator/collator_attr.lo +ext/intl/collator/collator_create.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c -o ext/intl/collator/collator_create.lo +ext/intl/collator/collator_is_numeric.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c -o ext/intl/collator/collator_is_numeric.lo +ext/intl/collator/collator_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c -o ext/intl/collator/collator_error.lo +ext/intl/common/common_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c -o ext/intl/common/common_error.lo +ext/intl/formatter/formatter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c -o ext/intl/formatter/formatter.lo +ext/intl/formatter/formatter_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c -o ext/intl/formatter/formatter_main.lo +ext/intl/formatter/formatter_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c -o ext/intl/formatter/formatter_class.lo +ext/intl/formatter/formatter_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c -o ext/intl/formatter/formatter_attr.lo +ext/intl/formatter/formatter_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c -o ext/intl/formatter/formatter_data.lo +ext/intl/formatter/formatter_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c -o ext/intl/formatter/formatter_format.lo +ext/intl/formatter/formatter_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c -o ext/intl/formatter/formatter_parse.lo +ext/intl/normalizer/normalizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c -o ext/intl/normalizer/normalizer.lo +ext/intl/normalizer/normalizer_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c -o ext/intl/normalizer/normalizer_class.lo +ext/intl/normalizer/normalizer_normalize.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c -o ext/intl/normalizer/normalizer_normalize.lo +ext/intl/locale/locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c -o ext/intl/locale/locale.lo +ext/intl/locale/locale_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c -o ext/intl/locale/locale_class.lo +ext/intl/locale/locale_methods.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c -o ext/intl/locale/locale_methods.lo +ext/intl/dateformat/dateformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c -o ext/intl/dateformat/dateformat.lo +ext/intl/dateformat/dateformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c -o ext/intl/dateformat/dateformat_class.lo +ext/intl/dateformat/dateformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c -o ext/intl/dateformat/dateformat_attr.lo +ext/intl/dateformat/dateformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c -o ext/intl/dateformat/dateformat_data.lo +ext/intl/dateformat/dateformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c -o ext/intl/dateformat/dateformat_format.lo +ext/intl/dateformat/dateformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c -o ext/intl/dateformat/dateformat_parse.lo +ext/intl/msgformat/msgformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c -o ext/intl/msgformat/msgformat.lo +ext/intl/msgformat/msgformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c -o ext/intl/msgformat/msgformat_attr.lo +ext/intl/msgformat/msgformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c -o ext/intl/msgformat/msgformat_class.lo +ext/intl/msgformat/msgformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c -o ext/intl/msgformat/msgformat_data.lo +ext/intl/msgformat/msgformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c -o ext/intl/msgformat/msgformat_format.lo +ext/intl/msgformat/msgformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp -o ext/intl/msgformat/msgformat_helpers.lo +ext/intl/msgformat/msgformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c -o ext/intl/msgformat/msgformat_parse.lo +ext/intl/grapheme/grapheme_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c -o ext/intl/grapheme/grapheme_string.lo +ext/intl/grapheme/grapheme_util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c -o ext/intl/grapheme/grapheme_util.lo +ext/intl/resourcebundle/resourcebundle.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c -o ext/intl/resourcebundle/resourcebundle.lo +ext/intl/resourcebundle/resourcebundle_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c -o ext/intl/resourcebundle/resourcebundle_class.lo +ext/intl/resourcebundle/resourcebundle_iterator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c -o ext/intl/resourcebundle/resourcebundle_iterator.lo +ext/intl/idn/idn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c -o ext/intl/idn/idn.lo +ext/json/json.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c -o ext/json/json.lo +ext/json/utf8_to_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c -o ext/json/utf8_to_utf16.lo +ext/json/utf8_decode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c -o ext/json/utf8_decode.lo +ext/json/JSON_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c -o ext/json/JSON_parser.lo +ext/mbstring/oniguruma/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo +ext/mbstring/oniguruma/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo +ext/mbstring/oniguruma/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c -o ext/mbstring/oniguruma/regexec.lo +ext/mbstring/oniguruma/reggnu.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c -o ext/mbstring/oniguruma/reggnu.lo +ext/mbstring/oniguruma/regparse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo +ext/mbstring/oniguruma/regenc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c -o ext/mbstring/oniguruma/regenc.lo +ext/mbstring/oniguruma/regext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c -o ext/mbstring/oniguruma/regext.lo +ext/mbstring/oniguruma/regsyntax.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c -o ext/mbstring/oniguruma/regsyntax.lo +ext/mbstring/oniguruma/regtrav.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c -o ext/mbstring/oniguruma/regtrav.lo +ext/mbstring/oniguruma/regversion.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c -o ext/mbstring/oniguruma/regversion.lo +ext/mbstring/oniguruma/st.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c -o ext/mbstring/oniguruma/st.lo +ext/mbstring/oniguruma/enc/unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo +ext/mbstring/oniguruma/enc/ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c -o ext/mbstring/oniguruma/enc/ascii.lo +ext/mbstring/oniguruma/enc/utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c -o ext/mbstring/oniguruma/enc/utf8.lo +ext/mbstring/oniguruma/enc/euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c -o ext/mbstring/oniguruma/enc/euc_jp.lo +ext/mbstring/oniguruma/enc/euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c -o ext/mbstring/oniguruma/enc/euc_tw.lo +ext/mbstring/oniguruma/enc/euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c -o ext/mbstring/oniguruma/enc/euc_kr.lo +ext/mbstring/oniguruma/enc/sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c -o ext/mbstring/oniguruma/enc/sjis.lo +ext/mbstring/oniguruma/enc/iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c -o ext/mbstring/oniguruma/enc/iso8859_1.lo +ext/mbstring/oniguruma/enc/iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c -o ext/mbstring/oniguruma/enc/iso8859_2.lo +ext/mbstring/oniguruma/enc/iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c -o ext/mbstring/oniguruma/enc/iso8859_3.lo +ext/mbstring/oniguruma/enc/iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c -o ext/mbstring/oniguruma/enc/iso8859_4.lo +ext/mbstring/oniguruma/enc/iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c -o ext/mbstring/oniguruma/enc/iso8859_5.lo +ext/mbstring/oniguruma/enc/iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c -o ext/mbstring/oniguruma/enc/iso8859_6.lo +ext/mbstring/oniguruma/enc/iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c -o ext/mbstring/oniguruma/enc/iso8859_7.lo +ext/mbstring/oniguruma/enc/iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c -o ext/mbstring/oniguruma/enc/iso8859_8.lo +ext/mbstring/oniguruma/enc/iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c -o ext/mbstring/oniguruma/enc/iso8859_9.lo +ext/mbstring/oniguruma/enc/iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c -o ext/mbstring/oniguruma/enc/iso8859_10.lo +ext/mbstring/oniguruma/enc/iso8859_11.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c -o ext/mbstring/oniguruma/enc/iso8859_11.lo +ext/mbstring/oniguruma/enc/iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c -o ext/mbstring/oniguruma/enc/iso8859_13.lo +ext/mbstring/oniguruma/enc/iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c -o ext/mbstring/oniguruma/enc/iso8859_14.lo +ext/mbstring/oniguruma/enc/iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c -o ext/mbstring/oniguruma/enc/iso8859_15.lo +ext/mbstring/oniguruma/enc/iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c -o ext/mbstring/oniguruma/enc/iso8859_16.lo +ext/mbstring/oniguruma/enc/koi8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c -o ext/mbstring/oniguruma/enc/koi8.lo +ext/mbstring/oniguruma/enc/koi8_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c -o ext/mbstring/oniguruma/enc/koi8_r.lo +ext/mbstring/oniguruma/enc/big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c -o ext/mbstring/oniguruma/enc/big5.lo +ext/mbstring/oniguruma/enc/utf16_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c -o ext/mbstring/oniguruma/enc/utf16_be.lo +ext/mbstring/oniguruma/enc/utf16_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c -o ext/mbstring/oniguruma/enc/utf16_le.lo +ext/mbstring/oniguruma/enc/utf32_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c -o ext/mbstring/oniguruma/enc/utf32_be.lo +ext/mbstring/oniguruma/enc/utf32_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c -o ext/mbstring/oniguruma/enc/utf32_le.lo +ext/mbstring/libmbfl/filters/html_entities.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c -o ext/mbstring/libmbfl/filters/html_entities.lo +ext/mbstring/libmbfl/filters/mbfilter_7bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c -o ext/mbstring/libmbfl/filters/mbfilter_7bit.lo +ext/mbstring/libmbfl/filters/mbfilter_ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c -o ext/mbstring/libmbfl/filters/mbfilter_ascii.lo +ext/mbstring/libmbfl/filters/mbfilter_base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c -o ext/mbstring/libmbfl/filters/mbfilter_base64.lo +ext/mbstring/libmbfl/filters/mbfilter_big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c -o ext/mbstring/libmbfl/filters/mbfilter_big5.lo +ext/mbstring/libmbfl/filters/mbfilter_byte2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c -o ext/mbstring/libmbfl/filters/mbfilter_byte2.lo +ext/mbstring/libmbfl/filters/mbfilter_byte4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c -o ext/mbstring/libmbfl/filters/mbfilter_byte4.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo +ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c -o ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo +ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp850.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c -o ext/mbstring/libmbfl/filters/mbfilter_cp850.lo +ext/mbstring/libmbfl/filters/mbfilter_cp866.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c -o ext/mbstring/libmbfl/filters/mbfilter_cp866.lo +ext/mbstring/libmbfl/filters/mbfilter_cp932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp936.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c -o ext/mbstring/libmbfl/filters/mbfilter_cp936.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo +ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c -o ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo +ext/mbstring/libmbfl/filters/mbfilter_hz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c -o ext/mbstring/libmbfl/filters/mbfilter_hz.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo +ext/mbstring/libmbfl/filters/mbfilter_jis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c -o ext/mbstring/libmbfl/filters/mbfilter_jis.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo +ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c -o ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo +ext/mbstring/libmbfl/filters/mbfilter_qprint.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c -o ext/mbstring/libmbfl/filters/mbfilter_qprint.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo +ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c -o ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo +ext/mbstring/libmbfl/filters/mbfilter_uhc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c -o ext/mbstring/libmbfl/filters/mbfilter_uhc.lo +ext/mbstring/libmbfl/filters/mbfilter_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c -o ext/mbstring/libmbfl/filters/mbfilter_utf16.lo +ext/mbstring/libmbfl/filters/mbfilter_utf32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c -o ext/mbstring/libmbfl/filters/mbfilter_utf32.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8.lo +ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c -o ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo +ext/mbstring/libmbfl/mbfl/mbfilter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c -o ext/mbstring/libmbfl/mbfl/mbfilter.lo +ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c -o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo +ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c -o ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo +ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c -o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo +ext/mbstring/libmbfl/mbfl/mbfl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c -o ext/mbstring/libmbfl/mbfl/mbfl_convert.lo +ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c -o ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo +ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c -o ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo +ext/mbstring/libmbfl/mbfl/mbfl_ident.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c -o ext/mbstring/libmbfl/mbfl/mbfl_ident.lo +ext/mbstring/libmbfl/mbfl/mbfl_language.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c -o ext/mbstring/libmbfl/mbfl/mbfl_language.lo +ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c -o ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo +ext/mbstring/libmbfl/mbfl/mbfl_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c -o ext/mbstring/libmbfl/mbfl/mbfl_string.lo +ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c -o ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo +ext/mbstring/libmbfl/nls/nls_de.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c -o ext/mbstring/libmbfl/nls/nls_de.lo +ext/mbstring/libmbfl/nls/nls_en.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c -o ext/mbstring/libmbfl/nls/nls_en.lo +ext/mbstring/libmbfl/nls/nls_ja.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c -o ext/mbstring/libmbfl/nls/nls_ja.lo +ext/mbstring/libmbfl/nls/nls_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c -o ext/mbstring/libmbfl/nls/nls_kr.lo +ext/mbstring/libmbfl/nls/nls_neutral.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c -o ext/mbstring/libmbfl/nls/nls_neutral.lo +ext/mbstring/libmbfl/nls/nls_ru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c -o ext/mbstring/libmbfl/nls/nls_ru.lo +ext/mbstring/libmbfl/nls/nls_uni.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c -o ext/mbstring/libmbfl/nls/nls_uni.lo +ext/mbstring/libmbfl/nls/nls_zh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c -o ext/mbstring/libmbfl/nls/nls_zh.lo +ext/mbstring/libmbfl/nls/nls_hy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c -o ext/mbstring/libmbfl/nls/nls_hy.lo +ext/mbstring/libmbfl/nls/nls_tr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c -o ext/mbstring/libmbfl/nls/nls_tr.lo +ext/mbstring/libmbfl/nls/nls_ua.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c -o ext/mbstring/libmbfl/nls/nls_ua.lo +ext/mbstring/mbstring.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo +ext/mbstring/php_unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c -o ext/mbstring/php_unicode.lo +ext/mbstring/mb_gpc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c -o ext/mbstring/mb_gpc.lo +ext/mbstring/php_mbregex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c -o ext/mbstring/php_mbregex.lo +ext/mcrypt/mcrypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo +ext/mcrypt/mcrypt_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c -o ext/mcrypt/mcrypt_filter.lo +ext/mysql/php_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo +ext/mysqli/mysqli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo +ext/mysqli/mysqli_api.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo +ext/mysqli/mysqli_prop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo +ext/mysqli/mysqli_nonapi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo +ext/mysqli/mysqli_fe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo +ext/mysqli/mysqli_report.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo +ext/mysqli/mysqli_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo +ext/mysqli/mysqli_warning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo +ext/mysqli/mysqli_exception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo +ext/pcntl/pcntl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c -o ext/pcntl/pcntl.lo +ext/pcntl/php_signal.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c -o ext/pcntl/php_signal.lo +ext/pdo/pdo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c -o ext/pdo/pdo.lo +ext/pdo/pdo_dbh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c -o ext/pdo/pdo_dbh.lo +ext/pdo/pdo_stmt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c -o ext/pdo/pdo_stmt.lo +ext/pdo/pdo_sql_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c -o ext/pdo/pdo_sql_parser.lo +ext/pdo/pdo_sqlstate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo +ext/pdo_mysql/pdo_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo +ext/pdo_mysql/mysql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo +ext/pdo_mysql/mysql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo +ext/pdo_pgsql/pdo_pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo +ext/pdo_pgsql/pgsql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c -o ext/pdo_pgsql/pgsql_driver.lo +ext/pdo_pgsql/pgsql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c -o ext/pdo_pgsql/pgsql_statement.lo +ext/pdo_sqlite/pdo_sqlite.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo +ext/pdo_sqlite/sqlite_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo +ext/pdo_sqlite/sqlite_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo +ext/pgsql/pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo +ext/phar/util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c -o ext/phar/util.lo +ext/phar/tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c -o ext/phar/tar.lo +ext/phar/zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c -o ext/phar/zip.lo +ext/phar/stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c -o ext/phar/stream.lo +ext/phar/func_interceptors.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c -o ext/phar/func_interceptors.lo +ext/phar/dirstream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c -o ext/phar/dirstream.lo +ext/phar/phar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c -o ext/phar/phar.lo +ext/phar/phar_object.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c -o ext/phar/phar_object.lo +ext/phar/phar_path_check.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo +ext/posix/posix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/posix/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c -o ext/posix/posix.lo +ext/readline/readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c -o ext/readline/readline.lo +ext/reflection/php_reflection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/reflection/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo +ext/session/session.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c -o ext/session/session.lo +ext/session/mod_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c -o ext/session/mod_files.lo +ext/session/mod_mm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c -o ext/session/mod_mm.lo +ext/session/mod_user.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c -o ext/session/mod_user.lo +ext/shmop/shmop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/shmop/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c -o ext/shmop/shmop.lo +ext/simplexml/simplexml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo +ext/simplexml/sxe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo +ext/soap/soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c -o ext/soap/soap.lo +ext/soap/php_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo +ext/soap/php_http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c -o ext/soap/php_http.lo +ext/soap/php_packet_soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c -o ext/soap/php_packet_soap.lo +ext/soap/php_schema.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c -o ext/soap/php_schema.lo +ext/soap/php_sdl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c -o ext/soap/php_sdl.lo +ext/soap/php_xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c -o ext/soap/php_xml.lo +ext/sockets/sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c -o ext/sockets/sockets.lo +ext/spl/php_spl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c -o ext/spl/php_spl.lo +ext/spl/spl_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c -o ext/spl/spl_functions.lo +ext/spl/spl_engine.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c -o ext/spl/spl_engine.lo +ext/spl/spl_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c -o ext/spl/spl_iterators.lo +ext/spl/spl_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c -o ext/spl/spl_array.lo +ext/spl/spl_directory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c -o ext/spl/spl_directory.lo +ext/spl/spl_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c -o ext/spl/spl_exceptions.lo +ext/spl/spl_observer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c -o ext/spl/spl_observer.lo +ext/spl/spl_dllist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c -o ext/spl/spl_dllist.lo +ext/spl/spl_heap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c -o ext/spl/spl_heap.lo +ext/spl/spl_fixedarray.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c -o ext/spl/spl_fixedarray.lo +ext/standard/crypt_freesec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c -o ext/standard/crypt_freesec.lo +ext/standard/crypt_blowfish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c -o ext/standard/crypt_blowfish.lo +ext/standard/crypt_sha512.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo +ext/standard/crypt_sha256.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c -o ext/standard/crypt_sha256.lo +ext/standard/php_crypt_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo +ext/standard/array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c -o ext/standard/array.lo +ext/standard/base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c -o ext/standard/base64.lo +ext/standard/basic_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo +ext/standard/browscap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c -o ext/standard/browscap.lo +ext/standard/crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c -o ext/standard/crc32.lo +ext/standard/crypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c -o ext/standard/crypt.lo +ext/standard/cyr_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c -o ext/standard/cyr_convert.lo +ext/standard/datetime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c -o ext/standard/datetime.lo +ext/standard/dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c -o ext/standard/dir.lo +ext/standard/dl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c -o ext/standard/dl.lo +ext/standard/dns.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c -o ext/standard/dns.lo +ext/standard/exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c -o ext/standard/exec.lo +ext/standard/file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c -o ext/standard/file.lo +ext/standard/filestat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c -o ext/standard/filestat.lo +ext/standard/flock_compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo +ext/standard/formatted_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo +ext/standard/fsock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c -o ext/standard/fsock.lo +ext/standard/head.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c -o ext/standard/head.lo +ext/standard/html.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c -o ext/standard/html.lo +ext/standard/image.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c -o ext/standard/image.lo +ext/standard/info.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c -o ext/standard/info.lo +ext/standard/iptc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c -o ext/standard/iptc.lo +ext/standard/lcg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c -o ext/standard/lcg.lo +ext/standard/link.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c -o ext/standard/link.lo +ext/standard/mail.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c -o ext/standard/mail.lo +ext/standard/math.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c -o ext/standard/math.lo +ext/standard/md5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c -o ext/standard/md5.lo +ext/standard/metaphone.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c -o ext/standard/metaphone.lo +ext/standard/microtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c -o ext/standard/microtime.lo +ext/standard/pack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c -o ext/standard/pack.lo +ext/standard/pageinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c -o ext/standard/pageinfo.lo +ext/standard/quot_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c -o ext/standard/quot_print.lo +ext/standard/rand.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c -o ext/standard/rand.lo +ext/standard/soundex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c -o ext/standard/soundex.lo +ext/standard/string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c -o ext/standard/string.lo +ext/standard/scanf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c -o ext/standard/scanf.lo +ext/standard/syslog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c -o ext/standard/syslog.lo +ext/standard/type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c -o ext/standard/type.lo +ext/standard/uniqid.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c -o ext/standard/uniqid.lo +ext/standard/url.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c -o ext/standard/url.lo +ext/standard/var.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c -o ext/standard/var.lo +ext/standard/versioning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c -o ext/standard/versioning.lo +ext/standard/assert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c -o ext/standard/assert.lo +ext/standard/strnatcmp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c -o ext/standard/strnatcmp.lo +ext/standard/levenshtein.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c -o ext/standard/levenshtein.lo +ext/standard/incomplete_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c -o ext/standard/incomplete_class.lo +ext/standard/url_scanner_ex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c -o ext/standard/url_scanner_ex.lo +ext/standard/ftp_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c -o ext/standard/ftp_fopen_wrapper.lo +ext/standard/http_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.lo +ext/standard/php_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c -o ext/standard/php_fopen_wrapper.lo +ext/standard/credits.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c -o ext/standard/credits.lo +ext/standard/css.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c -o ext/standard/css.lo +ext/standard/var_unserializer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c -o ext/standard/var_unserializer.lo +ext/standard/ftok.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c -o ext/standard/ftok.lo +ext/standard/sha1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c -o ext/standard/sha1.lo +ext/standard/user_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c -o ext/standard/user_filters.lo +ext/standard/uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c -o ext/standard/uuencode.lo +ext/standard/filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c -o ext/standard/filters.lo +ext/standard/proc_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c -o ext/standard/proc_open.lo +ext/standard/streamsfuncs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo +ext/standard/http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c -o ext/standard/http.lo +ext/sysvmsg/sysvmsg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvmsg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.lo +ext/sysvsem/sysvsem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvsem/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c -o ext/sysvsem/sysvsem.lo +ext/sysvshm/sysvshm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvshm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c -o ext/sysvshm/sysvshm.lo +ext/tokenizer/tokenizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo +ext/tokenizer/tokenizer_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c -o ext/tokenizer/tokenizer_data.lo +ext/xml/xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c -o ext/xml/xml.lo +ext/xml/compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c -o ext/xml/compat.lo +ext/xmlreader/php_xmlreader.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlreader/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c -o ext/xmlreader/php_xmlreader.lo +ext/xmlwriter/php_xmlwriter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlwriter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c -o ext/xmlwriter/php_xmlwriter.lo +ext/xsl/php_xsl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo +ext/xsl/xsltprocessor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c -o ext/xsl/xsltprocessor.lo +ext/zip/php_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c -o ext/zip/php_zip.lo +ext/zip/zip_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c -o ext/zip/zip_stream.lo +ext/zip/lib/zip_add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c -o ext/zip/lib/zip_add.lo +ext/zip/lib/zip_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c -o ext/zip/lib/zip_error.lo +ext/zip/lib/zip_fclose.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c -o ext/zip/lib/zip_fclose.lo +ext/zip/lib/zip_fread.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c -o ext/zip/lib/zip_fread.lo +ext/zip/lib/zip_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c -o ext/zip/lib/zip_open.lo +ext/zip/lib/zip_source_filep.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c -o ext/zip/lib/zip_source_filep.lo +ext/zip/lib/zip_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c -o ext/zip/lib/zip_strerror.lo +ext/zip/lib/zip_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c -o ext/zip/lib/zip_close.lo +ext/zip/lib/zip_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c -o ext/zip/lib/zip_error_get.lo +ext/zip/lib/zip_file_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c -o ext/zip/lib/zip_file_error_get.lo +ext/zip/lib/zip_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c -o ext/zip/lib/zip_free.lo +ext/zip/lib/zip_rename.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c -o ext/zip/lib/zip_rename.lo +ext/zip/lib/zip_source_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c -o ext/zip/lib/zip_source_free.lo +ext/zip/lib/zip_unchange_all.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c -o ext/zip/lib/zip_unchange_all.lo +ext/zip/lib/zip_delete.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c -o ext/zip/lib/zip_delete.lo +ext/zip/lib/zip_error_get_sys_type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c -o ext/zip/lib/zip_error_get_sys_type.lo +ext/zip/lib/zip_file_get_offset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c -o ext/zip/lib/zip_file_get_offset.lo +ext/zip/lib/zip_get_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c -o ext/zip/lib/zip_get_name.lo +ext/zip/lib/zip_replace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c -o ext/zip/lib/zip_replace.lo +ext/zip/lib/zip_source_function.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c -o ext/zip/lib/zip_source_function.lo +ext/zip/lib/zip_unchange.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c -o ext/zip/lib/zip_unchange.lo +ext/zip/lib/zip_dirent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c -o ext/zip/lib/zip_dirent.lo +ext/zip/lib/zip_error_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c -o ext/zip/lib/zip_error_strerror.lo +ext/zip/lib/zip_filerange_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c -o ext/zip/lib/zip_filerange_crc.lo +ext/zip/lib/zip_file_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c -o ext/zip/lib/zip_file_strerror.lo +ext/zip/lib/zip_get_num_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c -o ext/zip/lib/zip_get_num_files.lo +ext/zip/lib/zip_get_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c -o ext/zip/lib/zip_get_archive_flag.lo +ext/zip/lib/zip_set_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c -o ext/zip/lib/zip_set_archive_flag.lo +ext/zip/lib/zip_set_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c -o ext/zip/lib/zip_set_name.lo +ext/zip/lib/zip_source_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c -o ext/zip/lib/zip_source_zip.lo +ext/zip/lib/zip_unchange_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c -o ext/zip/lib/zip_unchange_data.lo +ext/zip/lib/zip_entry_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c -o ext/zip/lib/zip_entry_free.lo +ext/zip/lib/zip_error_to_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c -o ext/zip/lib/zip_error_to_str.lo +ext/zip/lib/zip_fopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c -o ext/zip/lib/zip_fopen.lo +ext/zip/lib/zip_name_locate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c -o ext/zip/lib/zip_name_locate.lo +ext/zip/lib/zip_source_buffer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c -o ext/zip/lib/zip_source_buffer.lo +ext/zip/lib/zip_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c -o ext/zip/lib/zip_stat.lo +ext/zip/lib/zip_entry_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c -o ext/zip/lib/zip_entry_new.lo +ext/zip/lib/zip_err_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c -o ext/zip/lib/zip_err_str.lo +ext/zip/lib/zip_fopen_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c -o ext/zip/lib/zip_fopen_index.lo +ext/zip/lib/zip_get_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c -o ext/zip/lib/zip_get_archive_comment.lo +ext/zip/lib/zip_get_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c -o ext/zip/lib/zip_get_file_comment.lo +ext/zip/lib/zip_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c -o ext/zip/lib/zip_new.lo +ext/zip/lib/zip_source_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c -o ext/zip/lib/zip_source_file.lo +ext/zip/lib/zip_stat_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c -o ext/zip/lib/zip_stat_index.lo +ext/zip/lib/zip_set_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c -o ext/zip/lib/zip_set_archive_comment.lo +ext/zip/lib/zip_set_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c -o ext/zip/lib/zip_set_file_comment.lo +ext/zip/lib/zip_unchange_archive.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c -o ext/zip/lib/zip_unchange_archive.lo +ext/zip/lib/zip_memdup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c -o ext/zip/lib/zip_memdup.lo +ext/zip/lib/zip_stat_init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c -o ext/zip/lib/zip_stat_init.lo +ext/zip/lib/zip_add_dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c -o ext/zip/lib/zip_add_dir.lo +ext/zip/lib/zip_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c -o ext/zip/lib/zip_error_clear.lo +ext/zip/lib/zip_file_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c -o ext/zip/lib/zip_file_error_clear.lo +ext/zip/lib/zip_fdopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c -o ext/zip/lib/zip_fdopen.lo +ext/zip/lib/zip_fopen_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c -o ext/zip/lib/zip_fopen_encrypted.lo +ext/zip/lib/zip_fopen_index_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c -o ext/zip/lib/zip_fopen_index_encrypted.lo +ext/zip/lib/zip_get_compression_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c -o ext/zip/lib/zip_get_compression_implementation.lo +ext/zip/lib/zip_get_encryption_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c -o ext/zip/lib/zip_get_encryption_implementation.lo +ext/zip/lib/zip_get_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c -o ext/zip/lib/zip_get_file_extra.lo +ext/zip/lib/zip_get_num_entries.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c -o ext/zip/lib/zip_get_num_entries.lo +ext/zip/lib/zip_set_default_password.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c -o ext/zip/lib/zip_set_default_password.lo +ext/zip/lib/zip_set_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c -o ext/zip/lib/zip_set_file_extra.lo +ext/zip/lib/zip_source_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c -o ext/zip/lib/zip_source_close.lo +ext/zip/lib/zip_source_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c -o ext/zip/lib/zip_source_crc.lo +ext/zip/lib/zip_source_deflate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c -o ext/zip/lib/zip_source_deflate.lo +ext/zip/lib/zip_source_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c -o ext/zip/lib/zip_source_error.lo +ext/zip/lib/zip_source_layered.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c -o ext/zip/lib/zip_source_layered.lo +ext/zip/lib/zip_source_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c -o ext/zip/lib/zip_source_open.lo +ext/zip/lib/zip_source_pkware.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c -o ext/zip/lib/zip_source_pkware.lo +ext/zip/lib/zip_source_pop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c -o ext/zip/lib/zip_source_pop.lo +ext/zip/lib/zip_source_read.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c -o ext/zip/lib/zip_source_read.lo +ext/zip/lib/zip_source_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c -o ext/zip/lib/zip_source_stat.lo +ext/mysqlnd/mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c -o ext/mysqlnd/mysqlnd.lo +ext/mysqlnd/mysqlnd_charset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c -o ext/mysqlnd/mysqlnd_charset.lo +ext/mysqlnd/mysqlnd_wireprotocol.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c -o ext/mysqlnd/mysqlnd_wireprotocol.lo +ext/mysqlnd/mysqlnd_loaddata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c -o ext/mysqlnd/mysqlnd_loaddata.lo +ext/mysqlnd/mysqlnd_net.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c -o ext/mysqlnd/mysqlnd_net.lo +ext/mysqlnd/mysqlnd_statistics.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c -o ext/mysqlnd/mysqlnd_statistics.lo +ext/mysqlnd/mysqlnd_result.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c -o ext/mysqlnd/mysqlnd_result.lo +ext/mysqlnd/mysqlnd_result_meta.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c -o ext/mysqlnd/mysqlnd_result_meta.lo +ext/mysqlnd/mysqlnd_debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c -o ext/mysqlnd/mysqlnd_debug.lo +ext/mysqlnd/mysqlnd_block_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c -o ext/mysqlnd/mysqlnd_block_alloc.lo +ext/mysqlnd/php_mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c -o ext/mysqlnd/php_mysqlnd.lo +ext/mysqlnd/mysqlnd_ps.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c -o ext/mysqlnd/mysqlnd_ps.lo +ext/mysqlnd/mysqlnd_ps_codec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo +sapi/cli/php_cli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo +sapi/cli/php_cli_readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo +TSRM/TSRM.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c -o TSRM/TSRM.lo +TSRM/tsrm_strtok_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r.lo +TSRM/tsrm_virtual_cwd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c -o TSRM/tsrm_virtual_cwd.lo +main/main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c -o main/main.lo +main/snprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c -o main/snprintf.lo +main/spprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c -o main/spprintf.lo +main/php_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c -o main/php_sprintf.lo +main/safe_mode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c -o main/safe_mode.lo +main/fopen_wrappers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c -o main/fopen_wrappers.lo +main/alloca.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c -o main/alloca.lo +main/php_scandir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c -o main/php_scandir.lo +main/php_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c -o main/php_ini.lo +main/SAPI.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c -o main/SAPI.lo +main/rfc1867.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c -o main/rfc1867.lo +main/php_content_types.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c -o main/php_content_types.lo +main/strlcpy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c -o main/strlcpy.lo +main/strlcat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c -o main/strlcat.lo +main/mergesort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c -o main/mergesort.lo +main/reentrancy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c -o main/reentrancy.lo +main/php_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c -o main/php_variables.lo +main/php_ticks.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c -o main/php_ticks.lo +main/network.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c -o main/network.lo +main/php_open_temporary_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo +main/php_logos.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c -o main/php_logos.lo +main/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c -o main/output.lo +main/getopt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c -o main/getopt.lo +main/streams/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c -o main/streams/streams.lo +main/streams/cast.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c -o main/streams/cast.lo +main/streams/memory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c -o main/streams/memory.lo +main/streams/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c -o main/streams/filter.lo +main/streams/plain_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c -o main/streams/plain_wrapper.lo +main/streams/userspace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c -o main/streams/userspace.lo +main/streams/transports.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c -o main/streams/transports.lo +main/streams/xp_socket.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c -o main/streams/xp_socket.lo +main/streams/mmap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c -o main/streams/mmap.lo +main/streams/glob_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c -o main/streams/glob_wrapper.lo +main/internal_functions.lo: main/internal_functions.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions.c -o main/internal_functions.lo +main/internal_functions_cli.lo: main/internal_functions_cli.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions_cli.c -o main/internal_functions_cli.lo +Zend/zend_language_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo +Zend/zend_ini_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo +Zend/zend_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c -o Zend/zend_alloc.lo +Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c -o Zend/zend_compile.lo +Zend/zend_constants.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c -o Zend/zend_constants.lo +Zend/zend_dynamic_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c -o Zend/zend_dynamic_array.lo +Zend/zend_execute_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo +Zend/zend_highlight.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c -o Zend/zend_highlight.lo +Zend/zend_llist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c -o Zend/zend_llist.lo +Zend/zend_opcode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c -o Zend/zend_opcode.lo +Zend/zend_operators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c -o Zend/zend_operators.lo +Zend/zend_ptr_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c -o Zend/zend_ptr_stack.lo +Zend/zend_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c -o Zend/zend_stack.lo +Zend/zend_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c -o Zend/zend_variables.lo +Zend/zend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c -o Zend/zend.lo +Zend/zend_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c -o Zend/zend_API.lo +Zend/zend_extensions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c -o Zend/zend_extensions.lo +Zend/zend_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c -o Zend/zend_hash.lo +Zend/zend_list.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c -o Zend/zend_list.lo +Zend/zend_indent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c -o Zend/zend_indent.lo +Zend/zend_builtin_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c -o Zend/zend_builtin_functions.lo +Zend/zend_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c -o Zend/zend_sprintf.lo +Zend/zend_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c -o Zend/zend_ini.lo +Zend/zend_qsort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c -o Zend/zend_qsort.lo +Zend/zend_multibyte.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c -o Zend/zend_multibyte.lo +Zend/zend_ts_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c -o Zend/zend_ts_hash.lo +Zend/zend_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c -o Zend/zend_stream.lo +Zend/zend_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c -o Zend/zend_iterators.lo +Zend/zend_interfaces.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c -o Zend/zend_interfaces.lo +Zend/zend_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c -o Zend/zend_exceptions.lo +Zend/zend_strtod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c -o Zend/zend_strtod.lo +Zend/zend_gc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c -o Zend/zend_gc.lo +Zend/zend_closures.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c -o Zend/zend_closures.lo +Zend/zend_float.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c -o Zend/zend_float.lo +Zend/zend_objects.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c -o Zend/zend_objects.lo +Zend/zend_object_handlers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo +Zend/zend_objects_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo +Zend/zend_default_classes.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c -o Zend/zend_execute.lo diff --git a/tests/expected/php/5.3.29/Makefile.in b/tests/expected/php/5.3.29/Makefile.in new file mode 100644 index 000000000..513e55d30 --- /dev/null +++ b/tests/expected/php/5.3.29/Makefile.in @@ -0,0 +1,14 @@ +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $() --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo +SAPI_CGI_PATH = sapi/cgi/php-cgi +BUILD_CGI = $() --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH) +EXTRA_LDFLAGS_PROGRAM = +EXTRA_LIBS = -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt +ZEND_EXTRA_LIBS = +libphp$(PHP_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $() --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$() --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_VERSION).so diff --git a/tests/expected/php/5.5.17-apxs-patch/Makefile.global b/tests/expected/php/5.5.17-apxs-patch/Makefile.global new file mode 100644 index 000000000..3e652c4cc --- /dev/null +++ b/tests/expected/php/5.5.17-apxs-patch/Makefile.global @@ -0,0 +1,134 @@ +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_VERSION).module sapi/apache_hooks/libphp$(PHP_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h + rm -f php5.spec main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/mysqlnd/php_mysqlnd_config.h + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: diff --git a/tests/expected/php/5.5.17-apxs-patch/configure b/tests/expected/php/5.5.17-apxs-patch/configure new file mode 100755 index 000000000..b2931de9c --- /dev/null +++ b/tests/expected/php/5.5.17-apxs-patch/configure @@ -0,0 +1,115114 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +tagnames=${tagnames+${tagnames},}CXX + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= +PACKAGE_URL= + +ac_unique_file="README.GIT-RULES" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='LTLIBOBJS +LIBTOOL +NMEDIT +DSYMUTIL +STRIP +AR +ECHO +PHP_VERSION_ID +PHP_VERSION +PHP_LIBS +PHP_LDFLAGS +PEAR_INSTALLDIR +NATIVE_RPATHS +INSTALL_IT +EXTRA_INCLUDES +INCLUDES +ZEND_EXTRA_LIBS +EXTRA_LIBS +EXTRA_LDFLAGS_PROGRAM +EXTRA_LDFLAGS +EXTENSION_DIR +DEBUG_CFLAGS +program_suffix +program_prefix +php_abs_top_srcdir +php_abs_top_builddir +abs_srcdir +abs_builddir +PHP_INSTALLED_SAPIS +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR +EXPANDED_PHP_CONFIG_FILE_PATH +EXPANDED_LOCALSTATEDIR +EXPANDED_SYSCONFDIR +EXPANDED_DATADIR +EXPANDED_LIBDIR +EXPANDED_MANDIR +EXPANDED_SBINDIR +EXPANDED_BINDIR +EXPANDED_EXTENSION_DIR +EXPANDED_PEAR_INSTALLDIR +INCLUDE_PATH +INLINE_CFLAGS +RANLIB +SNMP_CONFIG +PDO_OCI_VERSION +PDO_OCI_DIR +PDO_OCI_SHARED_LIBADD +PDO_MYSQL_MODULE_TYPE +ODBC_TYPE +ODBC_LFLAGS +ODBC_LIBS +ODBC_INCLUDE +OCI8_ORACLE_VERSION +OCI8_DIR +OCI8_SHARED_LIBADD +MYSQL_INCLUDE +MYSQL_LIBS +MYSQL_MODULE_TYPE +CXXCPP +ac_ct_CXX +CXXFLAGS +CXX +ICU_CONFIG +OPENSSL_INCDIR_OPT +KRB5_CONFIG +LTP_GENHTML +LTP +ALLOCA +LIBOBJS +PROG_SENDMAIL +php_fpm_prefix +php_fpm_localstatedir +php_fpm_sysconfdir +php_fpm_group +php_fpm_user +php_fpm_systemd +PKG_CONFIG +SHLIB_DL_SUFFIX_NAME +SHLIB_SUFFIX_NAME +RE2C +YFLAGS +YACC +AWK +LN_S +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +CONFIGURE_OPTIONS +CONFIGURE_COMMAND +SED +EGREP +GREP +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_libdir +enable_rpath +enable_re2c_cgoto +enable_ +with_aolserver +with_apxs +with_apache +enable_mod_charset +with_apxs2filter +with_apxs2 +with_apache_hooks +with_apache_hooks_static +with_caudium +enable_cli +with_continuity +enable_embed +enable_fpm +with_fpm_user +with_fpm_group +with_fpm_systemd +with_isapi +with_litespeed +with_milter +with_nsapi +with_phttpd +with_pi3web +with_roxen +enable_roxen_zts +with_thttpd +with_tux +with_webjames +enable_cgi +enable_gcov +enable_debug +with_layout +with_config_file_path +with_config_file_scan_dir +enable_sigchild +enable_libgcc +enable_short_tags +enable_dmalloc +enable_ipv6 +enable_dtrace +enable_fd_setsize +enable_all +with_regex +enable_libxml +with_libxml_dir +with_openssl +with_kerberos +with_pcre_regex +with_sqlite3 +with_zlib +with_zlib_dir +enable_bcmath +with_bz2 +enable_calendar +enable_ctype +with_curl +enable_dba +with_qdbm +with_gdbm +with_ndbm +with_db4 +with_db3 +with_db2 +with_db1 +with_dbm +with_tcadb +with_cdb +enable_inifile +enable_flatfile +enable_dom +with_enchant +enable_exif +enable_fileinfo +enable_filter +with_pcre_dir +enable_ftp +with_openssl_dir +with_gd +with_vpx_dir +with_jpeg_dir +with_png_dir +with_xpm_dir +with_freetype_dir +with_t1lib +enable_gd_native_ttf +enable_gd_jis_conv +with_gettext +with_gmp +with_mhash +enable_hash +with_iconv +with_imap +with_imap_ssl +with_interbase +enable_intl +with_icu_dir +enable_json +with_ldap +with_ldap_sasl +enable_mbstring +enable_mbregex +enable_mbregex_backtrack +with_libmbfl +with_onig +with_mcrypt +with_mssql +with_mysql +with_mysql_sock +with_mysqli +enable_embedded_mysqli +with_oci8 +with_adabas +with_sapdb +with_solid +with_ibm_db2 +with_ODBCRouter +with_empress +with_empress_bcs +with_birdstep +with_custom_odbc +with_iodbc +with_esoob +with_unixODBC +with_dbmaker +enable_opcache +enable_pcntl +enable_pdo +with_pdo_dblib +with_pdo_firebird +with_pdo_mysql +with_pdo_oci +with_pdo_odbc +with_pdo_pgsql +with_pdo_sqlite +with_pgsql +enable_phar +enable_posix +with_pspell +with_libedit +with_readline +with_recode +enable_session +with_mm +enable_shmop +enable_simplexml +with_snmp +enable_soap +enable_sockets +with_sybase_ct +enable_sysvmsg +enable_sysvsem +enable_sysvshm +with_tidy +enable_tokenizer +enable_wddx +with_libexpat_dir +enable_xml +enable_xmlreader +with_xmlrpc +with_iconv_dir +enable_xmlwriter +with_xsl +enable_zip +enable_mysqlnd +enable_mysqlnd_compression_support +with_pear +with_zend_vm +enable_maintainer_zts +enable_inline_optimization +enable_zend_signals +with_tsrm_pth +with_tsrm_st +with_tsrm_pthreads +enable_shared +enable_static +enable_fast_install +with_gnu_ld +enable_libtool_lock +with_pic +with_tags +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +YACC +YFLAGS +CXX +CXXFLAGS +CCC +CXXCPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features and Packages: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-libdir=NAME Look for libraries in .../NAME rather than .../lib + --disable-rpath Disable passing additional runtime library + search paths + --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension + +SAPI modules: + + --with-aolserver=DIR Specify path to the installed AOLserver + --with-apxs=FILE Build shared Apache 1.x module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache=DIR Build Apache 1.x module. DIR is the top-level Apache + build directory /usr/local/apache + --enable-mod-charset APACHE: Enable transfer tables for mod_charset (Rus Apache) + --with-apxs2filter=FILE + EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache-hooks=FILE + EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache-hooks-static=DIR + EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache + build directory /usr/local/apache + --enable-mod-charset APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache) + --with-caudium=DIR Build PHP as a Pike module for use with Caudium. + DIR is the Caudium server dir /usr/local/caudium/server + --disable-cli Disable building CLI version of PHP + (this forces --without-pear) + --with-continuity=DIR Build PHP as Continuity Server module. + DIR is path to the installed Continuity Server root + --enable-embed=TYPE EXPERIMENTAL: Enable building of embedded SAPI library + TYPE is either 'shared' or 'static'. TYPE=shared + --enable-fpm Enable building of the fpm SAPI executable + --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) + --with-fpm-group=GRP Set the group for php-fpm to run as. For a system user, this + should usually be set to match the fpm username (default: nobody) + --with-fpm-systemd Activate systemd integration + --with-isapi=DIR Build PHP as an ISAPI module for use with Zeus + --with-litespeed Build PHP as litespeed module + --with-milter=DIR Build PHP as Milter application + --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver + --with-phttpd=DIR Build PHP as phttpd module + --with-pi3web=DIR Build PHP as Pi3Web module + --with-roxen=DIR Build PHP as a Pike module. DIR is the base Roxen + directory, normally /usr/local/roxen/server + --enable-roxen-zts ROXEN: Build the Roxen module using Zend Thread Safety + --with-thttpd=SRCDIR Build PHP as thttpd module + --with-tux=MODULEDIR Build PHP as a TUX module (Linux only) + --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only) + --disable-cgi Disable building CGI version of PHP + +General settings: + + --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!! + --enable-debug Compile with debugging symbols + --with-layout=TYPE Set how installed files will be laid out. Type can + be either PHP or GNU [PHP] + --with-config-file-path=PATH + Set the path in which to look for php.ini [PREFIX/lib] + --with-config-file-scan-dir=PATH + Set the path where to scan for configuration files + --enable-sigchild Enable PHP's own SIGCHLD handler + --enable-libgcc Enable explicitly linking against libgcc + --disable-short-tags Disable the short-form = 0.9.6) + --with-kerberos=DIR OPENSSL: Include Kerberos support + --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support. + DIR is the PCRE install prefix BUNDLED + --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to + SQLite3 installation directory. + --with-zlib=DIR Include ZLIB support (requires zlib >= 1.0.9) + --with-zlib-dir= Define the location of zlib install directory + --enable-bcmath Enable bc style precision math functions + --with-bz2=DIR Include BZip2 support + --enable-calendar Enable support for calendar conversion + --disable-ctype Disable ctype functions + --with-curl=DIR Include cURL support + --enable-dba Build DBA with bundled modules. To build shared DBA + extension use --enable-dba=shared + --with-qdbm=DIR DBA: QDBM support + --with-gdbm=DIR DBA: GDBM support + --with-ndbm=DIR DBA: NDBM support + --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support + --with-db3=DIR DBA: Oracle Berkeley DB 3.x support + --with-db2=DIR DBA: Oracle Berkeley DB 2.x support + --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation + --with-dbm=DIR DBA: DBM support + --with-tcadb=DIR DBA: Tokyo Cabinet abstract DB support + --without-cdb=DIR DBA: CDB support (bundled) + --disable-inifile DBA: INI support (bundled) + --disable-flatfile DBA: FlatFile support (bundled) + --disable-dom Disable DOM support + --with-libxml-dir=DIR DOM: libxml2 install prefix + --with-enchant=DIR Include enchant support. + GNU Aspell version 1.1.3 or higher required. + --enable-exif Enable EXIF (metadata from images) support + --disable-fileinfo Disable fileinfo support + --disable-filter Disable input filter support + --with-pcre-dir FILTER: pcre install prefix + --enable-ftp Enable FTP support + --with-openssl-dir=DIR FTP: openssl install prefix + --with-gd=DIR Include GD support. DIR is the GD library base + install directory BUNDLED + --with-vpx-dir=DIR GD: Set the path to libvpx install prefix + --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix + --with-png-dir=DIR GD: Set the path to libpng install prefix + --with-zlib-dir=DIR GD: Set the path to libz install prefix + --with-xpm-dir=DIR GD: Set the path to libXpm install prefix + --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix + --with-t1lib=DIR GD: Include T1lib support. T1lib version >= 5.0.0 required + --enable-gd-native-ttf GD: Enable TrueType string function + --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support + --with-gettext=DIR Include GNU gettext support + --with-gmp=DIR Include GNU MP support + --with-mhash=DIR Include mhash support + --disable-hash Disable hash support + --without-iconv=DIR Exclude iconv support + --with-imap=DIR Include IMAP support. DIR is the c-client install prefix + --with-kerberos=DIR IMAP: Include Kerberos support. DIR is the Kerberos install prefix + --with-imap-ssl=DIR IMAP: Include SSL support. DIR is the OpenSSL install prefix + --with-interbase=DIR Include InterBase support. DIR is the InterBase base + install directory /usr/interbase + --enable-intl Enable internationalization support + --with-icu-dir=DIR Specify where ICU libraries and headers can be found + --disable-json Disable JavaScript Object Serialization support + --with-ldap=DIR Include LDAP support + --with-ldap-sasl=DIR LDAP: Include Cyrus SASL support + --enable-mbstring Enable multibyte string support + --disable-mbregex MBSTRING: Disable multibyte regex support + --disable-mbregex-backtrack + MBSTRING: Disable multibyte regex backtrack check + --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base + install directory BUNDLED + --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. + If DIR is not set, the bundled oniguruma will be used + --with-mcrypt=DIR Include mcrypt support + --with-mssql=DIR Include MSSQL-DB support. DIR is the FreeTDS home + directory /usr/local/freetds + --with-mysql=DIR Include MySQL support. DIR is the MySQL base + directory, if no DIR is passed or the value is + mysqlnd the MySQL native driver will be used + --with-mysql-sock=SOCKPATH + MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. + If unspecified, the default locations are searched + --with-zlib-dir=DIR MySQL: Set the path to libz install prefix + --with-mysqli=FILE Include MySQLi support. FILE is the path + to mysql_config. If no value or mysqlnd is passed + as FILE, the MySQL native driver will be used + --enable-embedded-mysqli + MYSQLi: Enable embedded support + Note: Does not work with MySQL native driver! + --with-oci8=DIR Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME. + Use --with-oci8=instantclient,/path/to/instant/client/lib + to use an Oracle Instant Client installation + --with-adabas=DIR Include Adabas D support /usr/local + --with-sapdb=DIR Include SAP DB support /usr/local + --with-solid=DIR Include Solid support /usr/local/solid + --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib + --with-ODBCRouter=DIR Include ODBCRouter.com support /usr + --with-empress=DIR Include Empress support \$EMPRESSPATH + (Empress Version >= 8.60 required) + --with-empress-bcs=DIR + Include Empress Local Access support \$EMPRESSPATH + (Empress Version >= 8.60 required) + --with-birdstep=DIR Include Birdstep support /usr/local/birdstep + --with-custom-odbc=DIR Include user defined ODBC support. DIR is ODBC install base + directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and + have some odbc.h in your include dirs. f.e. you should define + following for Sybase SQL Anywhere 5.5.00 on QNX, prior to + running this configure script: + CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\" + LDFLAGS=-lunix + CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\" + --with-iodbc=DIR Include iODBC support /usr/local + --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client + --with-unixODBC=DIR Include unixODBC support /usr/local + --with-dbmaker=DIR Include DBMaker support + --enable-opcache Enable Zend OPcache support + --enable-pcntl Enable pcntl support (CLI/CGI only) + --disable-pdo Disable PHP Data Objects support + --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory + --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base + install directory /opt/firebird + --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory + If no value or mysqlnd is passed as DIR, the + MySQL native driver will be used + --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix + --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME. + Use --with-pdo-oci=instantclient,prefix,version + for an Oracle Instant Client SDK. + For example on Linux with 11.2 RPMs use: + --with-pdo-oci=instantclient,/usr,11.2 + With 10.2 RPMs use: + --with-pdo-oci=instantclient,/usr,10.2.0.4 + --with-pdo-odbc=flavour,dir + PDO: Support for 'flavour' ODBC driver. + include and lib dirs are looked for under 'dir'. + + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic + If ',dir' part is omitted, default for the flavour + you have selected will be used. e.g.: + + --with-pdo-odbc=unixODBC + + will check for unixODBC under /usr/local. You may attempt + to use an otherwise unsupported driver using the \"generic\" + flavour. The syntax for generic ODBC support is: + + --with-pdo-odbc=generic,dir,libname,ldflags,cflags + + When built as 'shared' the extension filename is always pdo_odbc.so + --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base + install directory or the path to pg_config + --without-pdo-sqlite=DIR + PDO: sqlite 3 support. DIR is the sqlite base + install directory BUNDLED + --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL + base install directory or the path to pg_config + --disable-phar Disable phar support + --disable-posix Disable POSIX-like functions + --with-pspell=DIR Include PSPELL support. + GNU Aspell version 0.50.0 or higher required + --with-libedit=DIR Include libedit readline replacement (CLI/CGI only) + --with-readline=DIR Include readline support (CLI/CGI only) + --with-recode=DIR Include recode support + --disable-session Disable session support + --with-mm=DIR SESSION: Include mm support for session storage + --enable-shmop Enable shmop support + --disable-simplexml Disable SimpleXML support + --with-libxml-dir=DIR SimpleXML: libxml2 install prefix + --with-snmp=DIR Include SNMP support + --with-openssl-dir=DIR SNMP: openssl install prefix + --enable-soap Enable SOAP support + --with-libxml-dir=DIR SOAP: libxml2 install prefix + --enable-sockets Enable sockets support + --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home + directory /home/sybase + --enable-sysvmsg Enable sysvmsg support + --enable-sysvsem Enable System V semaphore support + --enable-sysvshm Enable the System V shared memory support + --with-tidy=DIR Include TIDY support + --disable-tokenizer Disable tokenizer support + --enable-wddx Enable WDDX support + --with-libxml-dir=DIR WDDX: libxml2 install prefix + --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated) + --disable-xml Disable XML support + --with-libxml-dir=DIR XML: libxml2 install prefix + --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated) + --disable-xmlreader Disable XMLReader support + --with-libxml-dir=DIR XMLReader: libxml2 install prefix + --with-xmlrpc=DIR Include XMLRPC-EPI support + --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix + --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated) + --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI + --disable-xmlwriter Disable XMLWriter support + --with-libxml-dir=DIR XMLWriter: libxml2 install prefix + --with-xsl=DIR Include XSL support. DIR is the libxslt base + install directory (libxslt >= 1.1.0 required) + --enable-zip Include Zip read/write support + --with-zlib-dir=DIR ZIP: Set the path to libz install prefix + --with-pcre-dir ZIP: pcre install prefix + --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions + --disable-mysqlnd-compression-support + Disable support for the MySQL compressed protocol in mysqlnd + --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix + +PEAR: + + --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] + --without-pear Do not install PEAR + +Zend: + + --with-zend-vm=TYPE Set virtual machine dispatch method. Type is + one of "CALL", "SWITCH" or "GOTO" TYPE=CALL + --enable-maintainer-zts Enable thread safety - for code maintainers only!! + --disable-inline-optimization + If building zend_execute.lo fails, try this switch + --enable-zend-signals Use zend signal handling + +TSRM: + + --with-tsrm-pth=pth-config + Use GNU Pth + --with-tsrm-st Use SGI's State Threads + --with-tsrm-pthreads Use POSIX threads (default) + +Libtool: + + --enable-shared=PKGS Build shared libraries default=yes + --enable-static=PKGS Build static libraries default=yes + --enable-fast-install=PKGS + Optimize for fast installation default=yes + --with-gnu-ld Assume the C compiler uses GNU ld default=no + --disable-libtool-lock Avoid locking (might break parallel builds) + --with-pic Try to use only PIC/non-PIC objects default=use both + --with-tags=TAGS Include additional configurations automatic + + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + YACC The `Yet Another Compiler Compiler' implementation to use. + Defaults to the first program found out of: `bison -y', `byacc', + `yacc'. + YFLAGS The list of arguments that will be passed by default to $YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +configure +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " utime.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${lt_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + +fi + +SED=$lt_cv_path_SED +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } + + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SED" + + + + test -f config.nice && mv config.nice config.nice.old + rm -f config.nice.old + cat >config.nice<> config.nice + fi + done + + echo "'$0' \\" >> config.nice + if test `expr -- $0 : "'.*"` = 0; then + CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'" + else + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0" + fi + for arg in $ac_configure_args; do + if test `expr -- $arg : "'.*"` = 0; then + if test `expr -- $arg : "--.*"` = 0; then + break; + fi + echo "'$arg' \\" >> config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'" + else + if test `expr -- $arg : "'--.*"` = 0; then + break; + fi + echo "$arg \\" >> config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg" + fi + done + echo '"$@"' >> config.nice + chmod +x config.nice + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS" + + + + + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set!" "$LINENO" 5 + fi + + +ac_config_headers="$ac_config_headers main/php_config.h" + + + + +PHP_MAJOR_VERSION=5 +PHP_MINOR_VERSION=5 +PHP_RELEASE_VERSION=17 +PHP_EXTRA_VERSION="" +PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" +PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION" + + + + +echo "/* automatically generated by configure */" > php_version.h.new +echo "/* edit configure.in to change version number */" >> php_version.h.new +echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new +echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new +echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new +echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new +cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 +if test $? -ne 0 ; then + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' +else + rm -f php_version.h.new +fi + + + +if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then + as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5 +fi + +if test -n "$with_apache" && test -n "$with_apxs"; then + as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5 +fi + +if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then + as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5 +fi + + + +cwd=`pwd` + +php_shtool=$srcdir/build/shtool +T_MD=`$php_shtool echo -n -e %B` +T_ME=`$php_shtool echo -n -e %b` + + +test -d include || $php_shtool mkdir include +> Makefile.objects +> Makefile.fragments +pattern=define +$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null + + +test -z "$CFLAGS" && auto_cflags=1 + +abs_srcdir=`(cd $srcdir; pwd)` +abs_builddir=`pwd` + +php_abs_top_srcdir=$abs_srcdir +php_abs_top_builddir=$abs_builddir + + +$php_shtool mkdir -p libs +rm -f libs/* + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in cc gcc + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cc gcc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 +$as_echo_n "checking for icc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__INTEL_COMPILER +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + ICC="yes" + GCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + + + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 +$as_echo_n "checking for suncc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__SUNPRO_C +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then : + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + SUNCC="yes" + GCC="no" + test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + GCC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + +php_with_libdir=lib + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 +$as_echo_n "checking for system library directory... " >&6; } + +# Check whether --with-libdir was given. +if test "${with_libdir+set}" = set; then : + withval=$with_libdir; PHP_LIBDIR=$withval +else + + PHP_LIBDIR=lib + + +fi + + +ext_output=$PHP_LIBDIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_rpath=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 +$as_echo_n "checking whether to enable runpaths... " >&6; } +# Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; PHP_RPATH=$enableval +else + + PHP_RPATH=yes + + +fi + + +ext_output=$PHP_RPATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 +$as_echo_n "checking if compiler supports -R... " >&6; } +if ${php_cv_cc_dashr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-R /usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_dashr=yes +else + php_cv_cc_dashr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 +$as_echo "$php_cv_cc_dashr" >&6; } +if test $php_cv_cc_dashr = "yes"; then + ld_runpath_switch=-R +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 +$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } + if ${php_cv_cc_rpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_rpath=yes +else + php_cv_cc_rpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 +$as_echo "$php_cv_cc_rpath" >&6; } + if test $php_cv_cc_rpath = "yes"; then + ld_runpath_switch=-Wl,-rpath, + else + ld_runpath_switch=-L + fi +fi +if test "$PHP_RPATH" = "no"; then + ld_runpath_switch= +fi + + + + for ac_prog in gawk nawk awk mawk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/xpg4/bin/:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done +test -n "$AWK" || AWK="bork" + + case "$AWK" in + *mawk) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 +$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} + ;; + *gawk) + ;; + bork) + as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 +$as_echo_n "checking if $AWK is broken... " >&6; } + if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + as_fn_error $? "You should install GNU awk" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST AWK" + + + + for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_YACC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + + + # we only support certain bison versions + bison_version_list="2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7" + + # for standalone build of Zend Engine + test -z "$SED" && SED=sed + + bison_version=none + if test "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } +if ${php_cv_bison_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z` + php_cv_bison_version=invalid + if test -n "$bison_version_vars"; then + set $bison_version_vars + bison_version="${1}.${2}" + for bison_check_version in $bison_version_list; do + if test "$bison_version" = "$bison_check_version"; then + php_cv_bison_version="$bison_check_version (ok)" + break + fi + done + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5 +$as_echo "$php_cv_bison_version" >&6; } + fi + case $php_cv_bison_version in + ""|invalid) + bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5 +$as_echo "$as_me: WARNING: $bison_msg" >&2;} + YACC="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST YACC" + + + + # Extract the first word of "re2c", so it can be a program name with args. +set dummy re2c; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RE2C+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RE2C"; then + ac_cv_prog_RE2C="$RE2C" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RE2C="re2c" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RE2C=$ac_cv_prog_RE2C +if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 +$as_echo "$RE2C" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 +$as_echo_n "checking for re2c version... " >&6; } +if ${php_cv_re2c_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + re2c_vernum=`$RE2C --vernum 2>/dev/null` + if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then + php_cv_re2c_version=invalid + else + php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)" + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5 +$as_echo "$php_cv_re2c_version" >&6; } + fi + case $php_cv_re2c_version in + ""|invalid) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5 +$as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;} + RE2C="exit 0;" + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C" + + + +case $php_cv_bison_version in + ""|invalid) + if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then + as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5 + fi + ;; +esac + + +php_enable_re2c_cgoto=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 +$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; } +# Check whether --enable-re2c-cgoto was given. +if test "${enable_re2c_cgoto+set}" = set; then : + enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval +else + + PHP_RE2C_CGOTO=no + + +fi + + +ext_output=$PHP_RE2C_CGOTO +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RE2C_CGOTO" = "no"; then + RE2C_FLAGS="" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 +$as_echo_n "checking whether re2c -g works... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +int main(int argc, const char **argv) +{ + argc = argc; + argv = argv; +label1: +label2: + static void *adr[] = { &&label1, &&label2}; + goto *adr[0]; + return 0; +} + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + RE2C_FLAGS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + RE2C_FLAGS="-g" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS" + + + +case $host_cpu in + alpha*) + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -mieee" + else + CFLAGS="$CFLAGS -ieee" + fi + ;; + sparc*) + if test "$SUNCC" = "yes"; then + CFLAGS="$CFLAGS -xmemalign=8s" + fi + ;; +esac + +if test "$GCC" = "yes"; then + case $host_alias in + *darwin*) + GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'` + ;; + *) + GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'` + ;; + esac + if test $GCC_MAJOR_VERSION -ge 4; then + CFLAGS="$CFLAGS -fvisibility=hidden" + fi +fi + +case $host_alias in + *solaris*) + CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then + enable_libgcc=yes + fi + ;; + *dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" + ;; + *darwin*|*rhapsody*) + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5 +$as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; } +if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -no-cpp-precomp -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5 +$as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_no_cpp_precomp=yes + else + : + + fi + + if test "$gcc_no_cpp_precomp" = "yes"; then + CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + fi + fi + php_multiple_shlib_versions_ok=yes + ;; + *beos*) + beos_threads=1 + LIBS="$LIBS -lbe -lroot" + ;; + *mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV" + ;; + *hpux*) + if test "$GCC" = "yes"; then + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" + fi + ;; + *netware*) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + + + case /main in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in internal_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; } +case $host_alias in + i?86-*-linux*|i?86-*-freebsd*) + if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then + with_pic=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 +$as_echo_n "checking whether /dev/urandom exists... " >&6; } +if test -r "/dev/urandom" && test -c "/dev/urandom"; then + +$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/arandom exists" >&5 +$as_echo_n "checking whether /dev/arandom exists... " >&6; } + if test -r "/dev/arandom" && test -c "/dev/arandom"; then + +$as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + + + + + + + + + + + + + + + + + + + + + + + + +if test "$beos_threads" = "1"; then + pthreads_working="yes" + ac_cv_pthreads_cflags="" +else + save_CFLAGS=$CFLAGS + save_LIBS=$LIBS + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$save_LIBS + CFLAGS=$save_CFLAGS + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_pthreads_cflags= + if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "$pthreads_working" = "yes"; then + threads_result="POSIX-Threads found" +else + threads_result="POSIX-Threads not found" +fi + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME" + + + + SHLIB_SUFFIX_NAME=so + SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME + case $host_alias in + *hpux*) + SHLIB_SUFFIX_NAME=sl + SHLIB_DL_SUFFIX_NAME=sl + ;; + *darwin*) + SHLIB_SUFFIX_NAME=dylib + SHLIB_DL_SUFFIX_NAME=so + ;; + esac + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + +PHP_SAPI=none + + + +SAPI_SHARED=libs/libphp$PHP_VERSION.$SHLIB_DL_SUFFIX_NAME +SAPI_STATIC=libs/libphp$PHP_VERSION.a +SAPI_LIBTOOL=libphp$PHP_VERSION.la + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 +$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; } + + + + + +php_with_aolserver=no + + + +# Check whether --with-aolserver was given. +if test "${with_aolserver+set}" = set; then : + withval=$with_aolserver; PHP_AOLSERVER=$withval +else + + PHP_AOLSERVER=no + + +fi + + +ext_output=$PHP_AOLSERVER + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver support" >&5 +$as_echo_n "checking for AOLserver support... " >&6; } + +if test "$PHP_AOLSERVER" != "no"; then + if test -d "$PHP_AOLSERVER/include"; then + PHP_AOLSERVER_SRC=$PHP_AOLSERVER + fi + if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then + as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5 + fi + if test ! -d $PHP_AOLSERVER/bin ; then + as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5 + fi + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then + + if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_AOLSERVER_SRC/include + else + + ep_dir=`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_AOLSERVER_SRC/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_AOLSERVER 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES aolserver" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=aolserver + fi + + + + BUILD_DIR="$BUILD_DIR sapi/aolserver" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS aolserver" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/aolserver in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in aolserver.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_AOLSERVER" >&6; } + + + + + +php_with_apxs=no + + + +# Check whether --with-apxs was given. +if test "${with_apxs+set}" = set; then : + withval=$with_apxs; PHP_APXS=$withval +else + + PHP_APXS=no + + +fi + + +ext_output=$PHP_APXS + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS" != "no"; then + if test "$PHP_APXS" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS + else + + ep_dir=`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5 +$as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5 +$as_echo "1. Perl is not installed;" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5 +$as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5 +$as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 +$as_echo "The output of $APXS follows" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APACHE_INCLUDE=-I$APXS_INCLUDEDIR + + # Test that we're trying to configure with apache 1.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -ge 2000000; then + as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2" "$LINENO" 5 + fi + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_AIX_LDFLAGS="-Wl,-brtl" + build_type=shared + ;; + *darwin*) + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + + PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS" + + SAPI_SHARED=libs/libphp$PHP_VERSION.so + build_type=bundle + ;; + *) + build_type=shared + ;; + esac + + + if test "$build_type" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "$build_type" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null 2>&1 + + if test "$?" != "0"; then + APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option + else + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5 $SAPI_SHARED" + fi + fi + + if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then + PHP_APXS_BROKEN=yes + fi + STRONGHOLD= + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +php_with_apache=no + + + +# Check whether --with-apache was given. +if test "${with_apache+set}" = set; then : + withval=$with_apache; PHP_APACHE=$withval +else + + PHP_APACHE=no + + +fi + + +ext_output=$PHP_APACHE + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support" >&5 +$as_echo_n "checking for Apache 1.x module support... " >&6; } + +if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then + + if test "$PHP_APACHE" = "yes"; then + # Apache's default directory + PHP_APACHE=/usr/local/apache + fi + + APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module" + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + APACHE_MODULE=yes + + if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then + PHP_APACHE=$PHP_APACHE + else + + ep_dir=`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_APACHE="$ep_realdir"/`basename "$PHP_APACHE"` + fi + + # For Apache 1.2.x + if test -f $PHP_APACHE/src/httpd.h; then + APACHE_INCLUDE=-I$PHP_APACHE/src + APACHE_TARGET=$PHP_APACHE/src + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.2.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + # For Apache 2.0.x + elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + # For Apache 1.3.x + elif test -f $PHP_APACHE/src/main/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # Also for Apache 1.3.x + elif test -f $PHP_APACHE/src/include/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # For StrongHold 2.2 + elif test -f $PHP_APACHE/apache/httpd.h; then + APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include" + APACHE_TARGET=$PHP_APACHE/apache + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - StrongHold" >&6; } + if test -f $PHP_APACHE/apache/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# compatibility +if test -z "$enable_mod_charset" && test "$with_mod_charset"; then + enable_mod_charset=$with_mod_charset +fi + + +php_enable_mod_charset=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5 +$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; } +# Check whether --enable-mod-charset was given. +if test "${enable_mod_charset+set}" = set; then : + enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval +else + + PHP_MOD_CHARSET=no + + +fi + + +ext_output=$PHP_MOD_CHARSET +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MOD_CHARSET" = "yes"; then + +$as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h + +fi + +if test "$APACHE_MODULE" = "yes"; then + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + $php_shtool mkdir -p sapi/apache + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module" + +fi + +if test -n "$APACHE_INSTALL"; then + if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then + APXS_EXP=-bE:sapi/apache/mod_php5.exp + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 +$as_echo_n "checking for member fd in BUFF *... " >&6; } +if ${ac_cv_php_fd_in_buff+:} false; then : + $as_echo_n "(cached) " >&6 +else + + save=$CPPFLAGS + if test -n "$APXS_INCLUDEDIR"; then + CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR" + else + CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +conn_rec *c; int fd = c->client->fd; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_php_fd_in_buff=yes +else + ac_cv_php_fd_in_buff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS=$save + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5 +$as_echo "$ac_cv_php_fd_in_buff" >&6; } +if test "$ac_cv_php_fd_in_buff" = "yes"; then + +$as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h + +fi + + INSTALL_IT=$APACHE_INSTALL + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD" + +fi + + + + +php_with_apxs2filter=no + + + +# Check whether --with-apxs2filter was given. +if test "${with_apxs2filter+set}" = set; then : + withval=$with_apxs2filter; PHP_APXS2FILTER=$withval +else + + PHP_APXS2FILTER=no + + +fi + + +ext_output=$PHP_APXS2FILTER + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 filter-module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2FILTER" != "no"; then + if test "$PHP_APXS2FILTER" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2FILTER + else + + ep_dir=`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2FILTER"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + # Pick up ap[ru]-N-config if using httpd >=2.1 + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" + + # Test that we're trying to configure with apache 2.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -le 2000000; then + as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5 + elif test "$APACHE_VERSION" -lt 2000040; then + as_fn_error $? "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2filter" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2filter + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2filter" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +php_with_apxs2=no + + + +# Check whether --with-apxs2 was given. +if test "${with_apxs2+set}" = set; then : + withval=$with_apxs2; PHP_APXS2=$withval +else + + PHP_APXS2=no + + +fi + + +ext_output=$PHP_APXS2 + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2" != "no"; then + if test "$PHP_APXS2" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2 + else + + ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + # Pick up ap[ru]-N-config if using httpd >=2.1 + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" + + # Test that we're trying to configure with apache 2.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -le 2000000; then + as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5 + elif test "$APACHE_VERSION" -lt 2000044; then + as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2handler" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2handler + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2handler" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2handler in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_with_apache_hooks=no + + + +# Check whether --with-apache-hooks was given. +if test "${with_apache_hooks+set}" = set; then : + withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval +else + + PHP_APACHE_HOOKS=no + + +fi + + +ext_output=$PHP_APACHE_HOOKS + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; } + +if test "$PHP_APACHE_HOOKS" != "no"; then + if test "$PHP_APACHE_HOOKS" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then + APXS=$PHP_APACHE_HOOKS + else + + ep_dir=`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APACHE_HOOKS"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5 +$as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5 +$as_echo "1. Perl is not installed;" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5 +$as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5 +$as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 +$as_echo "The output of $APXS follows" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APACHE_INCLUDE=-I$APXS_INCLUDEDIR + + # Test that we're trying to configure with apache 1.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -ge 2000000; then + as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2" "$LINENO" 5 + fi + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_AIX_LDFLAGS="-Wl,-brtl" + build_type=shared + ;; + *darwin*) + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + + PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS" + + SAPI_SHARED=libs/libphp$PHP_VERSION.so + build_type=bundle + ;; + *) + build_type=shared + ;; + esac + + + if test "$build_type" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "$build_type" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null 2>&1 + + if test "$?" != "0"; then + APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option + else + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5 $SAPI_SHARED" + fi + fi + + if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then + PHP_APXS_BROKEN=yes + fi + STRONGHOLD= + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + +$as_echo "#define HAVE_APACHE_HOOKS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +php_with_apache_hooks_static=no + + + +# Check whether --with-apache-hooks-static was given. +if test "${with_apache_hooks_static+set}" = set; then : + withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval +else + + PHP_APACHE_HOOKS_STATIC=no + + +fi + + +ext_output=$PHP_APACHE_HOOKS_STATIC + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support" >&5 +$as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; } + +if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then + + if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then + # Apache's default directory + PHP_APACHE_HOOKS_STATIC=/usr/local/apache + fi + + APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module" + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + APACHE_HOOKS_MODULE=yes + + if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then + PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC + else + + ep_dir=`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_APACHE_HOOKS_STATIC="$ep_realdir"/`basename "$PHP_APACHE_HOOKS_STATIC"` + fi + + # For Apache 1.2.x + if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then + APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.2.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + # For Apache 2.0.x + elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + # For Apache 1.3.x + elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # Also for Apache 1.3.x + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # For StrongHold 2.2 + elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - StrongHold" >&6; } + if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# compatibility +if test -z "$enable_mod_charset" && test "$with_mod_charset"; then + enable_mod_charset=$with_mod_charset +fi + + +php_enable_mod_charset=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5 +$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; } +# Check whether --enable-mod-charset was given. +if test "${enable_mod_charset+set}" = set; then : + enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval +else + + PHP_MOD_CHARSET=no + + +fi + + +ext_output=$PHP_MOD_CHARSET +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MOD_CHARSET" = "yes"; then + +$as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h + +fi + +if test "$APACHE_HOOKS_MODULE" = "yes"; then + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + $php_shtool mkdir -p sapi/apache_hooks + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module" + +fi + +if test -n "$APACHE_HOOKS_INSTALL"; then + if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then + APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 +$as_echo_n "checking for member fd in BUFF *... " >&6; } +if ${ac_cv_php_fd_in_buff+:} false; then : + $as_echo_n "(cached) " >&6 +else + + save=$CPPFLAGS + if test -n "$APXS_INCLUDEDIR"; then + CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR" + else + CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +conn_rec *c; int fd = c->client->fd; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_php_fd_in_buff=yes +else + ac_cv_php_fd_in_buff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS=$save + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5 +$as_echo "$ac_cv_php_fd_in_buff" >&6; } +if test "$ac_cv_php_fd_in_buff" = "yes"; then + +$as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h + +fi + + INSTALL_IT=$APACHE_HOOKS_INSTALL + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD" + +fi + + + +RESULT=no + +php_with_caudium=no + + + +# Check whether --with-caudium was given. +if test "${with_caudium+set}" = set; then : + withval=$with_caudium; PHP_CAUDIUM=$withval +else + + PHP_CAUDIUM=no + + +fi + + +ext_output=$PHP_CAUDIUM + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Caudium support" >&5 +$as_echo_n "checking for Caudium support... " >&6; } + +if test "$PHP_CAUDIUM" != "no"; then + if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi + if test ! -d $PHP_CAUDIUM ; then + if test "$prefix" = "NONE"; then + PHP_CAUDIUM=/usr/local/caudium/server/ + else + PHP_CAUDIUM=$prefix/caudium/server/ + fi + fi + if test -f $PHP_CAUDIUM/bin/caudium; then + PIKE=$PHP_CAUDIUM/bin/caudium + elif test -f $PHP_CAUDIUM/bin/pike; then + PIKE=$PHP_CAUDIUM/bin/pike + else + as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5 + fi + if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then + PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` + PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' ` + if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PIKE=`echo $PIKE | pike -e 'int tries=100; + string orig,pike=Stdio.File("stdin")->read()-"\n"; + orig=pike; + if(search(orig, "/")) + orig = combine_path(getcwd(), orig); + while(!catch(pike=readlink(pike)) && tries--) + ; + write(combine_path(dirname(orig), pike)); '` + + if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PIKE_INCLUDE_DIR + else + + ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + if test "$prefix" != "NONE"; then + PIKE_C_INCLUDE=$prefix/include/`basename $PIKE` + else + PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C includes in $PIKE_C_INCLUDE" >&5 +$as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; } + if test -f $PIKE_C_INCLUDE/version.h; then + PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'` + ###### VERSION MATCH CHECK ####### + PMAJOR="^#define PIKE_MAJOR_VERSION" + PMINOR="^#define PIKE_MINOR_VERSION" + PBUILD="^#define PIKE_BUILD_VERSION" + + PIKE_CMAJOR_VERSION=0 + PIKE_CMINOR_VERSION=0 + PIKE_CBUILD_VERSION=0 + + PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + if test -z "$PIKE_CMAJOR_VERSION"; then + if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then + PIKE_CMAJOR_VERSION=6 + fi + else + PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + fi + + if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then + + if test "$PIKE_C_INCLUDE" != "/usr/include"; then + + if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PIKE_C_INCLUDE + else + + ep_dir=`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_C_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version mismatch" >&5 +$as_echo "version mismatch" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + fi + else + as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5 + fi + PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'` + +$as_echo "#define HAVE_CAUDIUM 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES caudium" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=caudium + fi + + + + BUILD_DIR="$BUILD_DIR sapi/caudium" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS caudium" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/caudium in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in caudium.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$RESULT" >&6; } + + + + +php_enable_cli=yes + + +# Check whether --enable-cli was given. +if test "${enable_cli+set}" = set; then : + enableval=$enable_cli; PHP_CLI=$enableval +else + + PHP_CLI=yes + + +fi + + +ext_output=$PHP_CLI + + + + + +for ac_func in setproctitle +do : + ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SETPROCTITLE 1 +_ACEOF + +fi +done + + +for ac_header in sys/pstat.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_pstat_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_PSTAT_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 +$as_echo_n "checking for PS_STRINGS... " >&6; } +if ${cli_cv_var_PS_STRINGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +PS_STRINGS->ps_nargvstr = 1; +PS_STRINGS->ps_argvstr = "foo"; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cli_cv_var_PS_STRINGS=yes +else + cli_cv_var_PS_STRINGS=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 +$as_echo "$cli_cv_var_PS_STRINGS" >&6; } +if test "$cli_cv_var_PS_STRINGS" = yes ; then + +$as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 +$as_echo_n "checking for CLI build... " >&6; } +if test "$PHP_CLI" != "no"; then + + src=$abs_srcdir/sapi/cli/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_CLI_PATH=sapi/cli/php + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cli" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cli + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cli" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cli" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS" + + + case sapi/cli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + else + BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + fi + ;; + *darwin*) + BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + *netware*) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)" + ;; + *) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + esac + + PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1" + + + + + for header_file in sapi/cli/cli.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 +$as_echo "$PHP_CLI" >&6; } + + + +php_with_continuity=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity support" >&5 +$as_echo_n "checking for Continuity support... " >&6; } + +# Check whether --with-continuity was given. +if test "${with_continuity+set}" = set; then : + withval=$with_continuity; PHP_CONTINUITY=$withval +else + + PHP_CONTINUITY=no + + +fi + + +ext_output=$PHP_CONTINUITY +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONTINUITY" != "no"; then + if test ! -d $PHP_CONTINUITY; then + as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5 +$as_echo_n "checking for Continuity include files... " >&6; } + if test -d $PHP_CONTINUITY/include ; then + CAPI_INCLUDE=$PHP_CONTINUITY/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5 +$as_echo "Continuity Binary Distribution" >&6; } + else + as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5 + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES continuity" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=continuity + fi + + + + BUILD_DIR="$BUILD_DIR sapi/continuity" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS continuity" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/continuity in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in capi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null ; then + ai_p=$CAPI_INCLUDE + else + + ep_dir=`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CAPI_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_CONTINUITY 1" >>confdefs.h + + INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/" +fi + + + + +php_enable_embed=no + + +# Check whether --enable-embed was given. +if test "${enable_embed+set}" = set; then : + enableval=$enable_embed; PHP_EMBED=$enableval +else + + PHP_EMBED=no + + +fi + + +ext_output=$PHP_EMBED + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 +$as_echo_n "checking for embedded SAPI library support... " >&6; } + +if test "$PHP_EMBED" != "no"; then + case "$PHP_EMBED" in + yes|shared) + PHP_EMBED_TYPE=shared + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + static) + PHP_EMBED_TYPE=static + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + *) + PHP_EMBED_TYPE=no + ;; + esac + if test "$PHP_EMBED_TYPE" != "no"; then + + if test "$PHP_EMBED_TYPE" = "program"; then + PHP_BINARIES="$PHP_BINARIES embed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=embed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/embed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed" + + + case "$PHP_EMBED_TYPE" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/embed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_embed.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_EMBED_TYPE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +php_enable_fpm=no + + +# Check whether --enable-fpm was given. +if test "${enable_fpm+set}" = set; then : + enableval=$enable_fpm; PHP_FPM=$enableval +else + + PHP_FPM=no + + +fi + + +ext_output=$PHP_FPM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 +$as_echo_n "checking for FPM build... " >&6; } +if test "$PHP_FPM" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 +$as_echo "$PHP_FPM" >&6; } + + + for ac_func in setenv clearenv setproctitle +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +for ac_lib in '' socket; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_socket+:} false; then : + break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else + ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +$as_echo_n "checking for library containing inet_addr... " >&6; } +if ${ac_cv_search_inet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_addr (); +int +main () +{ +return inet_addr (); + ; + return 0; +} +_ACEOF +for ac_lib in '' nsl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_inet_addr=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_inet_addr+:} false; then : + break +fi +done +if ${ac_cv_search_inet_addr+:} false; then : + +else + ac_cv_search_inet_addr=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +$as_echo "$ac_cv_search_inet_addr" >&6; } +ac_res=$ac_cv_search_inet_addr +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + + for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in sys/select.h sys/socket.h sys/time.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in arpa/inet.h netinet/in.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in sysexits.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" +if test "x$ac_cv_header_sysexits_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSEXITS_H 1 +_ACEOF + +fi + +done + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 +$as_echo_n "checking for prctl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +prctl(0, 0, 0, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PRCTL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + have_clock_gettime=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 +$as_echo_n "checking for clock_gettime... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +$as_echo_n "checking for clock_gettime in -lrt... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lrt" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test "$have_clock_gettime" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h + + fi + + have_clock_get_time=no + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 +$as_echo_n "checking for clock_get_time... " >&6; } + + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include + #include + #include + + int main() + { + kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime; + ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock); + + if (ret != KERN_SUCCESS) { + return 1; + } + + ret = clock_get_time(aClock, &aTime); + if (ret != KERN_SUCCESS) { + return 2; + } + + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_clock_get_time=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_clock_get_time" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h + + fi + + + have_ptrace=no + have_broken_ptrace=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 +$as_echo_n "checking for ptrace... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include +int +main () +{ +ptrace(0, 0, (void *) 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 +$as_echo_n "checking whether ptrace works... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5 +$as_echo "skipped (cross compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + #include + + #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH) + #define PTRACE_ATTACH PT_ATTACH + #endif + + #if !defined(PTRACE_DETACH) && defined(PT_DETACH) + #define PTRACE_DETACH PT_DETACH + #endif + + #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D) + #define PTRACE_PEEKDATA PT_READ_D + #endif + + int main() + { + long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */ + long v2; + pid_t child; + int status; + + if ( (child = fork()) ) { /* parent */ + int ret = 0; + + if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) { + return 2; + } + + waitpid(child, &status, 0); + + #ifdef PT_IO + struct ptrace_io_desc ptio = { + .piod_op = PIOD_READ_D, + .piod_offs = &v1, + .piod_addr = &v2, + .piod_len = sizeof(v1) + }; + + if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) { + ret = 3; + } + #else + errno = 0; + + v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0); + + if (errno) { + ret = 4; + } + #endif + ptrace(PTRACE_DETACH, child, (void *) 1, 0); + + kill(child, SIGKILL); + + return ret ? ret : (v1 != v2); + } + else { /* child */ + sleep(10); + return 0; + } + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_ptrace=no + have_broken_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_ptrace" = "yes"; then + +$as_echo "#define HAVE_PTRACE 1" >>confdefs.h + + fi + + have_mach_vm_read=no + + if test "$have_broken_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 +$as_echo_n "checking for mach_vm_read... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include + #include + +int +main () +{ + + mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_mach_vm_read=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$have_mach_vm_read" = "yes"; then + +$as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h + + fi + + proc_mem_file="" + + if test -r /proc/$$/mem ; then + proc_mem_file="mem" + else + if test -r /proc/$$/as ; then + proc_mem_file="as" + fi + fi + + if test -n "$proc_mem_file" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 +$as_echo_n "checking for proc mem file... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5 +$as_echo "skipped (cross compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #define _FILE_OFFSET_BITS 64 + #include + #include + #include + #include + #include + #include + int main() + { + long v1 = (unsigned int) -1, v2 = 0; + char buf[128]; + int fd; + sprintf(buf, "/proc/%d/$proc_mem_file", getpid()); + fd = open(buf, O_RDONLY); + if (0 > fd) { + return 1; + } + if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) { + close(fd); + return 1; + } + close(fd); + return v1 != v2; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 +$as_echo "$proc_mem_file" >&6; } + +else + + proc_mem_file="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -n "$proc_mem_file"; then + +cat >>confdefs.h <<_ACEOF +#define PROC_MEM_FILE "$proc_mem_file" +_ACEOF + + fi + + fpm_trace_type="" + + if test "$have_ptrace" = "yes"; then + fpm_trace_type=ptrace + + elif test -n "$proc_mem_file"; then + fpm_trace_type=pread + + elif test "$have_mach_vm_read" = "yes" ; then + fpm_trace_type=mach + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 +$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 +$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + int variable = 1; + return (__sync_bool_compare_and_swap(&variable, 1, 2) + && __sync_add_and_fetch(&variable, 1)) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + have_lq=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 +$as_echo_n "checking for TCP_INFO... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct tcp_info ti; int x = TCP_INFO; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=tcp_info + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h + + fi + + if test "$have_lq" = "no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 +$as_echo_n "checking for SO_LISTENQLEN... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=so_listenq + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 +$as_echo_n "checking for sysconf... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +sysconf(_SC_CLK_TCK); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5 +$as_echo_n "checking for times... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct tms t; times(&t); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_TIMES 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 +$as_echo_n "checking for kqueue... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + int kfd; + struct kevent k; + kfd = kqueue(); + /* 0 -> STDIN_FILENO */ + EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 +$as_echo_n "checking for port framework... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int port; + + port = port_create(); + if (port < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 +$as_echo_n "checking for /dev/poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + int n, dp; + struct dvpoll dvp; + dp = 0; + dvp.dp_fds = NULL; + dvp.dp_nfds = 0; + dvp.dp_timeout = 0; + n = ioctl(dp, DP_POLL, &dvp) + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 +$as_echo_n "checking for epoll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int epollfd; + struct epoll_event e; + + epollfd = epoll_create(1); + if (epollfd < 0) { + return 1; + } + + e.events = EPOLLIN | EPOLLET; + e.data.fd = 0; + + if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) { + return 1; + } + + e.events = 0; + if (epoll_wait(epollfd, &e, 1, 1) < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5 +$as_echo_n "checking for poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + struct pollfd fds[2]; + + fds[0].fd = 0; + fds[0].events = POLLIN; + + fds[1].fd = 0; + fds[1].events = POLLIN; + + poll(fds, 2, 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_POLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 +$as_echo_n "checking for select... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* According to POSIX.1-2001 */ + #include + + /* According to earlier standards */ + #include + #include + #include + +int +main () +{ + + fd_set fds; + struct timeval t; + t.tv_sec = 0; + t.tv_usec = 42; + FD_ZERO(&fds); + /* 0 -> STDIN_FILENO */ + FD_SET(0, &fds); + select(FD_SETSIZE, &fds, NULL, NULL, &t); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SELECT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + +php_with_fpm_user=nobody + + + +# Check whether --with-fpm-user was given. +if test "${with_fpm_user+set}" = set; then : + withval=$with_fpm_user; PHP_FPM_USER=$withval +else + + PHP_FPM_USER=nobody + + +fi + + +ext_output=$PHP_FPM_USER + + + + + + +php_with_fpm_group=nobody + + + +# Check whether --with-fpm-group was given. +if test "${with_fpm_group+set}" = set; then : + withval=$with_fpm_group; PHP_FPM_GROUP=$withval +else + + PHP_FPM_GROUP=nobody + + +fi + + +ext_output=$PHP_FPM_GROUP + + + + + + +php_with_fpm_systemd=no + + + +# Check whether --with-fpm-systemd was given. +if test "${with_fpm_systemd+set}" = set; then : + withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval +else + + PHP_FPM_SYSTEMD=no + + +fi + + +ext_output=$PHP_FPM_SYSTEMD + + + + + + if test "$PHP_FPM_SYSTEMD" != "no" ; then + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + unset SYSTEMD_LIBS + unset SYSTEMD_INCS + + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 +$as_echo_n "checking for libsystemd... " >&6; } + SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd` + SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd` + SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5 +$as_echo "version $SYSTEMD_VERS" >&6; } + + elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd-daemon; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 +$as_echo_n "checking for libsystemd-daemon... " >&6; } + SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd-daemon` + SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd-daemon` + SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd-daemon` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5 +$as_echo "version $SYSTEMD_VERS" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd-daemon" >&5 +$as_echo_n "checking for sd_notify in -lsystemd-daemon... " >&6; } +if ${ac_cv_lib_systemd_daemon_sd_notify+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsystemd-daemon $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sd_notify (); +int +main () +{ +return sd_notify (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_systemd_daemon_sd_notify=yes +else + ac_cv_lib_systemd_daemon_sd_notify=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5 +$as_echo "$ac_cv_lib_systemd_daemon_sd_notify" >&6; } +if test "x$ac_cv_lib_systemd_daemon_sd_notify" = xyes; then : + SYSTEMD_LIBS="-lsystemd-daemon" +fi + + fi + + for ac_header in systemd/sd-daemon.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSTEMD_SD_DAEMON_H 1 +_ACEOF + HAVE_SD_DAEMON_H="yes" +else + HAVE_SD_DAEMON_H="no" +fi + +done + + if test $HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then + as_fn_error $? "Your system does not support systemd." "$LINENO" 5 + else + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + + PHP_FPM_SD_FILES="fpm/fpm_systemd.c" + + for ac_i in $SYSTEMD_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + + for ac_i in $SYSTEMD_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + php_fpm_systemd=notify + fi + else + php_fpm_systemd=simple + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd" + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_SYSTEMD "$php_fpm_systemd" +_ACEOF + + + if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then + php_fpm_user="nobody" + else + php_fpm_user="$PHP_FPM_USER" + fi + + if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then + php_fpm_group="nobody" + else + php_fpm_group="$PHP_FPM_GROUP" + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group" + + + + php_fpm_sysconfdir=`eval echo $sysconfdir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir" + + + + php_fpm_localstatedir=`eval echo $localstatedir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir" + + + + php_fpm_prefix=`eval echo $prefix` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_USER "$php_fpm_user" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_GROUP "$php_fpm_group" +_ACEOF + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm" + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html" + + + src=$abs_srcdir/sapi/fpm/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_FPM_PATH=sapi/fpm/php-fpm + + if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then + PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c" + fi + + PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm" + + PHP_FPM_FILES="fpm/fastcgi.c \ + fpm/fpm.c \ + fpm/fpm_children.c \ + fpm/fpm_cleanup.c \ + fpm/fpm_clock.c \ + fpm/fpm_conf.c \ + fpm/fpm_env.c \ + fpm/fpm_events.c \ + fpm/fpm_log.c \ + fpm/fpm_main.c \ + fpm/fpm_php.c \ + fpm/fpm_php_trace.c \ + fpm/fpm_process_ctl.c \ + fpm/fpm_request.c \ + fpm/fpm_shm.c \ + fpm/fpm_scoreboard.c \ + fpm/fpm_signals.c \ + fpm/fpm_sockets.c \ + fpm/fpm_status.c \ + fpm/fpm_stdio.c \ + fpm/fpm_unix.c \ + fpm/fpm_worker_pool.c \ + fpm/zlog.c \ + fpm/events/select.c \ + fpm/events/poll.c \ + fpm/events/epoll.c \ + fpm/events/kqueue.c \ + fpm/events/devpoll.c \ + fpm/events/port.c \ + " + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES fpm" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=fpm + fi + + + + BUILD_DIR="$BUILD_DIR sapi/fpm" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-fpm" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS" + + + case sapi/fpm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *darwin*) + BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *) + BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM" + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_with_isapi=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zeus ISAPI support" >&5 +$as_echo_n "checking for Zeus ISAPI support... " >&6; } + +# Check whether --with-isapi was given. +if test "${with_isapi+set}" = set; then : + withval=$with_isapi; PHP_ISAPI=$withval +else + + PHP_ISAPI=no + + +fi + + +ext_output=$PHP_ISAPI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ISAPI" != "no"; then + if test "$PHP_ISAPI" = "yes"; then + ZEUSPATH=/usr/local/zeus # the default + else + ZEUSPATH=$PHP_ISAPI + fi + test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5 + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define WITH_ZEUS 1" >>confdefs.h + + + if test "$ZEUSPATH/web/include" != "/usr/include"; then + + if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then + ai_p=$ZEUSPATH/web/include + else + + ep_dir=`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZEUSPATH/web/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES isapi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=isapi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/isapi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS isapi" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/isapi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php5isapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for LiteSpeed support... " >&6; } + + +php_with_litespeed=no + + + +# Check whether --with-litespeed was given. +if test "${with_litespeed+set}" = set; then : + withval=$with_litespeed; PHP_LITESPEED=$withval +else + + PHP_LITESPEED=no + test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LITESPEED in +shared,*) + PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'` + ;; +shared) + PHP_LITESPEED=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test "$PHP_LITESPEED" != "no"; then + + src=$abs_srcdir/sapi/litespeed/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/litespeed + ac_builddir=sapi/litespeed + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + SAPI_LITESPEED_PATH=sapi/litespeed/php + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES litespeed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=litespeed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/litespeed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-litespeed" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS" + + + case sapi/litespeed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in lsapi_main.c lsapilib.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_LITESPEED" >&6; } + + + +php_with_milter=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Milter support" >&5 +$as_echo_n "checking for Milter support... " >&6; } + +# Check whether --with-milter was given. +if test "${with_milter+set}" = set; then : + withval=$with_milter; PHP_MILTER=$withval +else + + PHP_MILTER=no + + +fi + + +ext_output=$PHP_MILTER +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MILTER" != "no"; then + if test "$PHP_MILTER" = "yes"; then + if test -f /usr/lib/libmilter.a ; then + MILTERPATH=/usr/lib + else + if test -f /usr/lib/libmilter/libmilter.a ; then + MILTERPATH=/usr/lib/libmilter + else + as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5 + fi + fi + else + MILTERPATH=$PHP_MILTER + fi + + SAPI_MILTER_PATH=sapi/milter/php-milter + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + src=$abs_srcdir/sapi/milter/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/milter + ac_builddir=sapi/milter + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES milter" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=milter + fi + + + + BUILD_DIR="$BUILD_DIR sapi/milter" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS milter" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-milter" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MILTER_OBJS" + + + case sapi/milter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_milter.c getopt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_MILTER_OBJS="$PHP_MILTER_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null ; then + ai_p=$MILTERPATH + else + + ep_dir=`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MILTERPATH"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case milter in + c|c_r|pthread*) ;; + *) + LIBS="-lmilter $LIBS" + ;; + esac + + + + + BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_MILTER_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER" + +fi + + + +php_with_nsapi=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI support" >&5 +$as_echo_n "checking for NSAPI support... " >&6; } + +# Check whether --with-nsapi was given. +if test "${with_nsapi+set}" = set; then : + withval=$with_nsapi; PHP_NSAPI=$withval +else + + PHP_NSAPI=no + + +fi + + +ext_output=$PHP_NSAPI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_NSAPI" != "no"; then + if test ! -d $PHP_NSAPI/bin ; then + as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5 +$as_echo_n "checking for NSAPI include files... " >&6; } + if test -d $PHP_NSAPI/include ; then + NSAPI_INC_DIR="$PHP_NSAPI/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape 3.x / Sun 7.x style" >&5 +$as_echo "Netscape 3.x / Sun 7.x style" >&6; } + for ac_header in $NSAPI_INC_DIR/nsapi.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + NSAPI_INCLUDE="-I$NSAPI_INC_DIR" + fi + if test -d $PHP_NSAPI/plugins/include ; then + NSAPI_INC_DIR="$PHP_NSAPI/plugins/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / Sun 6.x style" >&5 +$as_echo "iPlanet 4.x / Sun 6.x style" >&6; } + for ac_header in $NSAPI_INC_DIR/nsapi.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR" + fi + if test -z "$NSAPI_INCLUDE"; then + as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5 + fi + + + for ac_i in $NSAPI_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_NSAPI 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES nsapi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=nsapi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/nsapi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS nsapi" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/nsapi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in nsapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for PHTTPD support... " >&6; } + +# Check whether --with-phttpd was given. +if test "${with_phttpd+set}" = set; then : + withval=$with_phttpd; PHP_PHTTPD=$withval +else + + PHP_PHTTPD=no + + +fi + + +ext_output=$PHP_PHTTPD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHTTPD" != "no"; then + if test ! -d $PHP_PHTTPD ; then + as_fn_error $? "You did not specify a directory" "$LINENO" 5 + fi + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + if test "$PHP_PHTTPD/include" != "/usr/include"; then + + if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_PHTTPD/include + else + + ep_dir=`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_PHTTPD/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_PHTTPD 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES phttpd" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=phttpd + fi + + + + BUILD_DIR="$BUILD_DIR sapi/phttpd" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phttpd" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/phttpd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in phttpd.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for Pi3Web support... " >&6; } + +# Check whether --with-pi3web was given. +if test "${with_pi3web+set}" = set; then : + withval=$with_pi3web; PHP_PI3WEB=$withval +else + + PHP_PI3WEB=no + + +fi + + +ext_output=$PHP_PI3WEB +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PI3WEB" != "no"; then + if test "$PHP_PI3WEB" = "yes"; then + PI3PATH=../.. # the default + else + PI3PATH=$PHP_PI3WEB + fi + test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5 + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define WITH_PI3WEB 1" >>confdefs.h + + + if test "$PI3PATH/PiAPI" != "/usr/include"; then + + if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/PiAPI + else + + ep_dir=`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/PiAPI"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/Pi2API" != "/usr/include"; then + + if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/Pi2API + else + + ep_dir=`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/Pi2API"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/Pi3API" != "/usr/include"; then + + if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/Pi3API + else + + ep_dir=`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/Pi3API"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/PHP5" != "/usr/include"; then + + if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/PHP5 + else + + ep_dir=`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/PHP5"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES pi3web" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=pi3web + fi + + + + BUILD_DIR="$BUILD_DIR sapi/pi3web" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS pi3web" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/pi3web in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pi3web_sapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking whether Roxen module is build using ZTS... " >&6; } +# Check whether --enable-roxen-zts was given. +if test "${enable_roxen_zts+set}" = set; then : + enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval +else + + PHP_ROXEN_ZTS=no + + +fi + + +ext_output=$PHP_ROXEN_ZTS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +RESULT= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Roxen/Pike support" >&5 +$as_echo_n "checking for Roxen/Pike support... " >&6; } +if test "$PHP_ROXEN" != "no"; then + if test ! -d $PHP_ROXEN ; then + as_fn_error $? "You did not specify a directory" "$LINENO" 5 + fi + if test -f $PHP_ROXEN/bin/roxen; then + PIKE=$PHP_ROXEN/bin/roxen + elif test -f $PHP_ROXEN/bin/pike; then + PIKE=$PHP_ROXEN/bin/pike + else + as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5 + fi + + if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then + PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` + PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'` + if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 + fi + else + as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5 + fi + + + if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PIKE_INCLUDE_DIR + else + + ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_ROXEN 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES roxen" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=roxen + fi + + + + BUILD_DIR="$BUILD_DIR sapi/roxen" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS roxen" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/roxen in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in roxen.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5 +$as_echo "$RESULT" >&6; } + + + + +php_with_thttpd=no + + + +# Check whether --with-thttpd was given. +if test "${with_thttpd+set}" = set; then : + withval=$with_thttpd; PHP_THTTPD=$withval +else + + PHP_THTTPD=no + + +fi + + +ext_output=$PHP_THTTPD + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thttpd" >&5 +$as_echo_n "checking for thttpd... " >&6; } + +if test "$PHP_THTTPD" != "no"; then + if test ! -d $PHP_THTTPD; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: thttpd directory does not exist ($PHP_THTTPD)" >&5 +$as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; } + fi + + + if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then + THTTPD=$PHP_THTTPD + else + + ep_dir=`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + THTTPD="$ep_realdir"/`basename "$PHP_THTTPD"` + fi + + + if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then + patch="test -f $THTTPD/php_patched || \ + (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)" + + elif grep Premium $PHP_THTTPD/version.h >/dev/null; then + patch= + else + as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5 + fi + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + INSTALL_IT="\ + echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \ + echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \ + echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \ + rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \ + \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \ + \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\ + $patch" + PHP_THTTPD="yes, using $THTTPD" + + if test "$THTTPD" != "/usr/include"; then + + if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then + ai_p=$THTTPD + else + + ep_dir=`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THTTPD"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES thttpd" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=thttpd + fi + + + + BUILD_DIR="$BUILD_DIR sapi/thttpd" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS thttpd" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_THTTPD" >&5 +$as_echo "$PHP_THTTPD" >&6; } + + + +php_with_tux=no + + + +# Check whether --with-tux was given. +if test "${with_tux+set}" = set; then : + withval=$with_tux; PHP_TUX=$withval +else + + PHP_TUX=no + + +fi + + +ext_output=$PHP_TUX + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TUX" >&5 +$as_echo_n "checking for TUX... " >&6; } +if test "$PHP_TUX" != "no"; then + INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so" + for ac_header in tuxmodule.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default" +if test "x$ac_cv_header_tuxmodule_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TUXMODULE_H 1 +_ACEOF + : +else + as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5 +fi + +done + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES tux" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=tux + fi + + + + BUILD_DIR="$BUILD_DIR sapi/tux" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS tux" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/tux in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_tux.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_TUX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_with_webjames=no + + + +# Check whether --with-webjames was given. +if test "${with_webjames+set}" = set; then : + withval=$with_webjames; PHP_WEBJAMES=$withval +else + + PHP_WEBJAMES=no + + +fi + + +ext_output=$PHP_WEBJAMES + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for webjames" >&5 +$as_echo_n "checking for webjames... " >&6; } + +if test "$PHP_WEBJAMES" != "no"; then + + if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then + PHP_WEBJAMES=$PHP_WEBJAMES + else + + ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_WEBJAMES="$ep_realdir"/`basename "$PHP_WEBJAMES"` + fi + + INSTALL_IT="\ + echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \ + echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \ + echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;" + + if test "$PHP_WEBJAMES" != "/usr/include"; then + + if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then + ai_p=$PHP_WEBJAMES + else + + ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_WEBJAMES"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES webjames" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=webjames + fi + + + + BUILD_DIR="$BUILD_DIR sapi/webjames" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS webjames" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/webjames in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in webjames.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes, using $PHP_WEBJAMES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_enable_cgi=yes + + +# Check whether --enable-cgi was given. +if test "${enable_cgi+set}" = set; then : + enableval=$enable_cgi; PHP_CGI=$enableval +else + + PHP_CGI=yes + + +fi + + +ext_output=$PHP_CGI + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5 +$as_echo_n "checking for CGI build... " >&6; } +if test "$PHP_CGI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5 +$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "socklen_t" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 +$as_echo_n "checking for sun_len in sys/un.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sun_len" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 +$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; } + case "`uname -sr`" in + IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_LOCKING 1" >>confdefs.h + + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + + src=$abs_srcdir/sapi/cgi/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + case $host_alias in + *cygwin* ) + SAPI_CGI_PATH=sapi/cgi/php-cgi.exe + ;; + * ) + SAPI_CGI_PATH=sapi/cgi/php-cgi + ;; + esac + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cgi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cgi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cgi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cgi" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS" + + + case sapi/cgi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in cgi_main.c fastcgi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + else + BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + fi + ;; + *darwin*) + BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + *) + BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 +$as_echo_n "checking for chosen SAPI module... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 +$as_echo "$PHP_SAPI" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 +$as_echo_n "checking for executable SAPI binaries... " >&6; } +if test "$PHP_BINARIES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 +$as_echo "$PHP_BINARIES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + +if test -z "$PHP_INSTALLED_SAPIS"; then + as_fn_error $? "Nothing to build." "$LINENO" 5 +fi + +if test "$enable_maintainer_zts" = "yes"; then + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 + fi + case $host_alias in + *solaris*) + PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";; + *freebsd*) + PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";; + *linux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *aix*) + PTHREAD_FLAGS=-D_THREAD_SAFE;; + *irix*) + PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;; + *hpux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *sco*) + PTHREAD_FLAGS=-D_REENTRANT;; + esac + + if test -n "$PTHREAD_FLAGS"; then + CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS" + fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 +$as_echo "${T_MD}Running system checks${T_ME}" >&6; } + + + + PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib + # Extract the first word of "sendmail", so it can be a program name with args. +set dummy sendmail; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PROG_SENDMAIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PROG_SENDMAIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:$PHP_ALT_PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL +if test -n "$PROG_SENDMAIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 +$as_echo "$PROG_SENDMAIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL" + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 +$as_echo_n "checking whether system uses EBCDIC... " >&6; } +if ${ac_cv_ebcdic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_ebcdic=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { + return (unsigned char)'A' != (unsigned char)0xC1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_ebcdic=yes + +else + + ac_cv_ebcdic=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 +$as_echo "$ac_cv_ebcdic" >&6; } + if test "$ac_cv_ebcdic" = "yes"; then + +$as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 +$as_echo_n "checking whether writing to stdout works... " >&6; } +if ${ac_cv_write_stdout+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_write_stdout=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_UNISTD_H +#include +#endif + +#define TEXT "This is the test message -- " + +main() +{ + int n; + + n = write(1, TEXT, sizeof(TEXT)-1); + return (!(n == sizeof(TEXT)-1)); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_write_stdout=yes + +else + + ac_cv_write_stdout=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 +$as_echo "$ac_cv_write_stdout" >&6; } + if test "$ac_cv_write_stdout" = "yes"; then + +$as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h + + fi + + +if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib" +fi +test -d /usr/ucblib && + if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then + + if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then + ai_p=/usr/ucblib + else + + ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "/usr/ucblib"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + + + + unset ac_cv_func_socket + unset ac_cv_func___socket + unset found + + ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" +if test "x$ac_cv_func___socket" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + ;; + + *) + + unset ac_cv_lib_socket_socket + unset ac_cv_lib_socket___socket + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 +$as_echo_n "checking for __socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socket (); +int +main () +{ +return __socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socket=yes +else + ac_cv_lib_socket___socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 +$as_echo "$ac_cv_lib_socket___socket" >&6; } +if test "x$ac_cv_lib_socket___socket" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_socketpair + unset ac_cv_func___socketpair + unset found + + ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" +if test "x$ac_cv_func_socketpair" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" +if test "x$ac_cv_func___socketpair" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + ac_cv_func_socketpair=yes + ;; + + *) + + unset ac_cv_lib_socket_socketpair + unset ac_cv_lib_socket___socketpair + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 +$as_echo_n "checking for socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socketpair (); +int +main () +{ +return socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socketpair=yes +else + ac_cv_lib_socket_socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 +$as_echo "$ac_cv_lib_socket_socketpair" >&6; } +if test "x$ac_cv_lib_socket_socketpair" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 +$as_echo_n "checking for __socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socketpair (); +int +main () +{ +return __socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socketpair=yes +else + ac_cv_lib_socket___socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 +$as_echo "$ac_cv_lib_socket___socketpair" >&6; } +if test "x$ac_cv_lib_socket___socketpair" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socketpair=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_htonl + unset ac_cv_func___htonl + unset found + + ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" +if test "x$ac_cv_func_htonl" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" +if test "x$ac_cv_func___htonl" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + ac_cv_func_htonl=yes + ;; + + *) + + unset ac_cv_lib_socket_htonl + unset ac_cv_lib_socket___htonl + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 +$as_echo_n "checking for htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket_htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char htonl (); +int +main () +{ +return htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_htonl=yes +else + ac_cv_lib_socket_htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 +$as_echo "$ac_cv_lib_socket_htonl" >&6; } +if test "x$ac_cv_lib_socket_htonl" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 +$as_echo_n "checking for __htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket___htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __htonl (); +int +main () +{ +return __htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___htonl=yes +else + ac_cv_lib_socket___htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 +$as_echo "$ac_cv_lib_socket___htonl" >&6; } +if test "x$ac_cv_lib_socket___htonl" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_htonl=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostname + unset ac_cv_func___gethostname + unset found + + ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" +if test "x$ac_cv_func_gethostname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" +if test "x$ac_cv_func___gethostname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + ac_cv_func_gethostname=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostname + unset ac_cv_lib_nsl___gethostname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 +$as_echo_n "checking for gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostname (); +int +main () +{ +return gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostname=yes +else + ac_cv_lib_nsl_gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostname" >&6; } +if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 +$as_echo_n "checking for __gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostname (); +int +main () +{ +return __gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostname=yes +else + ac_cv_lib_nsl___gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 +$as_echo "$ac_cv_lib_nsl___gethostname" >&6; } +if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostname=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostbyaddr + unset ac_cv_func___gethostbyaddr + unset found + + ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" +if test "x$ac_cv_func___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostbyaddr + unset ac_cv_lib_nsl___gethostbyaddr + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyaddr=yes +else + ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostbyaddr (); +int +main () +{ +return __gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostbyaddr=yes +else + ac_cv_lib_nsl___gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_yp_get_default_domain + unset ac_cv_func___yp_get_default_domain + unset found + + ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" +if test "x$ac_cv_func_yp_get_default_domain" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain" +if test "x$ac_cv_func___yp_get_default_domain" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h + + ac_cv_func_yp_get_default_domain=yes + ;; + + *) + + unset ac_cv_lib_nsl_yp_get_default_domain + unset ac_cv_lib_nsl___yp_get_default_domain + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5 +$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char yp_get_default_domain (); +int +main () +{ +return yp_get_default_domain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_yp_get_default_domain=yes +else + ac_cv_lib_nsl_yp_get_default_domain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5 +$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; } +if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5 +$as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __yp_get_default_domain (); +int +main () +{ +return __yp_get_default_domain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___yp_get_default_domain=yes +else + ac_cv_lib_nsl___yp_get_default_domain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5 +$as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; } +if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_yp_get_default_domain=yes + else + + : + + fi + + ;; + + esac + + + + unset ac_cv_func_dlopen + unset ac_cv_func___dlopen + unset found + + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" +if test "x$ac_cv_func___dlopen" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + ac_cv_func_dlopen=yes + ;; + + *) + + unset ac_cv_lib_dl_dlopen + unset ac_cv_lib_dl___dlopen + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 +$as_echo_n "checking for __dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlopen (); +int +main () +{ +return __dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlopen=yes +else + ac_cv_lib_dl___dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 +$as_echo "$ac_cv_lib_dl___dlopen" >&6; } +if test "x$ac_cv_lib_dl___dlopen" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlopen=yes + else + + : + + fi + + ;; + + esac + +if test "$ac_cv_func_dlopen" = "yes"; then + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + + + unset ac_cv_func_inet_aton + unset ac_cv_func___inet_aton + unset found + + ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" +if test "x$ac_cv_func_inet_aton" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" +if test "x$ac_cv_func___inet_aton" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + ;; + + *) + + unset ac_cv_lib_resolv_inet_aton + unset ac_cv_lib_resolv___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_inet_aton=yes +else + ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 +$as_echo_n "checking for __inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___inet_aton=yes +else + ac_cv_lib_resolv___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } +if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + + unset ac_cv_lib_bind_inet_aton + unset ac_cv_lib_bind___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 +$as_echo_n "checking for inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_inet_aton=yes +else + ac_cv_lib_bind_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 +$as_echo "$ac_cv_lib_bind_inet_aton" >&6; } +if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 +$as_echo_n "checking for __inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___inet_aton=yes +else + ac_cv_lib_bind___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 +$as_echo "$ac_cv_lib_bind___inet_aton" >&6; } +if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + : + + fi + + + fi + + ;; + + esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } +if eval \${$as_ac_Header+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include <$ac_hdr> + +int +main () +{ +if ((DIR *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_ac_Header=yes" +else + eval "$as_ac_Header=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_ac_Header + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 +_ACEOF + +ac_header_dirent=$ac_hdr; break +fi + +done +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' dir; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' x; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + +for ac_header in \ +inttypes.h \ +stdint.h \ +dirent.h \ +ApplicationServices/ApplicationServices.h \ +sys/param.h \ +sys/types.h \ +sys/time.h \ +netinet/in.h \ +alloca.h \ +arpa/inet.h \ +arpa/nameser.h \ +assert.h \ +crypt.h \ +dns.h \ +fcntl.h \ +grp.h \ +ieeefp.h \ +langinfo.h \ +limits.h \ +locale.h \ +monetary.h \ +netdb.h \ +pwd.h \ +resolv.h \ +signal.h \ +stdarg.h \ +stdlib.h \ +string.h \ +syslog.h \ +sysexits.h \ +sys/ioctl.h \ +sys/file.h \ +sys/mman.h \ +sys/mount.h \ +sys/poll.h \ +sys/resource.h \ +sys/select.h \ +sys/socket.h \ +sys/stat.h \ +sys/statfs.h \ +sys/statvfs.h \ +sys/vfs.h \ +sys/sysexits.h \ +sys/varargs.h \ +sys/wait.h \ +sys/loadavg.h \ +termios.h \ +unistd.h \ +unix.h \ +utime.h \ +sys/utsname.h \ +sys/ipc.h \ +dlfcn.h \ +assert.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" +if test "x$ac_cv_func_fopencookie" = xyes; then : + have_glibc_fopencookie=yes +fi + + + if test "$have_glibc_fopencookie" = "yes"; then +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_cookie_io_functions_t" = "yes"; then + cookie_io_functions_t=cookie_io_functions_t + have_fopen_cookie=yes + +if test "$cross_compiling" = yes; then : + + cookie_io_functions_use_off64_t=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +struct cookiedata { + __off64_t pos; +}; + +__ssize_t reader(void *cookie, char *buffer, size_t size) +{ return size; } +__ssize_t writer(void *cookie, const char *buffer, size_t size) +{ return size; } +int closer(void *cookie) +{ return 0; } +int seeker(void *cookie, __off64_t *position, int whence) +{ ((struct cookiedata*)cookie)->pos = *position; return 0; } + +cookie_io_functions_t funcs = {reader, writer, seeker, closer}; + +main() { + struct cookiedata g = { 0 }; + FILE *fp = fopencookie(&g, "r", funcs); + + if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192) + exit(0); + exit(1); +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + cookie_io_functions_use_off64_t=yes + +else + + cookie_io_functions_use_off64_t=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ + _IO_cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_IO_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$have_cookie_io_functions_t" = "yes" ; then + cookie_io_functions_t=_IO_cookie_io_functions_t + have_fopen_cookie=yes + fi + fi + + if test "$have_fopen_cookie" = "yes" ; then + +$as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h + + +cat >>confdefs.h <<_ACEOF +#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t +_ACEOF + + if test "$cookie_io_functions_use_off64_t" = "yes" ; then + +$as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h + + fi + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 +$as_echo_n "checking for broken getcwd... " >&6; } + os=`uname -sr 2>/dev/null` + case $os in + SunOS*) + +$as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; };; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5 +$as_echo_n "checking for broken libc stdio... " >&6; } + if ${_cv_have_broken_glibc_fopen_append+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#if !__GLIBC_PREREQ(2,2) +choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + _cv_have_broken_glibc_fopen_append=yes +else + _cv_have_broken_glibc_fopen_append=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(int argc, char *argv[]) +{ + FILE *fp; + long position; + char *filename = tmpnam(NULL); + + fp = fopen(filename, "w"); + if (fp == NULL) { + perror("fopen"); + exit(2); + } + fputs("foobar", fp); + fclose(fp); + + fp = fopen(filename, "a+"); + position = ftell(fp); + fclose(fp); + unlink(filename); + if (position == 0) + return 1; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + _cv_have_broken_glibc_fopen_append=no +else + _cv_have_broken_glibc_fopen_append=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi + + + if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include +#include <$ac_cv_struct_tm> + +" +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_ZONE 1 +_ACEOF + + +fi + +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h + +else + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" +if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_TZNAME $ac_have_decl +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +$as_echo_n "checking for tzname... " >&6; } +if ${ac_cv_var_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if !HAVE_DECL_TZNAME +extern char *tzname[]; +#endif + +int +main () +{ +return tzname[0][0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_var_tzname=yes +else + ac_cv_var_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +$as_echo "$ac_cv_var_tzname" >&6; } + if test $ac_cv_var_tzname = yes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + fi +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5 +$as_echo_n "checking for missing declarations of reentrant functions... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = localtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = gmtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = asctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = ctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = strtok_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 +$as_echo_n "checking for fclose declaration... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int (*func)() = fclose + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + +$as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +$as_echo "missing" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 +$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } +if ${ac_cv_struct_tm_gmtoff+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include <$ac_cv_struct_tm> +int +main () +{ +struct tm tm; tm.tm_gmtoff; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm_gmtoff=yes +else + ac_cv_struct_tm_gmtoff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5 +$as_echo "$ac_cv_struct_tm_gmtoff" >&6; } + +if test "$ac_cv_struct_tm_gmtoff" = yes; then + +$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 +$as_echo_n "checking for struct flock... " >&6; } +if ${ac_cv_struct_flock+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +struct flock x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_struct_flock=yes + +else + + ac_cv_struct_flock=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 +$as_echo "$ac_cv_struct_flock" >&6; } +if test "$ac_cv_struct_flock" = "yes" ; then + +$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 +$as_echo_n "checking for socklen_t... " >&6; } +if ${ac_cv_socklen_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + +socklen_t x; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_socklen_t=yes + +else + + ac_cv_socklen_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5 +$as_echo "$ac_cv_socklen_t" >&6; } +if test "$ac_cv_socklen_t" = "yes"; then + +$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +$as_echo_n "checking size of size_t... " >&6; } +if ${ac_cv_sizeof_size_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_size_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (size_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_size_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +$as_echo "$ac_cv_sizeof_size_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 +$as_echo_n "checking size of long long int... " >&6; } +if ${ac_cv_sizeof_long_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 +$as_echo_n "checking size of intmax_t... " >&6; } + + php_cache_value=php_cv_sizeof_intmax_t + if ${php_cv_sizeof_intmax_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(intmax_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTMAX_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 +$as_echo "$php_cv_sizeof_intmax_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 +$as_echo_n "checking size of ssize_t... " >&6; } + + php_cache_value=php_cv_sizeof_ssize_t + if ${php_cv_sizeof_ssize_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ssize_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 +$as_echo "$php_cv_sizeof_ssize_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +$as_echo_n "checking size of ptrdiff_t... " >&6; } + + php_cache_value=php_cv_sizeof_ptrdiff_t + if ${php_cv_sizeof_ptrdiff_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ptrdiff_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_PTRDIFF_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 +$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; } + + +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h + +fi + + +if test "`uname -s 2>/dev/null`" != "QNX"; then + ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" fileblocks.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" + ;; +esac + +fi + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5 +$as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;} + WARNING_LEVEL=0 +fi +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_RDEV 1 +_ACEOF + + +$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h + +fi + + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 +$as_echo_n "checking for struct sockaddr_storage... " >&6; } +if ${ac_cv_sockaddr_storage+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +struct sockaddr_storage s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_storage=yes +else + ac_cv_sockaddr_storage=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 +$as_echo "$ac_cv_sockaddr_storage" >&6; } + if test "$ac_cv_sockaddr_storage" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 +$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } +if ${ac_cv_sockaddr_sa_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +static struct sockaddr sa; int n = (int) sa.sa_len; return n; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_sa_len=yes +else + ac_cv_sockaddr_sa_len=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 +$as_echo "$ac_cv_sockaddr_sa_len" >&6; } + if test "$ac_cv_sockaddr_sa_len" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +$as_echo_n "checking for IPv6 support... " >&6; } +if ${ac_cv_ipv6_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +#include +#include +int +main () +{ +struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_ipv6_support=yes +else + ac_cv_ipv6_support=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 +$as_echo "$ac_cv_ipv6_support" >&6; } + + +for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = xyes; then : + +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + +for ac_func in alphasort \ +asctime_r \ +chroot \ +ctime_r \ +cuserid \ +crypt \ +flock \ +ftok \ +funopen \ +gai_strerror \ +gcvt \ +getloadavg \ +getlogin \ +getprotobyname \ +getprotobynumber \ +getservbyname \ +getservbyport \ +gethostname \ +getrusage \ +gettimeofday \ +gmtime_r \ +getpwnam_r \ +getgrnam_r \ +getpwuid_r \ +grantpt \ +inet_ntoa \ +inet_ntop \ +inet_pton \ +isascii \ +link \ +localtime_r \ +lockf \ +lchown \ +lrand48 \ +memcpy \ +memmove \ +mkstemp \ +mmap \ +nl_langinfo \ +perror \ +poll \ +ptsname \ +putenv \ +realpath \ +random \ +rand_r \ +scandir \ +setitimer \ +setlocale \ +localeconv \ +setenv \ +setpgid \ +setsockopt \ +setvbuf \ +shutdown \ +sin \ +snprintf \ +srand48 \ +srandom \ +statfs \ +statvfs \ +std_syslog \ +strcasecmp \ +strcoll \ +strdup \ +strerror \ +strftime \ +strnlen \ +strptime \ +strstr \ +strtok_r \ +symlink \ +tempnam \ +tzset \ +unlockpt \ +unsetenv \ +usleep \ +utime \ +vsnprintf \ +vasprintf \ +asprintf \ +nanosleep \ + +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + unset ac_cv_lib_rt_nanosleep + unset ac_cv_lib_rt___nanosleep + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 +$as_echo_n "checking for nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt_nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nanosleep (); +int +main () +{ +return nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_nanosleep=yes +else + ac_cv_lib_rt_nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 +$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } +if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 +$as_echo_n "checking for __nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt___nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __nanosleep (); +int +main () +{ +return __nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___nanosleep=yes +else + ac_cv_lib_rt___nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 +$as_echo "$ac_cv_lib_rt___nanosleep" >&6; } +if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_nanosleep=yes + else + + : + + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +$as_echo_n "checking for getaddrinfo... " >&6; } +if ${ac_cv_func_getaddrinfo+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_func_getaddrinfo=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifndef AF_INET +# include +#endif +int main(void) { + struct addrinfo *ai, *pai, hints; + + memset(&hints, 0, sizeof(hints)); + hints.ai_flags = AI_NUMERICHOST; + + if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { + exit(1); + } + + if (ai == 0) { + exit(1); + } + + pai = ai; + + while (pai) { + if (pai->ai_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + if (pai->ai_addr->sa_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + pai = pai->ai_next; + } + freeaddrinfo(ai); + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_getaddrinfo=yes +else + ac_cv_func_getaddrinfo=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + ac_cv_func_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 +$as_echo "$ac_cv_func_getaddrinfo" >&6; } +if test "$ac_cv_func_getaddrinfo" = yes; then + +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 +$as_echo_n "checking for __sync_fetch_and_add... " >&6; } +if ${ac_cv_func_sync_fetch_and_add+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int x;__sync_fetch_and_add(&x,1); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_sync_fetch_and_add=yes +else + ac_cv_func_sync_fetch_and_add=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5 +$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; } +if test "$ac_cv_func_sync_fetch_and_add" = yes; then + +$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes; then : + $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcat.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" +if test "x$ac_cv_func_strlcpy" = xyes; then : + $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcpy.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes; then : + $as_echo "#define HAVE_GETOPT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" getopt.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS getopt.$ac_objext" + ;; +esac + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 +$as_echo_n "checking whether utime accepts a null argument... " >&6; } +if ${ac_cv_func_utime_null+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.data; >conftest.data +# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. +if test "$cross_compiling" = yes; then : + ac_cv_func_utime_null='guessing yes' +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + #ifdef HAVE_UTIME_H + # include + #endif +int +main () +{ +struct stat s, t; + return ! (stat ("conftest.data", &s) == 0 + && utime ("conftest.data", 0) == 0 + && stat ("conftest.data", &t) == 0 + && t.st_mtime >= s.st_mtime + && t.st_mtime - s.st_mtime < 120); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_utime_null=yes +else + ac_cv_func_utime_null=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 +$as_echo "$ac_cv_func_utime_null" >&6; } +if test "x$ac_cv_func_utime_null" != xno; then + ac_cv_func_utime_null=yes + +$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h + +fi +rm -f conftest.data + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5 +$as_echo_n "checking for declared timezone... " >&6; } +if ${ac_cv_declared_timezone+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifdef HAVE_SYS_TIME_H +#include +#endif + +int +main () +{ + + time_t foo = (time_t) timezone; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_declared_timezone=yes + +else + + ac_cv_declared_timezone=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5 +$as_echo "$ac_cv_declared_timezone" >&6; } + if test "$ac_cv_declared_timezone" = "yes"; then + +$as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 +$as_echo_n "checking for type of reentrant time-related functions... " >&6; } +if ${ac_cv_time_r_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +main() { +char buf[27]; +struct tm t; +time_t old = 0; +int r, s; + +s = gmtime_r(&old, &t); +r = (int) asctime_r(&t, buf, 26); +if (r == s && s == 0) return (0); +return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=hpux + +else + + if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +main() { + struct tm t, *s; + time_t old = 0; + char buf[27], *p; + + s = gmtime_r(&old, &t); + p = asctime_r(&t, buf, 26); + if (p == buf && s == &t) return (0); + return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=irix + +else + + ac_cv_time_r_type=POSIX + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 +$as_echo "$ac_cv_time_r_type" >&6; } + case $ac_cv_time_r_type in + hpux) +$as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h + ;; + irix) +$as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h + ;; + esac + + + ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r" +if test "x$ac_cv_func_readdir_r" = xyes; then : + ac_cv_func_readdir_r=yes +else + ac_cv_func_readdir=no +fi + + if test "$ac_cv_func_readdir_r" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5 +$as_echo_n "checking for type of readdir_r... " >&6; } +if ${ac_cv_what_readdir_r+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_what_readdir_r=none + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT +#include +#include + +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + +main() { + DIR *dir; + char entry[sizeof(struct dirent)+PATH_MAX]; + struct dirent *pentry = (struct dirent *) &entry; + + dir = opendir("/"); + if (!dir) + exit(1); + if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0) + exit(0); + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_what_readdir_r=POSIX + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT +#include +#include +int readdir_r(DIR *, struct dirent *); + +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + + ac_cv_what_readdir_r=old-style + +else + + ac_cv_what_readdir_r=none + +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5 +$as_echo "$ac_cv_what_readdir_r" >&6; } + case $ac_cv_what_readdir_r in + POSIX) + +$as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h +;; + old-style) + +$as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h +;; + esac + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 +$as_echo_n "checking for in_addr_t... " >&6; } +if ${ac_cv_type_in_addr_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + ac_cv_type_in_addr_t=yes +else + ac_cv_type_in_addr_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 +$as_echo "$ac_cv_type_in_addr_t" >&6; } +if test $ac_cv_type_in_addr_t = no; then + +$as_echo "#define in_addr_t u_int" >>confdefs.h + +fi + + +for ac_func in crypt_r +do : + ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" +if test "x$ac_cv_func_crypt_r" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CRYPT_R 1 +_ACEOF + php_crypt_r="1" +else + php_crypt_r="0" +fi +done + +if test "x$php_crypt_r" = "x1"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +$as_echo_n "checking which data struct is used by crypt_r... " >&6; } +if ${php_cv_crypt_r_style+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_crypt_r_style=none + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +CRYPTD buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=cryptd +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#define _GNU_SOURCE +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data_gnu_source +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +$as_echo "$php_cv_crypt_r_style" >&6; } + + if test "$php_cv_crypt_r_style" = "cryptd"; then + +$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "none"; then + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 + fi + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 +$as_echo "${T_MD}General settings${T_ME}" >&6; } + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + +php_enable_gcov=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 +$as_echo_n "checking whether to include gcov symbols... " >&6; } +# Check whether --enable-gcov was given. +if test "${enable_gcov+set}" = set; then : + enableval=$enable_gcov; PHP_GCOV=$enableval +else + + PHP_GCOV=no + + +fi + + +ext_output=$PHP_GCOV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GCOV" = "yes"; then + + if test "$GCC" != "yes"; then + as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 + fi + + case `$php_shtool path $CC` in + *ccache*) gcc_ccache=yes;; + *) gcc_ccache=no;; + esac + + if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then + as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 + fi + + ltp_version_list="1.5 1.6 1.7 1.9 1.10" + + # Extract the first word of "lcov", so it can be a program name with args. +set dummy lcov; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LTP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LTP"; then + ac_cv_prog_LTP="$LTP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LTP="lcov" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LTP=$ac_cv_prog_LTP +if test -n "$LTP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5 +$as_echo "$LTP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "genhtml", so it can be a program name with args. +set dummy genhtml; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LTP_GENHTML+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LTP_GENHTML"; then + ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LTP_GENHTML="genhtml" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LTP_GENHTML=$ac_cv_prog_LTP_GENHTML +if test -n "$LTP_GENHTML"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5 +$as_echo "$LTP_GENHTML" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LTP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML" + + + if test "$LTP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5 +$as_echo_n "checking for ltp version... " >&6; } +if ${php_cv_ltp_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_ltp_version=invalid + ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'` + for ltp_check_version in $ltp_version_list; do + if test "$ltp_version" = "$ltp_check_version"; then + php_cv_ltp_version="$ltp_check_version (ok)" + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5 +$as_echo "$php_cv_ltp_version" >&6; } + else + ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list" + as_fn_error $? "$ltp_msg" "$LINENO" 5 + fi + + case $php_cv_ltp_version in + ""|invalid) + ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)." + as_fn_error $? "$ltp_msg" "$LINENO" 5 + LTP="exit 0;" + ;; + esac + + if test -z "$LTP_GENHTML"; then + as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_GCOV 1" >>confdefs.h + + + src=$abs_srcdir/Makefile.gcov + ac_srcdir=$abs_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + + + CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" +fi + + +php_enable_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 +$as_echo_n "checking whether to include debugging symbols... " >&6; } +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; PHP_DEBUG=$enableval +else + + PHP_DEBUG=no + + +fi + + +ext_output=$PHP_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DEBUG" = "yes"; then + PHP_DEBUG=1 + ZEND_DEBUG=yes + + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + + if test "$GCC" = "yes" || test "$ICC" = "yes"; then + CFLAGS="$CFLAGS -O0" + CXXFLAGS="$CXXFLAGS -g -O0" + fi + if test "$SUNCC" = "yes"; then + if test -n "$auto_cflags"; then + CFLAGS="-g" + CXXFLAGS="-g" + else + CFLAGS="$CFLAGS -g" + CXXFLAGS="$CFLAGS -g" + fi + fi +else + PHP_DEBUG=0 + ZEND_DEBUG=no +fi + + +php_with_layout=PHP + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 +$as_echo_n "checking layout of installed files... " >&6; } + +# Check whether --with-layout was given. +if test "${with_layout+set}" = set; then : + withval=$with_layout; PHP_LAYOUT=$withval +else + + PHP_LAYOUT=PHP + + +fi + + +ext_output=$PHP_LAYOUT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +case $PHP_LAYOUT in + GNU) + oldstyleextdir=no + ;; + *) + oldstyleextdir=yes + ;; +esac + + +php_with_config_file_path=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 +$as_echo_n "checking path to configuration file... " >&6; } + +# Check whether --with-config-file-path was given. +if test "${with_config_file_path+set}" = set; then : + withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval +else + + PHP_CONFIG_FILE_PATH=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_PATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then + case $PHP_LAYOUT in + GNU) + PHP_CONFIG_FILE_PATH=$sysconfdir + ;; + *) + PHP_CONFIG_FILE_PATH=$libdir + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 +$as_echo_n "checking where to scan for configuration files... " >&6; } + +php_with_config_file_scan_dir=DEFAULT + + + +# Check whether --with-config-file-scan-dir was given. +if test "${with_config_file_scan_dir+set}" = set; then : + withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval +else + + PHP_CONFIG_FILE_SCAN_DIR=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_SCAN_DIR + + + + +if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then + PHP_CONFIG_FILE_SCAN_DIR= +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 +$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + + +php_enable_sigchild=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 +$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; } +# Check whether --enable-sigchild was given. +if test "${enable_sigchild+set}" = set; then : + enableval=$enable_sigchild; PHP_SIGCHILD=$enableval +else + + PHP_SIGCHILD=no + + +fi + + +ext_output=$PHP_SIGCHILD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIGCHILD" = "yes"; then + +$as_echo "#define PHP_SIGCHILD 1" >>confdefs.h + +else + +$as_echo "#define PHP_SIGCHILD 0" >>confdefs.h + +fi + + +php_enable_libgcc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 +$as_echo_n "checking whether to explicitly link against libgcc... " >&6; } +# Check whether --enable-libgcc was given. +if test "${enable_libgcc+set}" = set; then : + enableval=$enable_libgcc; PHP_LIBGCC=$enableval +else + + PHP_LIBGCC=no + + +fi + + +ext_output=$PHP_LIBGCC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBGCC" = "yes"; then + + + libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'` + + + if test -z "$libgcc_libpath"; then + as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 + fi + + if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then + + if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then + ai_p=$libgcc_libpath + else + + ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$libgcc_libpath"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case gcc in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgcc" + ;; + esac + + +fi + + +php_enable_short_tags=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 +$as_echo_n "checking whether to enable short tags by default... " >&6; } +# Check whether --enable-short-tags was given. +if test "${enable_short_tags+set}" = set; then : + enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval +else + + PHP_SHORT_TAGS=yes + + +fi + + +ext_output=$PHP_SHORT_TAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHORT_TAGS" = "yes"; then + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h + +else + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h + +fi + + +php_enable_dmalloc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 +$as_echo_n "checking whether to enable dmalloc... " >&6; } +# Check whether --enable-dmalloc was given. +if test "${enable_dmalloc+set}" = set; then : + enableval=$enable_dmalloc; PHP_DMALLOC=$enableval +else + + PHP_DMALLOC=no + + +fi + + +ext_output=$PHP_DMALLOC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DMALLOC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 +$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } +if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldmalloc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dmalloc_error (); +int +main () +{ +return dmalloc_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dmalloc_dmalloc_error=yes +else + ac_cv_lib_dmalloc_dmalloc_error=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 +$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : + + + + case dmalloc in + c|c_r|pthread*) ;; + *) + LIBS="-ldmalloc $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DMALLOC 1" >>confdefs.h + + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + +else + + as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 + +fi + +fi + + +php_enable_ipv6=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 +$as_echo_n "checking whether to enable IPv6 support... " >&6; } +# Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : + enableval=$enable_ipv6; PHP_IPV6=$enableval +else + + PHP_IPV6=yes + + +fi + + +ext_output=$PHP_IPV6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then + +$as_echo "#define HAVE_IPV6 1" >>confdefs.h + +fi + + +php_enable_dtrace=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 +$as_echo_n "checking whether to enable DTrace support... " >&6; } +# Check whether --enable-dtrace was given. +if test "${enable_dtrace+set}" = set; then : + enableval=$enable_dtrace; PHP_DTRACE=$enableval +else + + PHP_DTRACE=no + + +fi + + +ext_output=$PHP_DTRACE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DTRACE" = "yes"; then + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + case "" in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;; + /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;; + *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";; + esac + + ac_provsrc=Zend/zend_dtrace.d + old_IFS=$IFS + IFS=. + set $ac_provsrc + ac_provobj=$1 + IFS=$old_IFS + + ac_hdrobj=Zend/zend_dtrace_gen.h + + case $host_alias in + *freebsd*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o" + PHP_LDFLAGS="$PHP_LDFLAGS -lelf" + ;; + *solaris*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + *linux*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + esac + + old_IFS=$IFS + for ac_src in main/main.c Zend/zend_API.c \ + Zend/zend_execute.c Zend/zend_exceptions.c \ + Zend/zend_dtrace.c Zend/zend.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + case $php_sapi_module in + shared) + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + ;; + *) + dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + ;; + esac + + cat>>Makefile.objects< \$@ + +\$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + + ;; + *) +cat>>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS" + + +else + + as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 + +fi + +done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 +$as_echo_n "checking how big to make fd sets... " >&6; } + +php_enable_fd_setsize=no + + +# Check whether --enable-fd-setsize was given. +if test "${enable_fd_setsize+set}" = set; then : + enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval +else + + PHP_FD_SETSIZE=no + + +fi + + +ext_output=$PHP_FD_SETSIZE + + + + + +if test "$PHP_FD_SETSIZE" != "no"; then + if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then + CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 +$as_echo "using $PHP_FD_SETSIZE" >&6; } + else + as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 +$as_echo "using system default" >&6; } +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 +$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; } + + + +# Check whether --enable-all was given. +if test "${enable_all+set}" = set; then : + enableval=$enable_all; + PHP_ENABLE_ALL=$enableval + +fi + + +# reading config stubs + + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 +$as_echo_n "checking for int32_t... " >&6; } +if ${ac_cv_int_type_int32_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#elif HAVE_STDINT_H +# include +#endif +int +main () +{ +if ((int32_t *) 0) + return 0; +if (sizeof (int32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_int_type_int32_t=yes +else + ac_cv_int_type_int32_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_int32_t" >&5 +$as_echo "$ac_cv_int_type_int32_t" >&6; } +if test "$ac_cv_int_type_int32_t" = "yes"; then + +$as_echo "#define HAVE_INT32_T 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 +$as_echo_n "checking for uint32_t... " >&6; } +if ${ac_cv_int_type_uint32_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#elif HAVE_STDINT_H +# include +#endif +int +main () +{ +if ((uint32_t *) 0) + return 0; +if (sizeof (uint32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_int_type_uint32_t=yes +else + ac_cv_int_type_uint32_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_uint32_t" >&5 +$as_echo "$ac_cv_int_type_uint32_t" >&6; } +if test "$ac_cv_int_type_uint32_t" = "yes"; then + +$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h + +fi + + +for ac_header in \ +sys/types.h \ +inttypes.h \ +stdint.h \ +string.h \ +stdlib.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_func in strtoll atoll strftime +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + +PHP_DATE_CFLAGS="-I@ext_builddir@/lib" +timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c + lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" + + + ext_builddir=ext/date + ext_srcdir=$abs_srcdir/ext/date + + ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_DATE_SHARED=no + + + case ext/date in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DATE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_DATE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/date in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_builddir/lib + else + + ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_srcdir/lib" != "/usr/include"; then + + if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/lib + else + + ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + header_path=ext/date + for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + +cat > $ext_builddir/lib/timelib_config.h < +#endif +EOF + + + +php_with_regex=php + + + +# Check whether --with-regex was given. +if test "${with_regex+set}" = set; then : + withval=$with_regex; PHP_REGEX=$withval +else + + PHP_REGEX=php + + +fi + + +ext_output=$PHP_REGEX + + + + + +case $PHP_REGEX in + system) + if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then + REGEX_TYPE=php + else + REGEX_TYPE=system + fi + ;; + yes | php) + REGEX_TYPE=php + ;; + *) + REGEX_TYPE=php + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid regex library type selected. Using default value: php" >&5 +$as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;} + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which regex library to use" >&5 +$as_echo_n "checking which regex library to use... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REGEX_TYPE" >&5 +$as_echo "$REGEX_TYPE" >&6; } + +if test "$REGEX_TYPE" = "php"; then + ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c" + ereg_regex_headers="regex/" + PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp" +fi + + + ext_builddir=ext/ereg + ext_srcdir=$abs_srcdir/ext/ereg + + ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_EREG_SHARED=no + + + case ext/ereg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ereg.c $ereg_regex_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EREG 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_EREG_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ereg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ereg.c $ereg_regex_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +$as_echo "#define HSREGEX 1" >>confdefs.h + + +$as_echo "#define REGEX 1" >>confdefs.h + + + + $php_shtool mkdir -p $ext_builddir/regex + + + + if test "$ext_srcdir/regex" != "/usr/include"; then + + if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/regex + else + + ep_dir=`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/regex"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + +elif test "$REGEX_TYPE" = "system"; then + +$as_echo "#define REGEX 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5 +$as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; } +if ${ac_cv_regex_t_re_magic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +regex_t rt; rt.re_magic; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_regex_t_re_magic=yes +else + ac_cv_regex_t_re_magic=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_regex_t_re_magic" >&5 +$as_echo "$ac_cv_regex_t_re_magic" >&6; } + if test "$ac_cv_regex_t_re_magic" = "yes"; then + +$as_echo "#define HAVE_REGEX_T_RE_MAGIC " >>confdefs.h + + fi +fi + + + +php_enable_libxml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5 +$as_echo_n "checking whether to enable LIBXML support... " >&6; } +# Check whether --enable-libxml was given. +if test "${enable_libxml+set}" = set; then : + enableval=$enable_libxml; PHP_LIBXML=$enableval +else + + PHP_LIBXML=yes + test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBXML in +shared,*) + PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_LIBXML" != "no"; then + + ext_shared=no + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $LIBXML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + ext_builddir=ext/libxml + ext_srcdir=$abs_srcdir/ext/libxml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LIBXML_SHARED=no + + + case ext/libxml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LIBXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LIBXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/libxml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for OpenSSL support... " >&6; } + +# Check whether --with-openssl was given. +if test "${with_openssl+set}" = set; then : + withval=$with_openssl; PHP_OPENSSL=$withval +else + + PHP_OPENSSL=no + test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPENSSL in +shared,*) + PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPENSSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 +$as_echo_n "checking for Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPENSSL" != "no"; then + + ext_builddir=ext/openssl + ext_srcdir=$abs_srcdir/ext/openssl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OPENSSL_SHARED=no + + + case ext/openssl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPENSSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OPENSSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/openssl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no" + ;; +esac +fi +KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG +if test -n "$KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 +$as_echo "$KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then + KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi` + KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi` + + if test -n "$KERBEROS_LIBS"; then + found_kerberos=yes + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_kerberos" = "no"; then + + if test "$PHP_KERBEROS" = "yes"; then + PHP_KERBEROS="/usr/kerberos /usr/local /usr" + fi + + for i in $PHP_KERBEROS; do + if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + PHP_KERBEROS_DIR=$i + break + fi + done + + if test "$PHP_KERBEROS_DIR"; then + found_kerberos=yes + + if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5" + else + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgssapi_krb5" + ;; + esac + + + fi + ;; + esac + + + + + case krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5" + else + + + case krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lkrb5" + ;; + esac + + + fi + ;; + esac + + + + + case k5crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto" + else + + + case k5crypto in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lk5crypto" + ;; + esac + + + fi + ;; + esac + + + + + case com_err in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err" + else + + + case com_err in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lcom_err" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then + + if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/include + else + + ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + fi + + if test "$found_kerberos" = "yes"; then +: + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5 +$as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; } +if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char DSA_get_default_method (); +int +main () +{ +return DSA_get_default_method (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_DSA_get_default_method=yes +else + ac_cv_lib_ssl_DSA_get_default_method=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5 +$as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; } +if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5 +$as_echo_n "checking for X509_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_X509_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char X509_free (); +int +main () +{ +return X509_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_X509_free=yes +else + ac_cv_lib_crypto_X509_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5 +$as_echo "$ac_cv_lib_crypto_X509_free" >&6; } +if test "x$ac_cv_lib_crypto_X509_free" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + + +$as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 + + fi + +fi + + + + +php_with_pcre_regex=yes + + + +# Check whether --with-pcre-regex was given. +if test "${with_pcre_regex+set}" = set; then : + withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval +else + + PHP_PCRE_REGEX=yes + + +fi + + +ext_output=$PHP_PCRE_REGEX + + + + + + if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE headers location" >&5 +$as_echo_n "checking for PCRE headers location... " >&6; } + for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do + test -f $i/pcre.h && PCRE_INCDIR=$i + done + + if test -z "$PCRE_INCDIR"; then + as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5 +$as_echo "$PCRE_INCDIR" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5 +$as_echo_n "checking for PCRE library location... " >&6; } + for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do + test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j + done + + if test -z "$PCRE_LIBDIR" ; then + as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5 +$as_echo "$PCRE_LIBDIR" >&6; } + + + pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + + pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'` + if test "$pcre_minor_length" -eq 2 ; then + pcre_minor="$pcre_minor"0 + fi + pcre_version=$pcre_major$pcre_minor + if test "$pcre_version" -lt 660; then + as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5 + fi + + + + if test -n "$PCRE_LIBDIR"; then + + if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then + + if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PCRE_LIBDIR + else + + ep_dir=`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PCRE_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pcre in + c|c_r|pthread*) ;; + *) + LIBS="-lpcre $LIBS" + ;; + esac + + + + + + +$as_echo "#define HAVE_PCRE 1" >>confdefs.h + + + if test "$PCRE_INCDIR" != "/usr/include"; then + + if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PCRE_INCDIR + else + + ep_dir=`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PCRE_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PCRE library to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 +$as_echo "bundled" >&6; } + pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \ + pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \ + pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \ + pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \ + pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \ + pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \ + pcrelib/pcre_version.c pcrelib/pcre_xclass.c" + PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib" + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + + ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + fi + + + +php_with_sqlite3=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 +$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; } + +# Check whether --with-sqlite3 was given. +if test "${with_sqlite3+set}" = set; then : + withval=$with_sqlite3; PHP_SQLITE3=$withval +else + + PHP_SQLITE3=yes + test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SQLITE3 in +shared,*) + PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'` + ;; +shared) + PHP_SQLITE3=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test $PHP_SQLITE3 != "no"; then + sqlite3_extra_sources="" + PHP_SQLITE3_CFLAGS="" + + if test -z "$enable_maintainer_zts"; then + if test -f "$phpincludedir/main/php_config.h"; then + ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'` + if test "$ZTS" -eq "1"; then + enable_maintainer_zts="yes" + fi + fi + fi + + if test $PHP_SQLITE3 != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5 +$as_echo_n "checking for sqlite3 files in default path... " >&6; } + for i in $PHP_SQLITE3 /usr/local /usr; do + if test -r $i/include/sqlite3.h; then + SQLITE3_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + + if test -z "$SQLITE3_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5 +$as_echo_n "checking for SQLite 3.3.9+... " >&6; } + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$SQLITE3_DIR/$PHP_LIBDIR -lm + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_prepare_v2 (); +int +main () +{ +return sqlite3_prepare_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_prepare_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD" + if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then + + if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then + + if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sqlite3 in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlite3 $LIBS" + ;; + esac + + + + + fi + + + + if test "$SQLITE3_DIR/include" != "/usr/include"; then + + if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/include + else + + ep_dir=`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_prepare_v2 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_key (); +int +main () +{ +return sqlite3_key (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_key=yes +else + ac_cv_lib_sqlite3_sqlite3_key=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_key + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_column_table_name (); +int +main () +{ +return sqlite3_column_table_name (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_column_table_name=yes +else + ac_cv_lib_sqlite3_sqlite3_column_table_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define SQLITE_ENABLE_COLUMN_METADATA 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_column_table_name + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_load_extension (); +int +main () +{ +return sqlite3_load_extension (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_load_extension=yes +else + ac_cv_lib_sqlite3_sqlite3_load_extension=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_load_extension + +$as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h + + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5 +$as_echo_n "checking bundled sqlite3 library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + sqlite3_extra_sources="libsqlite/sqlite3.c" + + if test "$enable_maintainer_zts" = "yes"; then + threadsafe_flags="-DSQLITE_THREADSAFE=1" + else + threadsafe_flags="-DSQLITE_THREADSAFE=0" + fi + + if test "$ZEND_DEBUG" = "yes"; then + debug_flags="-DSQLITE_DEBUG=1" + fi + + other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1" + + if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then + other_flags="$other_flags -DSQLITE_ENABLE_ICU=1" + fi + + PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" + + + for header_file in ext/sqlite3/libsqlite/sqlite3.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi + + +$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h + + + sqlite3_sources="sqlite3.c $sqlite3_extra_sources" + + + ext_builddir=ext/sqlite3 + ext_srcdir=$abs_srcdir/ext/sqlite3 + + ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SQLITE3_SHARED=no + + + case ext/sqlite3 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $sqlite3_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SQLITE3 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SQLITE3_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sqlite3 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $sqlite3_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ZLIB support... " >&6; } + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; PHP_ZLIB=$withval +else + + PHP_ZLIB=no + test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZLIB in +shared,*) + PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5 +$as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then + + ext_builddir=ext/zlib + ext_srcdir=$abs_srcdir/ext/zlib + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZLIB_SHARED=no + + + case ext/zlib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/zlib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 1.2.0.4" >&5 +$as_echo_n "checking for zlib version >= 1.2.0.4... " >&6; } + ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[^0-9\.]//g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5 +$as_echo "$ZLIB_VERSION" >&6; } + if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then + as_fn_error $? "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ac_extra + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 +$as_echo_n "checking for gzgets in -lz... " >&6; } +if ${ac_cv_lib_z_gzgets+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gzgets (); +int +main () +{ +return gzgets (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_gzgets=yes +else + ac_cv_lib_z_gzgets=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 +$as_echo "$ac_cv_lib_z_gzgets" >&6; } +if test "x$ac_cv_lib_z_gzgets" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ZLIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_z_gzgets + + as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5 + + +fi + + + + if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + PHP_ZLIB_DIR=$ZLIB_DIR + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$ZLIB_INCDIR" != "/usr/include"; then + + if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ZLIB_INCDIR + else + + ep_dir=`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZLIB_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +fi + + + +php_enable_bcmath=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5 +$as_echo_n "checking whether to enable bc style precision math functions... " >&6; } +# Check whether --enable-bcmath was given. +if test "${enable_bcmath+set}" = set; then : + enableval=$enable_bcmath; PHP_BCMATH=$enableval +else + + PHP_BCMATH=no + test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BCMATH in +shared,*) + PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'` + ;; +shared) + PHP_BCMATH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BCMATH" != "no"; then + + ext_builddir=ext/bcmath + ext_srcdir=$abs_srcdir/ext/bcmath + + ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BCMATH_SHARED=no + + + case ext/bcmath in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BCMATH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BCMATH_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/bcmath in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_with_bz2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 +$as_echo_n "checking for BZip2 support... " >&6; } + +# Check whether --with-bz2 was given. +if test "${with_bz2+set}" = set; then : + withval=$with_bz2; PHP_BZ2=$withval +else + + PHP_BZ2=no + test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BZ2 in +shared,*) + PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'` + ;; +shared) + PHP_BZ2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BZ2" != "no"; then + if test -r $PHP_BZ2/include/bzlib.h; then + BZIP_DIR=$PHP_BZ2 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 +$as_echo_n "checking for BZip2 in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/bzlib.h; then + BZIP_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$BZIP_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$BZIP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 +$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } +if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbz2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char BZ2_bzerror (); +int +main () +{ +return BZ2_bzerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bz2_BZ2_bzerror=yes +else + ac_cv_lib_bz2_BZ2_bzerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 +$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$BZIP_DIR/include" != "/usr/include"; then + + if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/include + else + + ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD" + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD" + test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case bz2 in + c|c_r|pthread*) ;; + *) + LIBS="-lbz2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BZ2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_bz2_BZ2_bzerror + + as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/bz2 + ext_srcdir=$abs_srcdir/ext/bz2 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BZ2_SHARED=no + + + case ext/bz2 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BZ2 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BZ2_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/bz2 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable calendar conversion support... " >&6; } +# Check whether --enable-calendar was given. +if test "${enable_calendar+set}" = set; then : + enableval=$enable_calendar; PHP_CALENDAR=$enableval +else + + PHP_CALENDAR=no + test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CALENDAR in +shared,*) + PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_CALENDAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CALENDAR" = "yes"; then + +$as_echo "#define HAVE_CALENDAR 1" >>confdefs.h + + + ext_builddir=ext/calendar + ext_srcdir=$abs_srcdir/ext/calendar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CALENDAR_SHARED=no + + + case ext/calendar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CALENDAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CALENDAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/calendar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable ctype functions... " >&6; } +# Check whether --enable-ctype was given. +if test "${enable_ctype+set}" = set; then : + enableval=$enable_ctype; PHP_CTYPE=$enableval +else + + PHP_CTYPE=yes + test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CTYPE in +shared,*) + PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'` + ;; +shared) + PHP_CTYPE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CTYPE" != "no"; then + +$as_echo "#define HAVE_CTYPE 1" >>confdefs.h + + + ext_builddir=ext/ctype + ext_srcdir=$abs_srcdir/ext/ctype + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CTYPE_SHARED=no + + + case ext/ctype in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CTYPE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CTYPE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ctype in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for cURL support... " >&6; } + +# Check whether --with-curl was given. +if test "${with_curl+set}" = set; then : + withval=$with_curl; PHP_CURL=$withval +else + + PHP_CURL=no + test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CURL in +shared,*) + PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'` + ;; +shared) + PHP_CURL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CURL" != "no"; then + if test -r $PHP_CURL/include/curl/easy.h; then + CURL_DIR=$PHP_CURL + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5 +$as_echo_n "checking for cURL in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/curl/easy.h; then + CURL_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$CURL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the libcurl distribution - + easy.h should be in /include/curl/" "$LINENO" 5 + fi + + CURL_CONFIG="curl-config" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.10.5 or greater" >&5 +$as_echo_n "checking for cURL 7.10.5 or greater... " >&6; } + + if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/bin/curl-config + else + if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/curl-config + fi + fi + + curl_version_full=`$CURL_CONFIG --version` + curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test "$curl_version" -ge 7010005; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5 +$as_echo "$curl_version_full" >&6; } + CURL_LIBS=`$CURL_CONFIG --libs` + else + as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5 + fi + + + if test "$CURL_DIR/include" != "/usr/include"; then + + if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/include + else + + ep_dir=`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $CURL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD" + if test -n "$CURL_DIR/$PHP_LIBDIR"; then + + if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$CURL_DIR/$PHP_LIBDIR"; then + + if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case curl in + c|c_r|pthread*) ;; + *) + LIBS="-lcurl $LIBS" + ;; + esac + + + + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 +$as_echo_n "checking for SSL support in libcurl... " >&6; } + CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL` + if test "$CURL_SSL" = "SSL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h + + + save_CFLAGS="$CFLAGS" + CFLAGS="`$CURL_CONFIG --cflags`" + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5 +$as_echo_n "checking for openssl support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + for ac_header in openssl/crypto.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OPENSSL_CRYPTO_H 1 +_ACEOF + + +$as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h + + +fi + +done + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5 +$as_echo_n "checking for gnutls support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" +if test "x$ac_cv_header_gcrypt_h" = xyes; then : + + +$as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h + + +fi + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + CFLAGS="$save_CFLAGS" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 +$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_perform (); +int +main () +{ +return curl_easy_perform (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_perform=yes +else + ac_cv_lib_curl_curl_easy_perform=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_perform + + as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5 +$as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_strerror (); +int +main () +{ +return curl_easy_strerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_strerror=yes +else + ac_cv_lib_curl_curl_easy_strerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_strerror + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5 +$as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_multi_strerror (); +int +main () +{ +return curl_multi_strerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_multi_strerror=yes +else + ac_cv_lib_curl_curl_multi_strerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5 +$as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; } +if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_multi_strerror + + +fi + + + + ext_builddir=ext/curl + ext_srcdir=$abs_srcdir/ext/curl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CURL_SHARED=no + + + case ext/curl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CURL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CURL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/curl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 +$as_echo_n "checking for dpopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dpopen (); +int +main () +{ +return dpopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define QDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_QDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dpopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=QDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# GDBM +if test "$PHP_GDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=GDBM + if test -n "gdbm"; then + THIS_FULL_NAME="gdbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-gdbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_GDBM /usr/local /usr; do + if test -f "$i/include/gdbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 +$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } +if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdbm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdbm_open (); +int +main () +{ +return gdbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gdbm_gdbm_open=yes +else + ac_cv_lib_gdbm_gdbm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 +$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define GDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_GDBM 1" >>confdefs.h + + THIS_LIBS=gdbm + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gdbm_gdbm_open + + +fi + + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=GDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# NDBM +if test "$PHP_NDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_NDBM /usr/local /usr; do + if test -f "$i/include/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/ndbm.h + break + elif test -f "$i/include/db1/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/ndbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in ndbm db1 c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 +$as_echo_n "checking for dbm_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbm_open (); +int +main () +{ +return dbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define NDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_NDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbm_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=NDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_TCADB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_TCADB /usr/local /usr; do + if test -f "$i/include/tcadb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/tcadb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in tokyocabinet; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 +$as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tcadbopen (); +int +main () +{ +return tcadbopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define TCADB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_TCADB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_tcadbopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=TCADB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + + + +# DB4 +if test "$PHP_DB4" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + dbdp4="/usr/local/BerkeleyDB.4." + dbdp5="/usr/local/BerkeleyDB.5." + for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do + if test -f "$i/db5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db5/db.h + break + elif test -f "$i/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h + break + elif test -f "$i/include/db5.0/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.0/db.h + break + elif test -f "$i/include/db4.8/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.8/db.h + break + elif test -f "$i/include/db4.7/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.7/db.h + break + elif test -f "$i/include/db4.6/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.6/db.h + break + elif test -f "$i/include/db4.5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.5/db.h + break + elif test -f "$i/include/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4/db.h + break + elif test -f "$i/include/db/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db4.h + break + elif test -f "$i/include/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 +$as_echo_n "checking for DB4 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "4" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB4 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB4_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB4_LIBS=$THIS_LIBS + DB4_PREFIX=$THIS_PREFIX + DB4_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB4 + if test -n "Berkeley DB4"; then + THIS_FULL_NAME="Berkeley DB4" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB3 +if test "$PHP_DB3" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db3 with --with-db4"; then + as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db3.h + break + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 +$as_echo_n "checking for DB3 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "3" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB3 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB3_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB3_LIBS=$THIS_LIBS + DB3_PREFIX=$THIS_PREFIX + DB3_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB2 +if test "$PHP_DB2" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then + as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do + if test -f "$i/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db2/db.h + break + elif test -f "$i/include/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2/db.h + break + elif test -f "$i/include/db/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db2.h + break + elif test -f "$i/include/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-2 db2 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_appinit("", NULL, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 +$as_echo_n "checking for DB2 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "2" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB2 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB2_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB2_LIBS=$THIS_LIBS + DB2_PREFIX=$THIS_PREFIX + DB2_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB1 +if test "$PHP_DB1" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 +$as_echo_n "checking for DB1 in library... " >&6; } + if test "$HAVE_DB4" = "1"; then + THIS_VERSION=4 + THIS_LIBS=$DB4_LIBS + THIS_PREFIX=$DB4_PREFIX + elif test "$HAVE_DB3" = "1"; then + THIS_LIBS=$DB3_LIBS + THIS_PREFIX=$DB3_PREFIX + elif test "$HAVE_DB2" = "1"; then + THIS_VERSION=2 + THIS_LIBS=$DB2_LIBS + THIS_PREFIX=$DB2_PREFIX + fi + if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION" +_ACEOF + + for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do + if test -f "$THIS_PREFIX/$i"; then + THIS_INCLUDE=$THIS_PREFIX/$i + break + fi + done + else + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Unknown DB1" +_ACEOF + + for i in $PHP_DB1 /usr/local /usr; do + if test -f "$i/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db1/db.h + break + elif test -f "$i/include/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/db.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + THIS_LIBS=db + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 +$as_echo "$THIS_LIBS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 +$as_echo_n "checking for DB1 in header... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 +$as_echo "$THIS_INCLUDE" >&6; } + if test -n "$THIS_INCLUDE"; then + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$THIS_LIBS $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + DB * dbp = dbopen("", 0, 0, DB_HASH, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define DB1_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_DB1 1" >>confdefs.h + + THIS_RESULT=yes + +else + + THIS_RESULT=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + fi + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DB1 + if test -n "DB1"; then + THIS_FULL_NAME="DB1" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DBM +if test "$PHP_DBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=DBM + if test -n "dbm"; then + THIS_FULL_NAME="dbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-dbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DBM /usr/local /usr; do + if test -f "$i/include/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/dbm.h + break + elif test -f "$i/include/gdbm/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm/dbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in dbm c gdbm; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 +$as_echo_n "checking for dbminit in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbminit (); +int +main () +{ +return dbminit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 +$as_echo_n "checking for DBM using GDBM... " >&6; } + +cat >>confdefs.h <<_ACEOF +#define DBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + if test "$LIB" = "gdbm"; then + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "GDBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "DBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + +$as_echo "#define DBA_DBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbminit + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then + php_dba_enable=yes +else + php_dba_enable=no +fi + + +php_with_cdb=$php_dba_enable + + + +# Check whether --with-cdb was given. +if test "${with_cdb+set}" = set; then : + withval=$with_cdb; PHP_CDB=$withval +else + + PHP_CDB=$php_dba_enable + + +fi + + +ext_output=$PHP_CDB + + + + + + +php_enable_inifile=$php_dba_enable + + +# Check whether --enable-inifile was given. +if test "${enable_inifile+set}" = set; then : + enableval=$enable_inifile; PHP_INIFILE=$enableval +else + + PHP_INIFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_INIFILE + + + + + + +php_enable_flatfile=$php_dba_enable + + +# Check whether --enable-flatfile was given. +if test "${enable_flatfile+set}" = set; then : + enableval=$enable_flatfile; PHP_FLATFILE=$enableval +else + + PHP_FLATFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_FLATFILE + + + + + +# CDB +if test "$PHP_CDB" = "yes"; then + +$as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h + + +$as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" + THIS_RESULT="builtin" +elif test "$PHP_CDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_CDB /usr/local /usr; do + if test -f "$i/include/cdb.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/cdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in cdb c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 +$as_echo_n "checking for cdb_read in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cdb_read (); +int +main () +{ +return cdb_read (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define CDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_cdb_read + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=CDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# INIFILE +if test "$PHP_INIFILE" != "no"; then + +$as_echo "#define DBA_INIFILE 1" >>confdefs.h + + ini_sources="libinifile/inifile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=INIFILE + if test -n "INI File"; then + THIS_FULL_NAME="INI File" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# FLATFILE +if test "$PHP_FLATFILE" != "no"; then + +$as_echo "#define DBA_FLATFILE 1" >>confdefs.h + + flat_sources="libflatfile/flatfile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=FLATFILE + if test -n "FlatFile"; then + THIS_FULL_NAME="FlatFile" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 +$as_echo_n "checking whether to enable DBA interface... " >&6; } +if test "$HAVE_DBA" = "1"; then + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 +$as_echo "yes, shared" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + +$as_echo "#define HAVE_DBA 1" >>confdefs.h + + + ext_builddir=ext/dba + ext_srcdir=$abs_srcdir/ext/dba + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DBA_SHARED=no + + + case ext/dba in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DBA 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DBA_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/dba in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "no" >&6; } +fi + + + +php_enable_dom=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 +$as_echo_n "checking whether to enable DOM support... " >&6; } +# Check whether --enable-dom was given. +if test "${enable_dom+set}" = set; then : + enableval=$enable_dom; PHP_DOM=$enableval +else + + PHP_DOM=yes + test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DOM in +shared,*) + PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'` + ;; +shared) + PHP_DOM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_DOM" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $DOM_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_DOM 1" >>confdefs.h + + + ext_builddir=ext/dom + ext_srcdir=$abs_srcdir/ext/dom + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DOM_SHARED=no + + + case ext/dom in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DOM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DOM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/dom in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ENCHANT support... " >&6; } + +# Check whether --with-enchant was given. +if test "${with_enchant+set}" = set; then : + withval=$with_enchant; PHP_ENCHANT=$withval +else + + PHP_ENCHANT=no + test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ENCHANT in +shared,*) + PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'` + ;; +shared) + PHP_ENCHANT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ENCHANT" != "no"; then + + ext_builddir=ext/enchant + ext_srcdir=$abs_srcdir/ext/enchant + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ENCHANT_SHARED=no + + + case ext/enchant in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ENCHANT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ENCHANT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/enchant in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD" + + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD" + if test -n "$ENCHANT_LIBDIR"; then + + if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then + + if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_LIBDIR + else + + ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ENCHANT_LIBDIR"; then + + if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then + + if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_LIBDIR + else + + ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case enchant in + c|c_r|pthread*) ;; + *) + LIBS="-lenchant $LIBS" + ;; + esac + + + + + fi + + + + if test "$ENCHANT_INCDIR" != "/usr/include"; then + + if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_INCDIR + else + + ep_dir=`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 +$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_broker_set_param (); +int +main () +{ +return enchant_broker_set_param (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_broker_set_param=yes +else + ac_cv_lib_enchant_enchant_broker_set_param=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h + + +$as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_broker_set_param + + +fi + + +fi + + + +php_enable_exif=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5 +$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; } +# Check whether --enable-exif was given. +if test "${enable_exif+set}" = set; then : + enableval=$enable_exif; PHP_EXIF=$enableval +else + + PHP_EXIF=no + test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EXIF in +shared,*) + PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'` + ;; +shared) + PHP_EXIF=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_EXIF" != "no"; then + +$as_echo "#define HAVE_EXIF 1" >>confdefs.h + + + ext_builddir=ext/exif + ext_srcdir=$abs_srcdir/ext/exif + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_EXIF_SHARED=no + + + case ext/exif in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EXIF 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_EXIF_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/exif in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for fileinfo support... " >&6; } +# Check whether --enable-fileinfo was given. +if test "${enable_fileinfo+set}" = set; then : + enableval=$enable_fileinfo; PHP_FILEINFO=$enableval +else + + PHP_FILEINFO=yes + test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILEINFO in +shared,*) + PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILEINFO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ + libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \ + libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \ + libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \ + libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c" + + + ext_builddir=ext/fileinfo + ext_srcdir=$abs_srcdir/ext/fileinfo + + ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILEINFO_SHARED=no + + + case ext/fileinfo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILEINFO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILEINFO_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/fileinfo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + +php_enable_filter=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 +$as_echo_n "checking whether to enable input filter support... " >&6; } +# Check whether --enable-filter was given. +if test "${enable_filter+set}" = set; then : + enableval=$enable_filter; PHP_FILTER=$enableval +else + + PHP_FILTER=yes + test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILTER in +shared,*) + PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_pcre_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5 +$as_echo_n "checking pcre install prefix... " >&6; } + +# Check whether --with-pcre-dir was given. +if test "${with_pcre_dir+set}" = set; then : + withval=$with_pcre_dir; PHP_PCRE_DIR=$withval +else + + PHP_PCRE_DIR=no + + +fi + + +ext_output=$PHP_PCRE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILTER" != "no"; then + + if test -n "$PHP_VERSION"; then + ext_shared=no + else + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=yes + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=pecl + +else + + PHP_PCRE_REGEX=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + fi + + + ext_builddir=ext/filter + ext_srcdir=$abs_srcdir/ext/filter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILTER_SHARED=no + + + case ext/filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILTER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILTER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable FTP support... " >&6; } +# Check whether --enable-ftp was given. +if test "${enable_ftp+set}" = set; then : + enableval=$enable_ftp; PHP_FTP=$enableval +else + + PHP_FTP=no + test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FTP in +shared,*) + PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'` + ;; +shared) + PHP_FTP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5 +$as_echo_n "checking OpenSSL dir for FTP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FTP" = "yes"; then + +$as_echo "#define HAVE_FTP 1" >>confdefs.h + + + ext_builddir=ext/ftp + ext_srcdir=$abs_srcdir/ext/ftp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FTP_SHARED=no + + + case ext/ftp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FTP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FTP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ftp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + +: + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD" + + fi +fi + + + + +php_with_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 +$as_echo_n "checking for GD support... " >&6; } + +# Check whether --with-gd was given. +if test "${with_gd+set}" = set; then : + withval=$with_gd; PHP_GD=$withval +else + + PHP_GD=no + test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GD in +shared,*) + PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'` + ;; +shared) + PHP_GD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +if test -z "$PHP_VPX_DIR"; then + +php_with_vpx_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libvpx" >&5 +$as_echo_n "checking for the location of libvpx... " >&6; } + +# Check whether --with-vpx-dir was given. +if test "${with_vpx_dir+set}" = set; then : + withval=$with_vpx_dir; PHP_VPX_DIR=$withval +else + + PHP_VPX_DIR=no + + +fi + + +ext_output=$PHP_VPX_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_JPEG_DIR"; then + +php_with_jpeg_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5 +$as_echo_n "checking for the location of libjpeg... " >&6; } + +# Check whether --with-jpeg-dir was given. +if test "${with_jpeg_dir+set}" = set; then : + withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval +else + + PHP_JPEG_DIR=no + + +fi + + +ext_output=$PHP_JPEG_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_PNG_DIR"; then + +php_with_png_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5 +$as_echo_n "checking for the location of libpng... " >&6; } + +# Check whether --with-png-dir was given. +if test "${with_png_dir+set}" = set; then : + withval=$with_png_dir; PHP_PNG_DIR=$withval +else + + PHP_PNG_DIR=no + + +fi + + +ext_output=$PHP_PNG_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_xpm_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5 +$as_echo_n "checking for the location of libXpm... " >&6; } + +# Check whether --with-xpm-dir was given. +if test "${with_xpm_dir+set}" = set; then : + withval=$with_xpm_dir; PHP_XPM_DIR=$withval +else + + PHP_XPM_DIR=no + + +fi + + +ext_output=$PHP_XPM_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_freetype_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 +$as_echo_n "checking for FreeType 2... " >&6; } + +# Check whether --with-freetype-dir was given. +if test "${with_freetype_dir+set}" = set; then : + withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval +else + + PHP_FREETYPE_DIR=no + + +fi + + +ext_output=$PHP_FREETYPE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_t1lib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1lib support" >&5 +$as_echo_n "checking for T1lib support... " >&6; } + +# Check whether --with-t1lib was given. +if test "${with_t1lib+set}" = set; then : + withval=$with_t1lib; PHP_T1LIB=$withval +else + + PHP_T1LIB=no + + +fi + + +ext_output=$PHP_T1LIB +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_native_ttf=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable truetype string function in GD" >&5 +$as_echo_n "checking whether to enable truetype string function in GD... " >&6; } +# Check whether --enable-gd-native-ttf was given. +if test "${enable_gd_native_ttf+set}" = set; then : + enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval +else + + PHP_GD_NATIVE_TTF=no + + +fi + + +ext_output=$PHP_GD_NATIVE_TTF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_jis_conv=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 +$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } +# Check whether --enable-gd-jis-conv was given. +if test "${enable_gd_jis_conv+set}" = set; then : + enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval +else + + PHP_GD_JIS_CONV=no + + +fi + + +ext_output=$PHP_GD_JIS_CONV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + + + + + + + + + + + + + + + + + + + + +if test "$PHP_GD" != "no"; then + + test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes + + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + + if test "$PHP_GD_NATIVE_TTF" = "yes"; then + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + fi + + + if test "$PHP_VPX_DIR" != "no"; then + + for i in $PHP_VPX_DIR /usr/local /usr; do + test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break + done + + if test -z "$GD_VPX_DIR"; then + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_VPX_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 +$as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvpx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char vpx_codec_destroy (); +int +main () +{ +return vpx_codec_destroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_vpx_vpx_codec_destroy=yes +else + ac_cv_lib_vpx_vpx_codec_destroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 +$as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_VPX_DIR/include" != "/usr/include"; then + + if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/include + else + + ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case pthread in + c|c_r|pthread*) ;; + *) + LIBS="-lpthread $LIBS" + ;; + esac + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD" + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case vpx in + c|c_r|pthread*) ;; + *) + LIBS="-lvpx $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_vpx_vpx_codec_destroy + + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=" >&5 +$as_echo "If configure fails try --with-vpx-dir=" >&6; } + fi + + + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_JPEG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_JPEG_DIR/include" != "/usr/include"; then + + if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/include + else + + ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD" + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case jpeg in + c|c_r|pthread*) ;; + *) + LIBS="-ljpeg $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_jpeg_jpeg_read_header + + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=" >&5 +$as_echo "If configure fails try --with-jpeg-dir=" >&6; } + fi + + + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + as_fn_error $? "png.h not found." "$LINENO" 5 + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 +$as_echo_n "checking for png_write_image in -lpng... " >&6; } +if ${ac_cv_lib_png_png_write_image+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char png_write_image (); +int +main () +{ +return png_write_image (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_png_png_write_image=yes +else + ac_cv_lib_png_png_write_image=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 +$as_echo "$ac_cv_lib_png_png_write_image" >&6; } +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_PNG_DIR/include" != "/usr/include"; then + + if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/include + else + + ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD" + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case png in + c|c_r|pthread*) ;; + *) + LIBS="-lpng $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_png_png_write_image + + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir= and --with-zlib-dir=" >&5 +$as_echo "If configure fails try --with-png-dir= and --with-zlib-dir=" >&6; } + fi + + + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + as_fn_error $? "xpm.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 +$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXpm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XpmFreeXpmImage (); +int +main () +{ +return XpmFreeXpmImage (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Xpm_XpmFreeXpmImage=yes +else + ac_cv_lib_Xpm_XpmFreeXpmImage=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 +$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_XPM_INC" != "/usr/include"; then + + if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_INC + else + + ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case Xpm in + c|c_r|pthread*) ;; + *) + LIBS="-lXpm $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case X11 in + c|c_r|pthread*) ;; + *) + LIBS="-lX11 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_Xpm_XpmFreeXpmImage + + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=" >&5 +$as_echo "If configure fails try --with-xpm-dir=" >&6; } + fi + + + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + as_fn_error $? "freetype-config not found." "$LINENO" 5 + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=" >&5 +$as_echo "If configure fails try --with-freetype-dir=" >&6; } + fi + + + if test "$PHP_T1LIB" != "no"; then + + for i in $PHP_T1LIB /usr/local /usr; do + test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break + done + + if test -z "$GD_T1_DIR"; then + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_T1_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 +$as_echo_n "checking for T1_StrError in -lt1... " >&6; } +if ${ac_cv_lib_t1_T1_StrError+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lt1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char T1_StrError (); +int +main () +{ +return T1_StrError (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_t1_T1_StrError=yes +else + ac_cv_lib_t1_T1_StrError=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 +$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBT1 1" >>confdefs.h + + + if test "$GD_T1_DIR/include" != "/usr/include"; then + + if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/include + else + + ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD" + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case t1 in + c|c_r|pthread*) ;; + *) + LIBS="-lt1 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_t1_T1_StrError + + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + if test "$PHP_GD_JIS_CONV" = "yes"; then + USE_GD_JIS_CONV=1 + fi + +fi + +if test "$PHP_GD" = "yes"; then + GD_MODULE_TYPE=builtin + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c" + + for ac_func in fabsf floorf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + +$as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h + + + GDLIB_CFLAGS="-DHAVE_LIBPNG" + + + if test -n "$GD_VPX_DIR"; then + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX" + fi + + if test -n "$GD_JPEG_DIR"; then + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG" + fi + + if test -n "$GD_XPM_DIR"; then + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM" + fi + + if test -n "$FREETYPE2_DIR"; then + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF" + fi + + if test -n "$USE_GD_JIS_CONV"; then + +$as_echo "#define USE_GD_JISX0208 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" + fi + +else + + if test "$PHP_GD" != "no"; then + GD_MODULE_TYPE=external + extra_sources="gd_compat.c" + + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + + if test "$PHP_GD_NATIVE_TTF" = "yes"; then + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + fi + + + if test "$PHP_VPX_DIR" != "no"; then + + for i in $PHP_VPX_DIR /usr/local /usr; do + test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break + done + + if test -z "$GD_VPX_DIR"; then + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_VPX_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 +$as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvpx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char vpx_codec_destroy (); +int +main () +{ +return vpx_codec_destroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_vpx_vpx_codec_destroy=yes +else + ac_cv_lib_vpx_vpx_codec_destroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 +$as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_VPX_DIR/include" != "/usr/include"; then + + if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/include + else + + ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case pthread in + c|c_r|pthread*) ;; + *) + LIBS="-lpthread $LIBS" + ;; + esac + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD" + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case vpx in + c|c_r|pthread*) ;; + *) + LIBS="-lvpx $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_vpx_vpx_codec_destroy + + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=" >&5 +$as_echo "If configure fails try --with-vpx-dir=" >&6; } + fi + + + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_JPEG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_JPEG_DIR/include" != "/usr/include"; then + + if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/include + else + + ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD" + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case jpeg in + c|c_r|pthread*) ;; + *) + LIBS="-ljpeg $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_jpeg_jpeg_read_header + + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=" >&5 +$as_echo "If configure fails try --with-jpeg-dir=" >&6; } + fi + + + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + as_fn_error $? "png.h not found." "$LINENO" 5 + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 +$as_echo_n "checking for png_write_image in -lpng... " >&6; } +if ${ac_cv_lib_png_png_write_image+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char png_write_image (); +int +main () +{ +return png_write_image (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_png_png_write_image=yes +else + ac_cv_lib_png_png_write_image=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 +$as_echo "$ac_cv_lib_png_png_write_image" >&6; } +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_PNG_DIR/include" != "/usr/include"; then + + if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/include + else + + ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD" + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case png in + c|c_r|pthread*) ;; + *) + LIBS="-lpng $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_png_png_write_image + + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir= and --with-zlib-dir=" >&5 +$as_echo "If configure fails try --with-png-dir= and --with-zlib-dir=" >&6; } + fi + + + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + as_fn_error $? "xpm.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 +$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXpm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XpmFreeXpmImage (); +int +main () +{ +return XpmFreeXpmImage (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Xpm_XpmFreeXpmImage=yes +else + ac_cv_lib_Xpm_XpmFreeXpmImage=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 +$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_XPM_INC" != "/usr/include"; then + + if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_INC + else + + ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case Xpm in + c|c_r|pthread*) ;; + *) + LIBS="-lXpm $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case X11 in + c|c_r|pthread*) ;; + *) + LIBS="-lX11 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_Xpm_XpmFreeXpmImage + + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=" >&5 +$as_echo "If configure fails try --with-xpm-dir=" >&6; } + fi + + + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + as_fn_error $? "freetype-config not found." "$LINENO" 5 + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=" >&5 +$as_echo "If configure fails try --with-freetype-dir=" >&6; } + fi + + + if test "$PHP_T1LIB" != "no"; then + + for i in $PHP_T1LIB /usr/local /usr; do + test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break + done + + if test -z "$GD_T1_DIR"; then + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_T1_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 +$as_echo_n "checking for T1_StrError in -lt1... " >&6; } +if ${ac_cv_lib_t1_T1_StrError+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lt1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char T1_StrError (); +int +main () +{ +return T1_StrError (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_t1_T1_StrError=yes +else + ac_cv_lib_t1_T1_StrError=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 +$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBT1 1" >>confdefs.h + + + if test "$GD_T1_DIR/include" != "/usr/include"; then + + if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/include + else + + ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD" + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case t1 in + c|c_r|pthread*) ;; + *) + LIBS="-lt1 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_t1_T1_StrError + + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + for i in include/gd include gd ""; do + test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i" + done + + if test -z "$GD_INCLUDE"; then + as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5 + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_GD/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdSetErrorMethod in -lgd" >&5 +$as_echo_n "checking for gdSetErrorMethod in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdSetErrorMethod+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdSetErrorMethod (); +int +main () +{ +return gdSetErrorMethod (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdSetErrorMethod=yes +else + ac_cv_lib_gd_gdSetErrorMethod=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdSetErrorMethod" >&5 +$as_echo "$ac_cv_lib_gd_gdSetErrorMethod" >&6; } +if test "x$ac_cv_lib_gd_gdSetErrorMethod" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD" + if test -n "$PHP_GD/$PHP_LIBDIR"; then + + if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GD/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_GD/$PHP_LIBDIR"; then + + if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GD/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gd in + c|c_r|pthread*) ;; + *) + LIBS="-lgd $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBGD 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdSetErrorMethod + + as_fn_error $? "Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromPng (); +int +main () +{ +return gdImageCreateFromPng (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromPng=yes +else + ac_cv_lib_gd_gdImageCreateFromPng=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromPng + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromWebp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromWebp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromWebp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromWebp (); +int +main () +{ +return gdImageCreateFromWebp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromWebp=yes +else + ac_cv_lib_gd_gdImageCreateFromWebp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromWebp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromWebp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromWebp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromWebp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromJpeg (); +int +main () +{ +return gdImageCreateFromJpeg (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromJpeg=yes +else + ac_cv_lib_gd_gdImageCreateFromJpeg=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromJpeg + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromXpm (); +int +main () +{ +return gdImageCreateFromXpm (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromXpm=yes +else + ac_cv_lib_gd_gdImageCreateFromXpm=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromXpm + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5 +$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageStringFT+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageStringFT (); +int +main () +{ +return gdImageStringFT (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageStringFT=yes +else + ac_cv_lib_gd_gdImageStringFT=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5 +$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; } +if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageStringFT + + +fi + + + + + if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then + GD_INCLUDE=$GD_INCLUDE + else + + ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + GD_INCLUDE="$ep_realdir"/`basename "$GD_INCLUDE"` + fi + + fi +fi + +if test "$PHP_GD" != "no"; then + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + + ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case ext/gd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<conftest.$ac_ext +/* end confdefs.h. */ + + char foobar () {} + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +else + + LIBS=$old_LIBS + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + GD_HEADER_DIRS="ext/gd/" + GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" + + if test "$GD_INCLUDE" != "/usr/include"; then + + if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$GD_INCLUDE + else + + ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 +$as_echo_n "checking for gdImageCreate in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreate (); +int +main () +{ +return gdImageCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreate=yes +else + ac_cv_lib_gd_gdImageCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreate + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi + + fi + + + + for header_file in $GD_HEADER_DIRS; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD" + +fi + + + +php_with_gettext=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 +$as_echo_n "checking for GNU gettext support... " >&6; } + +# Check whether --with-gettext was given. +if test "${with_gettext+set}" = set; then : + withval=$with_gettext; PHP_GETTEXT=$withval +else + + PHP_GETTEXT=no + test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GETTEXT in +shared,*) + PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'` + ;; +shared) + PHP_GETTEXT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GETTEXT" != "no"; then + for i in $PHP_GETTEXT /usr/local /usr; do + test -r $i/include/libintl.h && GETTEXT_DIR=$i && break + done + + if test -z "$GETTEXT_DIR"; then + as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5 + fi + + GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR + GETTEXT_INCDIR=$GETTEXT_DIR/include + + O_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 +$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } +if ${ac_cv_lib_intl_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_bindtextdomain=yes +else + ac_cv_lib_intl_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : + + GETTEXT_LIBS=intl + GETTEXT_CHECK_IN_LIB=intl + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 +$as_echo_n "checking for bindtextdomain in -lc... " >&6; } +if ${ac_cv_lib_c_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_bindtextdomain=yes +else + ac_cv_lib_c_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } +if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : + + GETTEXT_LIBS= + GETTEXT_CHECK_IN_LIB=c + +else + + as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 + +fi + + +fi + + LDFLAGS=$O_LDFLAGS + + +$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h + + + ext_builddir=ext/gettext + ext_srcdir=$abs_srcdir/ext/gettext + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GETTEXT_SHARED=no + + + case ext/gettext in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GETTEXT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GETTEXT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gettext in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $GETTEXT_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$GETTEXT_LIBS $LIBS" + ;; + esac + + + + + fi + + + fi + + + if test "$GETTEXT_INCDIR" != "/usr/include"; then + + if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_INCDIR + else + + ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ngettext (); +int +main () +{ +return ngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dngettext (); +int +main () +{ +return dngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dcngettext (); +int +main () +{ +return dcngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind_textdomain_codeset (); +int +main () +{ +return bind_textdomain_codeset (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h + +fi + + +fi + + + +php_with_gmp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 +$as_echo_n "checking for GNU MP support... " >&6; } + +# Check whether --with-gmp was given. +if test "${with_gmp+set}" = set; then : + withval=$with_gmp; PHP_GMP=$withval +else + + PHP_GMP=no + test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GMP in +shared,*) + PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_GMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GMP" != "no"; then + + for i in $PHP_GMP /usr/local /usr; do + test -f $i/include/gmp.h && GMP_DIR=$i && break + done + + if test -z "$GMP_DIR"; then + as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GMP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5 +$as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmp_randinit_lc_2exp_size (); +int +main () +{ +return __gmp_randinit_lc_2exp_size (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes +else + ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5 +$as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; } +if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GMP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5 +$as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; } +if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gmp_randinit_lc_2exp_size (); +int +main () +{ +return gmp_randinit_lc_2exp_size (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes +else + ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5 +$as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; } +if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size + + as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5 + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + if test -n "$GMP_DIR/$PHP_LIBDIR"; then + + if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GMP_DIR/$PHP_LIBDIR"; then + + if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + + + fi + + + + if test "$GMP_DIR/include" != "/usr/include"; then + + if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/include + else + + ep_dir=`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/gmp + ext_srcdir=$abs_srcdir/ext/gmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GMP_SHARED=no + + + case ext/gmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_with_mhash=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 +$as_echo_n "checking for mhash support... " >&6; } + +# Check whether --with-mhash was given. +if test "${with_mhash+set}" = set; then : + withval=$with_mhash; PHP_MHASH=$withval +else + + PHP_MHASH=no + test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MHASH in +shared,*) + PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_MHASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_hash=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5 +$as_echo_n "checking whether to enable hash support... " >&6; } +# Check whether --enable-hash was given. +if test "${enable_hash+set}" = set; then : + enableval=$enable_hash; PHP_HASH=$enableval +else + + PHP_HASH=yes + test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_HASH in +shared,*) + PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_HASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MHASH" != "no"; then + if test "$PHP_HASH" = "no"; then + PHP_HASH="yes" + fi + + +$as_echo "#define PHP_MHASH_BC 1" >>confdefs.h + +fi + +if test "$PHP_HASH" != "no"; then + +$as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + + EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c hash_fnv.c hash_joaat.c" + EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ + php_hash_fnv.h php_hash_joaat.h php_hash_types.h" + + + ext_builddir=ext/hash + ext_srcdir=$abs_srcdir/ext/hash + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_HASH_SHARED=no + + + case ext/hash in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_HASH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_HASH_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/hash in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for iconv support... " >&6; } + +# Check whether --with-iconv was given. +if test "${with_iconv+set}" = set; then : + withval=$with_iconv; PHP_ICONV=$withval +else + + PHP_ICONV=yes + test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ICONV in +shared,*) + PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'` + ;; +shared) + PHP_ICONV=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ICONV" != "no"; then + + + found_iconv=no + unset ICONV_DIR + + # Create the directories for a VPATH build: + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + iconv_avail="yes"; + +else + iconv_avail="no"; + + fi + + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break + fi + done + if test -z "$PHP_ICONV_PREFIX"; then + PHP_ICONV_PREFIX="/usr" + fi + else + PHP_ICONV_PREFIX="$ICONV_DIR" + fi + + CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" + LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" + + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" + else + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 +$as_echo_n "checking if iconv is glibc's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +gnu_get_libc_version(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="glibc" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 +$as_echo_n "checking if using GNU libiconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +int main() { + printf("%d", _libiconv_version); + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="gnu_libiconv" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 +$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +iconv_ccs_init(NULL, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="bsd" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 +$as_echo_n "checking if using IBM iconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +cstoccsid(""); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="ibm" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_ibm_iconv.h + + case "$iconv_impl_name" in + gnu_libiconv ) + + echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD" + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iconv in + c|c_r|pthread*) ;; + *) + LIBS="-liconv $LIBS" + ;; + esac + + + + + fi + + + ;; + + bsd ) + + echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h + + +$as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h + + ;; + + glibc ) + + echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h + + +$as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h + + ;; + ibm ) + + echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h + + +$as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h + + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 +$as_echo_n "checking if iconv supports errno... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd; + cd = iconv_open( "*blahblah*", "*blahblah*" ); + if (cd == (iconv_t)(-1)) { + if (errno == EINVAL) { + return 0; + } else { + return 1; + } + } + iconv_close( cd ); + return 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5 +$as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define FOO <$PHP_ICONV_H_PATH> +#include FOO + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h + + +cat >>confdefs.h <<_ACEOF +#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH> +_ACEOF + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/iconv + ext_srcdir=$abs_srcdir/ext/iconv + + ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ICONV_SHARED=no + + + case ext/iconv in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ICONV 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ICONV_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/iconv in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for IMAP support... " >&6; } + +# Check whether --with-imap was given. +if test "${with_imap+set}" = set; then : + withval=$with_imap; PHP_IMAP=$withval +else + + PHP_IMAP=no + test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IMAP in +shared,*) + PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_IMAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 +$as_echo_n "checking for IMAP Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_imap_ssl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 +$as_echo_n "checking for IMAP SSL support... " >&6; } + +# Check whether --with-imap-ssl was given. +if test "${with_imap_ssl+set}" = set; then : + withval=$with_imap_ssl; PHP_IMAP_SSL=$withval +else + + PHP_IMAP_SSL=no + + +fi + + +ext_output=$PHP_IMAP_SSL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +if test "$PHP_IMAP" != "no"; then + + PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD" + + + ext_builddir=ext/imap + ext_srcdir=$abs_srcdir/ext/imap + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_IMAP_SHARED=no + + + case ext/imap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_IMAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_IMAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/imap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + for i in $PHP_IMAP /usr/local /usr; do + if test -r "$i/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i + break + elif test -r "$i/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i + break + + elif test -r "$i/include/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/c-client + break + elif test -r "$i/include/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/c-client + break + + elif test -r "$i/include/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/imap + break + elif test -r "$i/include/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/imap + break + + elif test -r "$i/include/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include + break + elif test -r "$i/include/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include + break + + elif test -r "$i/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/imap + break + elif test -r "$i/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/imap + break + + elif test -r "$i/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/c-client + break + elif test -r "$i/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/c-client + break + + fi + done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/mail.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2004 1" >>confdefs.h + + +fi +rm -f conftest* + + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 +$as_echo_n "checking for utf8_mime2text signature... " >&6; } +if ${ac_cv_utf8_mime2text+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + + SIZEDTEXT *src, *dst; + utf8_mime2text(src, dst); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_utf8_mime2text=old + +else + + ac_cv_utf8_mime2text=new + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 +$as_echo "$ac_cv_utf8_mime2text" >&6; } + if test "$ac_cv_utf8_mime2text" = "new"; then + +$as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h + + fi + CFLAGS=$old_CFLAGS + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 +$as_echo_n "checking for U8T_DECOMPOSE... " >&6; } +if ${ac_cv_u8t_canonical+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + + int i = U8T_CANONICAL; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_u8t_decompose=yes + +else + + ac_cv_u8t_decompose=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_canonical" >&5 +$as_echo "$ac_cv_u8t_canonical" >&6; } + CFLAGS=$old_CFLAGS + + if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then + as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then + as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$IMAP_INC_DIR + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "imap4r1.h" +#if defined(IMAPSSLPORT) + this_is_true +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "this_is_true" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2001 1" >>confdefs.h + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 +$as_echo_n "checking for pam_start in -lpam... " >&6; } +if ${ac_cv_lib_pam_pam_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpam $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pam_start (); +int +main () +{ +return pam_start (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pam_pam_start=yes +else + ac_cv_lib_pam_pam_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +$as_echo "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case pam in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD" + else + + + case pam in + c|c_r|pthread*) ;; + *) + LIBS="-lpam $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBPAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_pam_pam_start + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD" + else + + + case crypt in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypt_crypt + + +fi + + + + if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then + IMAP_DIR=$IMAP_DIR + else + + ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"` + fi + + + if test -z "$IMAP_DIR"; then + as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 + fi + + if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then + ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then + ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 + fi + + for lib in c-client4 c-client imap; do + IMAP_LIB=$lib + + str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2 + done + + + str="$IMAP_DIR/c-client/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2 + done + + done + + if test -z "$IMAP_LIBDIR"; then + as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 + fi + + + if test "$IMAP_INC_DIR" != "/usr/include"; then + + if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_INC_DIR + else + + ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD" + else + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + DLIBS="-l$IMAP_LIB $DLIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then + + if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_LIBDIR + else + + ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + if test "$PHP_KERBEROS" != "no"; then + + found_kerberos=no + unset KERBEROS_CFLAGS + unset KERBEROS_LIBS + + if test -z "$KRB5_CONFIG"; then + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no" + ;; +esac +fi +KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG +if test -n "$KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 +$as_echo "$KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then + KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi` + KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi` + + if test -n "$KERBEROS_LIBS"; then + found_kerberos=yes + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_kerberos" = "no"; then + + if test "$PHP_KERBEROS" = "yes"; then + PHP_KERBEROS="/usr/kerberos /usr/local /usr" + fi + + for i in $PHP_KERBEROS; do + if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + PHP_KERBEROS_DIR=$i + break + fi + done + + if test "$PHP_KERBEROS_DIR"; then + found_kerberos=yes + + if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5" + else + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgssapi_krb5" + ;; + esac + + + fi + ;; + esac + + + + + case krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5" + else + + + case krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lkrb5" + ;; + esac + + + fi + ;; + esac + + + + + case k5crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto" + else + + + case k5crypto in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lk5crypto" + ;; + esac + + + fi + ;; + esac + + + + + case com_err in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err" + else + + + case com_err in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lcom_err" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then + + if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/include + else + + ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + fi + + if test "$found_kerberos" = "yes"; then + + +$as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h + + +else + as_fn_error $? "Kerberos libraries not found. + + Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) + " "$LINENO" 5 + + fi + + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "auth_gss" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with Kerberos support. + + Add --with-kerberos to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + if test "$PHP_IMAP_SSL" != "no"; then + if test "$PHP_OPENSSL" = ""; then + PHP_OPENSSL='no' + fi + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + + +$as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL libraries not found. + + Check the path given to --with-openssl-dir and output in config.log) + " "$LINENO" 5 + + fi + + elif test -f "$IMAP_INC_DIR/linkage.c"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.c> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with SSL support. + + Add --with-imap-ssl to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD" + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char auth_gssapi_valid(); + int main() { + auth_gssapi_valid(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char utf8_to_mutf7(); + int main() { + utf8_to_mutf7(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 +$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; } + + old_LIBS=$LIBS + LIBS=" + $TST_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + void rfc822_output_address_list(void); + void (*f)(void); + char foobar () {f = rfc822_output_address_list;} + + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 +$as_echo_n "checking whether build with IMAP works... " >&6; } + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char mail_newbody(); + int main() { + mail_newbody(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi + + +php_with_interbase=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for InterBase support" >&5 +$as_echo_n "checking for InterBase support... " >&6; } + +# Check whether --with-interbase was given. +if test "${with_interbase+set}" = set; then : + withval=$with_interbase; PHP_INTERBASE=$withval +else + + PHP_INTERBASE=no + test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTERBASE in +shared,*) + PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTERBASE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTERBASE" != "no"; then + if test "$PHP_INTERBASE" = "yes"; then + IBASE_INCDIR=/usr/interbase/include + IBASE_LIBDIR=/usr/interbase/lib + else + IBASE_INCDIR=$PHP_INTERBASE/include + IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD" + if test -n "$IBASE_LIBDIR"; then + + if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then + + if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_LIBDIR + else + + ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$IBASE_LIBDIR"; then + + if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then + + if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_LIBDIR + else + + ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $IBASE_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$IBASE_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$IBASE_INCDIR" != "/usr/include"; then + + if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_INCDIR + else + + ep_dir=`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_IBASE 1" >>confdefs.h + + + ext_builddir=ext/interbase + ext_srcdir=$abs_srcdir/ext/interbase + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTERBASE_SHARED=no + + + case ext/interbase in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTERBASE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTERBASE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/interbase in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable internationalization support... " >&6; } +# Check whether --enable-intl was given. +if test "${enable_intl+set}" = set; then : + enableval=$enable_intl; PHP_INTL=$enableval +else + + PHP_INTL=no + test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTL in +shared,*) + PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTL" != "no"; then + + +php_with_icu_dir=DEFAULT + + + +# Check whether --with-icu-dir was given. +if test "${with_icu_dir+set}" = set; then : + withval=$with_icu_dir; PHP_ICU_DIR=$withval +else + + PHP_ICU_DIR=DEFAULT + + +fi + + +ext_output=$PHP_ICU_DIR + + + + + + if test "$PHP_ICU_DIR" = "no"; then + PHP_ICU_DIR=DEFAULT + fi + + if test "$PHP_ICU_DIR" = "DEFAULT"; then + # Extract the first word of "icu-config", so it can be a program name with args. +set dummy icu-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ICU_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ICU_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no" + ;; +esac +fi +ICU_CONFIG=$ac_cv_path_ICU_CONFIG +if test -n "$ICU_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5 +$as_echo "$ICU_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5 +$as_echo_n "checking for location of ICU headers and libraries... " >&6; } + + icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null` + if test "$?" != "0" || test -z "$icu_install_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5 +$as_echo "$icu_install_prefix" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 4.0 or greater" >&5 +$as_echo_n "checking for ICU 4.0 or greater... " >&6; } + icu_version_full=`$ICU_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $icu_version_full + IFS=$ac_IFS + icu_version=`expr $1 \* 1000 + $2` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5 +$as_echo "found $icu_version_full" >&6; } + + if test "$icu_version" -lt "4000"; then + as_fn_error $? "ICU version 4.0 or later is required" "$LINENO" 5 + fi + + ICU_VERSION=$icu_version + ICU_INCS=`$ICU_CONFIG --cppflags-searchpath` + ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio` + + for ac_i in $ICU_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ICU_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD" + + + if test -z "$php_cxx_done"; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + case stdc++ in + c|c_r|pthread*) ;; + *) + LIBS="-lstdc++ $LIBS" + ;; + esac + + + php_cxx_done=yes + fi + + if test "$icu_version" -ge "4002"; then + icu_spoof_src=" spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c" + else + icu_spoof_src="" + fi + + ext_builddir=ext/intl + ext_srcdir=$abs_srcdir/ext/intl + + ac_extra=`echo "$ICU_INCS -Wno-write-strings"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTL_SHARED=no + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + intl_convertcpp.cpp \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + common/common_enum.cpp \ + common/common_date.cpp \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_format_object.cpp \ + dateformat/dateformat_parse.c \ + dateformat/dateformat_create.cpp \ + dateformat/dateformat_attrcpp.cpp \ + dateformat/dateformat_helpers.cpp \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_helpers.cpp \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + timezone/timezone_class.cpp \ + timezone/timezone_methods.cpp \ + calendar/calendar_class.cpp \ + calendar/calendar_methods.cpp \ + calendar/gregoriancalendar_methods.cpp \ + breakiterator/breakiterator_class.cpp \ + breakiterator/breakiterator_iterators.cpp \ + breakiterator/breakiterator_methods.cpp \ + breakiterator/rulebasedbreakiterator_methods.cpp \ + breakiterator/codepointiterator_internal.cpp \ + breakiterator/codepointiterator_methods.cpp \ + idn/idn.c \ + $icu_spoof_src; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + intl_convertcpp.cpp \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + common/common_enum.cpp \ + common/common_date.cpp \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_format_object.cpp \ + dateformat/dateformat_parse.c \ + dateformat/dateformat_create.cpp \ + dateformat/dateformat_attrcpp.cpp \ + dateformat/dateformat_helpers.cpp \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_helpers.cpp \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + timezone/timezone_class.cpp \ + timezone/timezone_methods.cpp \ + calendar/calendar_class.cpp \ + calendar/calendar_methods.cpp \ + calendar/gregoriancalendar_methods.cpp \ + breakiterator/breakiterator_class.cpp \ + breakiterator/breakiterator_iterators.cpp \ + breakiterator/breakiterator_methods.cpp \ + breakiterator/rulebasedbreakiterator_methods.cpp \ + breakiterator/codepointiterator_internal.cpp \ + breakiterator/codepointiterator_methods.cpp \ + idn/idn.c \ + $icu_spoof_src; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; } +# Check whether --enable-json was given. +if test "${enable_json+set}" = set; then : + enableval=$enable_json; PHP_JSON=$enableval +else + + PHP_JSON=yes + test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_JSON in +shared,*) + PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'` + ;; +shared) + PHP_JSON=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_JSON" != "no"; then + +$as_echo "#define HAVE_JSON 1 " >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + + + + ext_builddir=ext/json + ext_srcdir=$abs_srcdir/ext/json + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_JSON_SHARED=no + + + case ext/json in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c utf8_decode.c JSON_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_JSON 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_JSON_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/json in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c utf8_decode.c JSON_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for LDAP support... " >&6; } + +# Check whether --with-ldap was given. +if test "${with_ldap+set}" = set; then : + withval=$with_ldap; PHP_LDAP=$withval +else + + PHP_LDAP=no + test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LDAP in +shared,*) + PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_LDAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_ldap_sasl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5 +$as_echo_n "checking for LDAP Cyrus SASL support... " >&6; } + +# Check whether --with-ldap-sasl was given. +if test "${with_ldap_sasl+set}" = set; then : + withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval +else + + PHP_LDAP_SASL=no + + +fi + + +ext_output=$PHP_LDAP_SASL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LDAP" != "no"; then + + + ext_builddir=ext/ldap + ext_srcdir=$abs_srcdir/ext/ldap + + ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LDAP_SHARED=no + + + case ext/ldap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LDAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LDAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ldap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4"; then + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$i + elif test -f $i/sdk/include/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$i/sdk/include + LDAP_LIBDIR=$i + fi + fi + + done + else + + if test -f $PHP_LDAP/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include/umich-ldap + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/ldap/public/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/ldap/public + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4"; then + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$PHP_LDAP + elif test -f $PHP_LDAP/sdk/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/sdk/include + LDAP_LIBDIR=$PHP_LDAP + fi + fi + + fi + + if test -z "$LDAP_DIR"; then + as_fn_error $? "Cannot find ldap.h" "$LINENO" 5 + fi + + + if test `uname` = "Linux"; then + LDAP_PTHREAD=pthread + else + LDAP_PTHREAD= + fi + + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case lber in + c|c_r|pthread*) ;; + *) + LIBS="-llber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case nspr4 in + c|c_r|pthread*) ;; + *) + LIBS="-lnspr4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plc4 in + c|c_r|pthread*) ;; + *) + LIBS="-lplc4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plds4 in + c|c_r|pthread*) ;; + *) + LIBS="-lplds4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ssldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lssldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case prldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lprldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ssl3 in + c|c_r|pthread*) ;; + *) + LIBS="-lssl3 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case nspr3 in + c|c_r|pthread*) ;; + *) + LIBS="-lnspr3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plc3 in + c|c_r|pthread*) ;; + *) + LIBS="-lplc3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plds3 in + c|c_r|pthread*) ;; + *) + LIBS="-lplds3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldapssl41 in + c|c_r|pthread*) ;; + *) + LIBS="-lldapssl41 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldapssl30 in + c|c_r|pthread*) ;; + *) + LIBS="-lldapssl30 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap30 in + c|c_r|pthread*) ;; + *) + LIBS="-lldap30 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case umich_lber in + c|c_r|pthread*) ;; + *) + LIBS="-lumich_lber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case umich_ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lumich_ldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_12 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_11 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h + + + else + as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 + fi + + + if test "$LDAP_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_INCDIR + else + + ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD" + + +$as_echo "#define HAVE_LDAP 1" >>confdefs.h + + + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LIBS="$LIBS $LDAP_SHARED_LIBADD" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 +$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } +if ${ac_cv_3arg_setrebindproc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +ldap_set_rebind_proc(0,0,0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_3arg_setrebindproc=yes +else + ac_cv_3arg_setrebindproc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 +$as_echo "$ac_cv_3arg_setrebindproc" >&6; } + if test "$ac_cv_3arg_setrebindproc" = yes; then + +$as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h + + fi + + for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + if test "$PHP_LDAP_SASL" != "no"; then + + if test "$PHP_LDAP_SASL" = "yes"; then + SEARCH_DIRS="/usr/local /usr" + else + SEARCH_DIRS=$PHP_LDAP_SASL + fi + + for i in $SEARCH_DIRS; do + if test -f $i/include/sasl/sasl.h; then + LDAP_SASL_DIR=$i + +$as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h + + break + elif test -f $i/include/sasl.h; then + LDAP_SASL_DIR=$i + +$as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h + + break + fi + done + + if test "$LDAP_SASL_DIR"; then + LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include + LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR + else + as_fn_error $? "sasl.h not found!" "$LINENO" 5 + fi + + if test "$PHP_LDAP_SASL" = "yes"; then + SASL_LIB="-lsasl2" + else + SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2" + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LDAP_SHARED_LIBADD $SASL_LIB + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5 +$as_echo_n "checking for sasl_version in -lsasl2... " >&6; } +if ${ac_cv_lib_sasl2_sasl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsasl2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sasl_version (); +int +main () +{ +return sasl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sasl2_sasl_version=yes +else + ac_cv_lib_sasl2_sasl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5 +$as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; } +if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$LDAP_SASL_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_INCDIR + else + + ep_dir=`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_SASL_LIBDIR"; then + + if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_LIBDIR + else + + ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_SASL_LIBDIR"; then + + if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_LIBDIR + else + + ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sasl2 in + c|c_r|pthread*) ;; + *) + LIBS="-lsasl2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sasl2_sasl_version + + as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + fi + + ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" +if test "x$ac_cv_func_ldap_bind_s" = xyes; then : + +else + + as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 + +fi + + + CPPFLAGS=$_SAVE_CPPFLAGS + LIBS=$_SAVE_LIBS +fi + + + + + + + + + + + + + + + + + + + + + + + + +php_enable_mbstring=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 +$as_echo_n "checking whether to enable multibyte string support... " >&6; } +# Check whether --enable-mbstring was given. +if test "${enable_mbstring+set}" = set; then : + enableval=$enable_mbstring; PHP_MBSTRING=$enableval +else + + PHP_MBSTRING=no + test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MBSTRING in +shared,*) + PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'` + ;; +shared) + PHP_MBSTRING=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5 +$as_echo_n "checking whether to enable multibyte regex support... " >&6; } +# Check whether --enable-mbregex was given. +if test "${enable_mbregex+set}" = set; then : + enableval=$enable_mbregex; PHP_MBREGEX=$enableval +else + + PHP_MBREGEX=yes + + +fi + + +ext_output=$PHP_MBREGEX +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex_backtrack=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5 +$as_echo_n "checking whether to check multibyte regex backtrack... " >&6; } +# Check whether --enable-mbregex_backtrack was given. +if test "${enable_mbregex_backtrack+set}" = set; then : + enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval +else + + PHP_MBREGEX_BACKTRACK=yes + + +fi + + +ext_output=$PHP_MBREGEX_BACKTRACK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_libmbfl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libmbfl" >&5 +$as_echo_n "checking for external libmbfl... " >&6; } + +# Check whether --with-libmbfl was given. +if test "${with_libmbfl+set}" = set; then : + withval=$with_libmbfl; PHP_LIBMBFL=$withval +else + + PHP_LIBMBFL=no + + +fi + + +ext_output=$PHP_LIBMBFL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_onig=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5 +$as_echo_n "checking for external oniguruma... " >&6; } + +# Check whether --with-onig was given. +if test "${with_onig+set}" = set; then : + withval=$with_onig; PHP_ONIG=$withval +else + + PHP_ONIG=no + + +fi + + +ext_output=$PHP_ONIG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MBSTRING" != "no"; then + +$as_echo "#define HAVE_MBSTRING 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c" + + + if test "$PHP_MBREGEX" != "no"; then + + if test "$PHP_MBREGEX" = "yes"; then + if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then + if test "$PHP_MBREGEX_BACKTRACK" != "no"; then + +$as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 +$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } +if ${php_cv_mbstring_stdarg+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + case $host_alias in + *netware*) + php_cv_mbstring_stdarg=yes + ;; + *) + php_cv_mbstring_stdarg=no + ;; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int foo(int x, ...) { + va_list va; + va_start(va, x); + va_arg(va, int); + va_arg(va, char *); + va_arg(va, double); + return 0; +} +int main() { return foo(10, "", 3.14); } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + php_cv_mbstring_stdarg=yes +else + php_cv_mbstring_stdarg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5 +$as_echo "$php_cv_mbstring_stdarg" >&6; } + + for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if ${ac_cv_func_memcmp_working+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" + ;; +esac + + + ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes; then : + + +$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h + + +fi + + + +$as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_ONIG 1" >>confdefs.h + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma" + + + PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h" + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + oniguruma/regcomp.c + oniguruma/regerror.c + oniguruma/regexec.c + oniguruma/reggnu.c + oniguruma/regparse.c + oniguruma/regenc.c + oniguruma/regext.c + oniguruma/regsyntax.c + oniguruma/regtrav.c + oniguruma/regversion.c + oniguruma/st.c + oniguruma/enc/unicode.c + oniguruma/enc/ascii.c + oniguruma/enc/utf8.c + oniguruma/enc/euc_jp.c + oniguruma/enc/euc_tw.c + oniguruma/enc/euc_kr.c + oniguruma/enc/sjis.c + oniguruma/enc/iso8859_1.c + oniguruma/enc/iso8859_2.c + oniguruma/enc/iso8859_3.c + oniguruma/enc/iso8859_4.c + oniguruma/enc/iso8859_5.c + oniguruma/enc/iso8859_6.c + oniguruma/enc/iso8859_7.c + oniguruma/enc/iso8859_8.c + oniguruma/enc/iso8859_9.c + oniguruma/enc/iso8859_10.c + oniguruma/enc/iso8859_11.c + oniguruma/enc/iso8859_13.c + oniguruma/enc/iso8859_14.c + oniguruma/enc/iso8859_15.c + oniguruma/enc/iso8859_16.c + oniguruma/enc/koi8.c + oniguruma/enc/koi8_r.c + oniguruma/enc/big5.c + oniguruma/enc/utf16_be.c + oniguruma/enc/utf16_le.c + oniguruma/enc/utf32_be.c + oniguruma/enc/utf32_le.c + " + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h" + + else + if test ! -f "$PHP_ONIG/include/oniguruma.h"; then + as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5 + fi + + if test "$PHP_ONIG/include" != "/usr/include"; then + + if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/include + else + + ep_dir=`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ONIG/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5 +$as_echo_n "checking for onig_init in -lonig... " >&6; } +if ${ac_cv_lib_onig_onig_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lonig $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char onig_init (); +int +main () +{ +return onig_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_onig_onig_init=yes +else + ac_cv_lib_onig_onig_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5 +$as_echo "$ac_cv_lib_onig_onig_init" >&6; } +if test "x$ac_cv_lib_onig_onig_init" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD" + if test -n "$PHP_ONIG/$PHP_LIBDIR"; then + + if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ONIG/$PHP_LIBDIR"; then + + if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case onig in + c|c_r|pthread*) ;; + *) + LIBS="-lonig $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ONIG 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_onig_onig_init + + as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + + for ac_i in $MBSTRING_SHARED_LIBADD; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 +$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +return (int)(ONIG_ENCODING_KOI8 + 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_old_LDFLAGS + fi + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1" + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar" + + + +$as_echo "#define HAVE_MBREGEX 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h" + + fi + + fi + + + if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h" + + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + libmbfl/filters/html_entities.c + libmbfl/filters/mbfilter_7bit.c + libmbfl/filters/mbfilter_ascii.c + libmbfl/filters/mbfilter_base64.c + libmbfl/filters/mbfilter_big5.c + libmbfl/filters/mbfilter_byte2.c + libmbfl/filters/mbfilter_byte4.c + libmbfl/filters/mbfilter_cp1251.c + libmbfl/filters/mbfilter_cp1252.c + libmbfl/filters/mbfilter_cp1254.c + libmbfl/filters/mbfilter_cp5022x.c + libmbfl/filters/mbfilter_cp51932.c + libmbfl/filters/mbfilter_cp850.c + libmbfl/filters/mbfilter_cp866.c + libmbfl/filters/mbfilter_cp932.c + libmbfl/filters/mbfilter_cp936.c + libmbfl/filters/mbfilter_gb18030.c + libmbfl/filters/mbfilter_euc_cn.c + libmbfl/filters/mbfilter_euc_jp.c + libmbfl/filters/mbfilter_euc_jp_2004.c + libmbfl/filters/mbfilter_euc_jp_win.c + libmbfl/filters/mbfilter_euc_kr.c + libmbfl/filters/mbfilter_euc_tw.c + libmbfl/filters/mbfilter_htmlent.c + libmbfl/filters/mbfilter_hz.c + libmbfl/filters/mbfilter_iso2022_jp_ms.c + libmbfl/filters/mbfilter_iso2022jp_2004.c + libmbfl/filters/mbfilter_iso2022jp_mobile.c + libmbfl/filters/mbfilter_iso2022_kr.c + libmbfl/filters/mbfilter_iso8859_1.c + libmbfl/filters/mbfilter_iso8859_10.c + libmbfl/filters/mbfilter_iso8859_13.c + libmbfl/filters/mbfilter_iso8859_14.c + libmbfl/filters/mbfilter_iso8859_15.c + libmbfl/filters/mbfilter_iso8859_16.c + libmbfl/filters/mbfilter_iso8859_2.c + libmbfl/filters/mbfilter_iso8859_3.c + libmbfl/filters/mbfilter_iso8859_4.c + libmbfl/filters/mbfilter_iso8859_5.c + libmbfl/filters/mbfilter_iso8859_6.c + libmbfl/filters/mbfilter_iso8859_7.c + libmbfl/filters/mbfilter_iso8859_8.c + libmbfl/filters/mbfilter_iso8859_9.c + libmbfl/filters/mbfilter_jis.c + libmbfl/filters/mbfilter_koi8r.c + libmbfl/filters/mbfilter_armscii8.c + libmbfl/filters/mbfilter_qprint.c + libmbfl/filters/mbfilter_sjis.c + libmbfl/filters/mbfilter_sjis_open.c + libmbfl/filters/mbfilter_sjis_mobile.c + libmbfl/filters/mbfilter_sjis_mac.c + libmbfl/filters/mbfilter_sjis_2004.c + libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + libmbfl/filters/mbfilter_ucs2.c + libmbfl/filters/mbfilter_ucs4.c + libmbfl/filters/mbfilter_uhc.c + libmbfl/filters/mbfilter_utf16.c + libmbfl/filters/mbfilter_utf32.c + libmbfl/filters/mbfilter_utf7.c + libmbfl/filters/mbfilter_utf7imap.c + libmbfl/filters/mbfilter_utf8.c + libmbfl/filters/mbfilter_utf8_mobile.c + libmbfl/filters/mbfilter_uuencode.c + libmbfl/filters/mbfilter_koi8u.c + libmbfl/mbfl/mbfilter.c + libmbfl/mbfl/mbfilter_8bit.c + libmbfl/mbfl/mbfilter_pass.c + libmbfl/mbfl/mbfilter_wchar.c + libmbfl/mbfl/mbfl_convert.c + libmbfl/mbfl/mbfl_encoding.c + libmbfl/mbfl/mbfl_filter_output.c + libmbfl/mbfl/mbfl_ident.c + libmbfl/mbfl/mbfl_language.c + libmbfl/mbfl/mbfl_memory_device.c + libmbfl/mbfl/mbfl_string.c + libmbfl/mbfl/mbfl_allocators.c + libmbfl/nls/nls_de.c + libmbfl/nls/nls_en.c + libmbfl/nls/nls_ja.c + libmbfl/nls/nls_kr.c + libmbfl/nls/nls_neutral.c + libmbfl/nls/nls_ru.c + libmbfl/nls/nls_uni.c + libmbfl/nls/nls_zh.c + libmbfl/nls/nls_hy.c + libmbfl/nls/nls_tr.c + libmbfl/nls/nls_ua.c + " + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h" + + else + for inc in include include/mbfl-1.0 include/mbfl; do + if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then + PHP_LIBMBFL_INCLUDE="$inc" + break + fi + done + + if test -z "$PHP_LIBMBFL_INCLUDE"; then + as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5 + else + + if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then + + if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL_INCLUDE + else + + ep_dir=`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_LIBMBFL/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5 +$as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; } +if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmbfl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mbfl_buffer_converter_new (); +int +main () +{ +return mbfl_buffer_converter_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes +else + ac_cv_lib_mbfl_mbfl_buffer_converter_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5 +$as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; } +if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD" + if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then + + if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then + + if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mbfl in + c|c_r|pthread*) ;; + *) + LIBS="-lmbfl $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mbfl_mbfl_buffer_converter_new + + as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + + ext_builddir=ext/mbstring + ext_srcdir=$abs_srcdir/ext/mbstring + + ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MBSTRING_SHARED=no + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MBSTRING 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MBSTRING_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_srcdir/$dir + else + + ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_builddir/$dir" != "/usr/include"; then + + if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then + ai_p=$ext_builddir/$dir + else + + ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + done + + if test "$ext_shared" = "no"; then + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects< $ext_builddir/$cfg <&5 +$as_echo_n "checking for mcrypt support... " >&6; } + +# Check whether --with-mcrypt was given. +if test "${with_mcrypt+set}" = set; then : + withval=$with_mcrypt; PHP_MCRYPT=$withval +else + + PHP_MCRYPT=no + test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MCRYPT in +shared,*) + PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'` + ;; +shared) + PHP_MCRYPT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MCRYPT" != "no"; then + for i in $PHP_MCRYPT /usr/local /usr; do + test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break + done + + if test -z "$MCRYPT_DIR"; then + as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5 + fi + + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$MCRYPT_DIR/include + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmcrypt version" >&5 +$as_echo_n "checking for libmcrypt version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if MCRYPT_API_VERSION >= 20021217 + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 2.5.6" >&5 +$as_echo ">= 2.5.6" >&6; } + +else + + as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 +$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mcrypt_module_open (); +int +main () +{ +return mcrypt_module_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mcrypt_mcrypt_module_open=yes +else + ac_cv_lib_mcrypt_mcrypt_module_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 +$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case ltdl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD" + else + + + case ltdl in + c|c_r|pthread*) ;; + *) + LIBS="-lltdl $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mcrypt_mcrypt_module_open + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MCRYPT_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 +$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mcrypt_module_open (); +int +main () +{ +return mcrypt_module_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mcrypt_mcrypt_module_open=yes +else + ac_cv_lib_mcrypt_mcrypt_module_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 +$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mcrypt_mcrypt_module_open + + as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5 + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD" + if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then + + if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then + + if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mcrypt in + c|c_r|pthread*) ;; + *) + LIBS="-lmcrypt $LIBS" + ;; + esac + + + + + fi + + + + if test "$MCRYPT_DIR/include" != "/usr/include"; then + + if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/include + else + + ep_dir=`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD" + + + ext_builddir=ext/mcrypt + ext_srcdir=$abs_srcdir/ext/mcrypt + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MCRYPT_SHARED=no + + + case ext/mcrypt in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mcrypt.c mcrypt_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MCRYPT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MCRYPT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mcrypt in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mcrypt.c mcrypt_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MSSQL support via FreeTDS... " >&6; } + +# Check whether --with-mssql was given. +if test "${with_mssql+set}" = set; then : + withval=$with_mssql; PHP_MSSQL=$withval +else + + PHP_MSSQL=no + test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MSSQL in +shared,*) + PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_MSSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MSSQL" != "no"; then + + if test "$PHP_MSSQL" = "yes"; then + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include/freetds + break + fi + done + + if test -z "$FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_MSSQL" != "no"; then + + if test -f $PHP_MSSQL/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include + elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds + else + as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD" + if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + ext_builddir=ext/mssql + ext_srcdir=$abs_srcdir/ext/mssql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MSSQL_SHARED=no + + + case ext/mssql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mssql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MSSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MSSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mssql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mssql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_MSSQL 1" >>confdefs.h + + +$as_echo "#define HAVE_FREETDS 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD" + +fi + + + + + + + + +php_with_mysql=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5 +$as_echo_n "checking for MySQL support... " >&6; } + +# Check whether --with-mysql was given. +if test "${with_mysql+set}" = set; then : + withval=$with_mysql; PHP_MYSQL=$withval +else + + PHP_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQL in +shared,*) + PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mysql_sock=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 +$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; } + +# Check whether --with-mysql-sock was given. +if test "${with_mysql_sock+set}" = set; then : + withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval +else + + PHP_MYSQL_SOCK=no + + +fi + + +ext_output=$PHP_MYSQL_SOCK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQL" != "no"; then + MYSQL_DIR= + MYSQL_INC_DIR= + + if test -r $PHP_MYSQL/include/mysql/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include/mysql + break + elif test -r $PHP_MYSQL/include/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include + break + fi + + if test -z "$MYSQL_DIR"; then + as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL. +Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 + fi + + if test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIBNAME=mysqlclient_r + else + MYSQL_LIBNAME=mysqlclient + fi + case $host_alias in + *netware*) + MYSQL_LIBNAME=mysql + ;; + esac + + if test -z "$PHP_LIBDIR"; then + PHP_LIBDIR=lib + fi + + for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do + + str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/$i + break 2 + fi + done + + done + + if test -z "$MYSQL_LIB_DIR"; then + + str="$MYSQL_DIR/lib/x86_64-linux-gnu/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/lib/x86_64-linux-gnu + break 2 + fi + done + + fi + if test -z "$MYSQL_LIB_DIR"; then + + str="$MYSQL_DIR/lib/i386-linux-gnu/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/lib/i386-linux-gnu + break 2 + fi + done + + fi + + if test -z "$MYSQL_LIB_DIR"; then + as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. +Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_close (); +int +main () +{ +return mysql_close (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_error (); +int +main () +{ +return mysql_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error + + as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_errno (); +int +main () +{ +return mysql_errno (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + MYSQL_LIBS="-lz" + fi + + +fi + + + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD" + if test -n "$MYSQL_LIB_DIR"; then + + if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then + + if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_LIB_DIR + else + + ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MYSQL_LIB_DIR"; then + + if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then + + if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_LIB_DIR + else + + ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $MYSQL_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$MYSQL_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_INC_DIR + else + + ep_dir=`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + MYSQL_MODULE_TYPE=external + MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS" + MYSQL_INCLUDE=-I$MYSQL_INC_DIR + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE" + + + +fi + +if test "$PHP_MYSQL" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + ext_builddir=ext/mysql + ext_srcdir=$abs_srcdir/ext/mysql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQL_SHARED=no + + + case ext/mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mysql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mysql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + fi +fi + + + +php_with_mysqli=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5 +$as_echo_n "checking for MySQLi support... " >&6; } + +# Check whether --with-mysqli was given. +if test "${with_mysqli+set}" = set; then : + withval=$with_mysqli; PHP_MYSQLI=$withval +else + + PHP_MYSQLI=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLI in +shared,*) + PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_embedded_mysqli=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5 +$as_echo_n "checking whether to enable embedded MySQLi support... " >&6; } +# Check whether --enable-embedded_mysqli was given. +if test "${enable_embedded_mysqli+set}" = set; then : + enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval +else + + PHP_EMBEDDED_MYSQLI=no + + +fi + + +ext_output=$PHP_EMBEDDED_MYSQLI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQLI" != "no"; then + + MYSQL_CONFIG=$PHP_MYSQLI + + MYSQL_LIB_NAME='mysqlclient' + if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then + +$as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h + + MYSQL_LIB_CFG='--libmysqld-libs' + mysqli_extra_sources="mysqli_embedded.c" + elif test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIB_CFG='--libs_r' + MYSQL_LIB_NAME='mysqlclient_r' + else + MYSQL_LIB_CFG='--libs' + fi + + if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then + MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"` + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5 +$as_echo "mysql_config not found" >&6; } + as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_server_option (); +int +main () +{ +return mysql_set_server_option (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $MYSQLI_INCLINE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $MYSQLI_LIBLINE; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$MYSQLI_LIBLINE" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_character_set (); +int +main () +{ +return mysql_set_character_set (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set + + as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 + + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option + + as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_stmt_next_result (); +int +main () +{ +return mysql_stmt_next_result (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result + + + +fi + +fi + +if test "$PHP_MYSQLI" != "no"; then + mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ + mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \ + mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources" + + ext_builddir=ext/mysqli + ext_srcdir=$abs_srcdir/ext/mysqli + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLI_SHARED=no + + + case ext/mysqli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLI_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysqli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + for header_file in ext/mysqli/mysqli_mysqlnd.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + else + + + for header_file in ext/mysqli/mysqli_libmysql.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi +fi + + +if test -z "$SED"; then + PHP_OCI8_SED="sed"; +else + PHP_OCI8_SED="$SED"; +fi + +PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null` +if test "$PHP_OCI8_TAIL1" = "a"; then + PHP_OCI8_TAIL1="tail -n1" +else + PHP_OCI8_TAIL1="tail -1" +fi + + + + + + + + + + + +php_with_oci8=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 +$as_echo_n "checking for Oracle Database OCI8 support... " >&6; } + +# Check whether --with-oci8 was given. +if test "${with_oci8+set}" = set; then : + withval=$with_oci8; PHP_OCI8=$withval +else + + PHP_OCI8=no + test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OCI8 in +shared,*) + PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'` + ;; +shared) + PHP_OCI8=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OCI8" != "no"; then + + if test -z "$PHP_OCI8"; then + as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 +$as_echo_n "checking PHP version... " >&6; } + + tmp_version=$PHP_VERSION + if test -z "$tmp_version"; then + if test -z "$PHP_CONFIG"; then + as_fn_error $? "php-config not found" "$LINENO" 5 + fi + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + else + php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + fi + + if test -z "$php_version"; then + as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5 + fi + + ac_IFS=$IFS + IFS="." + set $php_version + IFS=$ac_IFS + oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3` + + if test "$oci8_php_version" -lt "4003009"; then + as_fn_error $? "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 + elif test "$oci8_php_version" -ge "6000000"; then + as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 +$as_echo "$php_version, ok" >&6; } + fi + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_OH_LIBDIR=lib32 + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_OH_LIBDIR=lib + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + + + PHP_OCI8_INSTANT_CLIENT="no" + + if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} + PHP_OCI8=instantclient + fi + + if test "`echo $PHP_OCI8`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="yes" + elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + fi + + if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 +$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; } + + if test "$PHP_OCI8" = "yes"; then + OCI8_DIR=$ORACLE_HOME + else + OCI8_DIR=$PHP_OCI8 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 +$as_echo "$OCI8_DIR" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 +$as_echo_n "checking ORACLE_HOME library validity... " >&6; } + if test ! -d "$OCI8_DIR"; then + as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 + fi + if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib + elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib32 + elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR + else + if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then + as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 + else + as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 +$as_echo "$OCI8_LIB_DIR" >&6; } + + + if test -d "$OCI8_DIR/rdbms/public"; then + + if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/public + else + + ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" + fi + if test -d "$OCI8_DIR/rdbms/demo"; then + + if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/demo + else + + ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" + fi + if test -d "$OCI8_DIR/network/public"; then + + if test "$OCI8_DIR/network/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/network/public + else + + ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" + fi + if test -d "$OCI8_DIR/plsql/public"; then + + if test "$OCI8_DIR/plsql/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/plsql/public + else + + ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" + fi + + if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 +$as_echo_n "checking Oracle library version compatibility... " >&6; } + OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3 + elif test -f "$OCI8_LCS"; then + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $OCI8_LCS_BASE.9.0; then + OCI8_ORACLE_VERSION=9.0 + elif test -f $OCI8_LCS_BASE.8.0; then + OCI8_ORACLE_VERSION=8.1 + elif test -f $OCI8_LCS_BASE.1.0; then + OCI8_ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then + if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then + OCI8_ORACLE_VERSION=8.0 + else + OCI8_ORACLE_VERSION=8.1 + fi + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + case $OCI8_ORACLE_VERSION in + 7.3|8.0|8.1) + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + ;; + + 9.0) + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + OCI8_ORACLE_VERSION=9.2 + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + + +fi + + ;; + + *) + +$as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h + + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then + + if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/$OCI8_LIB_DIR + else + + ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_DIR "$OCI8_DIR" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD" +_ACEOF + + + else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 +$as_echo_n "checking Oracle Instant Client directory... " >&6; } + + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then + as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 +$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; } + + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 +$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; } + + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include + + OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'` + + if test -f "$OCISDKRPMINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKRPMINC + elif test -f "$OCISDKZIPINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKZIPINC + elif test -f "$OCISDKMANINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKMANINC + else + as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5 + fi + + OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` + if test -f "$OCISYSLIBLIST"; then + + for ac_i in `cat $OCISYSLIBLIST`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 +$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; } + OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` + if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then + if test ! -f "$OCI8_LCS_BASE"; then + as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 + fi + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + else + as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then + + if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then + ai_p=$PHP_OCI8_INSTANT_CLIENT + else + + ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + +$as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h + + +$as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h + + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + fi +fi + + + + + + + + + + + + +if test -z "$ODBC_TYPE"; then + +php_with_adabas=no + + + +# Check whether --with-adabas was given. +if test "${with_adabas+set}" = set; then : + withval=$with_adabas; PHP_ADABAS=$withval +else + + PHP_ADABAS=no + test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ADABAS in +shared,*) + PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'` + ;; +shared) + PHP_ADABAS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ADABAS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 +$as_echo_n "checking for Adabas support... " >&6; } + if test "$PHP_ADABAS" = "yes"; then + PHP_ADABAS=/usr/local + fi + + if test "$PHP_ADABAS/incl" != "/usr/include"; then + + if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/incl + else + + ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a" + ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a" + $srcdir/build/shtool mkdir -f -p ext/odbc + rm -f "$ODBC_LIB" + cp "$ODBC_OBJS" "$ODBC_LIB" + + + case sqlptc in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlptc $LIBS" + ;; + esac + + + + + case sqlrte in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlrte $LIBS" + ;; + esac + + + + + if test -n "$abs_builddir/ext/odbc"; then + + if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then + + if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then + ai_p=$abs_builddir/ext/odbc + else + + ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case odbc_adabas in + c|c_r|pthread*) ;; + *) + LIBS="-lodbc_adabas $LIBS" + ;; + esac + + + + + ODBC_TYPE=adabas + ODBC_INCDIR=$PHP_ADABAS/incl + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_ADABAS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_sapdb=no + + + +# Check whether --with-sapdb was given. +if test "${with_sapdb+set}" = set; then : + withval=$with_sapdb; PHP_SAPDB=$withval +else + + PHP_SAPDB=no + test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SAPDB in +shared,*) + PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'` + ;; +shared) + PHP_SAPDB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_SAPDB" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 +$as_echo_n "checking for SAP DB support... " >&6; } + if test "$PHP_SAPDB" = "yes"; then + PHP_SAPDB=/usr/local + fi + + if test "$PHP_SAPDB/incl" != "/usr/include"; then + + if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/incl + else + + ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case sqlod in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlod $LIBS" + ;; + esac + + + ODBC_TYPE=sapdb + +$as_echo "#define HAVE_SAPDB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_solid=no + + + +# Check whether --with-solid was given. +if test "${with_solid+set}" = set; then : + withval=$with_solid; PHP_SOLID=$withval +else + + PHP_SOLID=no + test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOLID in +shared,*) + PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOLID=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_SOLID" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 +$as_echo_n "checking for Solid support... " >&6; } + if test "$PHP_SOLID" = "yes"; then + PHP_SOLID=/usr/local/solid + fi + ODBC_INCDIR=$PHP_SOLID/include + ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=solid + if test -f $ODBC_LIBDIR/soc*35.a; then + +$as_echo "#define HAVE_SOLID_35 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*30.a; then + +$as_echo "#define HAVE_SOLID_30 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*23.a; then + +$as_echo "#define HAVE_SOLID 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 +$as_echo_n "checking Solid library file... " >&6; } + ac_solid_uname_r=`uname -r 2>/dev/null` + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only + HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10 + IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only + Linux) + if ldd -v /bin/sh | grep GLIBC > /dev/null; then + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=l2x + else + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=lux + fi;; + SunOS) + ac_solid_os=ssx;; # should we deal with SunOS 4? + FreeBSD) + if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fex + else + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fbx + fi;; + esac + + if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then + ac_solid_version=35 + ac_solid_prefix=soc + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then + ac_solid_version=30 + ac_solid_prefix=scl + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then + ac_solid_version=23 + ac_solid_prefix=scl + fi + +# +# Check for the library files, and setup the ODBC_LIBS path... +# +if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \ + ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then + # + # we have an error and should bail out, as we can't find the libs! + # + echo "" + echo "*********************************************************************" + echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* Please correct this by creating the following links and reconfiguring:" + echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so" + echo "*********************************************************************" +else + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_ibm_db2=no + + + +# Check whether --with-ibm-db2 was given. +if test "${with_ibm_db2+set}" = set; then : + withval=$with_ibm_db2; PHP_IBM_DB2=$withval +else + + PHP_IBM_DB2=no + test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IBM_DB2 in +shared,*) + PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'` + ;; +shared) + PHP_IBM_DB2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_IBM_DB2" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 +$as_echo_n "checking for IBM DB2 support... " >&6; } + if test "$PHP_IBM_DB2" = "yes"; then + ODBC_INCDIR=/home/db2inst1/sqllib/include + ODBC_LIBDIR=/home/db2inst1/sqllib/lib + else + ODBC_INCDIR=$PHP_IBM_DB2/include + ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR + fi + + +if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 +fi + + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=ibm-db2 + ODBC_LIBS=-ldb2 + + + old_LIBS=$LIBS + LIBS=" + $ODBC_LFLAGS $ODBC_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char SQLExecute(); + int main() { + SQLExecute(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IBMDB2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? " +build test failed. Please check the config.log for details. +You need to source your DB2 environment before running PHP configure: +# . \$IBM_DB2/db2profile +" "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_odbcrouter=no + + + +# Check whether --with-ODBCRouter was given. +if test "${with_ODBCRouter+set}" = set; then : + withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval +else + + PHP_ODBCROUTER=no + test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ODBCROUTER in +shared,*) + PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_ODBCROUTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ODBCROUTER" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBCRouter.com support" >&5 +$as_echo_n "checking for ODBCRouter.com support... " >&6; } + if test "$PHP_ODBCROUTER" = "yes"; then + PHP_ODBCROUTER=/usr + fi + ODBC_INCDIR=$PHP_ODBCROUTER/include + ODBC_LIBDIR=$PHP_ODBCROUTER/lib + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbcsdk + ODBC_TYPE=ODBCRouter + +$as_echo "#define HAVE_ODBC_ROUTER 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress=no + + + +# Check whether --with-empress was given. +if test "${with_empress+set}" = set; then : + withval=$with_empress; PHP_EMPRESS=$withval +else + + PHP_EMPRESS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS in +shared,*) + PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_EMPRESS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 +$as_echo_n "checking for Empress support... " >&6; } + if test "$PHP_EMPRESS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS/shlib + fi + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=empress + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 +$as_echo_n "checking Empress library file... " >&6; } + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + if test ! -f $ODBC_LIBS; then + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress_bcs=no + + + +# Check whether --with-empress-bcs was given. +if test "${with_empress_bcs+set}" = set; then : + withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval +else + + PHP_EMPRESS_BCS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS_BCS in +shared,*) + PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS_BCS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_EMPRESS_BCS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 +$as_echo_n "checking for Empress local access support... " >&6; } + if test "$PHP_EMPRESS_BCS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib + fi + CC="empocc -bcs";export CC; + LD="empocc -bcs";export LD; + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + LIST=`empocc -listlines -bcs -o a a.c` + + NEWLIST= + for I in $LIST + do + case $I in + $EMPRESSPATH/odbccl/lib/* | \ + $EMPRESSPATH/rdbms/lib/* | \ + $EMPRESSPATH/common/lib/*) + NEWLIST="$NEWLIST $I" + ;; + esac + done + ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" + ODBC_TYPE=empress-bcs + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 +$as_echo_n "checking Empress local access library file... " >&6; } + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + if test ! -f $ODBCBCS_LIBS; then + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_birdstep=no + + + +# Check whether --with-birdstep was given. +if test "${with_birdstep+set}" = set; then : + withval=$with_birdstep; PHP_BIRDSTEP=$withval +else + + PHP_BIRDSTEP=no + test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BIRDSTEP in +shared,*) + PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'` + ;; +shared) + PHP_BIRDSTEP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_BIRDSTEP" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Birdstep support" >&5 +$as_echo_n "checking for Birdstep support... " >&6; } + if test "$PHP_BIRDSTEP" = "yes"; then + ODBC_INCDIR=/usr/local/birdstep/include + ODBC_LIBDIR=/usr/local/birdstep/lib + else + ODBC_INCDIR=$PHP_BIRDSTEP/include + ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR + fi + + case $host_alias in + *aix*) + +$as_echo "#define AIX 1" >>confdefs.h +;; + *hpux*) + +$as_echo "#define HPUX 1" >>confdefs.h +;; + *linux*) + +$as_echo "#define LINUX 1" >>confdefs.h +;; + *qnx*) + +$as_echo "#define NEUTRINO 1" >>confdefs.h +;; + i?86-*-solaris*) + +$as_echo "#define ISOLARIS 1" >>confdefs.h +;; + sparc-*-solaris*) + +$as_echo "#define SOLARIS 1" >>confdefs.h +;; + *unixware*) + +$as_echo "#define UNIXWARE 1" >>confdefs.h +;; + esac + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=birdstep + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil" + + if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil" + elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil" + fi + + +$as_echo "#define HAVE_BIRDSTEP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_custom_odbc=no + + + +# Check whether --with-custom-odbc was given. +if test "${with_custom_odbc+set}" = set; then : + withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval +else + + PHP_CUSTOM_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CUSTOM_ODBC in +shared,*) + PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_CUSTOM_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_CUSTOM_ODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 +$as_echo_n "checking for a custom ODBC support... " >&6; } + if test "$PHP_CUSTOM_ODBC" = "yes"; then + PHP_CUSTOM_ODBC=/usr/local + fi + ODBC_INCDIR=$PHP_CUSTOM_ODBC/include + ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=$CUSTOM_ODBC_LIBS + ODBC_TYPE=custom-odbc + +$as_echo "#define HAVE_CODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_iodbc=no + + + +# Check whether --with-iodbc was given. +if test "${with_iodbc+set}" = set; then : + withval=$with_iodbc; PHP_IODBC=$withval +else + + PHP_IODBC=no + test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IODBC in +shared,*) + PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_IODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_IODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5 +$as_echo_n "checking for iODBC support... " >&6; } + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then + + + if test -n "$PHP_IODBC/$PHP_LIBDIR"; then + + if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iodbc in + c|c_r|pthread*) ;; + *) + LIBS="-liodbc $LIBS" + ;; + esac + + + + + ODBC_TYPE=iodbc + ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc` + ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc` + ODBC_LIBS=`$PKG_CONFIG --libs-only-l libiodbc` + + for ac_i in $ODBC_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + if test "$PHP_IODBC" = "yes"; then + PHP_IODBC=/usr/local + fi + + + if test -n "$PHP_IODBC/$PHP_LIBDIR"; then + + if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iodbc in + c|c_r|pthread*) ;; + *) + LIBS="-liodbc $LIBS" + ;; + esac + + + + + + if test "$PHP_IODBC/include" != "/usr/include"; then + + if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/include + else + + ep_dir=`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test "1"; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_TYPE=iodbc + ODBC_INCLUDE=-I$PHP_IODBC/include + ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR + ODBC_LIBS=-liodbc + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_esoob=no + + + +# Check whether --with-esoob was given. +if test "${with_esoob+set}" = set; then : + withval=$with_esoob; PHP_ESOOB=$withval +else + + PHP_ESOOB=no + test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ESOOB in +shared,*) + PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ESOOB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ESOOB" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 +$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } + if test "$PHP_ESOOB" = "yes"; then + PHP_ESOOB=/usr/local/easysoft/oob/client + fi + ODBC_INCDIR=$PHP_ESOOB/include + ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lesoobclient + ODBC_TYPE=esoob + +$as_echo "#define HAVE_ESOOB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_unixodbc=no + + + +# Check whether --with-unixODBC was given. +if test "${with_unixODBC+set}" = set; then : + withval=$with_unixODBC; PHP_UNIXODBC=$withval +else + + PHP_UNIXODBC=no + test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_UNIXODBC in +shared,*) + PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_UNIXODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_UNIXODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5 +$as_echo_n "checking for unixODBC support... " >&6; } + if test "$PHP_UNIXODBC" = "yes"; then + PHP_UNIXODBC=/usr/local + fi + ODBC_INCDIR=$PHP_UNIXODBC/include + ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + ODBC_TYPE=unixODBC + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_dbmaker=no + + + +# Check whether --with-dbmaker was given. +if test "${with_dbmaker+set}" = set; then : + withval=$with_dbmaker; PHP_DBMAKER=$withval +else + + PHP_DBMAKER=no + test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DBMAKER in +shared,*) + PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'` + ;; +shared) + PHP_DBMAKER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_DBMAKER" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 +$as_echo_n "checking for DBMaker support... " >&6; } + if test "$PHP_DBMAKER" = "yes"; then + # find dbmaker's home directory + DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` + + # check DBMaker version (from 5.0 to 2.0) + DBMAKER_VERSION=5.0 + + while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do + DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'` + MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'` + MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'` + DBMAKER_VERSION=$MAJOR_V.$MINOR_V + done + + if test "$DBMAKER_VERSION" = "2.9"; then + PHP_DBMAKER=$DBMAKER_HOME + else + PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION + fi + fi + + ODBC_INCDIR=$PHP_DBMAKER/include + ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS="-ldmapic -lc" + ODBC_TYPE=dbmaker + + +$as_echo "#define HAVE_DBMAKER 1" >>confdefs.h + + + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 +$as_echo "yes (shared)" >&6; } + ODBC_LIBS="-ldmapic -lc -lm" + ODBC_SHARED="odbc.la" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 +$as_echo "yes (static)" >&6; } + + + if test -n "$ODBC_LIBDIR"; then + + if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then + + if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_LIBDIR + else + + ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dmapic in + c|c_r|pthread*) ;; + *) + LIBS="-ldmapic $LIBS" + ;; + esac + + + + + + if test "$ODBC_INCDIR" != "/usr/include"; then + + if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_INCDIR + else + + ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_STATIC="libphpext_odbc.la" + fi + fi +fi + +if test -n "$ODBC_TYPE"; then + if test "$ODBC_TYPE" != "dbmaker"; then + + for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then + +$as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h + + fi + fi + + +$as_echo "#define HAVE_UODBC 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE" + + + + + + ext_builddir=ext/odbc + ext_srcdir=$abs_srcdir/ext/odbc + + ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ODBC_SHARED=no + + + case ext/odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable Zend OPcache support... " >&6; } +# Check whether --enable-opcache was given. +if test "${enable_opcache+set}" = set; then : + enableval=$enable_opcache; PHP_OPCACHE=$enableval +else + + PHP_OPCACHE=yes + test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPCACHE in +shared,*) + PHP_OPCACHE=`echo "$PHP_OPCACHE"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPCACHE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPCACHE" != "no"; then + + ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" +if test "x$ac_cv_func_mprotect" = xyes; then : + + +$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 +$as_echo_n "checking for sysvipc shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include + +int main() { + pid_t pid; + int status; + int ipc_id; + char *shm; + struct shmid_ds shmbuf; + + ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W)); + if (ipc_id == -1) { + return 1; + } + + shm = shmat(ipc_id, NULL, 0); + if (shm == (void *)-1) { + shmctl(ipc_id, IPC_RMID, NULL); + return 2; + } + + if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 3; + } + + shmbuf.shm_perm.uid = getuid(); + shmbuf.shm_perm.gid = getgid(); + shmbuf.shm_perm.mode = 0600; + + if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 4; + } + + shmctl(ipc_id, IPC_RMID, NULL); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 +$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + char *shm; + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + if (shm == MAP_FAILED) { + return 1; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using /dev/zero shared memory support" >&5 +$as_echo_n "checking for mmap() using /dev/zero shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + + fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 1; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 2; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ZERO 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 +$as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + shm_unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + shm_unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using regular file shared memory support" >&5 +$as_echo_n "checking for mmap() using regular file shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_FILE 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + +flock_type=unknown +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is linux ordered\"" >&5 +$as_echo_n "checking \"whether flock struct is linux ordered\"... " >&6; } +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) { + return 0; + } + return 1; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + flock_type=linux + +$as_echo "#define HAVE_FLOCK_LINUX /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 +$as_echo "\"yes\"" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 +$as_echo "\"no\"" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is BSD ordered\"" >&5 +$as_echo_n "checking \"whether flock struct is BSD ordered\"... " >&6; } +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) { + return 0; + } + return 1; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + flock_type=bsd + +$as_echo "#define HAVE_FLOCK_BSD /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 +$as_echo "\"yes\"" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 +$as_echo "\"no\"" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +if test "$flock_type" == "unknown"; then + as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5 +fi + + + ext_builddir=ext/opcache + ext_srcdir=$abs_srcdir/ext/opcache + + ac_extra= + + if test "shared" != "shared" && test "shared" != "yes" && test "" != "cli"; then + PHP_OPCACHE_SHARED=no + + + case ext/opcache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/opcache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/opcache/"; ac_bdir="ext/opcache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPCACHE 1 +_ACEOF + + fi + fi + + if test "shared" != "shared" && test "shared" != "yes" && test "" = "cli"; then + PHP_OPCACHE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/opcache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/opcache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/opcache/"; ac_bdir="ext/opcache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable pcntl support... " >&6; } +# Check whether --enable-pcntl was given. +if test "${enable_pcntl+set}" = set; then : + enableval=$enable_pcntl; PHP_PCNTL=$enableval +else + + PHP_PCNTL=no + test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PCNTL in +shared,*) + PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PCNTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PCNTL" != "no"; then + for ac_func in fork +do : + ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" +if test "x$ac_cv_func_fork" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FORK 1 +_ACEOF + +$as_echo "#define HAVE_FORK 1" >>confdefs.h + +else + as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in waitpid +do : + ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" +if test "x$ac_cv_func_waitpid" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITPID 1 +_ACEOF + +$as_echo "#define HAVE_WAITPID 1" >>confdefs.h + +else + as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h + +else + as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + ext_builddir=ext/pcntl + ext_srcdir=$abs_srcdir/ext/pcntl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_PCNTL_SHARED=no + + + case ext/pcntl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCNTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_PCNTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcntl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PDO support... " >&6; } +# Check whether --enable-pdo was given. +if test "${enable_pdo+set}" = set; then : + enableval=$enable_pdo; PHP_PDO=$enableval +else + + PHP_PDO=yes + test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO in +shared,*) + PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO" != "no"; then + + PHP_PDO=yes + + + pdo_running_under_pear=0 + case `pwd` in + /var/tmp/pear-build-*) + pdo_running_under_pear=1 + ;; + esac + + if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then + # we're running in an environment that smells like pear, + # and the PHP_PEAR_VERSION env var is not set. That implies + # that we're running under a slightly broken pear installer + as_fn_error $? " +PDO requires that you upgrade your PEAR installer tools. Please +do so now by running: + + % sudo pear upgrade pear + +or by manually downloading and installing PEAR version 1.3.5 or higher. + +Once you've upgraded, please re-try your PDO install. + " "$LINENO" 5 + fi + + + if test "$ext_shared" = "yes" ; then + case $host_alias in + *darwin*) + as_fn_error $? " +Due to the way that loadable modules work on OSX/Darwin, you need to +compile the PDO package statically into the PHP core. + +Please follow the instructions at: http://netevil.org/node.php?nid=202 +for more detail on this issue. + " "$LINENO" 5 + ext_shared=no + ;; + esac + fi + + ext_builddir=ext/pdo + ext_srcdir=$abs_srcdir/ext/pdo + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SHARED=no + + + case ext/pdo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + +php_with_pdo_dblib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 +$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; } + +# Check whether --with-pdo-dblib was given. +if test "${with_pdo_dblib+set}" = set; then : + withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval +else + + PHP_PDO_DBLIB=no + test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_DBLIB in +shared,*) + PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_DBLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_DBLIB" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_DBLIB" = "yes"; then + + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include/freetds + break; + fi + done + + if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_PDO_DBLIB" != "no"; then + + if test -f $PHP_PDO_DBLIB/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include + elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds + else + as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test "x$PHP_LIBDIR" = "x" ; then + PHP_LIBDIR=lib + fi + + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD" + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\"" + + ext_builddir=ext/pdo_dblib + ext_srcdir=$abs_srcdir/ext/pdo_dblib + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_DBLIB_SHARED=no + + + case ext/pdo_dblib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_DBLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_DBLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_dblib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h + + +$as_echo "#define HAVE_FREETDS 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD" + + + + + am_i_shared=$PHP_PDO_DBLIB_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_dblib to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_dblib shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_dblib, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + + +fi + + +php_with_pdo_firebird=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 +$as_echo_n "checking for Firebird support for PDO... " >&6; } + +# Check whether --with-pdo-firebird was given. +if test "${with_pdo_firebird+set}" = set; then : + withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval +else + + PHP_PDO_FIREBIRD=no + test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_FIREBIRD in +shared,*) + PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_FIREBIRD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_FIREBIRD" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_FIREBIRD" = "yes"; then + FIREBIRD_INCDIR= + FIREBIRD_LIBDIR= + FIREBIRD_LIBDIR_FLAG= + else + FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include + FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR + FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD" + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $FIREBIRD_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$FIREBIRD_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$FIREBIRD_INCDIR" != "/usr/include"; then + + if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_INCDIR + else + + ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h + + + ext_builddir=ext/pdo_firebird + ext_srcdir=$abs_srcdir/ext/pdo_firebird + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + + + case ext/pdo_firebird in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_FIREBIRD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_firebird in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MySQL support for PDO... " >&6; } + +# Check whether --with-pdo-mysql was given. +if test "${with_pdo_mysql+set}" = set; then : + withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval +else + + PHP_PDO_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_MYSQL in +shared,*) + PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_PDO_MYSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then + if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then + PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL + else + if test -d "$PHP_PDO_MYSQL" ; then + if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then + PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config" + else + PDO_MYSQL_DIR="$PHP_PDO_MYSQL" + fi + fi + fi + fi + + if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +$as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h + + else + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 +$as_echo_n "checking for mysql_config... " >&6; } + if test -n "$PDO_MYSQL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 +$as_echo "$PDO_MYSQL_CONFIG" >&6; } + if test "x$SED" = "x"; then + # Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SED in + [\\/]* | ?:[\\/]*) + ac_cv_path_SED="$SED" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test "$enable_maintainer_zts" = "yes"; then + PDO_MYSQL_LIBNAME=mysqlclient_r + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` + else + PDO_MYSQL_LIBNAME=mysqlclient + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` + fi + PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + elif test -n "$PDO_MYSQL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 +$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } + if test -r $PDO_MYSQL_DIR/include/mysql; then + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql + else + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include + fi + if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql + else + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR + fi + + if test -r "$PDO_MYSQL_LIB_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 +$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 +$as_echo "can not find it" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_MYSQL_INC_DIR + else + + ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $PDO_MYSQL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_query (); +int +main () +{ +return mysql_query (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz" + fi + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +fi + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + if test -n "$PDO_MYSQL_CONFIG"; then + PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` + +cat >>confdefs.h <<_ACEOF +#define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET" +_ACEOF + + fi + + + ext_builddir=ext/pdo_mysql + ext_srcdir=$abs_srcdir/ext/pdo_mysql + + ac_extra=`echo "-I$pdo_cv_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_MYSQL_SHARED=no + + + case ext/pdo_mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking Oracle OCI support for PDO... " >&6; } + +# Check whether --with-pdo-oci was given. +if test "${with_pdo_oci+set}" = set; then : + withval=$with_pdo_oci; PHP_PDO_OCI=$withval +else + + PHP_PDO_OCI=no + test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_OCI in +shared,*) + PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_OCI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_OCI" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 +$as_echo_n "checking Oracle Install-Dir... " >&6; } + if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then + PDO_OCI_DIR=$ORACLE_HOME + else + PDO_OCI_DIR=$PHP_PDO_OCI + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 +$as_echo "$PHP_PDO_OCI" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 +$as_echo_n "checking if that is sane... " >&6; } + if test -z "$PDO_OCI_DIR"; then + as_fn_error $? " +You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME. +" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + + if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4" ; then + PDO_OCI_CLIENT_DIR="client" + else + PDO_OCI_CLIENT_DIR="client64" + fi + PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`" + PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`" + if test -n "$PDO_OCI_IC_VERS"; then + PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`" + if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then + # From 11.1.0.7 the RPM path only has an X.Y component + PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 +$as_echo_n "checking for oci.h... " >&6; } + if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" || echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/sdk/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/sdk/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; } + else + as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 + fi + if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX" + else + as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5 + fi + PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 +$as_echo_n "checking OCI8 libraries dir... " >&6; } + if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR + else + as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 +$as_echo "$PDO_OCI_LIB_DIR" >&6; } + + + if test -d "$PDO_OCI_DIR/rdbms/public"; then + + if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/public + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public" + fi + if test -d "$PDO_OCI_DIR/rdbms/demo"; then + + if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/demo + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo" + fi + if test -d "$PDO_OCI_DIR/network/public"; then + + if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/network/public + else + + ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public" + fi + if test -d "$PDO_OCI_DIR/plsql/public"; then + + if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/plsql/public + else + + ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public" + fi + if test -d "$PDO_OCI_DIR/include"; then + + if test "$PDO_OCI_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/include + else + + ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include" + fi + + if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then + + for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then + + for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + for OCI_VER in $SUPPORTED_LIB_VERS; do + if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then + PDO_OCI_VERSION="$OCI_VER" + fi + done + if test -z "$PDO_OCI_VERSION"; then + as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + fi + + case $PDO_OCI_VERSION in + 9.0|10.1|10.2|11.1|11.2|12.1) + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + ;; + + *) + as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5 + ;; + esac + + + if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then + + if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_LIB_DIR + else + + ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvCreate (); +int +main () +{ +return OCIEnvCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvCreate=yes +else + ac_cv_lib_clntsh_OCIEnvCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5 +$as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCILobIsTemporary (); +int +main () +{ +return OCILobIsTemporary (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCILobIsTemporary=yes +else + ac_cv_lib_clntsh_OCILobIsTemporary=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5 +$as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; } +if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCILobIsTemporary + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5 +$as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; } +if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-locijdbc8 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCILobIsTemporary (); +int +main () +{ +return OCILobIsTemporary (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes +else + ac_cv_lib_ocijdbc8_OCILobIsTemporary=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5 +$as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; } +if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case ocijdbc8 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8" + else + + + case ocijdbc8 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -locijdbc8" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ocijdbc8_OCILobIsTemporary + + +fi + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5 +$as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCICollAssign (); +int +main () +{ +return OCICollAssign (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCICollAssign=yes +else + ac_cv_lib_clntsh_OCICollAssign=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5 +$as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; } +if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCICollAssign + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 +$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIStmtFetch2 (); +int +main () +{ +return OCIStmtFetch2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIStmtFetch2=yes +else + ac_cv_lib_clntsh_OCIStmtFetch2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIStmtFetch2 + + +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + ext_builddir=ext/pdo_oci + ext_srcdir=$abs_srcdir/ext/pdo_oci + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_OCI_SHARED=no + + + case ext/pdo_oci in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_OCI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_OCI_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_oci in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION" +_ACEOF + +fi + + + + + + +php_with_pdo_odbc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 +$as_echo_n "checking for ODBC v3 support for PDO... " >&6; } + +# Check whether --with-pdo-odbc was given. +if test "${with_pdo_odbc+set}" = set; then : + withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval +else + + PHP_PDO_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_ODBC in +shared,*) + PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + +if test "$PHP_PDO_ODBC" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 +$as_echo_n "checking for selected PDO ODBC flavour... " >&6; } + + pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" + pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" + + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then + pdo_odbc_dir= + fi + + case $pdo_odbc_flavour in + ibm-db2) + pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib + pdo_odbc_def_incdir=/home/db2inst1/sqllib/include + pdo_odbc_def_lib=db2 + ;; + + iODBC|iodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=iodbc + ;; + + unixODBC|unixodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=odbc + ;; + + ODBCRouter|odbcrouter) + pdo_odbc_def_libdir=/usr/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/include + pdo_odbc_def_lib=odbcsdk + ;; + + generic) + pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`" + pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`" + pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`" + pdo_odbc_flavour="generic-$pdo_odbc_def_lib" + ;; + + *) + as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour + include and lib dirs are looked for under 'dir'. + + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic + If ',dir' part is omitted, default for the flavour + you have selected will be used. e.g.: + + --with-pdo-odbc=unixODBC + + will check for unixODBC under /usr/local. You may attempt + to use an otherwise unsupported driver using the \"generic\" + flavour. The syntax for generic ODBC support is: + + --with-pdo-odbc=generic,dir,libname,ldflags,cflags + + When built as 'shared' the extension filename is always pdo_odbc.so" "$LINENO" 5 + ;; + esac + + if test -n "$pdo_odbc_dir"; then + PDO_ODBC_INCDIR="$pdo_odbc_dir/include" + PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR" + else + PDO_ODBC_INCDIR="$pdo_odbc_def_incdir" + PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&5 +$as_echo "$pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&6; } + + if test ! -d "$PDO_ODBC_LIBDIR" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 +$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_IODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + if test "$php_pdo_have_header" != "yes"; then + as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 + fi + + PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" + PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib" + + + for ac_i in $PDO_ODBC_LDFLAGS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLBindCol (); +int +main () +{ +return SQLBindCol (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle + + as_fn_error $? " +Your ODBC library does not appear to be ODBC 3 compatible. +You should consider using iODBC or unixODBC instead, and loading your +libraries as a driver in that environment; it will emulate the +functions required for PDO support. +" "$LINENO" 5 + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol + + as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/pdo_odbc + ext_srcdir=$abs_srcdir/ext/pdo_odbc + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_ODBC_SHARED=no + + + case ext/pdo_odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support for PDO... " >&6; } + +# Check whether --with-pdo-pgsql was given. +if test "${with_pdo_pgsql+set}" = set; then : + withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval +else + + PHP_PDO_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_PGSQL in +shared,*) + PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_PGSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PDO_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5 +$as_echo_n "checking for openssl dependencies... " >&6; } + grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1 + if test $? -eq 0 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags` + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +else + + echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required" + exit 1 + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + ext_builddir=ext/pdo_pgsql + ext_srcdir=$abs_srcdir/ext/pdo_pgsql + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_PGSQL_SHARED=no + + + case ext/pdo_pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sqlite 3 support for PDO... " >&6; } + +# Check whether --with-pdo-sqlite was given. +if test "${with_pdo_sqlite+set}" = set; then : + withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval +else + + PHP_PDO_SQLITE=$PHP_PDO + test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_SQLITE in +shared,*) + PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_SQLITE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_SQLITE" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c" + + if test "$PHP_PDO_SQLITE" != "yes"; then + SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this + SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this + if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter + PDO_SQLITE_DIR=$PHP_PDO_SQLITE + else # search default path list + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5 +$as_echo_n "checking for sqlite3 files in default path... " >&6; } + for i in $SEARCH_PATH ; do + if test -r $i/$SEARCH_FOR; then + PDO_SQLITE_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + fi + done + fi + if test -z "$PDO_SQLITE_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5 + fi + + + if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then + + if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/include + else + + ep_dir=`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + LIBNAME=sqlite3 + LIBSYMBOL=sqlite3_open + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5 +$as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $LIBSYMBOL (); +int +main () +{ +return $LIBSYMBOL (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD" + if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then + + if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then + + if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$LIBNAME $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIBNAME_$LIBSYMBOL + + as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_key (); +int +main () +{ +return sqlite3_key (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_key=yes +else + ac_cv_lib_sqlite3_sqlite3_key=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_key + + +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD" + + + ext_builddir=ext/pdo_sqlite + ext_srcdir=$abs_srcdir/ext/pdo_sqlite + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SQLITE_SHARED=no + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$abs_srcdir/ext/sqlite3/libsqlite + else + + ep_dir=`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_srcdir/ext/sqlite3/libsqlite"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_func in usleep nanosleep +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in time.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" +if test "x$ac_cv_header_time_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TIME_H 1 +_ACEOF + +fi + +done + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5 +$as_echo_n "checking for fdatasync in -lrt... " >&6; } +if ${ac_cv_lib_rt_fdatasync+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fdatasync (); +int +main () +{ +return fdatasync (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_fdatasync=yes +else + ac_cv_lib_rt_fdatasync=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5 +$as_echo "$ac_cv_lib_rt_fdatasync" >&6; } +if test "x$ac_cv_lib_rt_fdatasync" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case rt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD" + else + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_rt_fdatasync + + +fi + + + + + am_i_shared=$PHP_PDO_SQLITE_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_sqlite to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_sqlite shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_sqlite, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + + +fi + + + +php_with_pgsql=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5 +$as_echo_n "checking for PostgreSQL support... " >&6; } + +# Check whether --with-pgsql was given. +if test "${with_pgsql+set}" = set; then : + withval=$with_pgsql; PHP_PGSQL=$withval +else + + PHP_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PGSQL in +shared,*) + PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PGSQL" != "no"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PGSQL 1" >>confdefs.h + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5 +$as_echo_n "checking for PQescapeString in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeString (); +int +main () +{ +return PQescapeString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeString=yes +else + ac_cv_lib_pq_PQescapeString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeString" >&6; } +if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5 +$as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQunescapeBytea (); +int +main () +{ +return PQunescapeBytea (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQunescapeBytea=yes +else + ac_cv_lib_pq_PQunescapeBytea=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5 +$as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; } +if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then : + +$as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5 +$as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetnonblocking (); +int +main () +{ +return PQsetnonblocking (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetnonblocking=yes +else + ac_cv_lib_pq_PQsetnonblocking=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5 +$as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; } +if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then : + +$as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5 +$as_echo_n "checking for PQcmdTuples in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQcmdTuples+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQcmdTuples (); +int +main () +{ +return PQcmdTuples (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQcmdTuples=yes +else + ac_cv_lib_pq_PQcmdTuples=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5 +$as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; } +if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then : + +$as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5 +$as_echo_n "checking for PQoidValue in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQoidValue+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQoidValue (); +int +main () +{ +return PQoidValue (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQoidValue=yes +else + ac_cv_lib_pq_PQoidValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5 +$as_echo "$ac_cv_lib_pq_PQoidValue" >&6; } +if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then : + +$as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5 +$as_echo_n "checking for PQclientEncoding in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQclientEncoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQclientEncoding (); +int +main () +{ +return PQclientEncoding (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQclientEncoding=yes +else + ac_cv_lib_pq_PQclientEncoding=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5 +$as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; } +if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then : + +$as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5 +$as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprotocolVersion (); +int +main () +{ +return PQprotocolVersion (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprotocolVersion=yes +else + ac_cv_lib_pq_PQprotocolVersion=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5 +$as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; } +if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then : + +$as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5 +$as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQtransactionStatus (); +int +main () +{ +return PQtransactionStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQtransactionStatus=yes +else + ac_cv_lib_pq_PQtransactionStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; } +if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then : + +$as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + +$as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 +$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecPrepared (); +int +main () +{ +return PQexecPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecPrepared=yes +else + ac_cv_lib_pq_PQexecPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : + +$as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5 +$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQresultErrorField+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQresultErrorField (); +int +main () +{ +return PQresultErrorField (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQresultErrorField=yes +else + ac_cv_lib_pq_PQresultErrorField=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5 +$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; } +if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then : + +$as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5 +$as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryParams (); +int +main () +{ +return PQsendQueryParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryParams=yes +else + ac_cv_lib_pq_PQsendQueryParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5 +$as_echo_n "checking for PQsendPrepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendPrepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendPrepare (); +int +main () +{ +return PQsendPrepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendPrepare=yes +else + ac_cv_lib_pq_PQsendPrepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5 +$as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; } +if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then : + +$as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 +$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryPrepared (); +int +main () +{ +return PQsendQueryPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryPrepared=yes +else + ac_cv_lib_pq_PQsendQueryPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5 +$as_echo_n "checking for PQputCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyData (); +int +main () +{ +return PQputCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyData=yes +else + ac_cv_lib_pq_PQputCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5 +$as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyEnd (); +int +main () +{ +return PQputCopyEnd (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyEnd=yes +else + ac_cv_lib_pq_PQputCopyEnd=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5 +$as_echo_n "checking for PQgetCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQgetCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQgetCopyData (); +int +main () +{ +return PQgetCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQgetCopyData=yes +else + ac_cv_lib_pq_PQgetCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then : + +$as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5 +$as_echo_n "checking for PQfreemem in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQfreemem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQfreemem (); +int +main () +{ +return PQfreemem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQfreemem=yes +else + ac_cv_lib_pq_PQfreemem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5 +$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; } +if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then : + +$as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5 +$as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetErrorVerbosity (); +int +main () +{ +return PQsetErrorVerbosity (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetErrorVerbosity=yes +else + ac_cv_lib_pq_PQsetErrorVerbosity=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5 +$as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; } +if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then : + +$as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5 +$as_echo_n "checking for PQftable in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQftable+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQftable (); +int +main () +{ +return PQftable (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQftable=yes +else + ac_cv_lib_pq_PQftable=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5 +$as_echo "$ac_cv_lib_pq_PQftable" >&6; } +if test "x$ac_cv_lib_pq_PQftable" = xyes; then : + +$as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5 +$as_echo_n "checking for lo_create in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_create (); +int +main () +{ +return lo_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_create=yes +else + ac_cv_lib_pq_lo_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5 +$as_echo "$ac_cv_lib_pq_lo_create" >&6; } +if test "x$ac_cv_lib_pq_lo_create" = xyes; then : + +$as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5 +$as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_import_with_oid (); +int +main () +{ +return lo_import_with_oid (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_import_with_oid=yes +else + ac_cv_lib_pq_lo_import_with_oid=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5 +$as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; } +if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then : + +$as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5 +$as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeLiteral (); +int +main () +{ +return PQescapeLiteral (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeLiteral=yes +else + ac_cv_lib_pq_PQescapeLiteral=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; } +if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then : + +$as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h + +fi + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/pgsql + ext_srcdir=$abs_srcdir/ext/pgsql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PGSQL_SHARED=no + + + case ext/pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar archive support... " >&6; } +# Check whether --enable-phar was given. +if test "${enable_phar+set}" = set; then : + enableval=$enable_phar; PHP_PHAR=$enableval +else + + PHP_PHAR=yes + test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHAR in +shared,*) + PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHAR" != "no"; then + + ext_builddir=ext/phar + ext_srcdir=$abs_srcdir/ext/phar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PHAR_SHARED=no + + + case ext/phar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/phar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar openssl support... " >&6; } + if test "$PHP_HASH_SHARED" != "yes"; then + if test "$PHP_HASH" != "no"; then + +$as_echo "#define PHAR_HASH_OK 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5 +$as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;} + fi + if test "$PHP_OPENSSL_SHARED" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 +$as_echo "no (shared openssl)" >&6; } + else + if test "$PHP_OPENSSL" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_HASH_SHARED + is_it_enabled=$PHP_HASH + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension hash, which you've configured to build shared. +You either need to build phar shared or build hash statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension hash, +but you've either not enabled hash, or have disabled it. +" "$LINENO" 5 + fi + + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_SPL_SHARED + is_it_enabled=$PHP_SPL + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension spl, which you've configured to build shared. +You either need to build phar shared or build spl statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension spl, +but you've either not enabled spl, or have disabled it. +" "$LINENO" 5 + fi + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + + header_path=ext/phar + for header_file in php_phar.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1" + +fi + + + +php_enable_posix=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 +$as_echo_n "checking whether to enable POSIX-like functions... " >&6; } +# Check whether --enable-posix was given. +if test "${enable_posix+set}" = set; then : + enableval=$enable_posix; PHP_POSIX=$enableval +else + + PHP_POSIX=yes + test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_POSIX in +shared,*) + PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'` + ;; +shared) + PHP_POSIX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_POSIX" = "yes"; then + +$as_echo "#define HAVE_POSIX 1" >>confdefs.h + + + ext_builddir=ext/posix + ext_srcdir=$abs_srcdir/ext/posix + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_POSIX_SHARED=no + + + case ext/posix in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_POSIX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_POSIX_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/posix in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define HAVE_SYS_MKDEV_H 1 +_ACEOF + +fi + +done + + + for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 +$as_echo_n "checking for working ttyname_r() implementation... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + char buf[64]; + + return ttyname_r(0, buf, 64) ? 1 : 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 +$as_echo_n "checking for utsname.domainname... " >&6; } +if ${ac_cv_have_utsname_domainname+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #include + +int +main () +{ + + return sizeof(((struct utsname *)0)->domainname); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_have_utsname_domainname=yes + +else + + ac_cv_have_utsname_domainname=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 +$as_echo "$ac_cv_have_utsname_domainname" >&6; } + if test "$ac_cv_have_utsname_domainname" = yes; then + +$as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h + + fi +fi + + + +php_with_pspell=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 +$as_echo_n "checking for PSPELL support... " >&6; } + +# Check whether --with-pspell was given. +if test "${with_pspell+set}" = set; then : + withval=$with_pspell; PHP_PSPELL=$withval +else + + PHP_PSPELL=no + test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PSPELL in +shared,*) + PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PSPELL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PSPELL" != "no"; then + + ext_builddir=ext/pspell + ext_srcdir=$abs_srcdir/ext/pspell + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PSPELL_SHARED=no + + + case ext/pspell in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PSPELL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PSPELL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pspell in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pspell in + c|c_r|pthread*) ;; + *) + LIBS="-lpspell $LIBS" + ;; + esac + + + + + fi + + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PSPELL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 +$as_echo_n "checking for new_aspell_config in -laspell... " >&6; } +if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laspell $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char new_aspell_config (); +int +main () +{ +return new_aspell_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_aspell_new_aspell_config=yes +else + ac_cv_lib_aspell_new_aspell_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 +$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD" + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case aspell in + c|c_r|pthread*) ;; + *) + LIBS="-laspell $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_aspell_new_aspell_config + + +fi + + + + if test "$PSPELL_INCDIR" != "/usr/include"; then + + if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_INCDIR + else + + ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD" + + +$as_echo "#define HAVE_PSPELL 1" >>confdefs.h + +fi + + + +php_with_libedit=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 +$as_echo_n "checking for libedit readline replacement... " >&6; } + +# Check whether --with-libedit was given. +if test "${with_libedit+set}" = set; then : + withval=$with_libedit; PHP_LIBEDIT=$withval +else + + PHP_LIBEDIT=no + test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBEDIT in +shared,*) + PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBEDIT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBEDIT" = "no"; then + +php_with_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 +$as_echo_n "checking for readline support... " >&6; } + +# Check whether --with-readline was given. +if test "${with_readline+set}" = set; then : + withval=$with_readline; PHP_READLINE=$withval +else + + PHP_READLINE=no + test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_READLINE in +shared,*) + PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'` + ;; +shared) + PHP_READLINE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +else + php_with_readline=no +fi + +if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do + test -f $i/include/readline/readline.h && READLINE_DIR=$i && break + done + + if test -z "$READLINE_DIR"; then + as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$READLINE_DIR/include" != "/usr/include"; then + + if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/include + else + + ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_READLINE_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 +$as_echo_n "checking for readline in -lreadline... " >&6; } +if ${ac_cv_lib_readline_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_readline=yes +else + ac_cv_lib_readline_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 +$as_echo "$ac_cv_lib_readline_readline" >&6; } +if test "x$ac_cv_lib_readline_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD" + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case readline in + c|c_r|pthread*) ;; + *) + LIBS="-lreadline $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_readline + + as_fn_error $? "readline library not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 +$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_pending_input+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_pending_input (); +int +main () +{ +return rl_pending_input (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_pending_input=yes +else + ac_cv_lib_readline_rl_pending_input=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 +$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_pending_input + + as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_callback_read_char=yes +else + ac_cv_lib_readline_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h + + +elif test "$PHP_LIBEDIT" != "no"; then + + for i in $PHP_LIBEDIT /usr/local /usr; do + test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break + done + + if test -z "$LIBEDIT_DIR"; then + as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$LIBEDIT_DIR/include" != "/usr/include"; then + + if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/include + else + + ep_dir=`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 +$as_echo_n "checking for readline in -ledit... " >&6; } +if ${ac_cv_lib_edit_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_readline=yes +else + ac_cv_lib_edit_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 +$as_echo "$ac_cv_lib_edit_readline" >&6; } +if test "x$ac_cv_lib_edit_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD" + if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then + + if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then + + if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case edit in + c|c_r|pthread*) ;; + *) + LIBS="-ledit $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_readline + + as_fn_error $? "edit library required by readline not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 +$as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_callback_read_char=yes +else + ac_cv_lib_edit_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + +$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h + +fi + +if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then + for ac_func in rl_completion_matches +do : + ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" +if test "x$ac_cv_func_rl_completion_matches" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RL_COMPLETION_MATCHES 1 +_ACEOF + +fi +done + + + ext_builddir=ext/readline + ext_srcdir=$abs_srcdir/ext/readline + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_READLINE_SHARED=no + + + case ext/readline in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_READLINE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_READLINE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/readline in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for recode support... " >&6; } + +# Check whether --with-recode was given. +if test "${with_recode+set}" = set; then : + withval=$with_recode; PHP_RECODE=$withval +else + + PHP_RECODE=no + test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_RECODE in +shared,*) + PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'` + ;; +shared) + PHP_RECODE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RECODE" != "no"; then + RECODE_LIST="$PHP_RECODE /usr/local /usr /opt" + + for i in $RECODE_LIST; do + if test -f $i/include/recode.h; then + RECODE_DIR=$i + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + if test -f $i/include/recode/recode.h; then + RECODE_DIR=$i + RECODE_INC=include/recode + RECODE_LIB=$PHP_LIBDIR/recode + fi + if test -f $i/recode/include/recode.h; then + RECODE_DIR=$i/recode + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + test -n "$RECODE_DIR" && break + done + + if test -z "$RECODE_DIR"; then + as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$RECODE_DIR/$RECODE_LIB + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5 +$as_echo_n "checking for recode_format_table in -lrecode... " >&6; } +if ${ac_cv_lib_recode_recode_format_table+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrecode $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char recode_format_table (); +int +main () +{ +return recode_format_table (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_recode_recode_format_table=yes +else + ac_cv_lib_recode_recode_format_table=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5 +$as_echo "$ac_cv_lib_recode_recode_format_table" >&6; } +if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD" + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case recode in + c|c_r|pthread*) ;; + *) + LIBS="-lrecode $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_recode_recode_format_table + + old_LDFLAGS=$LDFLAGS + old_LIBS=$LIBS + LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB" + LIBS="$LIBS -lrecode" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +char *program_name; + +int +main () +{ + +recode_format_table(); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD" + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case recode in + c|c_r|pthread*) ;; + *) + DLIBS="-lrecode $DLIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h + + +else + + as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + +fi + + + +$as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h + + + if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then + + if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_INC + else + + ep_dir=`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD" + + for ac_header in stdbool.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" +if test "x$ac_cv_header_stdbool_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDBOOL_H 1 +_ACEOF + +fi + +done + + + ext_builddir=ext/recode + ext_srcdir=$abs_srcdir/ext/recode + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_RECODE_SHARED=no + + + case ext/recode in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in recode.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_RECODE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_RECODE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/recode in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in recode.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + ext_builddir=ext/reflection + ext_srcdir=$abs_srcdir/ext/reflection + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_REFLECTION_SHARED=no + + + case ext/reflection in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_REFLECTION 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_REFLECTION_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/reflection in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PHP sessions... " >&6; } +# Check whether --enable-session was given. +if test "${enable_session+set}" = set; then : + enableval=$enable_session; PHP_SESSION=$enableval +else + + PHP_SESSION=yes + test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SESSION in +shared,*) + PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'` + ;; +shared) + PHP_SESSION=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 +$as_echo_n "checking for mm support... " >&6; } + +# Check whether --with-mm was given. +if test "${with_mm+set}" = set; then : + withval=$with_mm; PHP_MM=$withval +else + + PHP_MM=no + + +fi + + +ext_output=$PHP_MM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SESSION" != "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 +$as_echo_n "checking whether pwrite works... " >&6; } +if ${ac_cv_pwrite+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "no"; then + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pwrite(int, void *, size_t, off64_t); + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "yes"; then + ac_cv_pwrite=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 +$as_echo "$ac_cv_pwrite" >&6; } + + if test "$ac_cv_pwrite" != "no"; then + +$as_echo "#define HAVE_PWRITE 1" >>confdefs.h + + if test "$ac_cv_pwrite" = "64"; then + +$as_echo "#define PHP_PWRITE_64 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 +$as_echo_n "checking whether pread works... " >&6; } +if ${ac_cv_pread+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "no"; then + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pread(int, void *, size_t, off64_t); + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "yes"; then + ac_cv_pread=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 +$as_echo "$ac_cv_pread" >&6; } + + if test "$ac_cv_pread" != "no"; then + +$as_echo "#define HAVE_PREAD 1" >>confdefs.h + + if test "$ac_cv_pread" = "64"; then + +$as_echo "#define PHP_PREAD_64 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/session + ext_srcdir=$abs_srcdir/ext/session + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SESSION_SHARED=no + + + case ext/session in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SESSION 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SESSION_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/session in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + +if test "$PHP_MM" != "no"; then + for i in $PHP_MM /usr/local /usr; do + test -f "$i/include/mm.h" && MM_DIR=$i && break + done + + if test -z "$MM_DIR" ; then + as_fn_error $? "cannot find mm library" "$LINENO" 5 + fi + + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD" + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mm in + c|c_r|pthread*) ;; + *) + LIBS="-lmm $LIBS" + ;; + esac + + + + + fi + + + + if test "$MM_DIR/include" != "/usr/include"; then + + if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/include + else + + ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + for header_file in ext/session/mod_mm.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + +$as_echo "#define HAVE_LIBMM 1" >>confdefs.h + +fi + + +php_enable_shmop=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 +$as_echo_n "checking whether to enable shmop support... " >&6; } +# Check whether --enable-shmop was given. +if test "${enable_shmop+set}" = set; then : + enableval=$enable_shmop; PHP_SHMOP=$enableval +else + + PHP_SHMOP=no + test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SHMOP in +shared,*) + PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SHMOP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHMOP" != "no"; then + +$as_echo "#define HAVE_SHMOP 1" >>confdefs.h + + + ext_builddir=ext/shmop + ext_srcdir=$abs_srcdir/ext/shmop + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SHMOP_SHARED=no + + + case ext/shmop in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SHMOP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SHMOP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/shmop in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SimpleXML support... " >&6; } +# Check whether --enable-simplexml was given. +if test "${enable_simplexml+set}" = set; then : + enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval +else + + PHP_SIMPLEXML=yes + test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SIMPLEXML in +shared,*) + PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_SIMPLEXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_SIMPLEXML" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $SIMPLEXML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h + + + ext_builddir=ext/simplexml + ext_srcdir=$abs_srcdir/ext/simplexml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SIMPLEXML_SHARED=no + + + case ext/simplexml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SIMPLEXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SIMPLEXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/simplexml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for SNMP support... " >&6; } + +# Check whether --with-snmp was given. +if test "${with_snmp+set}" = set; then : + withval=$with_snmp; PHP_SNMP=$withval +else + + PHP_SNMP=no + test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SNMP in +shared,*) + PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SNMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5 +$as_echo_n "checking OpenSSL dir for SNMP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SNMP" != "no"; then + + if test "$PHP_SNMP" = "yes"; then + # Extract the first word of "net-snmp-config", so it can be a program name with args. +set dummy net-snmp-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SNMP_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SNMP_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/local/bin:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG +if test -n "$SNMP_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 +$as_echo "$SNMP_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config" + fi + + if test -x "$SNMP_CONFIG"; then + SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs` + SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`" + SNMP_PREFIX=`$SNMP_CONFIG --prefix` + snmp_full_version=`$SNMP_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $snmp_full_version + IFS=$ac_IFS + SNMP_VERSION=`expr $1 \* 1000 + $2` + if test "$SNMP_VERSION" -ge "5003"; then + if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then + + if test "${SNMP_PREFIX}/include" != "/usr/include"; then + + if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then + ai_p=${SNMP_PREFIX}/include + else + + ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $SNMP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + SNMP_LIBNAME=netsnmp + else + as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 + fi + else + as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 + fi + else + as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char init_snmp (); +int +main () +{ +return init_snmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SNMP 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_init_snmp + + as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shutdown_snmp_logging (); +int +main () +{ +return shutdown_snmp_logging (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging + + +fi + + + + ext_builddir=ext/snmp + ext_srcdir=$abs_srcdir/ext/snmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SNMP_SHARED=no + + + case ext/snmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SNMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SNMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/snmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SOAP support... " >&6; } +# Check whether --enable-soap was given. +if test "${enable_soap+set}" = set; then : + enableval=$enable_soap; PHP_SOAP=$enableval +else + + PHP_SOAP=no + test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOAP in +shared,*) + PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_SOAP" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $SOAP_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_SOAP 1" >>confdefs.h + + + ext_builddir=ext/soap + ext_srcdir=$abs_srcdir/ext/soap + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOAP_SHARED=no + + + case ext/soap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/soap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable sockets support... " >&6; } +# Check whether --enable-sockets was given. +if test "${enable_sockets+set}" = set; then : + enableval=$enable_sockets; PHP_SOCKETS=$enableval +else + + PHP_SOCKETS=no + test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOCKETS in +shared,*) + PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOCKETS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOCKETS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5 +$as_echo_n "checking for struct cmsghdr... " >&6; } +if ${ac_cv_cmsghdr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +int +main () +{ +struct cmsghdr s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_cmsghdr=yes +else + ac_cv_cmsghdr=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5 +$as_echo "$ac_cv_cmsghdr" >&6; } + + if test "$ac_cv_cmsghdr" = yes; then + +$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h + + fi + + for ac_func in hstrerror socketpair if_nametoindex if_indextoname +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +static struct msghdr tp; int n = (int) tp.msg_flags; return n + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + +$as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 +$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } +if ${ac_cv_ss_family+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ss_family=yes +else + ac_cv_ss_family=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 +$as_echo "$ac_cv_ss_family" >&6; } + + if test "$ac_cv_ss_family" = yes; then + +$as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 +$as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } +if ${ac_cv_gai_ai_v4mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_V4MAPPED; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_v4mapped=yes +else + ac_cv_gai_ai_v4mapped=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 +$as_echo "$ac_cv_gai_ai_v4mapped" >&6; } + + if test "$ac_cv_gai_ai_v4mapped" = yes; then + +$as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h + + fi + + + ext_builddir=ext/sockets + ext_srcdir=$abs_srcdir/ext/sockets + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOCKETS_SHARED=no + + + case ext/sockets in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOCKETS 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOCKETS_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sockets in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether zend_object_value is packed... " >&6; } + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" + if test "$cross_compiling" = yes; then : + + ac_result=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "Zend/zend_types.h" +int main(int argc, char **argv) { + return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_result=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + ac_result=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CPPFLAGS=$old_CPPFLAGS + +cat >>confdefs.h <<_ACEOF +#define HAVE_PACKED_OBJECT_VALUE $ac_result +_ACEOF + + +$as_echo "#define HAVE_SPL 1" >>confdefs.h + + + ext_builddir=ext/spl + ext_srcdir=$abs_srcdir/ext/spl + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_SPL_SHARED=no + + + case ext/spl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SPL 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_SPL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/spl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } +if ${ac_cv_flush_io+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_flush_io=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char **argv) +{ + char *filename = tmpnam(NULL); + char buffer[64]; + int result = 0; + + FILE *fp = fopen(filename, "wb"); + if (NULL == fp) + return 0; + fputs("line 1\n", fp); + fputs("line 2\n", fp); + fclose(fp); + + fp = fopen(filename, "rb+"); + if (NULL == fp) + return 0; + fgets(buffer, sizeof(buffer), fp); + fputs("line 3\n", fp); + rewind(fp); + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 1\n")) + result = 1; + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 3\n")) + result = 1; + fclose(fp); + unlink(filename); + + exit(result); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_flush_io=no + +else + + ac_cv_flush_io=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 +$as_echo "$ac_cv_flush_io" >&6; } +if test "$ac_cv_flush_io" = "yes"; then + +$as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h + +fi + +if test "$ac_cv_func_crypt" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LIBS="-lcrypt $LIBS -lcrypt" + +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h + + +fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +$as_echo_n "checking for standard DES crypt... " >&6; } +if ${ac_cv_crypt_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_des=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_des=yes + +else + + ac_cv_crypt_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +$as_echo "$ac_cv_crypt_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +$as_echo_n "checking for extended DES crypt... " >&6; } +if ${ac_cv_crypt_ext_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_ext_des=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_ext_des=yes + +else + + ac_cv_crypt_ext_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 +$as_echo "$ac_cv_crypt_ext_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 +$as_echo_n "checking for MD5 crypt... " >&6; } +if ${ac_cv_crypt_md5+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_md5=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[15], answer[40]; + + salt[0]='$'; salt[1]='1'; salt[2]='$'; + salt[3]='r'; salt[4]='a'; salt[5]='s'; + salt[6]='m'; salt[7]='u'; salt[8]='s'; + salt[9]='l'; salt[10]='e'; salt[11]='$'; + salt[12]='\0'; + strcpy(answer,salt); + strcat(answer,"rISCgZzpwk3UhDidwXvin0"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_md5=yes + +else + + ac_cv_crypt_md5=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 +$as_echo "$ac_cv_crypt_md5" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 +$as_echo_n "checking for Blowfish crypt... " >&6; } +if ${ac_cv_crypt_blowfish+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_blowfish=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[30], answer[70]; + + salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; + strcat(salt,"rasmuslerd............"); + strcpy(answer,salt); + strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_blowfish=yes + +else + + ac_cv_crypt_blowfish=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 +$as_echo "$ac_cv_crypt_blowfish" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 +$as_echo_n "checking for SHA512 crypt... " >&6; } +if ${ac_cv_crypt_SHA512+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_SHA512=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+86]; + + strcpy(salt,"\$6\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_SHA512=yes + +else + + ac_cv_crypt_SHA512=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA512" >&5 +$as_echo "$ac_cv_crypt_SHA512" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 +$as_echo_n "checking for SHA256 crypt... " >&6; } +if ${ac_cv_crypt_SHA256+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_SHA256=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+43]; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); + +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_SHA256=yes + +else + + ac_cv_crypt_SHA256=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA256" >&5 +$as_echo "$ac_cv_crypt_SHA256" >&6; } + + +if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 +$as_echo_n "checking whether the compiler supports __alignof__... " >&6; } +if ${ac_cv_alignof_exists+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + int align = __alignof__(int); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_alignof_exists=yes + +else + + ac_cv_alignof_exists=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 +$as_echo "$ac_cv_alignof_exists" >&6; } + if test "$ac_cv_alignof_exists" = "yes"; then + +$as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 +$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } +if ${ac_cv_attribute_aligned+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_attribute_aligned=yes + +else + + ac_cv_attribute_aligned=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 +$as_echo "$ac_cv_attribute_aligned" >&6; } + if test "$ac_cv_attribute_aligned" = "yes"; then + +$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h + + fi + + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_STD_DES_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_BLOWFISH_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_EXT_DES_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_MD5_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA512_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA256_CRYPT 1 +_ACEOF + + + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_STD_DES_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_blowfish" = "yes"; then + ac_result=1 + ac_crypt_blowfish=1 + else + ac_result=0 + ac_crypt_blowfish=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_BLOWFISH_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_ext_des" = "yes"; then + ac_result=1 + ac_crypt_edes=1 + else + ac_result=0 + ac_crypt_edes=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_EXT_DES_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_md5" = "yes"; then + ac_result=1 + ac_crypt_md5=1 + else + ac_result=0 + ac_crypt_md5=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_MD5_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_sha512" = "yes"; then + ac_result=1 + ac_crypt_sha512=1 + else + ac_result=0 + ac_crypt_sha512=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA512_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_sha256" = "yes"; then + ac_result=1 + ac_crypt_sha256=1 + else + ac_result=0 + ac_crypt_sha256=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA256_CRYPT $ac_result +_ACEOF + + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 0 +_ACEOF + +fi + +for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 +$as_echo_n "checking for working POSIX fnmatch... " >&6; } +if ${ac_cv_func_fnmatch_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Some versions of Solaris, SCO, and the GNU C Library + # have a broken or incompatible fnmatch. + # So we run a test program. If we are cross-compiling, take no chance. + # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. + if test "$cross_compiling" = yes; then : + ac_cv_func_fnmatch_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +# define y(a, b, c) (fnmatch (a, b, c) == 0) +# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) + +int +main () +{ +return + (!(y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && 1)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fnmatch_works=yes +else + ac_cv_func_fnmatch_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 +$as_echo "$ac_cv_func_fnmatch_works" >&6; } +if test $ac_cv_func_fnmatch_works = yes; then : + +$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h + +fi + + + +for ac_func in fork CreateProcess +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + + php_can_support_proc_open=yes + break + +else + + php_can_support_proc_open=no + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 +$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; } +if test "$php_can_support_proc_open" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +PHP_ENABLE_CHROOT_FUNC=no +case "$PHP_SAPI" in + embed) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + none) + for PROG in $PHP_BINARIES; do + case "$PROG" in + cgi|cli) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + *) + PHP_ENABLE_CHROOT_FUNC=no + break + ;; + esac + done + ;; +esac + +if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then + +$as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h + +fi + + + unset ac_cv_func_res_nsearch + unset ac_cv_func___res_nsearch + unset found + + ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" +if test "x$ac_cv_func_res_nsearch" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" +if test "x$ac_cv_func___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_nsearch + unset ac_cv_lib_resolv___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 +$as_echo_n "checking for res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_nsearch=yes +else + ac_cv_lib_resolv_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 +$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_nsearch=yes +else + ac_cv_lib_resolv___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_bind_res_nsearch + unset ac_cv_lib_bind___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 +$as_echo_n "checking for res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_nsearch=yes +else + ac_cv_lib_bind_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } +if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 +$as_echo_n "checking for __res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_nsearch=yes +else + ac_cv_lib_bind___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } +if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_socket_res_nsearch + unset ac_cv_lib_socket___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 +$as_echo_n "checking for res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_nsearch=yes +else + ac_cv_lib_socket_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } +if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 +$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_nsearch=yes +else + ac_cv_lib_socket___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } +if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dns_search + unset ac_cv_func___dns_search + unset found + + ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" +if test "x$ac_cv_func_dns_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" +if test "x$ac_cv_func___dns_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + ac_cv_func_dns_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_dns_search + unset ac_cv_lib_resolv___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 +$as_echo_n "checking for dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dns_search=yes +else + ac_cv_lib_resolv_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 +$as_echo "$ac_cv_lib_resolv_dns_search" >&6; } +if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 +$as_echo_n "checking for __dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dns_search=yes +else + ac_cv_lib_resolv___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 +$as_echo "$ac_cv_lib_resolv___dns_search" >&6; } +if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_bind_dns_search + unset ac_cv_lib_bind___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 +$as_echo_n "checking for dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dns_search=yes +else + ac_cv_lib_bind_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 +$as_echo "$ac_cv_lib_bind_dns_search" >&6; } +if test "x$ac_cv_lib_bind_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 +$as_echo_n "checking for __dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dns_search=yes +else + ac_cv_lib_bind___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 +$as_echo "$ac_cv_lib_bind___dns_search" >&6; } +if test "x$ac_cv_lib_bind___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_socket_dns_search + unset ac_cv_lib_socket___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 +$as_echo_n "checking for dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dns_search=yes +else + ac_cv_lib_socket_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 +$as_echo "$ac_cv_lib_socket_dns_search" >&6; } +if test "x$ac_cv_lib_socket_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 +$as_echo_n "checking for __dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dns_search=yes +else + ac_cv_lib_socket___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 +$as_echo "$ac_cv_lib_socket___dns_search" >&6; } +if test "x$ac_cv_lib_socket___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_expand + unset ac_cv_func___dn_expand + unset found + + ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" +if test "x$ac_cv_func_dn_expand" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" +if test "x$ac_cv_func___dn_expand" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_expand + unset ac_cv_lib_resolv___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 +$as_echo_n "checking for dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_expand=yes +else + ac_cv_lib_resolv_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } +if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 +$as_echo_n "checking for __dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_expand=yes +else + ac_cv_lib_resolv___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } +if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_bind_dn_expand + unset ac_cv_lib_bind___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 +$as_echo_n "checking for dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_expand=yes +else + ac_cv_lib_bind_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 +$as_echo "$ac_cv_lib_bind_dn_expand" >&6; } +if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 +$as_echo_n "checking for __dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_expand=yes +else + ac_cv_lib_bind___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 +$as_echo "$ac_cv_lib_bind___dn_expand" >&6; } +if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_socket_dn_expand + unset ac_cv_lib_socket___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 +$as_echo_n "checking for dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_expand=yes +else + ac_cv_lib_socket_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 +$as_echo "$ac_cv_lib_socket_dn_expand" >&6; } +if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 +$as_echo_n "checking for __dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_expand=yes +else + ac_cv_lib_socket___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 +$as_echo "$ac_cv_lib_socket___dn_expand" >&6; } +if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_skipname + unset ac_cv_func___dn_skipname + unset found + + ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" +if test "x$ac_cv_func_dn_skipname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" +if test "x$ac_cv_func___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_skipname + unset ac_cv_lib_resolv___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 +$as_echo_n "checking for dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_skipname=yes +else + ac_cv_lib_resolv_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 +$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_skipname=yes +else + ac_cv_lib_resolv___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_bind_dn_skipname + unset ac_cv_lib_bind___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 +$as_echo_n "checking for dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_skipname=yes +else + ac_cv_lib_bind_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } +if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 +$as_echo_n "checking for __dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_skipname=yes +else + ac_cv_lib_bind___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } +if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_socket_dn_skipname + unset ac_cv_lib_socket___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 +$as_echo_n "checking for dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_skipname=yes +else + ac_cv_lib_socket_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } +if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 +$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_skipname=yes +else + ac_cv_lib_socket___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } +if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + + + unset ac_cv_func_res_search + unset ac_cv_func___res_search + unset found + + ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" +if test "x$ac_cv_func_res_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" +if test "x$ac_cv_func___res_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + ac_cv_func_res_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_search + unset ac_cv_lib_resolv___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 +$as_echo_n "checking for res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_search=yes +else + ac_cv_lib_resolv_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 +$as_echo "$ac_cv_lib_resolv_res_search" >&6; } +if test "x$ac_cv_lib_resolv_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 +$as_echo_n "checking for __res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_search=yes +else + ac_cv_lib_resolv___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 +$as_echo "$ac_cv_lib_resolv___res_search" >&6; } +if test "x$ac_cv_lib_resolv___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_bind_res_search + unset ac_cv_lib_bind___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 +$as_echo_n "checking for res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_search=yes +else + ac_cv_lib_bind_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 +$as_echo "$ac_cv_lib_bind_res_search" >&6; } +if test "x$ac_cv_lib_bind_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 +$as_echo_n "checking for __res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_search=yes +else + ac_cv_lib_bind___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 +$as_echo "$ac_cv_lib_bind___res_search" >&6; } +if test "x$ac_cv_lib_bind___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_socket_res_search + unset ac_cv_lib_socket___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 +$as_echo_n "checking for res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_search=yes +else + ac_cv_lib_socket_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 +$as_echo "$ac_cv_lib_socket_res_search" >&6; } +if test "x$ac_cv_lib_socket_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 +$as_echo_n "checking for __res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_search=yes +else + ac_cv_lib_socket___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 +$as_echo "$ac_cv_lib_socket___res_search" >&6; } +if test "x$ac_cv_lib_socket___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5 +$as_echo_n "checking whether atof() accepts NAN... " >&6; } +if ${ac_cv_atof_accept_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_nan=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isnan(atof("NAN")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_nan=yes + +else + + ac_cv_atof_accept_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5 +$as_echo "$ac_cv_atof_accept_nan" >&6; } +if test "$ac_cv_atof_accept_nan" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5 +$as_echo_n "checking whether atof() accepts INF... " >&6; } +if ${ac_cv_atof_accept_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_inf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_inf=yes + +else + + ac_cv_atof_accept_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5 +$as_echo "$ac_cv_atof_accept_inf" >&6; } +if test "$ac_cv_atof_accept_inf" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5 +$as_echo_n "checking whether HUGE_VAL == INF... " >&6; } +if ${ac_cv_huge_val_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_inf=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(HUGE_VAL) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_inf=yes + +else + + ac_cv_huge_val_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5 +$as_echo "$ac_cv_huge_val_inf" >&6; } +if test "$ac_cv_huge_val_inf" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5 +$as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; } +if ${ac_cv_huge_val_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_nan=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ +#if defined(__sparc__) && !(__GNUC__ >= 3) + /* prevent bug #27830 */ + return 1; +#else + return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1; +#endif +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_nan=yes + +else + + ac_cv_huge_val_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5 +$as_echo "$ac_cv_huge_val_nan" >&6; } +if test "$ac_cv_huge_val_nan" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 +$as_echo_n "checking whether strptime() declaration fails... " >&6; } +if ${ac_cv_strptime_decl_fails+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#ifndef HAVE_STRPTIME +#error no strptime() on this platform +#else +/* use invalid strptime() declaration to see if it fails to compile */ +int strptime(const char *s, const char *format, struct tm *tm); +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_strptime_decl_fails=no + +else + + ac_cv_strptime_decl_fails=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 +$as_echo "$ac_cv_strptime_decl_fails" >&6; } +if test "$ac_cv_strptime_decl_fails" = "yes"; then + +$as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h + +fi + +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + +fi + +done + +for ac_func in mblen +do : + ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" +if test "x$ac_cv_func_mblen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MBLEN 1 +_ACEOF + +fi +done + +for ac_func in mbrlen mbsinit +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if ${ac_cv_type_mbstate_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_WCHAR_H +# include +#endif + +int +main () +{ + +int __tmp__() { mbstate_t a; } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_mbstate_t=yes + +else + + ac_cv_type_mbstate_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } +if test "$ac_cv_type_mbstate_t" = "yes"; then + +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + +fi + +for ac_header in atomic.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" +if test "x$ac_cv_header_atomic_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ATOMIC_H 1 +_ACEOF + +fi + +done + + + + ext_builddir=ext/standard + ext_srcdir=$abs_srcdir/ext/standard + + ac_extra= + + if test "" != "shared" && test "" != "yes" && test "" != "cli"; then + PHP_STANDARD_SHARED=no + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_STANDARD 1 +_ACEOF + + fi + fi + + if test "" != "shared" && test "" != "yes" && test "" = "cli"; then + PHP_STANDARD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + + for header_file in ext/standard/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + +php_with_sybase_ct=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sybase-CT support" >&5 +$as_echo_n "checking for Sybase-CT support... " >&6; } + +# Check whether --with-sybase-ct was given. +if test "${with_sybase_ct+set}" = set; then : + withval=$with_sybase_ct; PHP_SYBASE_CT=$withval +else + + PHP_SYBASE_CT=no + test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYBASE_CT in +shared,*) + PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYBASE_CT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYBASE_CT" != "no"; then + + if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then + as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_SYBASE_CT 1" >>confdefs.h + + + ext_builddir=ext/sybase_ct + ext_srcdir=$abs_srcdir/ext/sybase_ct + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYBASE_CT_SHARED=no + + + case ext/sybase_ct in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_sybase_ct.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYBASE_CT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYBASE_CT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sybase_ct in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_sybase_ct.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_SYBASE_64=no + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_SYBASE_64=yes + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ctpublic.h" >&5 +$as_echo_n "checking Checking for ctpublic.h... " >&6; } + if test -f $SYBASE_CT_INCDIR/ctpublic.h; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SYBASE_CT_INCDIR" >&5 +$as_echo "found in $SYBASE_CT_INCDIR" >&6; } + + if test "$SYBASE_CT_INCDIR" != "/usr/include"; then + + if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$SYBASE_CT_INCDIR + else + + ep_dir=`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SYBASE_CT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + else + as_fn_error $? "ctpublic.h missing!" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5 +$as_echo_n "checking Checking Sybase libdir... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have $SYBASE_CT_LIBDIR" >&5 +$as_echo "Have $SYBASE_CT_LIBDIR" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Sybase platform libraries" >&5 +$as_echo_n "checking Checking for Sybase platform libraries... " >&6; } + + + if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then + + if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SYBASE_CT_LIBDIR + else + + ep_dir=`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SYBASE_CT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then + + + case ct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" + else + + + case ct in + c|c_r|pthread*) ;; + *) + LIBS="-lct $LIBS" + ;; + esac + + + fi + ;; + esac + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeTDS: $SYBASE_CT_LIBS" >&5 +$as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; } + elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then + + + case sybcs64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcs64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcs64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybct64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybct64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybct64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybcomn64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcomn64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcomn64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybintl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybintl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybintl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + *OSF*) ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define + *) CFLAGS="${CFLAGS} -DSYB_LP64" ;; # + esac + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase64: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5 +$as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; } +if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsybtcl64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sybtcl64_netg_errstr=yes +else + ac_cv_lib_sybtcl64_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5 +$as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; } +if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sybtcl64_netg_errstr + + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5 +$as_echo_n "checking for insck__getVdate in -linsck64... " >&6; } +if ${ac_cv_lib_insck64_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck64_insck__getVdate=yes +else + ac_cv_lib_insck64_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" + else + + + case insck64 in + c|c_r|pthread*) ;; + *) + LIBS="-linsck64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck64_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5 +$as_echo_n "checking for bsd_tcp in -linsck64... " >&6; } +if ${ac_cv_lib_insck64_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck64_bsd_tcp=yes +else + ac_cv_lib_insck64_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" + else + + + case insck64 in + c|c_r|pthread*) ;; + *) + LIBS="-linsck64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck64_bsd_tcp + + +fi + + elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then + + + case sybcs in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcs in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcs $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD" + else + + + case sybct in + c|c_r|pthread*) ;; + *) + LIBS="-lsybct $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybcomn in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcomn in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcomn $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybintl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybintl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybintl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5 +$as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; } +if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsybtcl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sybtcl_netg_errstr=yes +else + ac_cv_lib_sybtcl_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5 +$as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; } +if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sybtcl_netg_errstr + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 +$as_echo_n "checking for insck__getVdate in -linsck... " >&6; } +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_insck__getVdate=yes +else + ac_cv_lib_insck_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 +$as_echo_n "checking for bsd_tcp in -linsck... " >&6; } +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_bsd_tcp=yes +else + ac_cv_lib_insck_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_bsd_tcp + + +fi + + else + + + case cs in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD" + else + + + case cs in + c|c_r|pthread*) ;; + *) + LIBS="-lcs $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case ct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" + else + + + case ct in + c|c_r|pthread*) ;; + *) + LIBS="-lct $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case comn in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD" + else + + + case comn in + c|c_r|pthread*) ;; + *) + LIBS="-lcomn $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case intl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD" + else + + + case intl in + c|c_r|pthread*) ;; + *) + LIBS="-lintl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 default: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5 +$as_echo_n "checking for netg_errstr in -ltcl... " >&6; } +if ${ac_cv_lib_tcl_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltcl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tcl_netg_errstr=yes +else + ac_cv_lib_tcl_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5 +$as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; } +if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case tcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD" + else + + + case tcl in + c|c_r|pthread*) ;; + *) + LIBS="-ltcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tcl_netg_errstr + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 +$as_echo_n "checking for insck__getVdate in -linsck... " >&6; } +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_insck__getVdate=yes +else + ac_cv_lib_insck_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 +$as_echo_n "checking for bsd_tcp in -linsck... " >&6; } +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_bsd_tcp=yes +else + ac_cv_lib_insck_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_bsd_tcp + + +fi + + fi +fi + + + +php_enable_sysvmsg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 +$as_echo_n "checking whether to enable System V IPC support... " >&6; } +# Check whether --enable-sysvmsg was given. +if test "${enable_sysvmsg+set}" = set; then : + enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval +else + + PHP_SYSVMSG=no + test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVMSG in +shared,*) + PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVMSG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVMSG" != "no"; then + ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_msg_h" = xyes; then : + +else + as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + +fi + + + + +$as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h + + + ext_builddir=ext/sysvmsg + ext_srcdir=$abs_srcdir/ext/sysvmsg + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVMSG_SHARED=no + + + case ext/sysvmsg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVMSG 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVMSG_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvmsg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable System V semaphore support... " >&6; } +# Check whether --enable-sysvsem was given. +if test "${enable_sysvsem+set}" = set; then : + enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval +else + + PHP_SYSVSEM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSEM in +shared,*) + PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSEM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSEM" != "no"; then + + ext_builddir=ext/sysvsem + ext_srcdir=$abs_srcdir/ext/sysvsem + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSEM_SHARED=no + + + case ext/sysvsem in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSEM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSEM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvsem in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 +$as_echo_n "checking for union semun... " >&6; } +if ${php_cv_semun+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +union semun x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + php_cv_semun=yes + +else + + php_cv_semun=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 +$as_echo "$php_cv_semun" >&6; } + if test "$php_cv_semun" = "yes"; then + +$as_echo "#define HAVE_SEMUN 1" >>confdefs.h + + else + +$as_echo "#define HAVE_SEMUN 0" >>confdefs.h + + fi +fi + + + +php_enable_sysvshm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 +$as_echo_n "checking whether to enable System V shared memory support... " >&6; } +# Check whether --enable-sysvshm was given. +if test "${enable_sysvshm+set}" = set; then : + enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval +else + + PHP_SYSVSHM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSHM in +shared,*) + PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSHM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSHM" != "no"; then + +$as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h + + + ext_builddir=ext/sysvshm + ext_srcdir=$abs_srcdir/ext/sysvshm + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSHM_SHARED=no + + + case ext/sysvshm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSHM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSHM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvshm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for TIDY support... " >&6; } + +# Check whether --with-tidy was given. +if test "${with_tidy+set}" = set; then : + withval=$with_tidy; PHP_TIDY=$withval +else + + PHP_TIDY=no + test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TIDY in +shared,*) + PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'` + ;; +shared) + PHP_TIDY=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TIDY" != "no"; then + + if test "$PHP_TIDY" != "yes"; then + TIDY_SEARCH_DIRS=$PHP_TIDY + else + TIDY_SEARCH_DIRS="/usr/local /usr" + fi + + for i in $TIDY_SEARCH_DIRS; do + if test -f $i/include/tidy/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include/tidy + elif test -f $i/include/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include + fi + done + + if test -z "$TIDY_DIR"; then + as_fn_error $? "Cannot find libtidy" "$LINENO" 5 + fi + + TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR + + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD" + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD" + test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case tidy in + c|c_r|pthread*) ;; + *) + LIBS="-ltidy $LIBS" + ;; + esac + + + + + fi + + + + if test "$TIDY_INCDIR" != "/usr/include"; then + + if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_INCDIR + else + + ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5 +$as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; } +if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltidy $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tidy_tidyOptGetDoc=yes +else + ac_cv_lib_tidy_tidyOptGetDoc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5 +$as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; } +if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tidy_tidyOptGetDoc + + +fi + + + + + ext_builddir=ext/tidy + ext_srcdir=$abs_srcdir/ext/tidy + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TIDY_SHARED=no + + + case ext/tidy in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TIDY 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TIDY_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/tidy in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + +php_enable_tokenizer=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 +$as_echo_n "checking whether to enable tokenizer support... " >&6; } +# Check whether --enable-tokenizer was given. +if test "${enable_tokenizer+set}" = set; then : + enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval +else + + PHP_TOKENIZER=yes + test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TOKENIZER in +shared,*) + PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'` + ;; +shared) + PHP_TOKENIZER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TOKENIZER" != "no"; then + + ext_builddir=ext/tokenizer + ext_srcdir=$abs_srcdir/ext/tokenizer + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TOKENIZER_SHARED=no + + + case ext/tokenizer in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TOKENIZER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TOKENIZER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/tokenizer in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + +php_enable_wddx=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5 +$as_echo_n "checking whether to enable WDDX support... " >&6; } +# Check whether --enable-wddx was given. +if test "${enable_wddx+set}" = set; then : + enableval=$enable_wddx; PHP_WDDX=$enableval +else + + PHP_WDDX=no + test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_WDDX in +shared,*) + PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'` + ;; +shared) + PHP_WDDX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5 +$as_echo_n "checking libexpat dir for WDDX... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_WDDX" != "no"; then + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $WDDX_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<" "$LINENO" 5 + + fi + + fi + + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 + fi + + + if test "$EXPAT_DIR/include" != "/usr/include"; then + + if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/include + else + + ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD" + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_WDDX 1" >>confdefs.h + + + ext_builddir=ext/wddx + ext_srcdir=$abs_srcdir/ext/wddx + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_WDDX_SHARED=no + + + case ext/wddx in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in wddx.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_WDDX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_WDDX_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/wddx in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in wddx.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XML support... " >&6; } +# Check whether --enable-xml was given. +if test "${enable_xml+set}" = set; then : + enableval=$enable_xml; PHP_XML=$enableval +else + + PHP_XML=yes + test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XML in +shared,*) + PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'` + ;; +shared) + PHP_XML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5 +$as_echo_n "checking libexpat install dir... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XML" != "no"; then + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + xml_extra_sources="compat.c" + + am_i_shared=$PHP_XML_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xml to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xml shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xml, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + else + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + fi +else + as_fn_error $? "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 + + fi + + fi + + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 + fi + + + if test "$EXPAT_DIR/include" != "/usr/include"; then + + if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/include + else + + ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD" + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + fi + + + ext_builddir=ext/xml + ext_srcdir=$abs_srcdir/ext/xml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XML_SHARED=no + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_enable_xmlreader=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 +$as_echo_n "checking whether to enable XMLReader support... " >&6; } +# Check whether --enable-xmlreader was given. +if test "${enable_xmlreader+set}" = set; then : + enableval=$enable_xmlreader; PHP_XMLREADER=$enableval +else + + PHP_XMLREADER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLREADER in +shared,*) + PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLREADER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_XMLREADER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLREADER_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_XMLREADER 1" >>confdefs.h + + + ext_builddir=ext/xmlreader + ext_srcdir=$abs_srcdir/ext/xmlreader + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLREADER_SHARED=no + + + case ext/xmlreader in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLREADER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLREADER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlreader in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XMLRPC-EPI support... " >&6; } + +# Check whether --with-xmlrpc was given. +if test "${with_xmlrpc+set}" = set; then : + withval=$with_xmlrpc; PHP_XMLRPC=$withval +else + + PHP_XMLRPC=no + test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLRPC in +shared,*) + PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLRPC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5 +$as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_iconv_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5 +$as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-iconv-dir was given. +if test "${with_iconv_dir+set}" = set; then : + withval=$with_iconv_dir; PHP_ICONV_DIR=$withval +else + + PHP_ICONV_DIR=no + + +fi + + +ext_output=$PHP_ICONV_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLRPC" != "no"; then + + + am_i_shared=$PHP_XMLRPC_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xmlrpc to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xmlrpc shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xmlrpc, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD" + + +$as_echo "#define HAVE_XMLRPC 1" >>confdefs.h + + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLRPC_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<" "$LINENO" 5 + + fi + + else + testval=no + for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do + if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD" + if test -n "$i/$PHP_LIBDIR"; then + + if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$i/$PHP_LIBDIR + else + + ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$i/$PHP_LIBDIR"; then + + if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$i/$PHP_LIBDIR + else + + ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + + if test "$i/include" != "/usr/include"; then + + if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then + ai_p=$i/include + else + + ep_dir=`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + testval=yes + break + fi + done + + if test "$testval" = "no"; then + as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir= (deprecated!)" "$LINENO" 5 + fi + fi + + if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then + + if test "$PHP_ICONV_DIR" != "no"; then + PHP_ICONV=$PHP_ICONV_DIR + fi + + if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi + + + found_iconv=no + unset ICONV_DIR + + # Create the directories for a VPATH build: + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + +else + as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 + + fi + + fi +fi + +if test "$PHP_XMLRPC" = "yes"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + + + + + +$as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 +$as_echo_n "checking size of char... " >&6; } +if ${ac_cv_sizeof_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_char" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (char) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_char=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 +$as_echo "$ac_cv_sizeof_char" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_CHAR $ac_cv_sizeof_char +_ACEOF + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + + + +# Standard XMLRPC list +for ac_func in \ + strtoul strtoull snprintf \ + strstr strpbrk strerror\ + memcpy memmove +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + + ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XMLRPC-EPI in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/xmlrpc.h; then + XMLRPC_DIR=$i/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$XMLRPC_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 + fi + + + if test "$XMLRPC_DIR" != "/usr/include"; then + + if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR + else + + ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD" + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case xmlrpc in + c|c_r|pthread*) ;; + *) + LIBS="-lxmlrpc $LIBS" + ;; + esac + + + + + fi + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XMLWriter support... " >&6; } +# Check whether --enable-xmlwriter was given. +if test "${enable_xmlwriter+set}" = set; then : + enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval +else + + PHP_XMLWRITER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLWRITER in +shared,*) + PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLWRITER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_XMLWRITER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLWRITER_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h + + + ext_builddir=ext/xmlwriter + ext_srcdir=$abs_srcdir/ext/xmlwriter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLWRITER_SHARED=no + + + case ext/xmlwriter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLWRITER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLWRITER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlwriter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XSL support... " >&6; } + +# Check whether --with-xsl was given. +if test "${with_xsl+set}" = set; then : + withval=$with_xsl; PHP_XSL=$withval +else + + PHP_XSL=no + test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XSL in +shared,*) + PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_XSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XSL" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + if test "$PHP_DOM" = "no"; then + as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 + fi + + for i in $PHP_XSL /usr/local /usr; do + if test -x "$i/bin/xslt-config"; then + XSLT_CONFIG=$i/bin/xslt-config + break + fi + done + + if test -z "$XSLT_CONFIG"; then + as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5 + else + libxslt_full_version=`$XSLT_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxslt_full_version + IFS=$ac_IFS + LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXSLT_VERSION" -ge "1001000"; then + XSL_LIBS=`$XSLT_CONFIG --libs` + XSL_INCS=`$XSLT_CONFIG --cflags` + + for ac_i in $XSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $XSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5 +$as_echo_n "checking for EXSLT support... " >&6; } + for i in $PHP_XSL /usr/local /usr; do + if test -r "$i/include/libexslt/exslt.h"; then + PHP_XSL_EXSL_DIR=$i + break + fi + done + if test -z "$PHP_XSL_EXSL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD" + if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then + + if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then + + if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case exslt in + c|c_r|pthread*) ;; + *) + LIBS="-lexslt $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then + + if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/include + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h + + fi + else + as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5 + fi + + + fi + + +$as_echo "#define HAVE_XSL 1" >>confdefs.h + + + ext_builddir=ext/xsl + ext_srcdir=$abs_srcdir/ext/xsl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XSL_SHARED=no + + + case ext/xsl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xsl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for zip archive read/writesupport... " >&6; } +# Check whether --enable-zip was given. +if test "${enable_zip+set}" = set; then : + enableval=$enable_zip; PHP_ZIP=$enableval +else + + PHP_ZIP=no + test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZIP in +shared,*) + PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZIP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_pcre_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5 +$as_echo_n "checking pcre install prefix... " >&6; } + +# Check whether --with-pcre-dir was given. +if test "${with_pcre_dir+set}" = set; then : + withval=$with_pcre_dir; PHP_PCRE_DIR=$withval +else + + PHP_PCRE_DIR=no + + +fi + + +ext_output=$PHP_PCRE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZIP" != "no"; then + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5 +$as_echo_n "checking for the location of zlib... " >&6; } + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5 +$as_echo "$PHP_ZLIB_DIR" >&6; } + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then + + if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_INCDIR + else + + ep_dir=`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=yes + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=pecl + +else + + PHP_PCRE_REGEX=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \ + lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \ + lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \ + lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \ + lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \ + lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \ + lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \ + lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \ + lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \ + lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \ + lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \ + lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \ + lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \ + lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \ + lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \ + lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \ + lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \ + lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \ + lib/zip_error_clear.c lib/zip_file_error_clear.c \ + lib/zip_fdopen.c lib/zip_fopen_encrypted.c lib/zip_fopen_index_encrypted.c \ + lib/zip_get_compression_implementation.c lib/zip_get_encryption_implementation.c \ + lib/zip_get_file_extra.c lib/zip_get_num_entries.c lib/zip_set_default_password.c \ + lib/zip_set_file_extra.c lib/zip_source_close.c lib/zip_source_crc.c \ + lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_layered.c \ + lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \ + lib/zip_source_read.c lib/zip_source_stat.c" + + +$as_echo "#define HAVE_ZIP 1" >>confdefs.h + + + ext_builddir=ext/zip + ext_srcdir=$abs_srcdir/ext/zip + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZIP_SHARED=no + + + case ext/zip in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZIP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZIP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/zip in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + +php_enable_mysqlnd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 +$as_echo_n "checking whether to enable mysqlnd... " >&6; } +# Check whether --enable-mysqlnd was given. +if test "${enable_mysqlnd+set}" = set; then : + enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval +else + + PHP_MYSQLND=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLND in +shared,*) + PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLND=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mysqlnd_compression_support=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 +$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; } +# Check whether --enable-mysqlnd_compression_support was given. +if test "${enable_mysqlnd_compression_support+set}" = set; then : + enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval +else + + PHP_MYSQLND_COMPRESSION_SUPPORT=yes + + +fi + + +ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then + mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c" + mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ + mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \ + mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \ + mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\ + mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c" + + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + +$as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h + + fi + + +$as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h + + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5 +$as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; } +if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char DSA_get_default_method (); +int +main () +{ +return DSA_get_default_method (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_DSA_get_default_method=yes +else + ac_cv_lib_ssl_DSA_get_default_method=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5 +$as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; } +if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5 +$as_echo_n "checking for X509_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_X509_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char X509_free (); +int +main () +{ +return X509_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_X509_free=yes +else + ac_cv_lib_crypto_X509_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5 +$as_echo "$ac_cv_lib_crypto_X509_free" >&6; } +if test "x$ac_cv_lib_crypto_X509_free" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lssl $MYSQLND_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + +$as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h + + + fi + + fi + + mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" + + ext_builddir=ext/mysqlnd + ext_srcdir=$abs_srcdir/ext/mysqlnd + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLND_SHARED=no + + + case ext/mysqlnd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLND 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLND_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysqlnd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether $php_typename exists... " >&6; } + + php_cache_value=php_cv_sizeof_$php_typename + if eval \${php_cv_sizeof_$php_typename+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDINT_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof($php_typename)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + + php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' ` + echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi + + done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether whether compiler supports Decimal32/64/128 types" >&5 +$as_echo_n "checking whether whether compiler supports Decimal32/64/128 types... " >&6; } +if ${ac_cv_decimal_fp_supported+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_decimal_fp_supported=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char **argv) { + typedef float dec32 __attribute__((mode(SD))); + dec32 k = 99.49f; + double d2 = (double)k; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_decimal_fp_supported=yes + +else + + ac_cv_decimal_fp_supported=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decimal_fp_supported" >&5 +$as_echo "$ac_cv_decimal_fp_supported" >&6; } +if test "$ac_cv_decimal_fp_supported" = "yes"; then + +$as_echo "#define HAVE_DECIMAL_FP_SUPPORT 1" >>confdefs.h + +fi + + +if test "$PHP_RECODE" != "no"; then + test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap" + + if test -n "$MYSQL_LIBNAME"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char hash_insert (); +int +main () +{ +return hash_insert (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + recode_conflict="$recode_conflict mysql" + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert + + +fi + + fi + + if test -n "$recode_conflict"; then + as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5 + fi +fi + + + + +enable_shared=yes +enable_static=yes + +case $php_sapi_module in + shared) + enable_static=no + case $with_pic in + yes) + standard_libtool_flag='-prefer-pic' + ;; + no) + standard_libtool_flag='-prefer-non-pic' + ;; + esac + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module" + ;; + *) + standard_libtool_flag='-prefer-non-pic -static' + if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then + enable_shared=no + fi + ;; +esac + +EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" + +if test "$ac_cv_lib_crypt_crypt" = "yes"; then + EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt" +fi + +unset LIBS LDFLAGS + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 +$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; } + + +# compatibility +if test -z "$with_pear" && test "$enable_pear" = "no"; then + with_pear=no +fi + +# If CLI is disabled -> disable PEAR +if test "$PHP_CLI" = "no"; then + with_pear=no +fi + + +php_with_pear=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 +$as_echo_n "checking whether to install PEAR... " >&6; } + +# Check whether --with-pear was given. +if test "${with_pear+set}" = set; then : + withval=$with_pear; PHP_PEAR=$withval +else + + PHP_PEAR=DEFAULT + test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PEAR in +shared,*) + PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PEAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PEAR" != "no"; then + + if test "$PHP_XML" = "no"; then + pear_error_msg="$pear_error_msg + PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)" + fi + + + if test "$pear_error_msg"; then + as_fn_error $? "$pear_error_msg" "$LINENO" 5 + fi + + install_pear="install-pear" + PEAR_INSTALLDIR=$PHP_PEAR + + if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then + case $PHP_LAYOUT in + GNU) PEAR_INSTALLDIR=$datadir/pear;; + *) PEAR_INSTALLDIR=$libdir/php;; + esac + fi + + + src=$abs_srcdir/pear/Makefile.frag + ac_srcdir=$abs_srcdir/pear + ac_builddir=pear + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 +$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; } + + + + + + + + + + + # we only support certain bison versions + bison_version_list="2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7" + + # for standalone build of Zend Engine + test -z "$SED" && SED=sed + + bison_version=none + if test "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } +if ${php_cv_bison_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z` + php_cv_bison_version=invalid + if test -n "$bison_version_vars"; then + set $bison_version_vars + bison_version="${1}.${2}" + for bison_check_version in $bison_version_list; do + if test "$bison_version" = "$bison_check_version"; then + php_cv_bison_version="$bison_check_version (ok)" + break + fi + done + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5 +$as_echo "$php_cv_bison_version" >&6; } + fi + case $php_cv_bison_version in + ""|invalid) + bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5 +$as_echo "$as_me: WARNING: $bison_msg" >&2;} + YACC="exit 0;" + ;; + esac + + +if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \ + "`uname -sv`" = "AIX 4"; then + CFLAGS=`echo $CFLAGS | sed -e 's/-g//'` +fi + +if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then + CPPFLAGS="$CPPFLAGS -traditional-cpp" +fi + +for ac_header in inttypes.h \ +stdint.h \ +limits.h \ +malloc.h \ +string.h \ +unistd.h \ +stdarg.h \ +sys/types.h \ +sys/time.h \ +signal.h \ +unix.h \ +stdlib.h \ +dlfcn.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 +$as_echo_n "checking return type of signal handlers... " >&6; } +if ${ac_cv_type_signal+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +return *(signal (0, 0)) (0) == 1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_signal=int +else + ac_cv_type_signal=void +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 +$as_echo "$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +#define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + + + + + + +ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default" +if test "x$ac_cv_type_uint" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define uint unsigned int +_ACEOF + +fi + +ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default" +if test "x$ac_cv_type_ulong" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define ulong unsigned long +_ACEOF + +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 +$as_echo_n "checking for int32_t... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_INTTYPES_H +#include +#elif HAVE_STDINT_H +#include +#endif +int +main () +{ +if ((int32_t *) 0) + return 0; +if (sizeof (int32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32_T 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 +$as_echo_n "checking for uint32_t... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_INTTYPES_H +#include +#elif HAVE_STDINT_H +#include +#endif +int +main () +{ +if ((uint32_t *) 0) + return 0; +if (sizeof (uint32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32_T 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = xyes; then : + +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if ${ac_cv_func_memcmp_working+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" + ;; +esac + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + +for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5 +$as_echo_n "checking whether sprintf is broken... " >&6; } +if ${ac_cv_broken_sprintf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_broken_sprintf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_broken_sprintf=no + +else + + ac_cv_broken_sprintf=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5 +$as_echo "$ac_cv_broken_sprintf" >&6; } + if test "$ac_cv_broken_sprintf" = "yes"; then + ac_result=1 + else + ac_result=0 + fi + +cat >>confdefs.h <<_ACEOF +#define ZEND_BROKEN_SPRINTF $ac_result +_ACEOF + + + +for ac_func in finite isfinite isinf isnan +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5 +$as_echo_n "checking whether fp_except is defined... " >&6; } +if ${ac_cv_type_fp_except+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +fp_except x = (fp_except) 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_fp_except=yes + +else + + ac_cv_type_fp_except=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5 +$as_echo "$ac_cv_type_fp_except" >&6; } + if test "$ac_cv_type_fp_except" = "yes"; then + +$as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 +$as_echo_n "checking for usable _FPU_SETCW... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fpu_control_t fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _FPU_GETCW(fpu_oldcw); + fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE; + _FPU_SETCW(fpu_cw); + result = a / b; + _FPU_SETCW(fpu_oldcw); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__fpu_setcw=yes +else + ac_cfp_have__fpu_setcw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__fpu_setcw" = "yes" ; then + +$as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 +$as_echo_n "checking for usable fpsetprec... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fp_prec_t fpu_oldprec; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldprec = fpgetprec(); + fpsetprec(FP_PD); + result = a / b; + fpsetprec(fpu_oldprec); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpsetprec=yes +else + ac_cfp_have_fpsetprec=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpsetprec" = "yes" ; then + +$as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 +$as_echo_n "checking for usable _controlfp... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldcw = _controlfp(0, 0); + _controlfp(_PC_53, _MCW_PC); + result = a / b; + _controlfp(fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp=yes +else + ac_cfp_have__controlfp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 +$as_echo_n "checking for usable _controlfp_s... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _controlfp_s(&fpu_cw, 0, 0); + fpu_oldcw = fpu_cw; + _controlfp_s(&fpu_cw, _PC_53, _MCW_PC); + result = a / b; + _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp_s=yes +else + ac_cfp_have__controlfp_s=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp_s" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 +$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* nothing */ + +int +main () +{ + + unsigned int oldcw, cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw)); + cw = (oldcw & ~0x0 & ~0x300) | 0x200; + __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw)); + + result = a / b; + + __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw)); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpu_inline_asm_x86=yes +else + ac_cfp_have_fpu_inline_asm_x86=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then + +$as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5 +$as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main() +{ + if (sizeof(long) == 4) { + double d = (double) LONG_MIN * LONG_MIN + 2e9; + + if ((long) d == 2e9 && (long) -d == -2e9) { + exit(0); + } + } else if (sizeof(long) == 8) { + double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */ + + if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */ + exit(0); + } + } + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 +$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } +if test "$cross_compiling" = yes; then : + +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + x$lt_dlneed_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h + + ;; + x$lt_dlunknown|x*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + else : + # compilation failed + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi +fi +rm -fr conftest* + + + + + +# Check whether --with-zend-vm was given. +if test "${with_zend_vm+set}" = set; then : + withval=$with_zend_vm; + PHP_ZEND_VM=$withval + +else + + PHP_ZEND_VM=CALL + +fi + + +# Check whether --enable-maintainer-zts was given. +if test "${enable_maintainer_zts+set}" = set; then : + enableval=$enable_maintainer_zts; + ZEND_MAINTAINER_ZTS=$enableval + +else + + ZEND_MAINTAINER_ZTS=no + +fi + + +# Check whether --enable-inline-optimization was given. +if test "${enable_inline_optimization+set}" = set; then : + enableval=$enable_inline_optimization; + ZEND_INLINE_OPTIMIZATION=$enableval + +else + + ZEND_INLINE_OPTIMIZATION=yes + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking virtual machine dispatch method" >&5 +$as_echo_n "checking virtual machine dispatch method... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZEND_VM" >&5 +$as_echo "$PHP_ZEND_VM" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 +$as_echo_n "checking whether to enable thread-safety... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5 +$as_echo "$ZEND_MAINTAINER_ZTS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5 +$as_echo_n "checking whether to enable inline optimization for GCC... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5 +$as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 +$as_echo_n "checking whether to enable Zend debugging... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 +$as_echo "$ZEND_DEBUG" >&6; } + +case $PHP_ZEND_VM in + SWITCH) + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_SWITCH" >>confdefs.h + + ;; + GOTO) + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_GOTO" >>confdefs.h + + ;; + *) + PHP_ZEND_VM=CALL + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_CALL" >>confdefs.h + + ;; +esac + +if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define ZEND_DEBUG 1" >>confdefs.h + + echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + if test "$CFLAGS" = "-g -O2"; then + CFLAGS=-g + fi + test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall" + test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \ + DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations" +else + +$as_echo "#define ZEND_DEBUG 0" >>confdefs.h + +fi + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZTS" + + + +fi + + +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then + INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` +else + INLINE_CFLAGS="$CFLAGS" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 +$as_echo_n "checking target system is Darwin... " >&6; } +if echo "$target" | grep "darwin" > /dev/null; then + +$as_echo "#define DARWIN 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 +$as_echo_n "checking for MM alignment and log values... " >&6; } + +if test "$cross_compiling" = yes; then : + + LIBZEND_MM_ALIGN=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +typedef union _mm_align_test { + void *ptr; + double dbl; + long lng; +} mm_align_test; + +#if (defined (__GNUC__) && __GNUC__ >= 2) +#define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test)) +#else +#define ZEND_MM_ALIGNMENT (sizeof(mm_align_test)) +#endif + +int main() +{ + int i = ZEND_MM_ALIGNMENT; + int zeros = 0; + FILE *fp; + + while (i & ~0x1) { + zeros++; + i = i >> 1; + } + + fp = fopen("conftest.zend", "w"); + fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros); + fclose(fp); + + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1` + LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2` + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2 +_ACEOF + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5 +$as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MREMAP_MAYMOVE +# define MREMAP_MAYMOVE 0 +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +#define SEG_SIZE (256*1024) + +int main() +{ + void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); + if (seg == MAP_FAILED) { + return 1; + } + if (munmap(seg, SEG_SIZE) != 0) { + return 2; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5 +$as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MREMAP_MAYMOVE +# define MREMAP_MAYMOVE 0 +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +#define SEG_SIZE (256*1024) + +int main() +{ + int fd; + void *seg; + + fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); + if (fd < 0) { + return 1; + } + seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + if (seg == MAP_FAILED) { + return 2; + } + if (munmap(seg, SEG_SIZE) != 0) { + return 3; + } + if (close(fd) != 0) { + return 4; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +for ac_func in mremap +do : + ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" +if test "x$ac_cv_func_mremap" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MREMAP 1 +_ACEOF + +fi +done + + + +# Check whether --enable-zend-signals was given. +if test "${enable_zend_signals+set}" = set; then : + enableval=$enable_zend_signals; + ZEND_SIGNALS=$enableval + +else + + ZEND_SIGNALS=no + +fi + + +ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + + +$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h + + +else + + ZEND_SIGNALS=no + +fi + +if test "$ZEND_SIGNALS" = "yes"; then + +$as_echo "#define ZEND_SIGNALS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZEND_SIGNALS" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 +$as_echo_n "checking whether to enable zend signal handling... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 +$as_echo "$ZEND_SIGNALS" >&6; } + + + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + PHP_THREAD_SAFETY=yes +else + PHP_THREAD_SAFETY=no +fi + +INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" +INCLUDES="$INCLUDES -I\$(top_builddir)/Zend" + +if test "$abs_srcdir" != "$abs_builddir"; then + INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend" + INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/" +fi + +ZEND_EXTRA_LIBS="$LIBS" +unset LIBS LDFLAGS + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 +$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; } + + + + +for ac_header in stdarg.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDARG_H 1 +_ACEOF + +fi + +done + + +for ac_func in sigprocmask +do : + ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGPROCMASK 1 +_ACEOF + +fi +done + + + +if test "$PHP_THREAD_SAFETY" = "yes"; then + + + + +# Check whether --with-tsrm-pth was given. +if test "${with_tsrm_pth+set}" = set; then : + withval=$with_tsrm_pth; + TSRM_PTH=$withval + +else + + TSRM_PTH=no + +fi + + + +# Check whether --with-tsrm-st was given. +if test "${with_tsrm_st+set}" = set; then : + withval=$with_tsrm_st; + TSRM_ST=$withval + +else + + TSRM_ST=no + +fi + + + +# Check whether --with-tsrm-pthreads was given. +if test "${with_tsrm_pthreads+set}" = set; then : + withval=$with_tsrm_pthreads; + TSRM_PTHREADS=$withval + +else + + TSRM_PTHREADS=yes + +fi + + +test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config + +if test "$TSRM_PTH" != "no"; then + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5 +$as_echo_n "checking for GNU Pth... " >&6; } +PTH_PREFIX="`$TSRM_PTH --prefix`" +if test -z "$PTH_PREFIX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5 +$as_echo "Please check your Pth installation" >&6; } +fi + +CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`" +LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`" +LIBS="$LIBS `$TSRM_PTH --libs`" + + +$as_echo "#define GNUPTH 1" >>confdefs.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5 +$as_echo "yes - installed in $PTH_PREFIX" >&6; } + + +elif test "$TSRM_ST" != "no"; then + + if test -r "$TSRM_ST/include/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include" + LDFLAGS="$LDFLAGS -L$TSRM_ST/lib" + elif test -r "$TSRM_ST/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST" + LDFLAGS="$LDFLAGS -L$TSRM_ST" + fi + for ac_header in st.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default" +if test "x$ac_cv_header_st_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ST_H 1 +_ACEOF + +else + + as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 + +fi + +done + + LIBS="$LIBS -lst" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5 +$as_echo_n "checking for SGI's State Threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define TSRM_ST 1" >>confdefs.h + + +elif test "$TSRM_PTHREADS" != "no"; then + + + + +if test "$beos_threads" = "1"; then + pthreads_working="yes" + ac_cv_pthreads_cflags="" +else + save_CFLAGS=$CFLAGS + save_LIBS=$LIBS + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$save_LIBS + CFLAGS=$save_CFLAGS + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_pthreads_cflags= + if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "$pthreads_working" = "yes"; then + threads_result="POSIX-Threads found" +else + threads_result="POSIX-Threads not found" +fi + + +if test "$beos_threads" = "1"; then + +$as_echo "#define BETHREADS 1" >>confdefs.h + +else + if test "$pthreads_working" != "yes"; then + as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5 + fi + + +$as_echo "#define PTHREADS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 +$as_echo_n "checking for POSIX threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi + +fi + + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS" +EXTRA_LIBS="$EXTRA_LIBS $LIBS" +unset LIBS LDFLAGS + +test "$prefix" = "NONE" && prefix=/usr/local +test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' +test "$program_prefix" = "NONE" && program_prefix= +test "$program_suffix" = "NONE" && program_suffix= + +case $libdir in + '${exec_prefix}/lib') + libdir=$libdir/php + ;; +esac +case $datadir in + '${prefix}/share') + datadir=$datadir/php + ;; +esac + +phplibdir=`pwd`/modules +$php_shtool mkdir -p $phplibdir +phptempdir=`pwd`/libs + +old_exec_prefix=$exec_prefix +old_libdir=$libdir +old_datadir=$datadir +exec_prefix=`eval echo $exec_prefix` +libdir=`eval echo $libdir` +datadir=`eval echo $datadir` + + +ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'` + +if test -z "$EXTENSION_DIR"; then + extbasedir=$ZEND_MODULE_API_NO + if test "$oldstyleextdir" = "yes"; then + if test "$PHP_DEBUG" = "1"; then + part1=debug + else + part1=no-debug + fi + if test "$enable_maintainer_zts" = "yes"; then + part2=zts + else + part2=non-zts + fi + extbasedir=$part1-$part2-$extbasedir + EXTENSION_DIR=$libdir/extensions/$extbasedir + else + if test "$enable_maintainer_zts" = "yes"; then + extbasedir=$extbasedir-zts + fi + + if test "$PHP_DEBUG" = "1"; then + extbasedir=$extbasedir-debug + fi + EXTENSION_DIR=$libdir/$extbasedir + fi +fi + +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + +EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` +EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` +EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir` +EXPANDED_BINDIR=`eval echo $bindir` +EXPANDED_SBINDIR=`eval echo $sbindir` +EXPANDED_MANDIR=`eval echo $mandir` +EXPANDED_LIBDIR=$libdir +EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` +EXPANDED_DATADIR=$datadir +EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR + +exec_prefix=$old_exec_prefix +libdir=$old_libdir +datadir=$old_datadir + + + + + + + + + + + + + + +if test -n "$php_ldflags_add_usr_lib"; then + PHP_RPATHS="$PHP_RPATHS /usr/lib" +fi + + + OLD_RPATHS=$PHP_RPATHS + unset PHP_RPATHS + + for i in $OLD_RPATHS; do + PHP_LDFLAGS="$PHP_LDFLAGS -L$i" + PHP_RPATHS="$PHP_RPATHS -R $i" + NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i" + done + + if test "$PHP_RPATH" = "no"; then + unset PHP_RPATHS + unset NATIVE_RPATHS + fi + + +if test -z "$php_ldflags_add_usr_lib"; then + + unset ac_new_flags + for i in $PHP_LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + PHP_LDFLAGS=$ac_new_flags + + + unset ac_new_flags + for i in $LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + LDFLAGS=$ac_new_flags + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" + +PHP_BUILD_DATE=`date '+%Y-%m-%d'` + +cat >>confdefs.h <<_ACEOF +#define PHP_BUILD_DATE "$PHP_BUILD_DATE" +_ACEOF + + +case $host_alias in +*netware*) + PHP_OS="NetWare" + PHP_UNAME="NetWare" + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + + ;; +*) + PHP_UNAME=`uname -a | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + + PHP_OS=`uname | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + ;; +esac + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST bindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST includedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST libdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST mandir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datadir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CC" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXX" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS" + + +old_CC=$CC + +if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then + CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" + INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" + cat >meta_ccld<&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 +$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; } + + +LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS" + +case $host_alias in +*darwin9*|*darwin10*) + ac_cv_exeext= + ;; +esac + + +# Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 +$as_echo_n "checking for BSD-compatible nm... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +NM="$lt_cv_path_NM" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +#AC_ARG_ENABLE([libtool-lock], +#[ --disable-libtool-lock avoid locking (might break parallel builds)]) +#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 105327 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + + +esac + +need_locks="$enable_libtool_lock" + + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + lt_cv_ld_exported_symbols_list=yes + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +lt_cv_ld_exported_symbols_list=no + rm -rf conftest* +fi +rm -f conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[0123]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac + + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:106883: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:106887: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:107181: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:107185: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:107285: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:107289: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# Report which library types will actually be built +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + compiler_lib_search_dirs \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + fix_srcfile_path \ + exclude_expsyms \ + include_expsyms; do + + case $var in + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: +creating $ofile" >&5 +$as_echo " +creating $ofile" >&6; } + + cat <<__EOF__ >> "$cfgfile" +#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags was given. +if test "${with_tags+set}" = set; then : + withval=$with_tags; tagnames="$withval" +fi + + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5 + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5 + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= +compiler_lib_search_dirs_CXX= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + ld_shlibs_CXX=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +compiler_lib_search_dirs_CXX= +if test -n "$compiler_lib_search_path_CXX"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc*) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc*) + # Intel C++, used to be incompatible with GCC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:111768: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:111772: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:111872: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:111876: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + compiler_lib_search_dirs_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + fix_srcfile_path_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + *) + as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5 + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5 + fi +fi + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Prevent multiple expansion + + + + + + + + + + + +if test "$enable_debug" != "yes"; then + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' + else + LIBTOOL="$LIBTOOL --silent" + fi + +fi + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps' + else + LIBTOOL="$LIBTOOL --preserve-dup-deps" + fi + + +test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' +test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<' +SHARED_LIBTOOL='$(LIBTOOL)' + +CC=$old_CC + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 +$as_echo "${T_MD}Generating files${T_ME}" >&6; } + + +CXXFLAGS_CLEAN=$CXXFLAGS +CFLAGS_CLEAN=$CFLAGS +CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" +INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" +CXXFLAGS="$CXXFLAGS $standard_libtool_flag" + +if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then + pharcmd=pharcmd + pharcmd_install=install-pharcmd +else + pharcmd= + pharcmd_install= +fi; + +all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" +install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets" + + + + + for header_file in Zend/ TSRM/ include/ main/ main/streams/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + case TSRM in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + src=$abs_srcdir/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + src=$abs_srcdir/Zend/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + $php_shtool mkdir -p $BUILD_DIR + + + cat >Makefile <> Makefile + done + + cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile + + + +$as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h + + +$php_shtool mkdir -p pear/scripts +$php_shtool mkdir -p scripts +$php_shtool mkdir -p scripts/man1 + +ALL_OUTPUT_FILES="php5.spec main/build-defs.h \ +scripts/phpize scripts/man1/phpize.1 \ +scripts/php-config scripts/man1/php-config.1 \ +$PHP_OUTPUT_FILES" + + + for arg in $ac_configure_args; do + case $arg in + --with-*) + arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`" + ;; + --without-*) + arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`" + ;; + --enable-*) + arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`" + ;; + --disable-*) + arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`" + ;; + *) + continue + ;; + esac + case $arg_name in + # Allow --disable-all / --enable-all + enable-all);; + + # Allow certain libtool options + enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);; + + # Allow certain TSRM options + with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);; + + # Allow certain Zend options + with-zend-vm | enable-maintainer-zts | enable-inline-optimization);; + + # All the rest must be set using the PHP_ARG_* macros + # PHP_ARG_* macros set php_enable_ or php_with_ + *) + # Options that exist before PHP 6 + if test "$PHP_MAJOR_VERSION" -lt "6"; then + case $arg_name in + enable-zend-multibyte) continue;; + esac + fi + + is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'` + if eval test "x\$$is_arg_set" = "x"; then + PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS +$arg" + fi + ;; + esac + done + + +ac_config_files="$ac_config_files $ALL_OUTPUT_FILES" + +ac_config_commands="$ac_config_commands default" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +config.status +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# + + +if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then + REDO_ALL=yes +fi + +################################################################ +# Create configuration headers +# + +test -d TSRM || $php_shtool mkdir TSRM +echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h + +test -d Zend || $php_shtool mkdir Zend + +cat >Zend/zend_config.h < +#if defined(APACHE) && defined(PHP_API_VERSION) +#undef HAVE_DLFCN_H +#endif +FEO + +# run this only when generating all the files? +if test -n "\$REDO_ALL"; then + # Hacking while airborne considered harmful. + # + echo "creating main/internal_functions.c" + extensions="$EXT_STATIC" + sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c + + echo "creating main/internal_functions_cli.c" + cli_extensions="$EXT_CLI_STATIC" + sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c + + if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then + echo "+--------------------------------------------------------------------+" + echo "| *** WARNING *** |" + echo "| |" + echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |" + echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |" + echo "| to install gnu-pth from /usr/ports/devel/pth. |" + fi + + if test -n "$PHP_APXS_BROKEN"; then + echo "+--------------------------------------------------------------------+" + echo "| WARNING: Your $APXS script is most likely broken." + echo "| |" + echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |" + echo "| and make the changes described there and try again. |" + fi + + if test -n "$DEBUG_LOG"; then + rm -f config.cache +cat < processes when using a local Oracle | +| database, set the value BEQUEATH_DETACH=YES in Oracle Net's | +| sqlnet.ora file on the PHP host, or set the environment variable | +| BEQUEATH_DETACH to YES before starting Apache. If the problem | +| still occurs, then recompile PHP and specify --enable-sigchild | +| when configuring. | +X + fi + fi + fi + +cat <>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;; + "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;; + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/tests/expected/php/5.5.17-openssl-dso-patch/Makefile b/tests/expected/php/5.5.17-openssl-dso-patch/Makefile new file mode 100644 index 000000000..60b472da8 --- /dev/null +++ b/tests/expected/php/5.5.17-openssl-dso-patch/Makefile @@ -0,0 +1,1990 @@ +srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +top_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +top_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +EGREP = /usr/bin/grep -E +SED = /opt/local/bin/gsed +CONFIGURE_COMMAND = './configure' '--prefix=/Users/c9s/.phpbrew/php/php-5.5.17' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.5.17/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.5.17/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.5.17/lib/php' '--disable-all' '--enable-short-tags' '--with-zlib=/opt/local' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/opt/local' '--with-curl=/opt/local' '--with-readline=/opt/local' '--with-libedit=/opt/local' '--enable-session' '--enable-phpdbg' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-opcache' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/opt/local' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/opt/local' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' +CONFIGURE_OPTIONS = '--prefix=/Users/c9s/.phpbrew/php/php-5.5.17' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.5.17/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.5.17/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.5.17/lib/php' '--disable-all' '--enable-short-tags' '--with-zlib=/opt/local' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/opt/local' '--with-curl=/opt/local' '--with-readline=/opt/local' '--with-libedit=/opt/local' '--enable-session' '--enable-phpdbg' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-opcache' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/opt/local' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/opt/local' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' +PHP_MAJOR_VERSION = 5 +PHP_MINOR_VERSION = 5 +PHP_RELEASE_VERSION = 17 +PHP_EXTRA_VERSION = +AWK = gawk +YACC = bison -y +RE2C = re2c +RE2C_FLAGS = +SHLIB_SUFFIX_NAME = dylib +SHLIB_DL_SUFFIX_NAME = so +PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo sapi/cli/ps_title.lo sapi/cli/php_cli_process_title.lo +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +php_fpm_systemd = simple +php_fpm_user = nobody +php_fpm_group = nobody +php_fpm_sysconfdir = /Users/c9s/.phpbrew/php/php-5.5.17/etc +php_fpm_localstatedir = /Users/c9s/.phpbrew/php/php-5.5.17/var +php_fpm_prefix = /Users/c9s/.phpbrew/php/php-5.5.17 +PHP_FPM_OBJS = sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_mach.lo +SAPI_FPM_PATH = sapi/fpm/php-fpm +BUILD_FPM = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_FPM_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(FPM_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) +PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo +SAPI_CGI_PATH = sapi/cgi/php-cgi +BUILD_CGI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_CGI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH) +PROG_SENDMAIL = /usr/sbin/sendmail +OPENSSL_SHARED_LIBADD = +SQLITE3_SHARED_LIBADD = +ZLIB_SHARED_LIBADD = +BZ2_SHARED_LIBADD = +CURL_SHARED_LIBADD = +DOM_SHARED_LIBADD = +FILTER_SHARED_LIBADD = +GETTEXT_SHARED_LIBADD = +INTL_SHARED_LIBADD = +JSON_SHARED_LIBADD = +MBSTRING_SHARED_LIBADD = +MCRYPT_SHARED_LIBADD = +MYSQL_SHARED_LIBADD = +MYSQLI_SHARED_LIBADD = +shared_objects_opcache = ext/opcache/ZendAccelerator.lo ext/opcache/zend_accelerator_blacklist.lo ext/opcache/zend_accelerator_debug.lo ext/opcache/zend_accelerator_hash.lo ext/opcache/zend_accelerator_module.lo ext/opcache/zend_persist.lo ext/opcache/zend_persist_calc.lo ext/opcache/zend_shared_alloc.lo ext/opcache/zend_accelerator_util_funcs.lo ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo ext/opcache/shared_alloc_posix.lo ext/opcache/Optimizer/zend_optimizer.lo +PDO_MYSQL_SHARED_LIBADD = +PDO_MYSQL_MODULE_TYPE = external +PDO_PGSQL_SHARED_LIBADD = +PDO_SQLITE_SHARED_LIBADD = +PGSQL_SHARED_LIBADD = +READLINE_SHARED_LIBADD = +SESSION_SHARED_LIBADD = +SIMPLEXML_SHARED_LIBADD = +SOAP_SHARED_LIBADD = +XML_SHARED_LIBADD = +XMLREADER_SHARED_LIBADD = +XMLWRITER_SHARED_LIBADD = +XSL_SHARED_LIBADD = +ZIP_SHARED_LIBADD = +PHP_INSTALLED_SAPIS = cli fpm cgi +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +PHP_SAPI_OBJS = main/internal_functions.lo +PHP_BINARY_OBJS = main/internal_functions_cli.lo +PHP_GLOBAL_OBJS = ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/share.lo ext/curl/curl_file.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/gettext/gettext.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/intl/php_intl.lo ext/intl/intl_error.lo ext/intl/intl_convert.lo ext/intl/intl_convertcpp.lo ext/intl/collator/collator.lo ext/intl/collator/collator_class.lo ext/intl/collator/collator_sort.lo ext/intl/collator/collator_convert.lo ext/intl/collator/collator_locale.lo ext/intl/collator/collator_compare.lo ext/intl/collator/collator_attr.lo ext/intl/collator/collator_create.lo ext/intl/collator/collator_is_numeric.lo ext/intl/collator/collator_error.lo ext/intl/common/common_error.lo ext/intl/common/common_enum.lo ext/intl/common/common_date.lo ext/intl/converter/converter.lo ext/intl/formatter/formatter.lo ext/intl/formatter/formatter_main.lo ext/intl/formatter/formatter_class.lo ext/intl/formatter/formatter_attr.lo ext/intl/formatter/formatter_data.lo ext/intl/formatter/formatter_format.lo ext/intl/formatter/formatter_parse.lo ext/intl/normalizer/normalizer.lo ext/intl/normalizer/normalizer_class.lo ext/intl/normalizer/normalizer_normalize.lo ext/intl/locale/locale.lo ext/intl/locale/locale_class.lo ext/intl/locale/locale_methods.lo ext/intl/dateformat/dateformat.lo ext/intl/dateformat/dateformat_class.lo ext/intl/dateformat/dateformat_attr.lo ext/intl/dateformat/dateformat_data.lo ext/intl/dateformat/dateformat_format.lo ext/intl/dateformat/dateformat_format_object.lo ext/intl/dateformat/dateformat_parse.lo ext/intl/dateformat/dateformat_create.lo ext/intl/dateformat/dateformat_attrcpp.lo ext/intl/dateformat/dateformat_helpers.lo ext/intl/msgformat/msgformat.lo ext/intl/msgformat/msgformat_attr.lo ext/intl/msgformat/msgformat_class.lo ext/intl/msgformat/msgformat_data.lo ext/intl/msgformat/msgformat_format.lo ext/intl/msgformat/msgformat_helpers.lo ext/intl/msgformat/msgformat_parse.lo ext/intl/grapheme/grapheme_string.lo ext/intl/grapheme/grapheme_util.lo ext/intl/resourcebundle/resourcebundle.lo ext/intl/resourcebundle/resourcebundle_class.lo ext/intl/resourcebundle/resourcebundle_iterator.lo ext/intl/transliterator/transliterator.lo ext/intl/transliterator/transliterator_class.lo ext/intl/transliterator/transliterator_methods.lo ext/intl/timezone/timezone_class.lo ext/intl/timezone/timezone_methods.lo ext/intl/calendar/calendar_class.lo ext/intl/calendar/calendar_methods.lo ext/intl/calendar/gregoriancalendar_methods.lo ext/intl/breakiterator/breakiterator_class.lo ext/intl/breakiterator/breakiterator_iterators.lo ext/intl/breakiterator/breakiterator_methods.lo ext/intl/breakiterator/rulebasedbreakiterator_methods.lo ext/intl/breakiterator/codepointiterator_internal.lo ext/intl/breakiterator/codepointiterator_methods.lo ext/intl/idn/idn.lo ext/intl/spoofchecker/spoofchecker_class.lo ext/intl/spoofchecker/spoofchecker.lo ext/intl/spoofchecker/spoofchecker_create.lo ext/intl/spoofchecker/spoofchecker_main.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/mysqli/mysqli_result_iterator.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_pgsql/pdo_pgsql.lo ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/readline/readline.lo ext/readline/readline_cli.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/sockets/multicast.lo ext/sockets/conversions.lo ext/sockets/sockaddr_conv.lo ext/sockets/sendrecvmsg.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo ext/mysqlnd/mysqlnd.lo ext/mysqlnd/mysqlnd_alloc.lo ext/mysqlnd/mysqlnd_bt.lo ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo ext/mysqlnd/mysqlnd_loaddata.lo ext/mysqlnd/mysqlnd_reverse_api.lo ext/mysqlnd/mysqlnd_net.lo ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_driver.lo ext/mysqlnd/mysqlnd_ext_plugin.lo ext/mysqlnd/mysqlnd_auth.lo ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/mysqlnd_plugin.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo +PHP_BINARIES = cli fpm cgi +PHP_MODULES = +PHP_ZEND_EX = $(phplibdir)/opcache.la +EXT_LIBS = +abs_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +abs_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +php_abs_top_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +php_abs_top_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +exec_prefix = ${prefix} +program_prefix = +program_suffix = +includedir = ${prefix}/include +libdir = ${exec_prefix}/lib/php +mandir = ${datarootdir}/man +phplibdir = /Users/c9s/.phpbrew/build/php-5.5.17/modules +phptempdir = /Users/c9s/.phpbrew/build/php-5.5.17/libs +prefix = /Users/c9s/.phpbrew/php/php-5.5.17 +localstatedir = ${prefix}/var +datadir = ${datarootdir} +datarootdir = /Users/c9s/.phpbrew/php/php-5.5.17/php +sysconfdir = ${prefix}/etc +EXEEXT = +CC = cc +CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static +CFLAGS_CLEAN = -g -O2 -fvisibility=hidden -DZTS +CPP = cc -E +CPPFLAGS = -no-cpp-precomp +CXX = g++ +CXXFLAGS = -g -O2 -prefer-non-pic -static +CXXFLAGS_CLEAN = -g -O2 +DEBUG_CFLAGS = +EXTENSION_DIR = /Users/c9s/.phpbrew/php/php-5.5.17/lib/php/extensions/no-debug-zts-20121212 +EXTRA_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LDFLAGS_PROGRAM = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LIBS = -lcrypto -lssl -lcrypto -lz -lexslt -lresolv -ledit -lncurses -lpq -lpq -lmcrypt -lltdl -lstdc++ -lintl -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lxslt +ZEND_EXTRA_LIBS = +INCLUDES = -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex -I/opt/local/include/libxml2 -I/opt/local/include -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl -I/opt/local/include/postgresql92 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -I/usr/include/libxml2 -I$(top_builddir)/TSRM -I$(top_builddir)/Zend +EXTRA_INCLUDES = +INCLUDE_PATH = .:/Users/c9s/.phpbrew/php/php-5.5.17/lib/php +INSTALL_IT = +LFLAGS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent --preserve-dup-deps +LN_S = ln -s +NATIVE_RPATHS = -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/local/lib/postgresql92 +PEAR_INSTALLDIR = /Users/c9s/.phpbrew/php/php-5.5.17/lib/php +PHP_BUILD_DATE = 2014-12-08 +PHP_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +PHP_LIBS = +OVERALL_TARGET = +PHP_RPATHS = -R /opt/local/lib -R /opt/local/lib/postgresql92 +PHP_SAPI = none +PHP_VERSION = 5.5.17 +PHP_VERSION_ID = 50517 +SHELL = /bin/sh +SHARED_LIBTOOL = $(LIBTOOL) +WARNING_LEVEL = +PHP_FRAMEWORKS = +PHP_FRAMEWORKPATH = +INSTALL_HEADERS = sapi/cli/cli.h ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h ext/date/lib/timelib_config.h ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/ ext/libxml/php_libxml.h ext/pcre/php_pcre.h ext/pcre/pcrelib/ ext/sqlite3/libsqlite/sqlite3.h ext/dom/xml_common.h ext/filter/php_filter.h ext/hash/php_hash.h ext/hash/php_hash_md.h ext/hash/php_hash_sha.h ext/hash/php_hash_ripemd.h ext/hash/php_hash_haval.h ext/hash/php_hash_tiger.h ext/hash/php_hash_gost.h ext/hash/php_hash_snefru.h ext/hash/php_hash_whirlpool.h ext/hash/php_hash_adler32.h ext/hash/php_hash_crc32.h ext/hash/php_hash_fnv.h ext/hash/php_hash_joaat.h ext/hash/php_hash_types.h ext/json/php_json.h ext/mbstring/oniguruma/oniguruma.h ext/mbstring/php_mbregex.h ext/mbstring/php_onig_compat.h ext/mbstring/libmbfl/config.h ext/mbstring/libmbfl/mbfl/eaw_table.h ext/mbstring/libmbfl/mbfl/mbfilter.h ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h ext/mbstring/libmbfl/mbfl/mbfilter_pass.h ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h ext/mbstring/libmbfl/mbfl/mbfl_allocators.h ext/mbstring/libmbfl/mbfl/mbfl_consts.h ext/mbstring/libmbfl/mbfl/mbfl_convert.h ext/mbstring/libmbfl/mbfl/mbfl_defs.h ext/mbstring/libmbfl/mbfl/mbfl_encoding.h ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h ext/mbstring/libmbfl/mbfl/mbfl_ident.h ext/mbstring/libmbfl/mbfl/mbfl_language.h ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h ext/mbstring/libmbfl/mbfl/mbfl_string.h ext/mbstring/mbstring.h ext/mysqli/php_mysqli_structs.h ext/mysqli/mysqli_mysqlnd.h ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/phar/php_phar.h ext/session/php_session.h ext/session/mod_files.h ext/session/mod_user.h ext/sockets//php_sockets.h ext/spl/php_spl.h ext/spl/spl_array.h ext/spl/spl_directory.h ext/spl/spl_engine.h ext/spl/spl_exceptions.h ext/spl/spl_functions.h ext/spl/spl_iterators.h ext/spl/spl_observer.h ext/spl/spl_dllist.h ext/spl/spl_heap.h ext/spl/spl_fixedarray.h ext/standard/ ext/xml/ ext/mysqlnd/ Zend/ TSRM/ include/ main/ main/streams/ +ZEND_EXT_TYPE = zend_extension +all_targets = $(OVERALL_TARGET) $(PHP_MODULES) $(PHP_ZEND_EX) $(PHP_BINARIES) pharcmd +install_targets = install-modules install-binaries install-build install-headers install-programs install-pear install-pharcmd +install_binary_targets = install-cli install-fpm install-cgi +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h + rm -f php5.spec main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/mysqlnd/php_mysqlnd_config.h + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: +cli: $(SAPI_CLI_PATH) + +$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS) + $(BUILD_CLI) + +install-cli: $(SAPI_CLI_PATH) + @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @$(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT) + @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1 + +fpm: $(SAPI_FPM_PATH) + +$(SAPI_FPM_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FPM_OBJS) + $(BUILD_FPM) + +install-fpm: $(SAPI_FPM_PATH) + @echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(sbindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir) + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run + @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) + + @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : + + @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8 + @$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8 + + @echo "Installing PHP FPM status page: $(INSTALL_ROOT)$(datadir)/fpm/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm + @$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html +cgi: $(SAPI_CGI_PATH) + +$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS) + $(BUILD_CGI) + +install-cgi: $(SAPI_CGI_PATH) + @echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT) + @echo "Installing PHP CGI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cgi/php-cgi.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php-cgi$(program_suffix).1 + + +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/data_file.c +phpincludedir=$(prefix)/include/php + +PDO_HEADER_FILES= \ + php_pdo.h \ + php_pdo_driver.h + + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.re + (cd $(top_srcdir); $(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re) + +install-pdo-headers: + @echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo + @for f in $(PDO_HEADER_FILES); do \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + else \ + echo "hmmm"; \ + fi \ + done; + +# mini hack +install: $(all_targets) $(install_targets) install-pdo-headers + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re) + +pharcmd: ext/phar/phar.php ext/phar/phar.phar + +PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' +PHP_PHARCMD_EXECUTABLE = ` \ + if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ + $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ + if test "x$(PHP_MODULES)" != "x"; then \ + $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ + for i in bz2 zlib phar; do \ + if test -f "$(top_builddir)/modules/$$i.la"; then \ + . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + fi; \ + done; \ + fi; \ + else \ + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ + fi;` +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + +ext/phar/phar/phar.inc: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.inc + -@test -d ext/phar/phar || mkdir ext/phar/phar + -@test -f ext/phar/phar/phar.inc || cp /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.inc ext/phar/phar/phar.inc + +ext/phar/phar.php: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/build_precommand.php /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.php" + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/build_precommand.php > ext/phar/phar.php + +ext/phar/phar.phar: ext/phar/phar.php ext/phar/phar/phar.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.phar" + -@rm -f ext/phar/phar.phar + -@rm -f /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.phar + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_BANG)" /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/ + -@chmod +x ext/phar/phar.phar + +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + $(INSTALL) ext/phar/phar.phar $(INSTALL_ROOT)$(bindir) + -@rm -f $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f $(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) ext/phar/phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.1 + @$(INSTALL_DATA) ext/phar/phar.phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.phar.1 + + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) + +ext/standard/info.lo: ext/standard/../../main/build-defs.h + +ext/standard/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h +$(top_srcdir)/Zend/zend_language_parser.c: +$(top_srcdir)/Zend/zend_language_scanner.c: +ext/tokenizer/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c +# -*- makefile -*- + +peardir=$(PEAR_INSTALLDIR) + +# Skip all php.ini files altogether +PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 + +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` +PEAR_PREFIX = -dp a${program_prefix} +PEAR_SUFFIX = -ds a$(program_suffix) + +install-pear-installer: $(SAPI_CLI_PATH) + @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + +install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" + @if test ! -f pear/install-pear-nozlib.phar; then \ + if test -f /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear-nozlib.phar; then \ + cp /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + else \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P pear/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o pear/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n /Users/c9s/.phpbrew/build/php-5.5.17/pear/fetch.php http://pear.php.net/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + fi \ + fi \ + fi + @if test -f pear/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ + $(MAKE) -s install-pear-installer; \ + else \ + cat /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear.txt; \ + fi + + +# +# Build environment install +# + +phpincludedir = $(includedir)/php +phpbuilddir = $(libdir)/build + +BUILD_FILES = \ + scripts/phpize.m4 \ + build/mkdep.awk \ + build/scan_makefile_in.awk \ + build/libtool.m4 \ + Makefile.global \ + acinclude.m4 \ + ltmain.sh \ + run-tests.php + +BUILD_FILES_EXEC = \ + build/shtool \ + config.guess \ + config.sub + +bin_SCRIPTS = phpize php-config +man_PAGES = phpize php-config + +install-build: + @echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ + (cd $(top_srcdir) && \ + $(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \ + $(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) + +install-programs: scripts/phpize scripts/php-config + @echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @for prog in $(bin_SCRIPTS); do \ + echo " program: $(program_prefix)$${prog}$(program_suffix)"; \ + $(INSTALL) -m 755 scripts/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \ + done + @echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @for page in $(man_PAGES); do \ + echo " page: $(program_prefix)$${page}$(program_suffix).1"; \ + $(INSTALL_DATA) scripts/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \ + done + +scripts/phpize: /Users/c9s/.phpbrew/build/php-5.5.17/scripts/phpize.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +scripts/php-config: /Users/c9s/.phpbrew/build/php-5.5.17/scripts/php-config.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +# +# Zend +# + +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.h + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l) + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.y + @$(YACC) -p zend -v -d /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.h: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.y + @$(YACC) -p ini_ -v -d /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l) + +Zend/zend_indent.lo Zend/zend_highlight.lo Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_execute.h /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.h +sapi/cli/php_cli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo +sapi/cli/php_http_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_http_parser.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_http_parser.c -o sapi/cli/php_http_parser.lo +sapi/cli/php_cli_server.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_server.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_server.c -o sapi/cli/php_cli_server.lo +sapi/cli/ps_title.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ps_title.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ps_title.c -o sapi/cli/ps_title.lo +sapi/cli/php_cli_process_title.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_process_title.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_process_title.c -o sapi/cli/php_cli_process_title.lo +sapi/fpm/fpm/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo +sapi/fpm/fpm/fpm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo +sapi/fpm/fpm/fpm_children.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_children.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo +sapi/fpm/fpm/fpm_cleanup.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_cleanup.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_cleanup.c -o sapi/fpm/fpm/fpm_cleanup.lo +sapi/fpm/fpm/fpm_clock.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_clock.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_clock.c -o sapi/fpm/fpm/fpm_clock.lo +sapi/fpm/fpm/fpm_conf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_conf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_conf.c -o sapi/fpm/fpm/fpm_conf.lo +sapi/fpm/fpm/fpm_env.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_env.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_env.c -o sapi/fpm/fpm/fpm_env.lo +sapi/fpm/fpm/fpm_events.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_events.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_events.c -o sapi/fpm/fpm/fpm_events.lo +sapi/fpm/fpm/fpm_log.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_log.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_log.c -o sapi/fpm/fpm/fpm_log.lo +sapi/fpm/fpm/fpm_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_main.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo +sapi/fpm/fpm/fpm_php.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo +sapi/fpm/fpm/fpm_php_trace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php_trace.c -o sapi/fpm/fpm/fpm_php_trace.lo +sapi/fpm/fpm/fpm_process_ctl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_process_ctl.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_process_ctl.c -o sapi/fpm/fpm/fpm_process_ctl.lo +sapi/fpm/fpm/fpm_request.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_request.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_request.c -o sapi/fpm/fpm/fpm_request.lo +sapi/fpm/fpm/fpm_shm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_shm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_shm.c -o sapi/fpm/fpm/fpm_shm.lo +sapi/fpm/fpm/fpm_scoreboard.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_scoreboard.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_scoreboard.c -o sapi/fpm/fpm/fpm_scoreboard.lo +sapi/fpm/fpm/fpm_signals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_signals.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_signals.c -o sapi/fpm/fpm/fpm_signals.lo +sapi/fpm/fpm/fpm_sockets.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_sockets.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_sockets.c -o sapi/fpm/fpm/fpm_sockets.lo +sapi/fpm/fpm/fpm_status.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_status.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_status.c -o sapi/fpm/fpm/fpm_status.lo +sapi/fpm/fpm/fpm_stdio.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_stdio.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_stdio.c -o sapi/fpm/fpm/fpm_stdio.lo +sapi/fpm/fpm/fpm_unix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_unix.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_unix.c -o sapi/fpm/fpm/fpm_unix.lo +sapi/fpm/fpm/fpm_worker_pool.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_worker_pool.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_worker_pool.c -o sapi/fpm/fpm/fpm_worker_pool.lo +sapi/fpm/fpm/zlog.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/zlog.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/zlog.c -o sapi/fpm/fpm/zlog.lo +sapi/fpm/fpm/events/select.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/select.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/select.c -o sapi/fpm/fpm/events/select.lo +sapi/fpm/fpm/events/poll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/poll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/poll.c -o sapi/fpm/fpm/events/poll.lo +sapi/fpm/fpm/events/epoll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/epoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/epoll.c -o sapi/fpm/fpm/events/epoll.lo +sapi/fpm/fpm/events/kqueue.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/kqueue.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/kqueue.c -o sapi/fpm/fpm/events/kqueue.lo +sapi/fpm/fpm/events/devpoll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/devpoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/devpoll.c -o sapi/fpm/fpm/events/devpoll.lo +sapi/fpm/fpm/events/port.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/port.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/port.c -o sapi/fpm/fpm/events/port.lo +sapi/fpm/fpm/fpm_trace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace.c -o sapi/fpm/fpm/fpm_trace.lo +sapi/fpm/fpm/fpm_trace_mach.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace_mach.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace_mach.c -o sapi/fpm/fpm/fpm_trace_mach.lo +sapi/cgi/cgi_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/cgi_main.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cgi/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/cgi_main.c -o sapi/cgi/cgi_main.lo +sapi/cgi/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cgi/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/fastcgi.c -o sapi/cgi/fastcgi.lo +ext/date/php_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/php_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/php_date.c -o ext/date/php_date.lo +ext/date/lib/astro.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/astro.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/astro.c -o ext/date/lib/astro.lo +ext/date/lib/dow.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/dow.c -o ext/date/lib/dow.lo +ext/date/lib/parse_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo +ext/date/lib/parse_tz.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_tz.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo +ext/date/lib/timelib.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/timelib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/timelib.c -o ext/date/lib/timelib.lo +ext/date/lib/tm2unixtime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/tm2unixtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/tm2unixtime.c -o ext/date/lib/tm2unixtime.lo +ext/date/lib/unixtime2tm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/unixtime2tm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/unixtime2tm.c -o ext/date/lib/unixtime2tm.lo +ext/date/lib/parse_iso_intervals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_iso_intervals.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_iso_intervals.c -o ext/date/lib/parse_iso_intervals.lo +ext/date/lib/interval.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/interval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/interval.c -o ext/date/lib/interval.lo +ext/ereg/ereg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ereg.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ereg.c -o ext/ereg/ereg.lo +ext/ereg/regex/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regcomp.c -o ext/ereg/regex/regcomp.lo +ext/ereg/regex/regexec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regexec.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regexec.c -o ext/ereg/regex/regexec.lo +ext/ereg/regex/regerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regerror.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regerror.c -o ext/ereg/regex/regerror.lo +ext/ereg/regex/regfree.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regfree.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regfree.c -o ext/ereg/regex/regfree.lo +ext/libxml/libxml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/libxml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/libxml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/libxml.c -o ext/libxml/libxml.lo +ext/openssl/openssl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/openssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/openssl.c -o ext/openssl/openssl.lo +ext/openssl/xp_ssl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/xp_ssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo +ext/pcre/pcrelib/pcre_chartables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_chartables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo +ext/pcre/pcrelib/pcre_ucd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ucd.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ucd.c -o ext/pcre/pcrelib/pcre_ucd.lo +ext/pcre/pcrelib/pcre_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_compile.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_compile.c -o ext/pcre/pcrelib/pcre_compile.lo +ext/pcre/pcrelib/pcre_config.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_config.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_config.c -o ext/pcre/pcrelib/pcre_config.lo +ext/pcre/pcrelib/pcre_exec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_exec.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo +ext/pcre/pcrelib/pcre_fullinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_fullinfo.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_fullinfo.c -o ext/pcre/pcrelib/pcre_fullinfo.lo +ext/pcre/pcrelib/pcre_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_get.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_get.c -o ext/pcre/pcrelib/pcre_get.lo +ext/pcre/pcrelib/pcre_globals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_globals.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_globals.c -o ext/pcre/pcrelib/pcre_globals.lo +ext/pcre/pcrelib/pcre_maketables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_maketables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_maketables.c -o ext/pcre/pcrelib/pcre_maketables.lo +ext/pcre/pcrelib/pcre_newline.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_newline.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_newline.c -o ext/pcre/pcrelib/pcre_newline.lo +ext/pcre/pcrelib/pcre_ord2utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ord2utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ord2utf8.c -o ext/pcre/pcrelib/pcre_ord2utf8.lo +ext/pcre/pcrelib/pcre_refcount.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_refcount.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_refcount.c -o ext/pcre/pcrelib/pcre_refcount.lo +ext/pcre/pcrelib/pcre_study.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_study.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_study.c -o ext/pcre/pcrelib/pcre_study.lo +ext/pcre/pcrelib/pcre_tables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_tables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_tables.c -o ext/pcre/pcrelib/pcre_tables.lo +ext/pcre/pcrelib/pcre_valid_utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_valid_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_valid_utf8.c -o ext/pcre/pcrelib/pcre_valid_utf8.lo +ext/pcre/pcrelib/pcre_version.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_version.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_version.c -o ext/pcre/pcrelib/pcre_version.lo +ext/pcre/pcrelib/pcre_xclass.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_xclass.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_xclass.c -o ext/pcre/pcrelib/pcre_xclass.lo +ext/pcre/php_pcre.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/php_pcre.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo +ext/sqlite3/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo +ext/sqlite3/libsqlite/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo +ext/zlib/zlib.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib.c -o ext/zlib/zlib.lo +ext/zlib/zlib_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo +ext/zlib/zlib_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_filter.c -o ext/zlib/zlib_filter.lo +ext/bcmath/bcmath.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/bcmath.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo +ext/bcmath/libbcmath/src/add.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/add.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/add.c -o ext/bcmath/libbcmath/src/add.lo +ext/bcmath/libbcmath/src/div.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/div.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/div.c -o ext/bcmath/libbcmath/src/div.lo +ext/bcmath/libbcmath/src/init.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/init.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/init.c -o ext/bcmath/libbcmath/src/init.lo +ext/bcmath/libbcmath/src/neg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/neg.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo +ext/bcmath/libbcmath/src/outofmem.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/outofmem.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/outofmem.c -o ext/bcmath/libbcmath/src/outofmem.lo +ext/bcmath/libbcmath/src/raisemod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raisemod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo +ext/bcmath/libbcmath/src/rt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rt.c -o ext/bcmath/libbcmath/src/rt.lo +ext/bcmath/libbcmath/src/sub.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sub.c -o ext/bcmath/libbcmath/src/sub.lo +ext/bcmath/libbcmath/src/compare.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/compare.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/compare.c -o ext/bcmath/libbcmath/src/compare.lo +ext/bcmath/libbcmath/src/divmod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/divmod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/divmod.c -o ext/bcmath/libbcmath/src/divmod.lo +ext/bcmath/libbcmath/src/int2num.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/int2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/int2num.c -o ext/bcmath/libbcmath/src/int2num.lo +ext/bcmath/libbcmath/src/num2long.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2long.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2long.c -o ext/bcmath/libbcmath/src/num2long.lo +ext/bcmath/libbcmath/src/output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/output.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/output.c -o ext/bcmath/libbcmath/src/output.lo +ext/bcmath/libbcmath/src/recmul.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/recmul.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/recmul.c -o ext/bcmath/libbcmath/src/recmul.lo +ext/bcmath/libbcmath/src/sqrt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sqrt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sqrt.c -o ext/bcmath/libbcmath/src/sqrt.lo +ext/bcmath/libbcmath/src/zero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/zero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/zero.c -o ext/bcmath/libbcmath/src/zero.lo +ext/bcmath/libbcmath/src/debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/debug.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/debug.c -o ext/bcmath/libbcmath/src/debug.lo +ext/bcmath/libbcmath/src/doaddsub.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/doaddsub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/doaddsub.c -o ext/bcmath/libbcmath/src/doaddsub.lo +ext/bcmath/libbcmath/src/nearzero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/nearzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/nearzero.c -o ext/bcmath/libbcmath/src/nearzero.lo +ext/bcmath/libbcmath/src/num2str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2str.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2str.c -o ext/bcmath/libbcmath/src/num2str.lo +ext/bcmath/libbcmath/src/raise.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raise.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raise.c -o ext/bcmath/libbcmath/src/raise.lo +ext/bcmath/libbcmath/src/rmzero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rmzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rmzero.c -o ext/bcmath/libbcmath/src/rmzero.lo +ext/bcmath/libbcmath/src/str2num.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/str2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/str2num.c -o ext/bcmath/libbcmath/src/str2num.lo +ext/bz2/bz2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2.c -o ext/bz2/bz2.lo +ext/bz2/bz2_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo +ext/calendar/calendar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/calendar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/calendar.c -o ext/calendar/calendar.lo +ext/calendar/dow.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/dow.c -o ext/calendar/dow.lo +ext/calendar/french.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/french.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/french.c -o ext/calendar/french.lo +ext/calendar/gregor.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/gregor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/gregor.c -o ext/calendar/gregor.lo +ext/calendar/jewish.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/jewish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/jewish.c -o ext/calendar/jewish.lo +ext/calendar/julian.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/julian.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/julian.c -o ext/calendar/julian.lo +ext/calendar/easter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/easter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/easter.c -o ext/calendar/easter.lo +ext/calendar/cal_unix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/cal_unix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/cal_unix.c -o ext/calendar/cal_unix.lo +ext/ctype/ctype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ctype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/ctype/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ctype.c -o ext/ctype/ctype.lo +ext/curl/interface.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/interface.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/interface.c -o ext/curl/interface.lo +ext/curl/multi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/multi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/multi.c -o ext/curl/multi.lo +ext/curl/share.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/share.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/share.c -o ext/curl/share.lo +ext/curl/curl_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/curl_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/curl_file.c -o ext/curl/curl_file.lo +ext/dom/php_dom.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/php_dom.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/php_dom.c -o ext/dom/php_dom.lo +ext/dom/attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/attr.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/attr.c -o ext/dom/attr.lo +ext/dom/document.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/document.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/document.c -o ext/dom/document.lo +ext/dom/domerrorhandler.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerrorhandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerrorhandler.c -o ext/dom/domerrorhandler.lo +ext/dom/domstringlist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domstringlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domstringlist.c -o ext/dom/domstringlist.lo +ext/dom/domexception.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domexception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domexception.c -o ext/dom/domexception.lo +ext/dom/namelist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namelist.c -o ext/dom/namelist.lo +ext/dom/processinginstruction.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/processinginstruction.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/processinginstruction.c -o ext/dom/processinginstruction.lo +ext/dom/cdatasection.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/cdatasection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/cdatasection.c -o ext/dom/cdatasection.lo +ext/dom/documentfragment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documentfragment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documentfragment.c -o ext/dom/documentfragment.lo +ext/dom/domimplementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo +ext/dom/element.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/element.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/element.c -o ext/dom/element.lo +ext/dom/node.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/node.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/node.c -o ext/dom/node.lo +ext/dom/string_extend.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/string_extend.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/string_extend.c -o ext/dom/string_extend.lo +ext/dom/characterdata.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/characterdata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/characterdata.c -o ext/dom/characterdata.lo +ext/dom/documenttype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documenttype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documenttype.c -o ext/dom/documenttype.lo +ext/dom/domimplementationlist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo +ext/dom/entity.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entity.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entity.c -o ext/dom/entity.lo +ext/dom/nodelist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/nodelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/nodelist.c -o ext/dom/nodelist.lo +ext/dom/text.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/text.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/text.c -o ext/dom/text.lo +ext/dom/comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/comment.c -o ext/dom/comment.lo +ext/dom/domconfiguration.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domconfiguration.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domconfiguration.c -o ext/dom/domconfiguration.lo +ext/dom/domimplementationsource.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationsource.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationsource.c -o ext/dom/domimplementationsource.lo +ext/dom/entityreference.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entityreference.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entityreference.c -o ext/dom/entityreference.lo +ext/dom/notation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/notation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/notation.c -o ext/dom/notation.lo +ext/dom/xpath.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/xpath.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/xpath.c -o ext/dom/xpath.lo +ext/dom/dom_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/dom_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/dom_iterators.c -o ext/dom/dom_iterators.lo +ext/dom/typeinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/typeinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/typeinfo.c -o ext/dom/typeinfo.lo +ext/dom/domerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerror.c -o ext/dom/domerror.lo +ext/dom/domlocator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domlocator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domlocator.c -o ext/dom/domlocator.lo +ext/dom/namednodemap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namednodemap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namednodemap.c -o ext/dom/namednodemap.lo +ext/dom/userdatahandler.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/userdatahandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo +ext/exif/exif.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/exif.c + $(LIBTOOL) --mode=compile $(CC) -Iext/exif/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/exif.c -o ext/exif/exif.lo +ext/fileinfo/fileinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/fileinfo.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apprentice.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo +ext/fileinfo/libmagic/apptype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apptype.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apptype.c -o ext/fileinfo/libmagic/apptype.lo +ext/fileinfo/libmagic/ascmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/ascmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/ascmagic.c -o ext/fileinfo/libmagic/ascmagic.lo +ext/fileinfo/libmagic/cdf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf.c -o ext/fileinfo/libmagic/cdf.lo +ext/fileinfo/libmagic/cdf_time.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf_time.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf_time.c -o ext/fileinfo/libmagic/cdf_time.lo +ext/fileinfo/libmagic/compress.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/compress.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/compress.c -o ext/fileinfo/libmagic/compress.lo +ext/fileinfo/libmagic/encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/encoding.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo +ext/fileinfo/libmagic/fsmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/fsmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/fsmagic.c -o ext/fileinfo/libmagic/fsmagic.lo +ext/fileinfo/libmagic/funcs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/funcs.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/funcs.c -o ext/fileinfo/libmagic/funcs.lo +ext/fileinfo/libmagic/is_tar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/is_tar.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/is_tar.c -o ext/fileinfo/libmagic/is_tar.lo +ext/fileinfo/libmagic/magic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/magic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/magic.c -o ext/fileinfo/libmagic/magic.lo +ext/fileinfo/libmagic/print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/print.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/print.c -o ext/fileinfo/libmagic/print.lo +ext/fileinfo/libmagic/readcdf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readcdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readcdf.c -o ext/fileinfo/libmagic/readcdf.lo +ext/fileinfo/libmagic/readelf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readelf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo +ext/fileinfo/libmagic/softmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/softmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo +ext/filter/filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/filter.c -o ext/filter/filter.lo +ext/filter/sanitizing_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/sanitizing_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/sanitizing_filters.c -o ext/filter/sanitizing_filters.lo +ext/filter/logical_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/logical_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/logical_filters.c -o ext/filter/logical_filters.lo +ext/filter/callback_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/callback_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/callback_filter.c -o ext/filter/callback_filter.lo +ext/gettext/gettext.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/gettext.c + $(LIBTOOL) --mode=compile $(CC) -Iext/gettext/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/gettext.c -o ext/gettext/gettext.lo +ext/hash/hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash.c -o ext/hash/hash.lo +ext/hash/hash_md.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_md.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_md.c -o ext/hash/hash_md.lo +ext/hash/hash_sha.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_sha.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_sha.c -o ext/hash/hash_sha.lo +ext/hash/hash_ripemd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_ripemd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_ripemd.c -o ext/hash/hash_ripemd.lo +ext/hash/hash_haval.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_haval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_haval.c -o ext/hash/hash_haval.lo +ext/hash/hash_tiger.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_tiger.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_tiger.c -o ext/hash/hash_tiger.lo +ext/hash/hash_gost.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_gost.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_gost.c -o ext/hash/hash_gost.lo +ext/hash/hash_snefru.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_snefru.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_snefru.c -o ext/hash/hash_snefru.lo +ext/hash/hash_whirlpool.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_whirlpool.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_whirlpool.c -o ext/hash/hash_whirlpool.lo +ext/hash/hash_adler32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_adler32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_adler32.c -o ext/hash/hash_adler32.lo +ext/hash/hash_crc32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_crc32.c -o ext/hash/hash_crc32.lo +ext/hash/hash_fnv.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_fnv.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_fnv.c -o ext/hash/hash_fnv.lo +ext/hash/hash_joaat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_joaat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_joaat.c -o ext/hash/hash_joaat.lo +ext/intl/php_intl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/php_intl.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/php_intl.c -o ext/intl/php_intl.lo +ext/intl/intl_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_error.c -o ext/intl/intl_error.lo +ext/intl/intl_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convert.c -o ext/intl/intl_convert.lo +ext/intl/intl_convertcpp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convertcpp.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo +ext/intl/collator/collator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo +ext/intl/collator/collator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_class.c -o ext/intl/collator/collator_class.lo +ext/intl/collator/collator_sort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_sort.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo +ext/intl/collator/collator_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_convert.c -o ext/intl/collator/collator_convert.lo +ext/intl/collator/collator_locale.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_locale.c -o ext/intl/collator/collator_locale.lo +ext/intl/collator/collator_compare.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_compare.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_compare.c -o ext/intl/collator/collator_compare.lo +ext/intl/collator/collator_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_attr.c -o ext/intl/collator/collator_attr.lo +ext/intl/collator/collator_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_create.c -o ext/intl/collator/collator_create.lo +ext/intl/collator/collator_is_numeric.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_is_numeric.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_is_numeric.c -o ext/intl/collator/collator_is_numeric.lo +ext/intl/collator/collator_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_error.c -o ext/intl/collator/collator_error.lo +ext/intl/common/common_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_error.c -o ext/intl/common/common_error.lo +ext/intl/common/common_enum.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_enum.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_enum.cpp -o ext/intl/common/common_enum.lo +ext/intl/common/common_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_date.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_date.cpp -o ext/intl/common/common_date.lo +ext/intl/converter/converter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/converter/converter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/converter/converter.c -o ext/intl/converter/converter.lo +ext/intl/formatter/formatter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter.c -o ext/intl/formatter/formatter.lo +ext/intl/formatter/formatter_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_main.c -o ext/intl/formatter/formatter_main.lo +ext/intl/formatter/formatter_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_class.c -o ext/intl/formatter/formatter_class.lo +ext/intl/formatter/formatter_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_attr.c -o ext/intl/formatter/formatter_attr.lo +ext/intl/formatter/formatter_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_data.c -o ext/intl/formatter/formatter_data.lo +ext/intl/formatter/formatter_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_format.c -o ext/intl/formatter/formatter_format.lo +ext/intl/formatter/formatter_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_parse.c -o ext/intl/formatter/formatter_parse.lo +ext/intl/normalizer/normalizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer.c -o ext/intl/normalizer/normalizer.lo +ext/intl/normalizer/normalizer_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_class.c -o ext/intl/normalizer/normalizer_class.lo +ext/intl/normalizer/normalizer_normalize.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_normalize.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_normalize.c -o ext/intl/normalizer/normalizer_normalize.lo +ext/intl/locale/locale.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale.c -o ext/intl/locale/locale.lo +ext/intl/locale/locale_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_class.c -o ext/intl/locale/locale_class.lo +ext/intl/locale/locale_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_methods.c -o ext/intl/locale/locale_methods.lo +ext/intl/dateformat/dateformat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat.c -o ext/intl/dateformat/dateformat.lo +ext/intl/dateformat/dateformat_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_class.c -o ext/intl/dateformat/dateformat_class.lo +ext/intl/dateformat/dateformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attr.c -o ext/intl/dateformat/dateformat_attr.lo +ext/intl/dateformat/dateformat_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_data.c -o ext/intl/dateformat/dateformat_data.lo +ext/intl/dateformat/dateformat_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format.c -o ext/intl/dateformat/dateformat_format.lo +ext/intl/dateformat/dateformat_format_object.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format_object.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format_object.cpp -o ext/intl/dateformat/dateformat_format_object.lo +ext/intl/dateformat/dateformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_parse.c -o ext/intl/dateformat/dateformat_parse.lo +ext/intl/dateformat/dateformat_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_create.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_create.cpp -o ext/intl/dateformat/dateformat_create.lo +ext/intl/dateformat/dateformat_attrcpp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attrcpp.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attrcpp.cpp -o ext/intl/dateformat/dateformat_attrcpp.lo +ext/intl/dateformat/dateformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_helpers.cpp -o ext/intl/dateformat/dateformat_helpers.lo +ext/intl/msgformat/msgformat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat.c -o ext/intl/msgformat/msgformat.lo +ext/intl/msgformat/msgformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_attr.c -o ext/intl/msgformat/msgformat_attr.lo +ext/intl/msgformat/msgformat_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_class.c -o ext/intl/msgformat/msgformat_class.lo +ext/intl/msgformat/msgformat_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_data.c -o ext/intl/msgformat/msgformat_data.lo +ext/intl/msgformat/msgformat_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_format.c -o ext/intl/msgformat/msgformat_format.lo +ext/intl/msgformat/msgformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_helpers.cpp -o ext/intl/msgformat/msgformat_helpers.lo +ext/intl/msgformat/msgformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_parse.c -o ext/intl/msgformat/msgformat_parse.lo +ext/intl/grapheme/grapheme_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_string.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_string.c -o ext/intl/grapheme/grapheme_string.lo +ext/intl/grapheme/grapheme_util.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_util.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_util.c -o ext/intl/grapheme/grapheme_util.lo +ext/intl/resourcebundle/resourcebundle.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle.c -o ext/intl/resourcebundle/resourcebundle.lo +ext/intl/resourcebundle/resourcebundle_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_class.c -o ext/intl/resourcebundle/resourcebundle_class.lo +ext/intl/resourcebundle/resourcebundle_iterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_iterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_iterator.c -o ext/intl/resourcebundle/resourcebundle_iterator.lo +ext/intl/transliterator/transliterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator.c -o ext/intl/transliterator/transliterator.lo +ext/intl/transliterator/transliterator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_class.c -o ext/intl/transliterator/transliterator_class.lo +ext/intl/transliterator/transliterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_methods.c -o ext/intl/transliterator/transliterator_methods.lo +ext/intl/timezone/timezone_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_class.cpp -o ext/intl/timezone/timezone_class.lo +ext/intl/timezone/timezone_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_methods.cpp -o ext/intl/timezone/timezone_methods.lo +ext/intl/calendar/calendar_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_class.cpp -o ext/intl/calendar/calendar_class.lo +ext/intl/calendar/calendar_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_methods.cpp -o ext/intl/calendar/calendar_methods.lo +ext/intl/calendar/gregoriancalendar_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/gregoriancalendar_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/gregoriancalendar_methods.cpp -o ext/intl/calendar/gregoriancalendar_methods.lo +ext/intl/breakiterator/breakiterator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_class.cpp -o ext/intl/breakiterator/breakiterator_class.lo +ext/intl/breakiterator/breakiterator_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_iterators.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_iterators.cpp -o ext/intl/breakiterator/breakiterator_iterators.lo +ext/intl/breakiterator/breakiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_methods.cpp -o ext/intl/breakiterator/breakiterator_methods.lo +ext/intl/breakiterator/rulebasedbreakiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp -o ext/intl/breakiterator/rulebasedbreakiterator_methods.lo +ext/intl/breakiterator/codepointiterator_internal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_internal.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_internal.cpp -o ext/intl/breakiterator/codepointiterator_internal.lo +ext/intl/breakiterator/codepointiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_methods.cpp -o ext/intl/breakiterator/codepointiterator_methods.lo +ext/intl/idn/idn.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/idn/idn.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/idn/idn.c -o ext/intl/idn/idn.lo +ext/intl/spoofchecker/spoofchecker_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_class.c -o ext/intl/spoofchecker/spoofchecker_class.lo +ext/intl/spoofchecker/spoofchecker.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker.c -o ext/intl/spoofchecker/spoofchecker.lo +ext/intl/spoofchecker/spoofchecker_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_create.c -o ext/intl/spoofchecker/spoofchecker_create.lo +ext/intl/spoofchecker/spoofchecker_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_main.c -o ext/intl/spoofchecker/spoofchecker_main.lo +ext/json/json.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/json.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/json.c -o ext/json/json.lo +ext/json/utf8_decode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/utf8_decode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/utf8_decode.c -o ext/json/utf8_decode.lo +ext/json/JSON_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/JSON_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/JSON_parser.c -o ext/json/JSON_parser.lo +ext/mbstring/oniguruma/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo +ext/mbstring/oniguruma/regerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regerror.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo +ext/mbstring/oniguruma/regexec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regexec.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regexec.c -o ext/mbstring/oniguruma/regexec.lo +ext/mbstring/oniguruma/reggnu.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/reggnu.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/reggnu.c -o ext/mbstring/oniguruma/reggnu.lo +ext/mbstring/oniguruma/regparse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regparse.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo +ext/mbstring/oniguruma/regenc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regenc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regenc.c -o ext/mbstring/oniguruma/regenc.lo +ext/mbstring/oniguruma/regext.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regext.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regext.c -o ext/mbstring/oniguruma/regext.lo +ext/mbstring/oniguruma/regsyntax.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regsyntax.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regsyntax.c -o ext/mbstring/oniguruma/regsyntax.lo +ext/mbstring/oniguruma/regtrav.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regtrav.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regtrav.c -o ext/mbstring/oniguruma/regtrav.lo +ext/mbstring/oniguruma/regversion.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regversion.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regversion.c -o ext/mbstring/oniguruma/regversion.lo +ext/mbstring/oniguruma/st.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/st.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/st.c -o ext/mbstring/oniguruma/st.lo +ext/mbstring/oniguruma/enc/unicode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/unicode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo +ext/mbstring/oniguruma/enc/ascii.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/ascii.c -o ext/mbstring/oniguruma/enc/ascii.lo +ext/mbstring/oniguruma/enc/utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf8.c -o ext/mbstring/oniguruma/enc/utf8.lo +ext/mbstring/oniguruma/enc/euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_jp.c -o ext/mbstring/oniguruma/enc/euc_jp.lo +ext/mbstring/oniguruma/enc/euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_tw.c -o ext/mbstring/oniguruma/enc/euc_tw.lo +ext/mbstring/oniguruma/enc/euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_kr.c -o ext/mbstring/oniguruma/enc/euc_kr.lo +ext/mbstring/oniguruma/enc/sjis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/sjis.c -o ext/mbstring/oniguruma/enc/sjis.lo +ext/mbstring/oniguruma/enc/iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_1.c -o ext/mbstring/oniguruma/enc/iso8859_1.lo +ext/mbstring/oniguruma/enc/iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_2.c -o ext/mbstring/oniguruma/enc/iso8859_2.lo +ext/mbstring/oniguruma/enc/iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_3.c -o ext/mbstring/oniguruma/enc/iso8859_3.lo +ext/mbstring/oniguruma/enc/iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_4.c -o ext/mbstring/oniguruma/enc/iso8859_4.lo +ext/mbstring/oniguruma/enc/iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_5.c -o ext/mbstring/oniguruma/enc/iso8859_5.lo +ext/mbstring/oniguruma/enc/iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_6.c -o ext/mbstring/oniguruma/enc/iso8859_6.lo +ext/mbstring/oniguruma/enc/iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_7.c -o ext/mbstring/oniguruma/enc/iso8859_7.lo +ext/mbstring/oniguruma/enc/iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_8.c -o ext/mbstring/oniguruma/enc/iso8859_8.lo +ext/mbstring/oniguruma/enc/iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_9.c -o ext/mbstring/oniguruma/enc/iso8859_9.lo +ext/mbstring/oniguruma/enc/iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_10.c -o ext/mbstring/oniguruma/enc/iso8859_10.lo +ext/mbstring/oniguruma/enc/iso8859_11.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_11.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_11.c -o ext/mbstring/oniguruma/enc/iso8859_11.lo +ext/mbstring/oniguruma/enc/iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_13.c -o ext/mbstring/oniguruma/enc/iso8859_13.lo +ext/mbstring/oniguruma/enc/iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_14.c -o ext/mbstring/oniguruma/enc/iso8859_14.lo +ext/mbstring/oniguruma/enc/iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_15.c -o ext/mbstring/oniguruma/enc/iso8859_15.lo +ext/mbstring/oniguruma/enc/iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_16.c -o ext/mbstring/oniguruma/enc/iso8859_16.lo +ext/mbstring/oniguruma/enc/koi8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8.c -o ext/mbstring/oniguruma/enc/koi8.lo +ext/mbstring/oniguruma/enc/koi8_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8_r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8_r.c -o ext/mbstring/oniguruma/enc/koi8_r.lo +ext/mbstring/oniguruma/enc/big5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/big5.c -o ext/mbstring/oniguruma/enc/big5.lo +ext/mbstring/oniguruma/enc/utf16_be.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_be.c -o ext/mbstring/oniguruma/enc/utf16_be.lo +ext/mbstring/oniguruma/enc/utf16_le.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_le.c -o ext/mbstring/oniguruma/enc/utf16_le.lo +ext/mbstring/oniguruma/enc/utf32_be.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_be.c -o ext/mbstring/oniguruma/enc/utf32_be.lo +ext/mbstring/oniguruma/enc/utf32_le.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_le.c -o ext/mbstring/oniguruma/enc/utf32_le.lo +ext/mbstring/libmbfl/filters/html_entities.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/html_entities.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/html_entities.c -o ext/mbstring/libmbfl/filters/html_entities.lo +ext/mbstring/libmbfl/filters/mbfilter_7bit.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_7bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_7bit.c -o ext/mbstring/libmbfl/filters/mbfilter_7bit.lo +ext/mbstring/libmbfl/filters/mbfilter_ascii.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ascii.c -o ext/mbstring/libmbfl/filters/mbfilter_ascii.lo +ext/mbstring/libmbfl/filters/mbfilter_base64.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_base64.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_base64.c -o ext/mbstring/libmbfl/filters/mbfilter_base64.lo +ext/mbstring/libmbfl/filters/mbfilter_big5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_big5.c -o ext/mbstring/libmbfl/filters/mbfilter_big5.lo +ext/mbstring/libmbfl/filters/mbfilter_byte2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte2.c -o ext/mbstring/libmbfl/filters/mbfilter_byte2.lo +ext/mbstring/libmbfl/filters/mbfilter_byte4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte4.c -o ext/mbstring/libmbfl/filters/mbfilter_byte4.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo +ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c -o ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo +ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp850.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp850.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp850.c -o ext/mbstring/libmbfl/filters/mbfilter_cp850.lo +ext/mbstring/libmbfl/filters/mbfilter_cp866.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp866.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp866.c -o ext/mbstring/libmbfl/filters/mbfilter_cp866.lo +ext/mbstring/libmbfl/filters/mbfilter_cp932.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp936.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp936.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp936.c -o ext/mbstring/libmbfl/filters/mbfilter_cp936.lo +ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_gb18030.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_gb18030.c -o ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo +ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c -o ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo +ext/mbstring/libmbfl/filters/mbfilter_hz.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_hz.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_hz.c -o ext/mbstring/libmbfl/filters/mbfilter_hz.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo +ext/mbstring/libmbfl/filters/mbfilter_jis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_jis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_jis.c -o ext/mbstring/libmbfl/filters/mbfilter_jis.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo +ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c -o ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo +ext/mbstring/libmbfl/filters/mbfilter_qprint.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_qprint.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_qprint.c -o ext/mbstring/libmbfl/filters/mbfilter_qprint.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c -o ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo +ext/mbstring/libmbfl/filters/mbfilter_uhc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uhc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uhc.c -o ext/mbstring/libmbfl/filters/mbfilter_uhc.lo +ext/mbstring/libmbfl/filters/mbfilter_utf16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf16.c -o ext/mbstring/libmbfl/filters/mbfilter_utf16.lo +ext/mbstring/libmbfl/filters/mbfilter_utf32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf32.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf32.c -o ext/mbstring/libmbfl/filters/mbfilter_utf32.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c -o ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo +ext/mbstring/libmbfl/mbfl/mbfilter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter.c -o ext/mbstring/libmbfl/mbfl/mbfilter.lo +ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c -o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo +ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c -o ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo +ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c -o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo +ext/mbstring/libmbfl/mbfl/mbfl_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_convert.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_convert.c -o ext/mbstring/libmbfl/mbfl/mbfl_convert.lo +ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c -o ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo +ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c -o ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo +ext/mbstring/libmbfl/mbfl/mbfl_ident.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_ident.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_ident.c -o ext/mbstring/libmbfl/mbfl/mbfl_ident.lo +ext/mbstring/libmbfl/mbfl/mbfl_language.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_language.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_language.c -o ext/mbstring/libmbfl/mbfl/mbfl_language.lo +ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c -o ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo +ext/mbstring/libmbfl/mbfl/mbfl_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_string.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_string.c -o ext/mbstring/libmbfl/mbfl/mbfl_string.lo +ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c -o ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo +ext/mbstring/libmbfl/nls/nls_de.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_de.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_de.c -o ext/mbstring/libmbfl/nls/nls_de.lo +ext/mbstring/libmbfl/nls/nls_en.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_en.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_en.c -o ext/mbstring/libmbfl/nls/nls_en.lo +ext/mbstring/libmbfl/nls/nls_ja.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ja.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ja.c -o ext/mbstring/libmbfl/nls/nls_ja.lo +ext/mbstring/libmbfl/nls/nls_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_kr.c -o ext/mbstring/libmbfl/nls/nls_kr.lo +ext/mbstring/libmbfl/nls/nls_neutral.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_neutral.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_neutral.c -o ext/mbstring/libmbfl/nls/nls_neutral.lo +ext/mbstring/libmbfl/nls/nls_ru.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ru.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ru.c -o ext/mbstring/libmbfl/nls/nls_ru.lo +ext/mbstring/libmbfl/nls/nls_uni.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_uni.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_uni.c -o ext/mbstring/libmbfl/nls/nls_uni.lo +ext/mbstring/libmbfl/nls/nls_zh.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_zh.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_zh.c -o ext/mbstring/libmbfl/nls/nls_zh.lo +ext/mbstring/libmbfl/nls/nls_hy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_hy.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_hy.c -o ext/mbstring/libmbfl/nls/nls_hy.lo +ext/mbstring/libmbfl/nls/nls_tr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_tr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_tr.c -o ext/mbstring/libmbfl/nls/nls_tr.lo +ext/mbstring/libmbfl/nls/nls_ua.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ua.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ua.c -o ext/mbstring/libmbfl/nls/nls_ua.lo +ext/mbstring/mbstring.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mbstring.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo +ext/mbstring/php_unicode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_unicode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_unicode.c -o ext/mbstring/php_unicode.lo +ext/mbstring/mb_gpc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mb_gpc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mb_gpc.c -o ext/mbstring/mb_gpc.lo +ext/mbstring/php_mbregex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_mbregex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_mbregex.c -o ext/mbstring/php_mbregex.lo +ext/mcrypt/mcrypt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo +ext/mcrypt/mcrypt_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt_filter.c -o ext/mcrypt/mcrypt_filter.lo +ext/mysql/php_mysql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/php_mysql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo +ext/mysqli/mysqli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo +ext/mysqli/mysqli_api.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo +ext/mysqli/mysqli_prop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_prop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo +ext/mysqli/mysqli_nonapi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_nonapi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo +ext/mysqli/mysqli_fe.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_fe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo +ext/mysqli/mysqli_report.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_report.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo +ext/mysqli/mysqli_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo +ext/mysqli/mysqli_warning.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_warning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo +ext/mysqli/mysqli_exception.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_exception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo +ext/mysqli/mysqli_result_iterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_result_iterator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_result_iterator.c -o ext/mysqli/mysqli_result_iterator.lo +ext/opcache/ZendAccelerator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ZendAccelerator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo +ext/opcache/zend_accelerator_blacklist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_blacklist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_blacklist.c -o ext/opcache/zend_accelerator_blacklist.lo +ext/opcache/zend_accelerator_debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_debug.c -o ext/opcache/zend_accelerator_debug.lo +ext/opcache/zend_accelerator_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_hash.c -o ext/opcache/zend_accelerator_hash.lo +ext/opcache/zend_accelerator_module.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_module.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_module.c -o ext/opcache/zend_accelerator_module.lo +ext/opcache/zend_persist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist.c -o ext/opcache/zend_persist.lo +ext/opcache/zend_persist_calc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist_calc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist_calc.c -o ext/opcache/zend_persist_calc.lo +ext/opcache/zend_shared_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_shared_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_shared_alloc.c -o ext/opcache/zend_shared_alloc.lo +ext/opcache/zend_accelerator_util_funcs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_util_funcs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_util_funcs.c -o ext/opcache/zend_accelerator_util_funcs.lo +ext/opcache/shared_alloc_shm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_shm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_shm.c -o ext/opcache/shared_alloc_shm.lo +ext/opcache/shared_alloc_mmap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_mmap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_mmap.c -o ext/opcache/shared_alloc_mmap.lo +ext/opcache/shared_alloc_posix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_posix.c -o ext/opcache/shared_alloc_posix.lo +ext/opcache/Optimizer/zend_optimizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/Optimizer/zend_optimizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/Optimizer/zend_optimizer.c -o ext/opcache/Optimizer/zend_optimizer.lo +$(phplibdir)/opcache.la: ext/opcache/opcache.la + $(LIBTOOL) --mode=install cp ext/opcache/opcache.la $(phplibdir) + +ext/opcache/opcache.la: $(shared_objects_opcache) $(OPCACHE_SHARED_DEPENDENCIES) + $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_opcache) $(OPCACHE_SHARED_LIBADD) + +ext/pcntl/pcntl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/pcntl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/pcntl.c -o ext/pcntl/pcntl.lo +ext/pcntl/php_signal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/php_signal.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/php_signal.c -o ext/pcntl/php_signal.lo +ext/pdo/pdo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo.c -o ext/pdo/pdo.lo +ext/pdo/pdo_dbh.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_dbh.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_dbh.c -o ext/pdo/pdo_dbh.lo +ext/pdo/pdo_stmt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_stmt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_stmt.c -o ext/pdo/pdo_stmt.lo +ext/pdo/pdo_sql_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c -o ext/pdo/pdo_sql_parser.lo +ext/pdo/pdo_sqlstate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sqlstate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo +ext/pdo_mysql/pdo_mysql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/pdo_mysql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo +ext/pdo_mysql/mysql_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo +ext/pdo_mysql/mysql_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo +ext/pdo_pgsql/pdo_pgsql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pdo_pgsql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo +ext/pdo_pgsql/pgsql_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_driver.c -o ext/pdo_pgsql/pgsql_driver.lo +ext/pdo_pgsql/pgsql_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_statement.c -o ext/pdo_pgsql/pgsql_statement.lo +ext/pdo_sqlite/pdo_sqlite.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/pdo_sqlite.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo +ext/pdo_sqlite/sqlite_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_driver.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo +ext/pdo_sqlite/sqlite_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_statement.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo +ext/pgsql/pgsql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/pgsql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo +ext/phar/util.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/util.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/util.c -o ext/phar/util.lo +ext/phar/tar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/tar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/tar.c -o ext/phar/tar.lo +ext/phar/zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/zip.c -o ext/phar/zip.lo +ext/phar/stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/stream.c -o ext/phar/stream.lo +ext/phar/func_interceptors.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/func_interceptors.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/func_interceptors.c -o ext/phar/func_interceptors.lo +ext/phar/dirstream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/dirstream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/dirstream.c -o ext/phar/dirstream.lo +ext/phar/phar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.c -o ext/phar/phar.lo +ext/phar/phar_object.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_object.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_object.c -o ext/phar/phar_object.lo +ext/phar/phar_path_check.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo +ext/posix/posix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/posix/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/posix.c -o ext/posix/posix.lo +ext/readline/readline.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline.c -o ext/readline/readline.lo +ext/readline/readline_cli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline_cli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline_cli.c -o ext/readline/readline_cli.lo +ext/reflection/php_reflection.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/php_reflection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/reflection/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo +ext/session/mod_user_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user_class.c -o ext/session/mod_user_class.lo +ext/session/session.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/session.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/session.c -o ext/session/session.lo +ext/session/mod_files.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_files.c -o ext/session/mod_files.lo +ext/session/mod_mm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_mm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_mm.c -o ext/session/mod_mm.lo +ext/session/mod_user.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user.c -o ext/session/mod_user.lo +ext/shmop/shmop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/shmop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/shmop/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/shmop.c -o ext/shmop/shmop.lo +ext/simplexml/simplexml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/simplexml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo +ext/simplexml/sxe.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/sxe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo +ext/soap/soap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/soap.c -o ext/soap/soap.lo +ext/soap/php_encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_encoding.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo +ext/soap/php_http.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_http.c -o ext/soap/php_http.lo +ext/soap/php_packet_soap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_packet_soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_packet_soap.c -o ext/soap/php_packet_soap.lo +ext/soap/php_schema.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_schema.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_schema.c -o ext/soap/php_schema.lo +ext/soap/php_sdl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_sdl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_sdl.c -o ext/soap/php_sdl.lo +ext/soap/php_xml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_xml.c -o ext/soap/php_xml.lo +ext/sockets/sockets.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockets.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockets.c -o ext/sockets/sockets.lo +ext/sockets/multicast.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/multicast.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/multicast.c -o ext/sockets/multicast.lo +ext/sockets/conversions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/conversions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/conversions.c -o ext/sockets/conversions.lo +ext/sockets/sockaddr_conv.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockaddr_conv.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockaddr_conv.c -o ext/sockets/sockaddr_conv.lo +ext/sockets/sendrecvmsg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sendrecvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sendrecvmsg.c -o ext/sockets/sendrecvmsg.lo +ext/spl/php_spl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/php_spl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/php_spl.c -o ext/spl/php_spl.lo +ext/spl/spl_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_functions.c -o ext/spl/spl_functions.lo +ext/spl/spl_engine.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_engine.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_engine.c -o ext/spl/spl_engine.lo +ext/spl/spl_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_iterators.c -o ext/spl/spl_iterators.lo +ext/spl/spl_array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_array.c -o ext/spl/spl_array.lo +ext/spl/spl_directory.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_directory.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_directory.c -o ext/spl/spl_directory.lo +ext/spl/spl_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_exceptions.c -o ext/spl/spl_exceptions.lo +ext/spl/spl_observer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_observer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_observer.c -o ext/spl/spl_observer.lo +ext/spl/spl_dllist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_dllist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_dllist.c -o ext/spl/spl_dllist.lo +ext/spl/spl_heap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_heap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_heap.c -o ext/spl/spl_heap.lo +ext/spl/spl_fixedarray.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_fixedarray.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_fixedarray.c -o ext/spl/spl_fixedarray.lo +ext/standard/crypt_freesec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_freesec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_freesec.c -o ext/standard/crypt_freesec.lo +ext/standard/crypt_blowfish.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_blowfish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_blowfish.c -o ext/standard/crypt_blowfish.lo +ext/standard/crypt_sha512.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha512.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo +ext/standard/crypt_sha256.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha256.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha256.c -o ext/standard/crypt_sha256.lo +ext/standard/php_crypt_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_crypt_r.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo +ext/standard/array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/array.c -o ext/standard/array.lo +ext/standard/base64.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/base64.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/base64.c -o ext/standard/base64.lo +ext/standard/basic_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/basic_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo +ext/standard/browscap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/browscap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/browscap.c -o ext/standard/browscap.lo +ext/standard/crc32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crc32.c -o ext/standard/crc32.lo +ext/standard/crypt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt.c -o ext/standard/crypt.lo +ext/standard/cyr_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/cyr_convert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/cyr_convert.c -o ext/standard/cyr_convert.lo +ext/standard/datetime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/datetime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/datetime.c -o ext/standard/datetime.lo +ext/standard/dir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dir.c -o ext/standard/dir.lo +ext/standard/dl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dl.c -o ext/standard/dl.lo +ext/standard/dns.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dns.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dns.c -o ext/standard/dns.lo +ext/standard/exec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/exec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/exec.c -o ext/standard/exec.lo +ext/standard/file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/file.c -o ext/standard/file.lo +ext/standard/filestat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filestat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filestat.c -o ext/standard/filestat.lo +ext/standard/flock_compat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/flock_compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo +ext/standard/formatted_print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/formatted_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo +ext/standard/fsock.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/fsock.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/fsock.c -o ext/standard/fsock.lo +ext/standard/head.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/head.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/head.c -o ext/standard/head.lo +ext/standard/html.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/html.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/html.c -o ext/standard/html.lo +ext/standard/image.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/image.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/image.c -o ext/standard/image.lo +ext/standard/info.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/info.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/info.c -o ext/standard/info.lo +ext/standard/iptc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/iptc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/iptc.c -o ext/standard/iptc.lo +ext/standard/lcg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/lcg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/lcg.c -o ext/standard/lcg.lo +ext/standard/link.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/link.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/link.c -o ext/standard/link.lo +ext/standard/mail.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/mail.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/mail.c -o ext/standard/mail.lo +ext/standard/math.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/math.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/math.c -o ext/standard/math.lo +ext/standard/md5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/md5.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/md5.c -o ext/standard/md5.lo +ext/standard/metaphone.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/metaphone.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/metaphone.c -o ext/standard/metaphone.lo +ext/standard/microtime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/microtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/microtime.c -o ext/standard/microtime.lo +ext/standard/pack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pack.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pack.c -o ext/standard/pack.lo +ext/standard/pageinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pageinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pageinfo.c -o ext/standard/pageinfo.lo +ext/standard/quot_print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/quot_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/quot_print.c -o ext/standard/quot_print.lo +ext/standard/rand.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/rand.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/rand.c -o ext/standard/rand.lo +ext/standard/soundex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/soundex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/soundex.c -o ext/standard/soundex.lo +ext/standard/string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/string.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/string.c -o ext/standard/string.lo +ext/standard/scanf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/scanf.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/scanf.c -o ext/standard/scanf.lo +ext/standard/syslog.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/syslog.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/syslog.c -o ext/standard/syslog.lo +ext/standard/type.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/type.c -o ext/standard/type.lo +ext/standard/uniqid.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uniqid.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uniqid.c -o ext/standard/uniqid.lo +ext/standard/url.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url.c -o ext/standard/url.lo +ext/standard/var.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var.c -o ext/standard/var.lo +ext/standard/versioning.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/versioning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/versioning.c -o ext/standard/versioning.lo +ext/standard/assert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/assert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/assert.c -o ext/standard/assert.lo +ext/standard/strnatcmp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/strnatcmp.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/strnatcmp.c -o ext/standard/strnatcmp.lo +ext/standard/levenshtein.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/levenshtein.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/levenshtein.c -o ext/standard/levenshtein.lo +ext/standard/incomplete_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/incomplete_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/incomplete_class.c -o ext/standard/incomplete_class.lo +ext/standard/url_scanner_ex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c -o ext/standard/url_scanner_ex.lo +ext/standard/ftp_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftp_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftp_fopen_wrapper.c -o ext/standard/ftp_fopen_wrapper.lo +ext/standard/http_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.lo +ext/standard/php_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_fopen_wrapper.c -o ext/standard/php_fopen_wrapper.lo +ext/standard/credits.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/credits.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/credits.c -o ext/standard/credits.lo +ext/standard/css.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/css.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/css.c -o ext/standard/css.lo +ext/standard/var_unserializer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c -o ext/standard/var_unserializer.lo +ext/standard/ftok.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftok.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftok.c -o ext/standard/ftok.lo +ext/standard/sha1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/sha1.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/sha1.c -o ext/standard/sha1.lo +ext/standard/user_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/user_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/user_filters.c -o ext/standard/user_filters.lo +ext/standard/uuencode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uuencode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uuencode.c -o ext/standard/uuencode.lo +ext/standard/filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filters.c -o ext/standard/filters.lo +ext/standard/proc_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/proc_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/proc_open.c -o ext/standard/proc_open.lo +ext/standard/streamsfuncs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/streamsfuncs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo +ext/standard/http.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http.c -o ext/standard/http.lo +ext/standard/password.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/password.c -o ext/standard/password.lo +ext/sysvmsg/sysvmsg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/sysvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvmsg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.lo +ext/sysvsem/sysvsem.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/sysvsem.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvsem/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/sysvsem.c -o ext/sysvsem/sysvsem.lo +ext/sysvshm/sysvshm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/sysvshm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvshm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/sysvshm.c -o ext/sysvshm/sysvshm.lo +ext/tokenizer/tokenizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo +ext/tokenizer/tokenizer_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer_data.c -o ext/tokenizer/tokenizer_data.lo +ext/xml/xml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/xml.c -o ext/xml/xml.lo +ext/xml/compat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/compat.c -o ext/xml/compat.lo +ext/xmlreader/php_xmlreader.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/php_xmlreader.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlreader/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/php_xmlreader.c -o ext/xmlreader/php_xmlreader.lo +ext/xmlwriter/php_xmlwriter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/php_xmlwriter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlwriter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/php_xmlwriter.c -o ext/xmlwriter/php_xmlwriter.lo +ext/xsl/php_xsl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/php_xsl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo +ext/xsl/xsltprocessor.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/xsltprocessor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/xsltprocessor.c -o ext/xsl/xsltprocessor.lo +ext/zip/php_zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/php_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/php_zip.c -o ext/zip/php_zip.lo +ext/zip/zip_stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/zip_stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/zip_stream.c -o ext/zip/zip_stream.lo +ext/zip/lib/zip_add.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add.c -o ext/zip/lib/zip_add.lo +ext/zip/lib/zip_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error.c -o ext/zip/lib/zip_error.lo +ext/zip/lib/zip_fclose.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fclose.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fclose.c -o ext/zip/lib/zip_fclose.lo +ext/zip/lib/zip_fread.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fread.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fread.c -o ext/zip/lib/zip_fread.lo +ext/zip/lib/zip_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_open.c -o ext/zip/lib/zip_open.lo +ext/zip/lib/zip_source_filep.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_filep.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_filep.c -o ext/zip/lib/zip_source_filep.lo +ext/zip/lib/zip_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_strerror.c -o ext/zip/lib/zip_strerror.lo +ext/zip/lib/zip_close.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_close.c -o ext/zip/lib/zip_close.lo +ext/zip/lib/zip_error_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get.c -o ext/zip/lib/zip_error_get.lo +ext/zip/lib/zip_file_error_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_get.c -o ext/zip/lib/zip_file_error_get.lo +ext/zip/lib/zip_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_free.c -o ext/zip/lib/zip_free.lo +ext/zip/lib/zip_rename.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_rename.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_rename.c -o ext/zip/lib/zip_rename.lo +ext/zip/lib/zip_source_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_free.c -o ext/zip/lib/zip_source_free.lo +ext/zip/lib/zip_unchange_all.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_all.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_all.c -o ext/zip/lib/zip_unchange_all.lo +ext/zip/lib/zip_delete.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_delete.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_delete.c -o ext/zip/lib/zip_delete.lo +ext/zip/lib/zip_error_get_sys_type.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get_sys_type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get_sys_type.c -o ext/zip/lib/zip_error_get_sys_type.lo +ext/zip/lib/zip_file_get_offset.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_get_offset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_get_offset.c -o ext/zip/lib/zip_file_get_offset.lo +ext/zip/lib/zip_get_name.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_name.c -o ext/zip/lib/zip_get_name.lo +ext/zip/lib/zip_replace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_replace.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_replace.c -o ext/zip/lib/zip_replace.lo +ext/zip/lib/zip_source_function.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_function.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_function.c -o ext/zip/lib/zip_source_function.lo +ext/zip/lib/zip_unchange.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange.c -o ext/zip/lib/zip_unchange.lo +ext/zip/lib/zip_dirent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_dirent.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_dirent.c -o ext/zip/lib/zip_dirent.lo +ext/zip/lib/zip_error_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_strerror.c -o ext/zip/lib/zip_error_strerror.lo +ext/zip/lib/zip_filerange_crc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_filerange_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_filerange_crc.c -o ext/zip/lib/zip_filerange_crc.lo +ext/zip/lib/zip_file_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_strerror.c -o ext/zip/lib/zip_file_strerror.lo +ext/zip/lib/zip_get_num_files.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_files.c -o ext/zip/lib/zip_get_num_files.lo +ext/zip/lib/zip_get_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_flag.c -o ext/zip/lib/zip_get_archive_flag.lo +ext/zip/lib/zip_set_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_flag.c -o ext/zip/lib/zip_set_archive_flag.lo +ext/zip/lib/zip_set_name.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_name.c -o ext/zip/lib/zip_set_name.lo +ext/zip/lib/zip_source_zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_zip.c -o ext/zip/lib/zip_source_zip.lo +ext/zip/lib/zip_unchange_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_data.c -o ext/zip/lib/zip_unchange_data.lo +ext/zip/lib/zip_entry_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_free.c -o ext/zip/lib/zip_entry_free.lo +ext/zip/lib/zip_error_to_str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_to_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_to_str.c -o ext/zip/lib/zip_error_to_str.lo +ext/zip/lib/zip_fopen.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen.c -o ext/zip/lib/zip_fopen.lo +ext/zip/lib/zip_name_locate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_name_locate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_name_locate.c -o ext/zip/lib/zip_name_locate.lo +ext/zip/lib/zip_source_buffer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_buffer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_buffer.c -o ext/zip/lib/zip_source_buffer.lo +ext/zip/lib/zip_stat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat.c -o ext/zip/lib/zip_stat.lo +ext/zip/lib/zip_entry_new.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_new.c -o ext/zip/lib/zip_entry_new.lo +ext/zip/lib/zip_err_str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_err_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_err_str.c -o ext/zip/lib/zip_err_str.lo +ext/zip/lib/zip_fopen_index.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index.c -o ext/zip/lib/zip_fopen_index.lo +ext/zip/lib/zip_get_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_comment.c -o ext/zip/lib/zip_get_archive_comment.lo +ext/zip/lib/zip_get_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_comment.c -o ext/zip/lib/zip_get_file_comment.lo +ext/zip/lib/zip_new.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_new.c -o ext/zip/lib/zip_new.lo +ext/zip/lib/zip_source_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_file.c -o ext/zip/lib/zip_source_file.lo +ext/zip/lib/zip_stat_index.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_index.c -o ext/zip/lib/zip_stat_index.lo +ext/zip/lib/zip_set_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_comment.c -o ext/zip/lib/zip_set_archive_comment.lo +ext/zip/lib/zip_set_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_comment.c -o ext/zip/lib/zip_set_file_comment.lo +ext/zip/lib/zip_unchange_archive.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_archive.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_archive.c -o ext/zip/lib/zip_unchange_archive.lo +ext/zip/lib/zip_memdup.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_memdup.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_memdup.c -o ext/zip/lib/zip_memdup.lo +ext/zip/lib/zip_stat_init.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_init.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_init.c -o ext/zip/lib/zip_stat_init.lo +ext/zip/lib/zip_add_dir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add_dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add_dir.c -o ext/zip/lib/zip_add_dir.lo +ext/zip/lib/zip_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_clear.c -o ext/zip/lib/zip_error_clear.lo +ext/zip/lib/zip_file_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_clear.c -o ext/zip/lib/zip_file_error_clear.lo +ext/zip/lib/zip_fdopen.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fdopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fdopen.c -o ext/zip/lib/zip_fdopen.lo +ext/zip/lib/zip_fopen_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_encrypted.c -o ext/zip/lib/zip_fopen_encrypted.lo +ext/zip/lib/zip_fopen_index_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index_encrypted.c -o ext/zip/lib/zip_fopen_index_encrypted.lo +ext/zip/lib/zip_get_compression_implementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_compression_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_compression_implementation.c -o ext/zip/lib/zip_get_compression_implementation.lo +ext/zip/lib/zip_get_encryption_implementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_encryption_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_encryption_implementation.c -o ext/zip/lib/zip_get_encryption_implementation.lo +ext/zip/lib/zip_get_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_extra.c -o ext/zip/lib/zip_get_file_extra.lo +ext/zip/lib/zip_get_num_entries.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_entries.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_entries.c -o ext/zip/lib/zip_get_num_entries.lo +ext/zip/lib/zip_set_default_password.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_default_password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_default_password.c -o ext/zip/lib/zip_set_default_password.lo +ext/zip/lib/zip_set_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_extra.c -o ext/zip/lib/zip_set_file_extra.lo +ext/zip/lib/zip_source_close.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_close.c -o ext/zip/lib/zip_source_close.lo +ext/zip/lib/zip_source_crc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_crc.c -o ext/zip/lib/zip_source_crc.lo +ext/zip/lib/zip_source_deflate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_deflate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_deflate.c -o ext/zip/lib/zip_source_deflate.lo +ext/zip/lib/zip_source_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_error.c -o ext/zip/lib/zip_source_error.lo +ext/zip/lib/zip_source_layered.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_layered.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_layered.c -o ext/zip/lib/zip_source_layered.lo +ext/zip/lib/zip_source_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_open.c -o ext/zip/lib/zip_source_open.lo +ext/zip/lib/zip_source_pkware.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pkware.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pkware.c -o ext/zip/lib/zip_source_pkware.lo +ext/zip/lib/zip_source_pop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pop.c -o ext/zip/lib/zip_source_pop.lo +ext/zip/lib/zip_source_read.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_read.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_read.c -o ext/zip/lib/zip_source_read.lo +ext/zip/lib/zip_source_stat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_stat.c -o ext/zip/lib/zip_source_stat.lo +ext/mysqlnd/mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd.c -o ext/mysqlnd/mysqlnd.lo +ext/mysqlnd/mysqlnd_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_alloc.c -o ext/mysqlnd/mysqlnd_alloc.lo +ext/mysqlnd/mysqlnd_bt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_bt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_bt.c -o ext/mysqlnd/mysqlnd_bt.lo +ext/mysqlnd/mysqlnd_charset.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_charset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_charset.c -o ext/mysqlnd/mysqlnd_charset.lo +ext/mysqlnd/mysqlnd_wireprotocol.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_wireprotocol.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_wireprotocol.c -o ext/mysqlnd/mysqlnd_wireprotocol.lo +ext/mysqlnd/mysqlnd_loaddata.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_loaddata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_loaddata.c -o ext/mysqlnd/mysqlnd_loaddata.lo +ext/mysqlnd/mysqlnd_reverse_api.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_reverse_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_reverse_api.c -o ext/mysqlnd/mysqlnd_reverse_api.lo +ext/mysqlnd/mysqlnd_net.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_net.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_net.c -o ext/mysqlnd/mysqlnd_net.lo +ext/mysqlnd/mysqlnd_statistics.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_statistics.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_statistics.c -o ext/mysqlnd/mysqlnd_statistics.lo +ext/mysqlnd/mysqlnd_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_driver.c -o ext/mysqlnd/mysqlnd_driver.lo +ext/mysqlnd/mysqlnd_ext_plugin.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ext_plugin.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ext_plugin.c -o ext/mysqlnd/mysqlnd_ext_plugin.lo +ext/mysqlnd/mysqlnd_auth.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_auth.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_auth.c -o ext/mysqlnd/mysqlnd_auth.lo +ext/mysqlnd/mysqlnd_result.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result.c -o ext/mysqlnd/mysqlnd_result.lo +ext/mysqlnd/mysqlnd_result_meta.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result_meta.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result_meta.c -o ext/mysqlnd/mysqlnd_result_meta.lo +ext/mysqlnd/mysqlnd_debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_debug.c -o ext/mysqlnd/mysqlnd_debug.lo +ext/mysqlnd/mysqlnd_block_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_block_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_block_alloc.c -o ext/mysqlnd/mysqlnd_block_alloc.lo +ext/mysqlnd/mysqlnd_plugin.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_plugin.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_plugin.c -o ext/mysqlnd/mysqlnd_plugin.lo +ext/mysqlnd/php_mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/php_mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/php_mysqlnd.c -o ext/mysqlnd/php_mysqlnd.lo +ext/mysqlnd/mysqlnd_ps.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps.c -o ext/mysqlnd/mysqlnd_ps.lo +ext/mysqlnd/mysqlnd_ps_codec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps_codec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo +TSRM/TSRM.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/TSRM.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/TSRM.c -o TSRM/TSRM.lo +TSRM/tsrm_strtok_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_strtok_r.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r.lo +TSRM/tsrm_virtual_cwd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_virtual_cwd.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_virtual_cwd.c -o TSRM/tsrm_virtual_cwd.lo +main/main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/main.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/main.c -o main/main.lo +main/snprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/snprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/snprintf.c -o main/snprintf.lo +main/spprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/spprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/spprintf.c -o main/spprintf.lo +main/php_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_sprintf.c -o main/php_sprintf.lo +main/fopen_wrappers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/fopen_wrappers.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/fopen_wrappers.c -o main/fopen_wrappers.lo +main/alloca.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/alloca.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/alloca.c -o main/alloca.lo +main/php_scandir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_scandir.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_scandir.c -o main/php_scandir.lo +main/php_ini.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ini.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ini.c -o main/php_ini.lo +main/SAPI.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/SAPI.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/SAPI.c -o main/SAPI.lo +main/rfc1867.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/rfc1867.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/rfc1867.c -o main/rfc1867.lo +main/php_content_types.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_content_types.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_content_types.c -o main/php_content_types.lo +main/strlcpy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcpy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcpy.c -o main/strlcpy.lo +main/strlcat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcat.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcat.c -o main/strlcat.lo +main/mergesort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/mergesort.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/mergesort.c -o main/mergesort.lo +main/reentrancy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/reentrancy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/reentrancy.c -o main/reentrancy.lo +main/php_variables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_variables.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_variables.c -o main/php_variables.lo +main/php_ticks.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ticks.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ticks.c -o main/php_ticks.lo +main/network.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/network.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/network.c -o main/network.lo +main/php_open_temporary_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_open_temporary_file.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo +main/output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/output.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/output.c -o main/output.lo +main/getopt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/getopt.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/getopt.c -o main/getopt.lo +main/streams/streams.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/streams.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/streams.c -o main/streams/streams.lo +main/streams/cast.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/cast.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/cast.c -o main/streams/cast.lo +main/streams/memory.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/memory.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/memory.c -o main/streams/memory.lo +main/streams/filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/filter.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/filter.c -o main/streams/filter.lo +main/streams/plain_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/plain_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/plain_wrapper.c -o main/streams/plain_wrapper.lo +main/streams/userspace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/userspace.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/userspace.c -o main/streams/userspace.lo +main/streams/transports.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/transports.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/transports.c -o main/streams/transports.lo +main/streams/xp_socket.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/xp_socket.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/xp_socket.c -o main/streams/xp_socket.lo +main/streams/mmap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/mmap.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/mmap.c -o main/streams/mmap.lo +main/streams/glob_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/glob_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/glob_wrapper.c -o main/streams/glob_wrapper.lo +main/internal_functions.lo: main/internal_functions.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions.c -o main/internal_functions.lo +main/internal_functions_cli.lo: main/internal_functions_cli.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions_cli.c -o main/internal_functions_cli.lo +Zend/zend_language_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo +Zend/zend_ini_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo +Zend/zend_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_alloc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_alloc.c -o Zend/zend_alloc.lo +Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_compile.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_compile.c -o Zend/zend_compile.lo +Zend/zend_constants.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_constants.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_constants.c -o Zend/zend_constants.lo +Zend/zend_dynamic_array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dynamic_array.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dynamic_array.c -o Zend/zend_dynamic_array.lo +Zend/zend_dtrace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dtrace.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dtrace.c -o Zend/zend_dtrace.lo +Zend/zend_execute_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo +Zend/zend_highlight.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_highlight.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_highlight.c -o Zend/zend_highlight.lo +Zend/zend_llist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_llist.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_llist.c -o Zend/zend_llist.lo +Zend/zend_vm_opcodes.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.c -o Zend/zend_vm_opcodes.lo +Zend/zend_opcode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_opcode.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_opcode.c -o Zend/zend_opcode.lo +Zend/zend_operators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_operators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_operators.c -o Zend/zend_operators.lo +Zend/zend_ptr_stack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ptr_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ptr_stack.c -o Zend/zend_ptr_stack.lo +Zend/zend_stack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stack.c -o Zend/zend_stack.lo +Zend/zend_variables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_variables.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_variables.c -o Zend/zend_variables.lo +Zend/zend.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend.c -o Zend/zend.lo +Zend/zend_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_API.c -o Zend/zend_API.lo +Zend/zend_extensions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_extensions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_extensions.c -o Zend/zend_extensions.lo +Zend/zend_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_hash.c -o Zend/zend_hash.lo +Zend/zend_list.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_list.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_list.c -o Zend/zend_list.lo +Zend/zend_indent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_indent.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_indent.c -o Zend/zend_indent.lo +Zend/zend_builtin_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_builtin_functions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_builtin_functions.c -o Zend/zend_builtin_functions.lo +Zend/zend_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_sprintf.c -o Zend/zend_sprintf.lo +Zend/zend_ini.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini.c -o Zend/zend_ini.lo +Zend/zend_qsort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_qsort.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_qsort.c -o Zend/zend_qsort.lo +Zend/zend_multibyte.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_multibyte.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_multibyte.c -o Zend/zend_multibyte.lo +Zend/zend_ts_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ts_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ts_hash.c -o Zend/zend_ts_hash.lo +Zend/zend_stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stream.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stream.c -o Zend/zend_stream.lo +Zend/zend_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_iterators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_iterators.c -o Zend/zend_iterators.lo +Zend/zend_interfaces.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_interfaces.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_interfaces.c -o Zend/zend_interfaces.lo +Zend/zend_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_exceptions.c -o Zend/zend_exceptions.lo +Zend/zend_strtod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_strtod.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_strtod.c -o Zend/zend_strtod.lo +Zend/zend_gc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_gc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_gc.c -o Zend/zend_gc.lo +Zend/zend_closures.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_closures.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_closures.c -o Zend/zend_closures.lo +Zend/zend_float.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_float.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_float.c -o Zend/zend_float.lo +Zend/zend_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_string.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_string.c -o Zend/zend_string.lo +Zend/zend_signal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_signal.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_signal.c -o Zend/zend_signal.lo +Zend/zend_generators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_generators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_generators.c -o Zend/zend_generators.lo +Zend/zend_objects.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects.c -o Zend/zend_objects.lo +Zend/zend_object_handlers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_object_handlers.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo +Zend/zend_objects_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo +Zend/zend_default_classes.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_default_classes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute.c -o Zend/zend_execute.lo diff --git a/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/openssl.c b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/openssl.c new file mode 100644 index 000000000..b53114cdf --- /dev/null +++ b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/openssl.c @@ -0,0 +1,5842 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 5 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Stig Venaas | + | Wez Furlong | + | Sascha Kettler | + | Pierre-Alain Joye | + | Marc Delling (PKCS12 functions) | + +----------------------------------------------------------------------+ + */ + +/* $Id$ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_ini.h" +#include "php_openssl.h" + +/* PHP Includes */ +#include "ext/standard/file.h" +#include "ext/standard/info.h" +#include "ext/standard/php_fopen_wrappers.h" +#include "ext/standard/md5.h" +#include "ext/standard/base64.h" +#ifdef PHP_WIN32 +# include "win32/winutil.h" +#endif + +/* OpenSSL includes */ +#include +#if OPENSSL_VERSION_NUMBER >= 0x10002000L +#include +#include +#include +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* Common */ +#include + +#ifdef NETWARE +#define timezone _timezone /* timezone is called _timezone in LibC */ +#endif + +#define DEFAULT_KEY_LENGTH 512 +#define MIN_KEY_LENGTH 384 + +#define OPENSSL_ALGO_SHA1 1 +#define OPENSSL_ALGO_MD5 2 +#define OPENSSL_ALGO_MD4 3 +#ifdef HAVE_OPENSSL_MD2_H +#define OPENSSL_ALGO_MD2 4 +#endif +#define OPENSSL_ALGO_DSS1 5 +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL +#define OPENSSL_ALGO_SHA224 6 +#define OPENSSL_ALGO_SHA256 7 +#define OPENSSL_ALGO_SHA384 8 +#define OPENSSL_ALGO_SHA512 9 +#define OPENSSL_ALGO_RMD160 10 +#endif +#define DEBUG_SMIME 0 + +#if !defined(OPENSSL_NO_EC) && defined(EVP_PKEY_EC) +#define HAVE_EVP_PKEY_EC 1 +#endif + +/* FIXME: Use the openssl constants instead of + * enum. It is now impossible to match real values + * against php constants. Also sorry to break the + * enum principles here, BC... + */ +enum php_openssl_key_type { + OPENSSL_KEYTYPE_RSA, + OPENSSL_KEYTYPE_DSA, + OPENSSL_KEYTYPE_DH, + OPENSSL_KEYTYPE_DEFAULT = OPENSSL_KEYTYPE_RSA, +#ifdef HAVE_EVP_PKEY_EC + OPENSSL_KEYTYPE_EC = OPENSSL_KEYTYPE_DH +1 +#endif +}; + +enum php_openssl_cipher_type { + PHP_OPENSSL_CIPHER_RC2_40, + PHP_OPENSSL_CIPHER_RC2_128, + PHP_OPENSSL_CIPHER_RC2_64, + PHP_OPENSSL_CIPHER_DES, + PHP_OPENSSL_CIPHER_3DES, + PHP_OPENSSL_CIPHER_AES_128_CBC, + PHP_OPENSSL_CIPHER_AES_192_CBC, + PHP_OPENSSL_CIPHER_AES_256_CBC, + + PHP_OPENSSL_CIPHER_DEFAULT = PHP_OPENSSL_CIPHER_RC2_40 +}; + +PHP_FUNCTION(openssl_get_md_methods); +PHP_FUNCTION(openssl_get_cipher_methods); + +PHP_FUNCTION(openssl_digest); +PHP_FUNCTION(openssl_encrypt); +PHP_FUNCTION(openssl_decrypt); +PHP_FUNCTION(openssl_cipher_iv_length); + +PHP_FUNCTION(openssl_dh_compute_key); +PHP_FUNCTION(openssl_random_pseudo_bytes); + +/* {{{ arginfo */ +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_export, 0, 0, 2) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_fingerprint, 0, 0, 1) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, raw_output) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_check_private_key, 0) + ZEND_ARG_INFO(0, cert) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_parse, 0) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, shortname) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_checkpurpose, 0, 0, 3) + ZEND_ARG_INFO(0, x509cert) + ZEND_ARG_INFO(0, purpose) + ZEND_ARG_INFO(0, cainfo) /* array */ + ZEND_ARG_INFO(0, untrustedfile) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_read, 0) + ZEND_ARG_INFO(0, cert) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_free, 0) + ZEND_ARG_INFO(0, x509) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs12_export_to_file, 0, 0, 4) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, filename) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, pass) + ZEND_ARG_INFO(0, args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkcs12_export, 0) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, pass) + ZEND_ARG_INFO(0, args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkcs12_read, 0) + ZEND_ARG_INFO(0, PKCS12) + ZEND_ARG_INFO(1, certs) /* array */ + ZEND_ARG_INFO(0, pass) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_export, 0, 0, 2) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_sign, 0, 0, 4) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, days) + ZEND_ARG_INFO(0, config_args) /* array */ + ZEND_ARG_INFO(0, serial) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_new, 0, 0, 2) + ZEND_ARG_INFO(0, dn) /* array */ + ZEND_ARG_INFO(1, privkey) + ZEND_ARG_INFO(0, configargs) + ZEND_ARG_INFO(0, extraattribs) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_csr_get_subject, 0) + ZEND_ARG_INFO(0, csr) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_csr_get_public_key, 0) + ZEND_ARG_INFO(0, csr) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_new, 0, 0, 0) + ZEND_ARG_INFO(0, configargs) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, passphrase) + ZEND_ARG_INFO(0, config_args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_export, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, passphrase) + ZEND_ARG_INFO(0, config_args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_get_public, 0) + ZEND_ARG_INFO(0, cert) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_free, 0) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_get_private, 0, 0, 1) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, passphrase) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_get_details, 0) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pbkdf2, 0, 0, 4) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, salt) + ZEND_ARG_INFO(0, key_length) + ZEND_ARG_INFO(0, iterations) + ZEND_ARG_INFO(0, digest_algorithm) +ZEND_END_ARG_INFO() +#endif + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_verify, 0, 0, 2) + ZEND_ARG_INFO(0, filename) + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, signerscerts) + ZEND_ARG_INFO(0, cainfo) /* array */ + ZEND_ARG_INFO(0, extracerts) + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_encrypt, 0, 0, 4) + ZEND_ARG_INFO(0, infile) + ZEND_ARG_INFO(0, outfile) + ZEND_ARG_INFO(0, recipcerts) + ZEND_ARG_INFO(0, headers) /* array */ + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, cipher) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_sign, 0, 0, 5) + ZEND_ARG_INFO(0, infile) + ZEND_ARG_INFO(0, outfile) + ZEND_ARG_INFO(0, signcert) + ZEND_ARG_INFO(0, signkey) + ZEND_ARG_INFO(0, headers) /* array */ + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, extracertsfilename) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, infilename) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, recipcert) + ZEND_ARG_INFO(0, recipkey) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_private_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_private_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_public_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_public_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_error_string, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_sign, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, signature) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_verify, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, signature) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_seal, 0, 0, 4) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, sealdata) + ZEND_ARG_INFO(1, ekeys) /* arary */ + ZEND_ARG_INFO(0, pubkeys) /* array */ + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_open, 0) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, opendata) + ZEND_ARG_INFO(0, ekey) + ZEND_ARG_INFO(0, privkey) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_get_md_methods, 0, 0, 0) + ZEND_ARG_INFO(0, aliases) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_get_cipher_methods, 0, 0, 0) + ZEND_ARG_INFO(0, aliases) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_digest, 0, 0, 2) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, raw_output) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, options) + ZEND_ARG_INFO(0, iv) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, options) + ZEND_ARG_INFO(0, iv) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_cipher_iv_length, 0) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_dh_compute_key, 0) + ZEND_ARG_INFO(0, pub_key) + ZEND_ARG_INFO(0, dh_key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_random_pseudo_bytes, 0, 0, 1) + ZEND_ARG_INFO(0, length) + ZEND_ARG_INFO(1, result_is_strong) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_spki_new, 0, 0, 2) + ZEND_ARG_INFO(0, privkey) + ZEND_ARG_INFO(0, challenge) + ZEND_ARG_INFO(0, algo) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_verify, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_export, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_export_challenge, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_get_cert_locations, 0) +ZEND_END_ARG_INFO() +/* }}} */ + +/* {{{ openssl_functions[] + */ +const zend_function_entry openssl_functions[] = { + PHP_FE(openssl_get_cert_locations, arginfo_openssl_get_cert_locations) + +/* spki functions */ + PHP_FE(openssl_spki_new, arginfo_openssl_spki_new) + PHP_FE(openssl_spki_verify, arginfo_openssl_spki_verify) + PHP_FE(openssl_spki_export, arginfo_openssl_spki_export) + PHP_FE(openssl_spki_export_challenge, arginfo_openssl_spki_export_challenge) + +/* public/private key functions */ + PHP_FE(openssl_pkey_free, arginfo_openssl_pkey_free) + PHP_FE(openssl_pkey_new, arginfo_openssl_pkey_new) + PHP_FE(openssl_pkey_export, arginfo_openssl_pkey_export) + PHP_FE(openssl_pkey_export_to_file, arginfo_openssl_pkey_export_to_file) + PHP_FE(openssl_pkey_get_private, arginfo_openssl_pkey_get_private) + PHP_FE(openssl_pkey_get_public, arginfo_openssl_pkey_get_public) + PHP_FE(openssl_pkey_get_details, arginfo_openssl_pkey_get_details) + + PHP_FALIAS(openssl_free_key, openssl_pkey_free, arginfo_openssl_pkey_free) + PHP_FALIAS(openssl_get_privatekey, openssl_pkey_get_private, arginfo_openssl_pkey_get_private) + PHP_FALIAS(openssl_get_publickey, openssl_pkey_get_public, arginfo_openssl_pkey_get_public) + +/* x.509 cert funcs */ + PHP_FE(openssl_x509_read, arginfo_openssl_x509_read) + PHP_FE(openssl_x509_free, arginfo_openssl_x509_free) + PHP_FE(openssl_x509_parse, arginfo_openssl_x509_parse) + PHP_FE(openssl_x509_checkpurpose, arginfo_openssl_x509_checkpurpose) + PHP_FE(openssl_x509_check_private_key, arginfo_openssl_x509_check_private_key) + PHP_FE(openssl_x509_export, arginfo_openssl_x509_export) + PHP_FE(openssl_x509_fingerprint, arginfo_openssl_x509_fingerprint) + PHP_FE(openssl_x509_export_to_file, arginfo_openssl_x509_export_to_file) + +/* PKCS12 funcs */ + PHP_FE(openssl_pkcs12_export, arginfo_openssl_pkcs12_export) + PHP_FE(openssl_pkcs12_export_to_file, arginfo_openssl_pkcs12_export_to_file) + PHP_FE(openssl_pkcs12_read, arginfo_openssl_pkcs12_read) + +/* CSR funcs */ + PHP_FE(openssl_csr_new, arginfo_openssl_csr_new) + PHP_FE(openssl_csr_export, arginfo_openssl_csr_export) + PHP_FE(openssl_csr_export_to_file, arginfo_openssl_csr_export_to_file) + PHP_FE(openssl_csr_sign, arginfo_openssl_csr_sign) + PHP_FE(openssl_csr_get_subject, arginfo_openssl_csr_get_subject) + PHP_FE(openssl_csr_get_public_key, arginfo_openssl_csr_get_public_key) + + PHP_FE(openssl_digest, arginfo_openssl_digest) + PHP_FE(openssl_encrypt, arginfo_openssl_encrypt) + PHP_FE(openssl_decrypt, arginfo_openssl_decrypt) + PHP_FE(openssl_cipher_iv_length, arginfo_openssl_cipher_iv_length) + PHP_FE(openssl_sign, arginfo_openssl_sign) + PHP_FE(openssl_verify, arginfo_openssl_verify) + PHP_FE(openssl_seal, arginfo_openssl_seal) + PHP_FE(openssl_open, arginfo_openssl_open) + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + PHP_FE(openssl_pbkdf2, arginfo_openssl_pbkdf2) +#endif + +/* for S/MIME handling */ + PHP_FE(openssl_pkcs7_verify, arginfo_openssl_pkcs7_verify) + PHP_FE(openssl_pkcs7_decrypt, arginfo_openssl_pkcs7_decrypt) + PHP_FE(openssl_pkcs7_sign, arginfo_openssl_pkcs7_sign) + PHP_FE(openssl_pkcs7_encrypt, arginfo_openssl_pkcs7_encrypt) + + PHP_FE(openssl_private_encrypt, arginfo_openssl_private_encrypt) + PHP_FE(openssl_private_decrypt, arginfo_openssl_private_decrypt) + PHP_FE(openssl_public_encrypt, arginfo_openssl_public_encrypt) + PHP_FE(openssl_public_decrypt, arginfo_openssl_public_decrypt) + + PHP_FE(openssl_get_md_methods, arginfo_openssl_get_md_methods) + PHP_FE(openssl_get_cipher_methods, arginfo_openssl_get_cipher_methods) + + PHP_FE(openssl_dh_compute_key, arginfo_openssl_dh_compute_key) + + PHP_FE(openssl_random_pseudo_bytes, arginfo_openssl_random_pseudo_bytes) + PHP_FE(openssl_error_string, arginfo_openssl_error_string) + PHP_FE_END +}; +/* }}} */ + +/* {{{ openssl_module_entry + */ +zend_module_entry openssl_module_entry = { + STANDARD_MODULE_HEADER, + "openssl", + openssl_functions, + PHP_MINIT(openssl), + PHP_MSHUTDOWN(openssl), + NULL, + NULL, + PHP_MINFO(openssl), + NO_VERSION_YET, + STANDARD_MODULE_PROPERTIES +}; +/* }}} */ + +#ifdef COMPILE_DL_OPENSSL +ZEND_GET_MODULE(openssl) +#endif + +/* {{{ OpenSSL compatibility functions and macros */ +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) +#define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa +#define EVP_PKEY_get0_DH(_pkey) _pkey->pkey.dh +#define EVP_PKEY_get0_DSA(_pkey) _pkey->pkey.dsa +#define EVP_PKEY_get0_EC_KEY(_pkey) _pkey->pkey.ec + +static int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) +{ + r->n = n; + r->e = e; + r->d = d; + + return 1; +} + +static int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q) +{ + r->p = p; + r->q = q; + + return 1; +} + +static int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) +{ + r->dmp1 = dmp1; + r->dmq1 = dmq1; + r->iqmp = iqmp; + + return 1; +} + +static void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) +{ + *n = r->n; + *e = r->e; + *d = r->d; +} + +static void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q) +{ + *p = r->p; + *q = r->q; +} + +static void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) +{ + *dmp1 = r->dmp1; + *dmq1 = r->dmq1; + *iqmp = r->iqmp; +} + +static void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) +{ + *p = dh->p; + *q = dh->q; + *g = dh->g; +} + +static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) +{ + dh->p = p; + dh->q = q; + dh->g = g; + + return 1; +} + +static void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key) +{ + *pub_key = dh->pub_key; + *priv_key = dh->priv_key; +} + +static int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) +{ + dh->pub_key = pub_key; + dh->priv_key = priv_key; + + return 1; +} + +static void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) +{ + *p = d->p; + *q = d->q; + *g = d->g; +} + +int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) +{ + d->p = p; + d->q = q; + d->g = g; + + return 1; +} + +static void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key) +{ + *pub_key = d->pub_key; + *priv_key = d->priv_key; +} + +int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) +{ + d->pub_key = pub_key; + d->priv_key = priv_key; + + return 1; +} + +#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined (LIBRESSL_VERSION_NUMBER) +#define EVP_PKEY_id(_pkey) _pkey->type +#define EVP_PKEY_base_id(_key) EVP_PKEY_type(_key->type) + +static int X509_get_signature_nid(const X509 *x) +{ + return OBJ_obj2nid(x->sig_alg->algorithm); +} + +#endif + +#endif +/* }}} */ + +static int le_key; +static int le_x509; +static int le_csr; +static int ssl_stream_data_index; + +int php_openssl_get_x509_list_id(void) /* {{{ */ +{ + return le_x509; +} +/* }}} */ + +/* {{{ resource destructors */ +static void php_pkey_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + EVP_PKEY *pkey = (EVP_PKEY *)rsrc->ptr; + + assert(pkey != NULL); + + EVP_PKEY_free(pkey); +} + +static void php_x509_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + X509 *x509 = (X509 *)rsrc->ptr; + X509_free(x509); +} + +static void php_csr_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + X509_REQ * csr = (X509_REQ*)rsrc->ptr; + X509_REQ_free(csr); +} +/* }}} */ + +/* {{{ openssl open_basedir check */ +inline static int php_openssl_open_base_dir_chk(char *filename TSRMLS_DC) +{ + if (php_check_open_basedir(filename TSRMLS_CC)) { + return -1; + } + + return 0; +} +/* }}} */ + +php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl) +{ + return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index); +} + +int php_openssl_get_ssl_stream_data_index() +{ + return ssl_stream_data_index; +} + +/* openssl -> PHP "bridging" */ +/* true global; readonly after module startup */ +static char default_ssl_conf_filename[MAXPATHLEN]; + +struct php_x509_request { /* {{{ */ +#if OPENSSL_VERSION_NUMBER >= 0x10000002L + LHASH_OF(CONF_VALUE) * global_config; /* Global SSL config */ + LHASH_OF(CONF_VALUE) * req_config; /* SSL config for this request */ +#else + LHASH * global_config; /* Global SSL config */ + LHASH * req_config; /* SSL config for this request */ +#endif + const EVP_MD * md_alg; + const EVP_MD * digest; + char * section_name, + * config_filename, + * digest_name, + * extensions_section, + * request_extensions_section; + int priv_key_bits; + int priv_key_type; + + int priv_key_encrypt; + + EVP_PKEY * priv_key; + + const EVP_CIPHER * priv_key_encrypt_cipher; +}; +/* }}} */ + +static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC); +static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int makeresource, long * resourceval TSRMLS_DC); +static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC); +static X509_STORE * setup_verify(zval * calist TSRMLS_DC); +static STACK_OF(X509) * load_all_certs_from_file(char *certfile); +static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC); +static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req TSRMLS_DC); + +static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int shortname TSRMLS_DC) /* {{{ */ +{ + zval **data; + zval *subitem, *subentries; + int i; + char *sname; + int nid; + X509_NAME_ENTRY * ne; + ASN1_STRING * str = NULL; + ASN1_OBJECT * obj; + + if (key != NULL) { + MAKE_STD_ZVAL(subitem); + array_init(subitem); + } else { + subitem = val; + } + + for (i = 0; i < X509_NAME_entry_count(name); i++) { + unsigned char *to_add; + int to_add_len = 0; + + + ne = X509_NAME_get_entry(name, i); + obj = X509_NAME_ENTRY_get_object(ne); + nid = OBJ_obj2nid(obj); + + if (shortname) { + sname = (char *) OBJ_nid2sn(nid); + } else { + sname = (char *) OBJ_nid2ln(nid); + } + + str = X509_NAME_ENTRY_get_data(ne); + if (ASN1_STRING_type(str) != V_ASN1_UTF8STRING) { + to_add_len = ASN1_STRING_to_UTF8(&to_add, str); + } else { + to_add = ASN1_STRING_data(str); + to_add_len = ASN1_STRING_length(str); + } + + if (to_add_len != -1) { + if (zend_hash_find(Z_ARRVAL_P(subitem), sname, strlen(sname)+1, (void**)&data) == SUCCESS) { + if (Z_TYPE_PP(data) == IS_ARRAY) { + subentries = *data; + add_next_index_stringl(subentries, (char *)to_add, to_add_len, 1); + } else if (Z_TYPE_PP(data) == IS_STRING) { + MAKE_STD_ZVAL(subentries); + array_init(subentries); + add_next_index_stringl(subentries, Z_STRVAL_PP(data), Z_STRLEN_PP(data), 1); + add_next_index_stringl(subentries, (char *)to_add, to_add_len, 1); + zend_hash_update(Z_ARRVAL_P(subitem), sname, strlen(sname)+1, &subentries, sizeof(zval*), NULL); + } + } else { + add_assoc_stringl(subitem, sname, (char *)to_add, to_add_len, 1); + } + } + } + if (key != NULL) { + zend_hash_update(HASH_OF(val), key, strlen(key) + 1, (void *)&subitem, sizeof(subitem), NULL); + } +} +/* }}} */ + +static void add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ +{ + add_assoc_stringl(val, key, (char *)str->data, str->length, 1); +} +/* }}} */ + +static time_t asn1_time_to_time_t(ASN1_UTCTIME * timestr TSRMLS_DC) /* {{{ */ +{ +/* + This is how the time string is formatted: + + snprintf(p, sizeof(p), "%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, + ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec); +*/ + + time_t ret; + struct tm thetime; + char * strbuf; + char * thestr; + long gmadjust = 0; + + if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZEDTIME) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal ASN1 data type for timestamp"); + return (time_t)-1; + } + + if (ASN1_STRING_length(timestr) != strlen((const char*)ASN1_STRING_data(timestr))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal length in timestamp"); + return (time_t)-1; + } + + if (ASN1_STRING_length(timestr) < 13) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to parse time string %s correctly", timestr->data); + return (time_t)-1; + } + + if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && ASN1_STRING_length(timestr) < 15) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to parse time string %s correctly", timestr->data); + return (time_t)-1; + } + + strbuf = estrdup((char *)ASN1_STRING_data(timestr)); + + memset(&thetime, 0, sizeof(thetime)); + + /* we work backwards so that we can use atoi more easily */ + + thestr = strbuf + ASN1_STRING_length(timestr) - 3; + + thetime.tm_sec = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_min = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_hour = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_mday = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_mon = atoi(thestr)-1; + + *thestr = '\0'; + if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { + thestr -= 2; + thetime.tm_year = atoi(thestr); + + if (thetime.tm_year < 68) { + thetime.tm_year += 100; + } + } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { + thestr -= 4; + thetime.tm_year = atoi(thestr) - 1900; + } + + + thetime.tm_isdst = -1; + ret = mktime(&thetime); + +#if HAVE_TM_GMTOFF + gmadjust = thetime.tm_gmtoff; +#else + /* + ** If correcting for daylight savings time, we set the adjustment to + ** the value of timezone - 3600 seconds. Otherwise, we need to overcorrect and + ** set the adjustment to the main timezone + 3600 seconds. + */ + gmadjust = -(thetime.tm_isdst ? (long)timezone - 3600 : (long)timezone + 3600); +#endif + ret += gmadjust; + + efree(strbuf); + + return ret; +} +/* }}} */ + +#if OPENSSL_VERSION_NUMBER >= 0x10000002L +static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH_OF(CONF_VALUE) * config TSRMLS_DC) /* {{{ */ +#else +static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH * config TSRMLS_DC) +#endif +{ + X509V3_CTX ctx; + + X509V3_set_ctx_test(&ctx); + X509V3_set_conf_lhash(&ctx, config); + if (!X509V3_EXT_add_conf(config, &ctx, (char *)section, NULL)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error loading %s section %s of %s", + section_label, + section, + config_filename); + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +static int add_oid_section(struct php_x509_request * req TSRMLS_DC) /* {{{ */ +{ + char * str; + STACK_OF(CONF_VALUE) * sktmp; + CONF_VALUE * cnf; + int i; + + str = CONF_get_string(req->req_config, NULL, "oid_section"); + if (str == NULL) { + return SUCCESS; + } + sktmp = CONF_get_section(req->req_config, str); + if (sktmp == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "problem loading oid section %s", str); + return FAILURE; + } + for (i = 0; i < sk_CONF_VALUE_num(sktmp); i++) { + cnf = sk_CONF_VALUE_value(sktmp, i); + if (OBJ_sn2nid(cnf->name) == NID_undef && OBJ_ln2nid(cnf->name) == NID_undef && OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "problem creating object %s=%s", cnf->name, cnf->value); + return FAILURE; + } + } + return SUCCESS; +} +/* }}} */ + +#define PHP_SSL_REQ_INIT(req) memset(req, 0, sizeof(*req)) +#define PHP_SSL_REQ_DISPOSE(req) php_openssl_dispose_config(req TSRMLS_CC) +#define PHP_SSL_REQ_PARSE(req, zval) php_openssl_parse_config(req, zval TSRMLS_CC) + +#define PHP_SSL_CONFIG_SYNTAX_CHECK(var) if (req->var && php_openssl_config_check_syntax(#var, \ + req->config_filename, req->var, req->req_config TSRMLS_CC) == FAILURE) return FAILURE + +#define SET_OPTIONAL_STRING_ARG(key, varname, defval) \ + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) \ + varname = Z_STRVAL_PP(item); \ + else \ + varname = defval + +#define SET_OPTIONAL_LONG_ARG(key, varname, defval) \ + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_LONG) \ + varname = Z_LVAL_PP(item); \ + else \ + varname = defval + +static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(long algo); + +int openssl_spki_cleanup(const char *src, char *dest); + +static int php_openssl_parse_config(struct php_x509_request * req, zval * optional_args TSRMLS_DC) /* {{{ */ +{ + char * str; + zval ** item; + + SET_OPTIONAL_STRING_ARG("config", req->config_filename, default_ssl_conf_filename); + SET_OPTIONAL_STRING_ARG("config_section_name", req->section_name, "req"); + req->global_config = CONF_load(NULL, default_ssl_conf_filename, NULL); + req->req_config = CONF_load(NULL, req->config_filename, NULL); + + if (req->req_config == NULL) { + return FAILURE; + } + + /* read in the oids */ + str = CONF_get_string(req->req_config, NULL, "oid_file"); + if (str && !php_openssl_open_base_dir_chk(str TSRMLS_CC)) { + BIO *oid_bio = BIO_new_file(str, "r"); + if (oid_bio) { + OBJ_create_objects(oid_bio); + BIO_free(oid_bio); + } + } + if (add_oid_section(req TSRMLS_CC) == FAILURE) { + return FAILURE; + } + SET_OPTIONAL_STRING_ARG("digest_alg", req->digest_name, + CONF_get_string(req->req_config, req->section_name, "default_md")); + SET_OPTIONAL_STRING_ARG("x509_extensions", req->extensions_section, + CONF_get_string(req->req_config, req->section_name, "x509_extensions")); + SET_OPTIONAL_STRING_ARG("req_extensions", req->request_extensions_section, + CONF_get_string(req->req_config, req->section_name, "req_extensions")); + SET_OPTIONAL_LONG_ARG("private_key_bits", req->priv_key_bits, + CONF_get_number(req->req_config, req->section_name, "default_bits")); + + SET_OPTIONAL_LONG_ARG("private_key_type", req->priv_key_type, OPENSSL_KEYTYPE_DEFAULT); + + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), "encrypt_key", sizeof("encrypt_key"), (void**)&item) == SUCCESS) { + req->priv_key_encrypt = Z_BVAL_PP(item); + } else { + str = CONF_get_string(req->req_config, req->section_name, "encrypt_rsa_key"); + if (str == NULL) { + str = CONF_get_string(req->req_config, req->section_name, "encrypt_key"); + } + if (str && strcmp(str, "no") == 0) { + req->priv_key_encrypt = 0; + } else { + req->priv_key_encrypt = 1; + } + } + + if (req->priv_key_encrypt && optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), "encrypt_key_cipher", sizeof("encrypt_key_cipher"), (void**)&item) == SUCCESS + && Z_TYPE_PP(item) == IS_LONG) { + long cipher_algo = Z_LVAL_PP(item); + const EVP_CIPHER* cipher = php_openssl_get_evp_cipher_from_algo(cipher_algo); + if (cipher == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm for private key."); + return FAILURE; + } else { + req->priv_key_encrypt_cipher = cipher; + } + } else { + req->priv_key_encrypt_cipher = NULL; + } + + + + /* digest alg */ + if (req->digest_name == NULL) { + req->digest_name = CONF_get_string(req->req_config, req->section_name, "default_md"); + } + if (req->digest_name) { + req->digest = req->md_alg = EVP_get_digestbyname(req->digest_name); + } + if (req->md_alg == NULL) { + req->md_alg = req->digest = EVP_sha1(); + } + + PHP_SSL_CONFIG_SYNTAX_CHECK(extensions_section); + + /* set the string mask */ + str = CONF_get_string(req->req_config, req->section_name, "string_mask"); + if (str && !ASN1_STRING_set_default_mask_asc(str)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid global string mask setting %s", str); + return FAILURE; + } + + PHP_SSL_CONFIG_SYNTAX_CHECK(request_extensions_section); + + return SUCCESS; +} +/* }}} */ + +static void php_openssl_dispose_config(struct php_x509_request * req TSRMLS_DC) /* {{{ */ +{ + if (req->priv_key) { + EVP_PKEY_free(req->priv_key); + req->priv_key = NULL; + } + if (req->global_config) { + CONF_free(req->global_config); + req->global_config = NULL; + } + if (req->req_config) { + CONF_free(req->req_config); + req->req_config = NULL; + } +} +/* }}} */ + +#if defined(PHP_WIN32) || (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) +#define PHP_OPENSSL_RAND_ADD_TIME() ((void) 0) +#else +#define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval() + +static inline void php_openssl_rand_add_timeval() /* {{{ */ +{ + struct timeval tv; + + gettimeofday(&tv, NULL); + RAND_add(&tv, sizeof(tv), 0.0); +} +/* }}} */ + +#endif + +static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *seeded TSRMLS_DC) /* {{{ */ +{ + char buffer[MAXPATHLEN]; + + *egdsocket = 0; + *seeded = 0; + + if (file == NULL) { + file = RAND_file_name(buffer, sizeof(buffer)); +#ifdef HAVE_RAND_EGD + } else if (RAND_egd(file) > 0) { + /* if the given filename is an EGD socket, don't + * write anything back to it */ + *egdsocket = 1; + return SUCCESS; +#endif + } + if (file == NULL || !RAND_load_file(file, -1)) { + if (RAND_status() == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to load random state; not enough random data!"); + return FAILURE; + } + return FAILURE; + } + *seeded = 1; + return SUCCESS; +} +/* }}} */ + +static int php_openssl_write_rand_file(const char * file, int egdsocket, int seeded) /* {{{ */ +{ + char buffer[MAXPATHLEN]; + + TSRMLS_FETCH(); + + if (egdsocket || !seeded) { + /* if we did not manage to read the seed file, we should not write + * a low-entropy seed file back */ + return FAILURE; + } + if (file == NULL) { + file = RAND_file_name(buffer, sizeof(buffer)); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (file == NULL || !RAND_write_file(file)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to write random state"); + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +static EVP_MD * php_openssl_get_evp_md_from_algo(long algo) { /* {{{ */ + EVP_MD *mdtype; + + switch (algo) { + case OPENSSL_ALGO_SHA1: + mdtype = (EVP_MD *) EVP_sha1(); + break; + case OPENSSL_ALGO_MD5: + mdtype = (EVP_MD *) EVP_md5(); + break; + case OPENSSL_ALGO_MD4: + mdtype = (EVP_MD *) EVP_md4(); + break; +#ifdef HAVE_OPENSSL_MD2_H + case OPENSSL_ALGO_MD2: + mdtype = (EVP_MD *) EVP_md2(); + break; +#endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) + case OPENSSL_ALGO_DSS1: + mdtype = (EVP_MD *) EVP_dss1(); + break; +#endif +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL + case OPENSSL_ALGO_SHA224: + mdtype = (EVP_MD *) EVP_sha224(); + break; + case OPENSSL_ALGO_SHA256: + mdtype = (EVP_MD *) EVP_sha256(); + break; + case OPENSSL_ALGO_SHA384: + mdtype = (EVP_MD *) EVP_sha384(); + break; + case OPENSSL_ALGO_SHA512: + mdtype = (EVP_MD *) EVP_sha512(); + break; + case OPENSSL_ALGO_RMD160: + mdtype = (EVP_MD *) EVP_ripemd160(); + break; +#endif + default: + return NULL; + break; + } + return mdtype; +} +/* }}} */ + +static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(long algo) { /* {{{ */ + switch (algo) { +#ifndef OPENSSL_NO_RC2 + case PHP_OPENSSL_CIPHER_RC2_40: + return EVP_rc2_40_cbc(); + break; + case PHP_OPENSSL_CIPHER_RC2_64: + return EVP_rc2_64_cbc(); + break; + case PHP_OPENSSL_CIPHER_RC2_128: + return EVP_rc2_cbc(); + break; +#endif + +#ifndef OPENSSL_NO_DES + case PHP_OPENSSL_CIPHER_DES: + return EVP_des_cbc(); + break; + case PHP_OPENSSL_CIPHER_3DES: + return EVP_des_ede3_cbc(); + break; +#endif + +#ifndef OPENSSL_NO_AES + case PHP_OPENSSL_CIPHER_AES_128_CBC: + return EVP_aes_128_cbc(); + break; + case PHP_OPENSSL_CIPHER_AES_192_CBC: + return EVP_aes_192_cbc(); + break; + case PHP_OPENSSL_CIPHER_AES_256_CBC: + return EVP_aes_256_cbc(); + break; +#endif + + + default: + return NULL; + break; + } +} +/* }}} */ + +/* {{{ INI Settings */ +PHP_INI_BEGIN() + PHP_INI_ENTRY("openssl.cafile", NULL, PHP_INI_PERDIR, NULL) + PHP_INI_ENTRY("openssl.capath", NULL, PHP_INI_PERDIR, NULL) +PHP_INI_END() +/* }}} */ + +/* {{{ PHP_MINIT_FUNCTION + */ +PHP_MINIT_FUNCTION(openssl) +{ + char * config_filename; + + le_key = zend_register_list_destructors_ex(php_pkey_free, NULL, "OpenSSL key", module_number); + le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL, "OpenSSL X.509", module_number); + le_csr = zend_register_list_destructors_ex(php_csr_free, NULL, "OpenSSL X.509 CSR", module_number); + + SSL_library_init(); + OpenSSL_add_all_ciphers(); + OpenSSL_add_all_digests(); + OpenSSL_add_all_algorithms(); + +#if !defined(OPENSSL_NO_AES) && defined(EVP_CIPH_CCM_MODE) && OPENSSL_VERSION_NUMBER < 0x100020000 + EVP_add_cipher(EVP_aes_128_ccm()); + EVP_add_cipher(EVP_aes_192_ccm()); + EVP_add_cipher(EVP_aes_256_ccm()); +#endif + + SSL_load_error_strings(); + + /* register a resource id number with OpenSSL so that we can map SSL -> stream structures in + * OpenSSL callbacks */ + ssl_stream_data_index = SSL_get_ex_new_index(0, "PHP stream index", NULL, NULL, NULL); + + REGISTER_STRING_CONSTANT("OPENSSL_VERSION_TEXT", OPENSSL_VERSION_TEXT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_VERSION_NUMBER", OPENSSL_VERSION_NUMBER, CONST_CS|CONST_PERSISTENT); + + /* purposes for cert purpose checking */ + REGISTER_LONG_CONSTANT("X509_PURPOSE_SSL_CLIENT", X509_PURPOSE_SSL_CLIENT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SSL_SERVER", X509_PURPOSE_SSL_SERVER, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_NS_SSL_SERVER", X509_PURPOSE_NS_SSL_SERVER, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SMIME_SIGN", X509_PURPOSE_SMIME_SIGN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SMIME_ENCRYPT", X509_PURPOSE_SMIME_ENCRYPT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_CRL_SIGN", X509_PURPOSE_CRL_SIGN, CONST_CS|CONST_PERSISTENT); +#ifdef X509_PURPOSE_ANY + REGISTER_LONG_CONSTANT("X509_PURPOSE_ANY", X509_PURPOSE_ANY, CONST_CS|CONST_PERSISTENT); +#endif + + /* signature algorithm constants */ + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA1", OPENSSL_ALGO_SHA1, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD5", OPENSSL_ALGO_MD5, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD4", OPENSSL_ALGO_MD4, CONST_CS|CONST_PERSISTENT); +#ifdef HAVE_OPENSSL_MD2_H + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD2", OPENSSL_ALGO_MD2, CONST_CS|CONST_PERSISTENT); +#endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_DSS1", OPENSSL_ALGO_DSS1, CONST_CS|CONST_PERSISTENT); +#endif +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA224", OPENSSL_ALGO_SHA224, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA256", OPENSSL_ALGO_SHA256, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA384", OPENSSL_ALGO_SHA384, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA512", OPENSSL_ALGO_SHA512, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_RMD160", OPENSSL_ALGO_RMD160, CONST_CS|CONST_PERSISTENT); +#endif + + /* flags for S/MIME */ + REGISTER_LONG_CONSTANT("PKCS7_DETACHED", PKCS7_DETACHED, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_TEXT", PKCS7_TEXT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOINTERN", PKCS7_NOINTERN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOVERIFY", PKCS7_NOVERIFY, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOCHAIN", PKCS7_NOCHAIN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOCERTS", PKCS7_NOCERTS, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOATTR", PKCS7_NOATTR, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_BINARY", PKCS7_BINARY, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOSIGS", PKCS7_NOSIGS, CONST_CS|CONST_PERSISTENT); + + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT); + + /* Informational stream wrapper constants */ + REGISTER_STRING_CONSTANT("OPENSSL_DEFAULT_STREAM_CIPHERS", OPENSSL_DEFAULT_STREAM_CIPHERS, CONST_CS|CONST_PERSISTENT); + + /* Ciphers */ +#ifndef OPENSSL_NO_RC2 + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_40", PHP_OPENSSL_CIPHER_RC2_40, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_128", PHP_OPENSSL_CIPHER_RC2_128, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_64", PHP_OPENSSL_CIPHER_RC2_64, CONST_CS|CONST_PERSISTENT); +#endif +#ifndef OPENSSL_NO_DES + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_DES", PHP_OPENSSL_CIPHER_DES, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_3DES", PHP_OPENSSL_CIPHER_3DES, CONST_CS|CONST_PERSISTENT); +#endif +#ifndef OPENSSL_NO_AES + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_128_CBC", PHP_OPENSSL_CIPHER_AES_128_CBC, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_192_CBC", PHP_OPENSSL_CIPHER_AES_192_CBC, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_256_CBC", PHP_OPENSSL_CIPHER_AES_256_CBC, CONST_CS|CONST_PERSISTENT); +#endif + + /* Values for key types */ + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_RSA", OPENSSL_KEYTYPE_RSA, CONST_CS|CONST_PERSISTENT); +#ifndef NO_DSA + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DSA", OPENSSL_KEYTYPE_DSA, CONST_CS|CONST_PERSISTENT); +#endif + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DH", OPENSSL_KEYTYPE_DH, CONST_CS|CONST_PERSISTENT); +#ifdef HAVE_EVP_PKEY_EC + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_EC", OPENSSL_KEYTYPE_EC, CONST_CS|CONST_PERSISTENT); +#endif + + REGISTER_LONG_CONSTANT("OPENSSL_RAW_DATA", OPENSSL_RAW_DATA, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ZERO_PADDING", OPENSSL_ZERO_PADDING, CONST_CS|CONST_PERSISTENT); + +#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) + /* SNI support included in OpenSSL >= 0.9.8j */ + REGISTER_LONG_CONSTANT("OPENSSL_TLSEXT_SERVER_NAME", 1, CONST_CS|CONST_PERSISTENT); +#endif + + /* Determine default SSL configuration file */ + config_filename = getenv("OPENSSL_CONF"); + if (config_filename == NULL) { + config_filename = getenv("SSLEAY_CONF"); + } + + /* default to 'openssl.cnf' if no environment variable is set */ + if (config_filename == NULL) { + snprintf(default_ssl_conf_filename, sizeof(default_ssl_conf_filename), "%s/%s", + X509_get_default_cert_area(), + "openssl.cnf"); + } else { + strlcpy(default_ssl_conf_filename, config_filename, sizeof(default_ssl_conf_filename)); + } + + php_stream_xport_register("ssl", php_openssl_ssl_socket_factory TSRMLS_CC); +#ifndef OPENSSL_NO_SSL3 + php_stream_xport_register("sslv3", php_openssl_ssl_socket_factory TSRMLS_CC); +#endif +#ifndef OPENSSL_NO_SSL2 + php_stream_xport_register("sslv2", php_openssl_ssl_socket_factory TSRMLS_CC); +#endif + php_stream_xport_register("tls", php_openssl_ssl_socket_factory TSRMLS_CC); + php_stream_xport_register("tlsv1.0", php_openssl_ssl_socket_factory TSRMLS_CC); +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + php_stream_xport_register("tlsv1.1", php_openssl_ssl_socket_factory TSRMLS_CC); + php_stream_xport_register("tlsv1.2", php_openssl_ssl_socket_factory TSRMLS_CC); +#endif + + /* override the default tcp socket provider */ + php_stream_xport_register("tcp", php_openssl_ssl_socket_factory TSRMLS_CC); + + php_register_url_stream_wrapper("https", &php_stream_http_wrapper TSRMLS_CC); + php_register_url_stream_wrapper("ftps", &php_stream_ftp_wrapper TSRMLS_CC); + + REGISTER_INI_ENTRIES(); + + return SUCCESS; +} +/* }}} */ + +/* {{{ PHP_MINFO_FUNCTION + */ +PHP_MINFO_FUNCTION(openssl) +{ + php_info_print_table_start(); + php_info_print_table_row(2, "OpenSSL support", "enabled"); + php_info_print_table_row(2, "OpenSSL Library Version", SSLeay_version(SSLEAY_VERSION)); + php_info_print_table_row(2, "OpenSSL Header Version", OPENSSL_VERSION_TEXT); + php_info_print_table_row(2, "Openssl default config", default_ssl_conf_filename); + php_info_print_table_end(); + DISPLAY_INI_ENTRIES(); +} +/* }}} */ + +/* {{{ PHP_MSHUTDOWN_FUNCTION + */ +PHP_MSHUTDOWN_FUNCTION(openssl) +{ + EVP_cleanup(); + +#if OPENSSL_VERSION_NUMBER >= 0x00090805f + /* prevent accessing locking callback from unloaded extension */ + CRYPTO_set_locking_callback(NULL); + /* free allocated error strings */ + ERR_free_strings(); +#endif + + php_unregister_url_stream_wrapper("https" TSRMLS_CC); + php_unregister_url_stream_wrapper("ftps" TSRMLS_CC); + + php_stream_xport_unregister("ssl" TSRMLS_CC); +#ifndef OPENSSL_NO_SSL2 + php_stream_xport_unregister("sslv2" TSRMLS_CC); +#endif +#ifndef OPENSSL_NO_SSL3 + php_stream_xport_unregister("sslv3" TSRMLS_CC); +#endif + php_stream_xport_unregister("tls" TSRMLS_CC); + php_stream_xport_unregister("tlsv1.0" TSRMLS_CC); +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + php_stream_xport_unregister("tlsv1.1" TSRMLS_CC); + php_stream_xport_unregister("tlsv1.2" TSRMLS_CC); +#endif + + /* reinstate the default tcp handler */ + php_stream_xport_register("tcp", php_stream_generic_socket_factory TSRMLS_CC); + + UNREGISTER_INI_ENTRIES(); + + return SUCCESS; +} +/* }}} */ + +/* {{{ x509 cert functions */ + +/* {{{ proto array openssl_get_cert_locations(void) + Retrieve an array mapping available certificate locations */ +PHP_FUNCTION(openssl_get_cert_locations) +{ + array_init(return_value); + + add_assoc_string(return_value, "default_cert_file", (char *) X509_get_default_cert_file(), 1); + add_assoc_string(return_value, "default_cert_file_env", (char *) X509_get_default_cert_file_env(), 1); + add_assoc_string(return_value, "default_cert_dir", (char *) X509_get_default_cert_dir(), 1); + add_assoc_string(return_value, "default_cert_dir_env", (char *) X509_get_default_cert_dir_env(), 1); + add_assoc_string(return_value, "default_private_dir", (char *) X509_get_default_private_dir(), 1); + add_assoc_string(return_value, "default_default_cert_area", (char *) X509_get_default_cert_area(), 1); + add_assoc_string(return_value, "ini_cafile", + zend_ini_string("openssl.cafile", sizeof("openssl.cafile"), 0), 1); + add_assoc_string(return_value, "ini_capath", + zend_ini_string("openssl.capath", sizeof("openssl.capath"), 0), 1); +} +/* }}} */ + + +/* {{{ php_openssl_x509_from_zval + Given a zval, coerce it into an X509 object. + The zval can be: + . X509 resource created using openssl_read_x509() + . if it starts with file:// then it will be interpreted as the path to that cert + . it will be interpreted as the cert data + If you supply makeresource, the result will be registered as an x509 resource and + it's value returned in makeresource. +*/ +static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC) +{ + X509 *cert = NULL; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_RESOURCE) { + /* is it an x509 resource ? */ + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509", &type, 1, le_x509); + if (!what) { + return NULL; + } + /* this is so callers can decide if they should free the X509 */ + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + if (type == le_x509) { + return (X509*)what; + } + /* other types could be used here - eg: file pointers and read in the data from them */ + + return NULL; + } + + if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { + return NULL; + } + + /* force it to be a string and check if it refers to a file */ + convert_to_string_ex(val); + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + /* read cert from the named file */ + BIO *in; + + if (php_openssl_open_base_dir_chk(Z_STRVAL_PP(val) + (sizeof("file://") - 1) TSRMLS_CC)) { + return NULL; + } + + in = BIO_new_file(Z_STRVAL_PP(val) + (sizeof("file://") - 1), "r"); + if (in == NULL) { + return NULL; + } + cert = PEM_read_bio_X509(in, NULL, NULL, NULL); + BIO_free(in); + } else { + BIO *in; + + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + if (in == NULL) { + return NULL; + } +#ifdef TYPEDEF_D2I_OF + cert = (X509 *) PEM_ASN1_read_bio((d2i_of_void *)d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#else + cert = (X509 *) PEM_ASN1_read_bio((char *(*)())d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#endif + BIO_free(in); + } + + if (cert && makeresource && resourceval) { + *resourceval = zend_list_insert(cert, le_x509 TSRMLS_CC); + } + return cert; +} + +/* }}} */ + +/* {{{ proto bool openssl_x509_export_to_file(mixed x509, string outfilename [, bool notext = true]) + Exports a CERT to file or a var */ +PHP_FUNCTION(openssl_x509_export_to_file) +{ + X509 * cert; + zval ** zcert; + zend_bool notext = 1; + BIO * bio_out; + long certresource; + char * filename; + int filename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zp|b", &zcert, &filename, &filename_len, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return; + } + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + if (!notext) { + X509_print(bio_out, cert); + } + PEM_write_bio_X509(bio_out, cert); + + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto string openssl_spki_new(mixed zpkey, string challenge [, mixed method]) + Creates new private key (or uses existing) and creates a new spki cert + outputting results to var */ +PHP_FUNCTION(openssl_spki_new) +{ + int challenge_len; + char * challenge = NULL, * spkstr = NULL, * s = NULL; + long keyresource = -1; + const char *spkac = "SPKAC="; + long algo = OPENSSL_ALGO_MD5; + + zval *method = NULL; + zval * zpkey = NULL; + EVP_PKEY * pkey = NULL; + NETSCAPE_SPKI *spki=NULL; + const EVP_MD *mdtype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|z", &zpkey, &challenge, &challenge_len, &method) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(&zpkey, 0, challenge, 1, &keyresource TSRMLS_CC); + + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied private key"); + goto cleanup; + } + + if (method != NULL) { + if (Z_TYPE_P(method) == IS_LONG) { + algo = Z_LVAL_P(method); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Algorithm must be of supported type"); + goto cleanup; + } + } + mdtype = php_openssl_get_evp_md_from_algo(algo); + + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + goto cleanup; + } + + if ((spki = NETSCAPE_SPKI_new()) == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create new SPKAC"); + goto cleanup; + } + + if (challenge) { + ASN1_STRING_set(spki->spkac->challenge, challenge, challenge_len); + } + + if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to embed public key"); + goto cleanup; + } + + if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to sign with specified algorithm"); + goto cleanup; + } + + spkstr = NETSCAPE_SPKI_b64_encode(spki); + if (!spkstr){ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to encode SPKAC"); + goto cleanup; + } + + s = emalloc(strlen(spkac) + strlen(spkstr) + 1); + sprintf(s, "%s%s", spkac, spkstr); + + RETVAL_STRINGL(s, strlen(s), 0); + goto cleanup; + +cleanup: + + if (keyresource == -1 && spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (keyresource == -1 && pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (keyresource == -1 && spkstr != NULL) { + efree(spkstr); + } + + if (s && strlen(s) <= 0) { + RETVAL_FALSE; + } + + if (keyresource == -1 && s != NULL) { + efree(s); + } +} +/* }}} */ + +/* {{{ proto bool openssl_spki_verify(string spki) + Verifies spki returns boolean */ +PHP_FUNCTION(openssl_spki_verify) +{ + int spkstr_len, i = 0; + char *spkstr = NULL, * spkstr_cleaned = NULL; + + EVP_PKEY *pkey = NULL; + NETSCAPE_SPKI *spki = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + if (strlen(spkstr_cleaned)<=0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid SPKAC"); + goto cleanup; + } + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode supplied SPKAC"); + goto cleanup; + } + + pkey = X509_PUBKEY_get(spki->spkac->pubkey); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to acquire signed public key"); + goto cleanup; + } + + i = NETSCAPE_SPKI_verify(spki, pkey); + goto cleanup; + +cleanup: + if (spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } + + if (i > 0) { + RETVAL_TRUE; + } +} +/* }}} */ + +/* {{{ proto string openssl_spki_export(string spki) + Exports public key from existing spki to var */ +PHP_FUNCTION(openssl_spki_export) +{ + int spkstr_len; + char *spkstr = NULL, * spkstr_cleaned = NULL, * s = NULL; + + EVP_PKEY *pkey = NULL; + NETSCAPE_SPKI *spki = NULL; + BIO *out = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode supplied SPKAC"); + goto cleanup; + } + + pkey = X509_PUBKEY_get(spki->spkac->pubkey); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to acquire signed public key"); + goto cleanup; + } + + out = BIO_new(BIO_s_mem()); + if (out && PEM_write_bio_PUBKEY(out, pkey)) { + BUF_MEM *bio_buf; + + BIO_get_mem_ptr(out, &bio_buf); + RETVAL_STRINGL((char *)bio_buf->data, bio_buf->length, 1); + } + goto cleanup; + +cleanup: + + if (spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (out != NULL) { + BIO_free_all(out); + } + if (pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } + if (s != NULL) { + efree(s); + } +} +/* }}} */ + +/* {{{ proto string openssl_spki_export_challenge(string spki) + Exports spkac challenge from existing spki to var */ +PHP_FUNCTION(openssl_spki_export_challenge) +{ + int spkstr_len; + char *spkstr = NULL, * spkstr_cleaned = NULL; + + NETSCAPE_SPKI *spki = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode SPKAC"); + goto cleanup; + } + + RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge), 1); + goto cleanup; + +cleanup: + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } +} +/* }}} */ + +/* {{{ strip line endings from spkac */ +int openssl_spki_cleanup(const char *src, char *dest) +{ + int removed=0; + + while (*src) { + if (*src!='\n'&&*src!='\r') { + *dest++=*src; + } else { + ++removed; + } + ++src; + } + *dest=0; + return removed; +} +/* }}} */ + +/* {{{ proto bool openssl_x509_export(mixed x509, string &out [, bool notext = true]) + Exports a CERT to file or a var */ +PHP_FUNCTION(openssl_x509_export) +{ + X509 * cert; + zval ** zcert, *zout; + zend_bool notext = 1; + BIO * bio_out; + long certresource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zz|b", &zcert, &zout, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + + bio_out = BIO_new(BIO_s_mem()); + if (!notext) { + X509_print(bio_out, cert); + } + if (PEM_write_bio_X509(bio_out, cert)) { + BUF_MEM *bio_buf; + + zval_dtor(zout); + BIO_get_mem_ptr(bio_out, &bio_buf); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); +} +/* }}} */ + +int php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw, char **out, int *out_len TSRMLS_DC) +{ + unsigned char md[EVP_MAX_MD_SIZE]; + const EVP_MD *mdtype; + unsigned int n; + + if (!(mdtype = EVP_get_digestbyname(method))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + return FAILURE; + } else if (!X509_digest(peer, mdtype, md, &n)) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not generate signature"); + return FAILURE; + } + + if (raw) { + *out_len = n; + *out = estrndup((char *) md, n); + } else { + *out_len = n * 2; + *out = emalloc(*out_len + 1); + + make_digest_ex(*out, md, n); + } + + return SUCCESS; +} + +PHP_FUNCTION(openssl_x509_fingerprint) +{ + X509 *cert; + zval **zcert; + long certresource; + zend_bool raw_output = 0; + char *method = "sha1"; + int method_len; + + char *fingerprint; + int fingerprint_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|sb", &zcert, &method, &method_len, &raw_output) == FAILURE) { + return; + } + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + RETURN_FALSE; + } + + if (php_openssl_x509_fingerprint(cert, method, raw_output, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) { + RETVAL_STRINGL(fingerprint, fingerprint_len, 0); + } else { + RETVAL_FALSE; + } + + if (certresource == -1 && cert) { + X509_free(cert); + } +} + +/* {{{ proto bool openssl_x509_check_private_key(mixed cert, mixed key) + Checks if a private key corresponds to a CERT */ +PHP_FUNCTION(openssl_x509_check_private_key) +{ + zval ** zcert, **zkey; + X509 * cert = NULL; + EVP_PKEY * key = NULL; + long certresource = -1, keyresource = -1; + + RETVAL_FALSE; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ", &zcert, &zkey) == FAILURE) { + return; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + RETURN_FALSE; + } + key = php_openssl_evp_from_zval(zkey, 0, "", 1, &keyresource TSRMLS_CC); + if (key) { + RETVAL_BOOL(X509_check_private_key(cert, key)); + } + + if (keyresource == -1 && key) { + EVP_PKEY_free(key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* Special handling of subjectAltName, see CVE-2013-4073 + * Christian Heimes + */ + +static int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension) +{ + GENERAL_NAMES *names; + const X509V3_EXT_METHOD *method = NULL; + ASN1_OCTET_STRING *extension_data; + long i, length, num; + const unsigned char *p; + + method = X509V3_EXT_get(extension); + if (method == NULL) { + return -1; + } + + extension_data = X509_EXTENSION_get_data(extension); + p = extension_data->data; + length = extension_data->length; + if (method->it) { + names = (GENERAL_NAMES*)(ASN1_item_d2i(NULL, &p, length, + ASN1_ITEM_ptr(method->it))); + } else { + names = (GENERAL_NAMES*)(method->d2i(NULL, &p, length)); + } + if (names == NULL) { + return -1; + } + + num = sk_GENERAL_NAME_num(names); + for (i = 0; i < num; i++) { + GENERAL_NAME *name; + ASN1_STRING *as; + name = sk_GENERAL_NAME_value(names, i); + switch (name->type) { + case GEN_EMAIL: + BIO_puts(bio, "email:"); + as = name->d.rfc822Name; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + case GEN_DNS: + BIO_puts(bio, "DNS:"); + as = name->d.dNSName; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + case GEN_URI: + BIO_puts(bio, "URI:"); + as = name->d.uniformResourceIdentifier; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + default: + /* use builtin print for GEN_OTHERNAME, GEN_X400, + * GEN_EDIPARTY, GEN_DIRNAME, GEN_IPADD and GEN_RID + */ + GENERAL_NAME_print(bio, name); + } + /* trailing ', ' except for last element */ + if (i < (num - 1)) { + BIO_puts(bio, ", "); + } + } + sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free); + + return 0; +} + +/* {{{ proto array openssl_x509_parse(mixed x509 [, bool shortnames=true]) + Returns an array of the fields/values of the CERT */ +PHP_FUNCTION(openssl_x509_parse) +{ + zval ** zcert; + X509 * cert = NULL; + long certresource = -1; + int i, sig_nid; + zend_bool useshortnames = 1; + char * tmpstr; + zval * subitem; + X509_EXTENSION *extension; + X509_NAME *subject_name; + char *cert_name; + char *extname; + BIO *bio_out; + BUF_MEM *bio_buf; + char buf[256]; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcert, &useshortnames) == FAILURE) { + return; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + RETURN_FALSE; + } + array_init(return_value); + + subject_name = X509_get_subject_name(cert); + cert_name = X509_NAME_oneline(subject_name, NULL, 0); + add_assoc_string(return_value, "name", cert_name, 1); + OPENSSL_free(cert_name); + + add_assoc_name_entry(return_value, "subject", X509_get_subject_name(cert), useshortnames TSRMLS_CC); + /* hash as used in CA directories to lookup cert by subject name */ + { + char buf[32]; + snprintf(buf, sizeof(buf), "%08lx", X509_subject_name_hash(cert)); + add_assoc_string(return_value, "hash", buf, 1); + } + + add_assoc_name_entry(return_value, "issuer", X509_get_issuer_name(cert), useshortnames TSRMLS_CC); + add_assoc_long(return_value, "version", X509_get_version(cert)); + + add_assoc_string(return_value, "serialNumber", i2s_ASN1_INTEGER(NULL, X509_get_serialNumber(cert)), 1); + + add_assoc_asn1_string(return_value, "validFrom", X509_get_notBefore(cert)); + add_assoc_asn1_string(return_value, "validTo", X509_get_notAfter(cert)); + + add_assoc_long(return_value, "validFrom_time_t", asn1_time_to_time_t(X509_get_notBefore(cert) TSRMLS_CC)); + add_assoc_long(return_value, "validTo_time_t", asn1_time_to_time_t(X509_get_notAfter(cert) TSRMLS_CC)); + + tmpstr = (char *)X509_alias_get0(cert, NULL); + if (tmpstr) { + add_assoc_string(return_value, "alias", tmpstr, 1); + } + + sig_nid = X509_get_signature_nid(cert); + add_assoc_string(return_value, "signatureTypeSN", (char*)OBJ_nid2sn(sig_nid), 1); + add_assoc_string(return_value, "signatureTypeLN", (char*)OBJ_nid2ln(sig_nid), 1); + add_assoc_long(return_value, "signatureTypeNID", sig_nid); + + MAKE_STD_ZVAL(subitem); + array_init(subitem); + + /* NOTE: the purposes are added as integer keys - the keys match up to the X509_PURPOSE_SSL_XXX defines + in x509v3.h */ + for (i = 0; i < X509_PURPOSE_get_count(); i++) { + int id, purpset; + char * pname; + X509_PURPOSE * purp; + zval * subsub; + + MAKE_STD_ZVAL(subsub); + array_init(subsub); + + purp = X509_PURPOSE_get0(i); + id = X509_PURPOSE_get_id(purp); + + purpset = X509_check_purpose(cert, id, 0); + add_index_bool(subsub, 0, purpset); + + purpset = X509_check_purpose(cert, id, 1); + add_index_bool(subsub, 1, purpset); + + pname = useshortnames ? X509_PURPOSE_get0_sname(purp) : X509_PURPOSE_get0_name(purp); + add_index_string(subsub, 2, pname, 1); + + /* NOTE: if purpset > 1 then it's a warning - we should mention it ? */ + + add_index_zval(subitem, id, subsub); + } + add_assoc_zval(return_value, "purposes", subitem); + + MAKE_STD_ZVAL(subitem); + array_init(subitem); + + + for (i = 0; i < X509_get_ext_count(cert); i++) { + int nid; + extension = X509_get_ext(cert, i); + nid = OBJ_obj2nid(X509_EXTENSION_get_object(extension)); + if (nid != NID_undef) { + extname = (char *)OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(extension))); + } else { + OBJ_obj2txt(buf, sizeof(buf)-1, X509_EXTENSION_get_object(extension), 1); + extname = buf; + } + bio_out = BIO_new(BIO_s_mem()); + if (nid == NID_subject_alt_name) { + if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { + BIO_get_mem_ptr(bio_out, &bio_buf); + add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1); + } else { + zval_dtor(return_value); + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); + RETURN_FALSE; + } + } + else if (X509V3_EXT_print(bio_out, extension, 0, 0)) { + BIO_get_mem_ptr(bio_out, &bio_buf); + add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1); + } else { + add_assoc_asn1_string(subitem, extname, X509_EXTENSION_get_data(extension)); + } + BIO_free(bio_out); + } + add_assoc_zval(return_value, "extensions", subitem); + + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ load_all_certs_from_file */ +static STACK_OF(X509) * load_all_certs_from_file(char *certfile) +{ + STACK_OF(X509_INFO) *sk=NULL; + STACK_OF(X509) *stack=NULL, *ret=NULL; + BIO *in=NULL; + X509_INFO *xi; + TSRMLS_FETCH(); + + if(!(stack = sk_X509_new_null())) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "memory allocation failure"); + goto end; + } + + if (php_openssl_open_base_dir_chk(certfile TSRMLS_CC)) { + sk_X509_free(stack); + goto end; + } + + if(!(in=BIO_new_file(certfile, "r"))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening the file, %s", certfile); + sk_X509_free(stack); + goto end; + } + + /* This loads from a file, a stack of x509/crl/pkey sets */ + if(!(sk=PEM_X509_INFO_read_bio(in, NULL, NULL, NULL))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error reading the file, %s", certfile); + sk_X509_free(stack); + goto end; + } + + /* scan over it and pull out the certs */ + while (sk_X509_INFO_num(sk)) { + xi=sk_X509_INFO_shift(sk); + if (xi->x509 != NULL) { + sk_X509_push(stack,xi->x509); + xi->x509=NULL; + } + X509_INFO_free(xi); + } + if(!sk_X509_num(stack)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "no certificates in file, %s", certfile); + sk_X509_free(stack); + goto end; + } + ret=stack; +end: + BIO_free(in); + sk_X509_INFO_free(sk); + + return ret; +} +/* }}} */ + +/* {{{ check_cert */ +static int check_cert(X509_STORE *ctx, X509 *x, STACK_OF(X509) *untrustedchain, int purpose) +{ + int ret=0; + X509_STORE_CTX *csc; + TSRMLS_FETCH(); + + csc = X509_STORE_CTX_new(); + if (csc == NULL) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "memory allocation failure"); + return 0; + } + X509_STORE_CTX_init(csc, ctx, x, untrustedchain); + if(purpose >= 0) { + X509_STORE_CTX_set_purpose(csc, purpose); + } + ret = X509_verify_cert(csc); + X509_STORE_CTX_free(csc); + + return ret; +} +/* }}} */ + +/* {{{ proto int openssl_x509_checkpurpose(mixed x509cert, int purpose, array cainfo [, string untrustedfile]) + Checks the CERT to see if it can be used for the purpose in purpose. cainfo holds information about trusted CAs */ +PHP_FUNCTION(openssl_x509_checkpurpose) +{ + zval ** zcert, * zcainfo = NULL; + X509_STORE * cainfo = NULL; + X509 * cert = NULL; + long certresource = -1; + STACK_OF(X509) * untrustedchain = NULL; + long purpose; + char * untrusted = NULL; + int untrusted_len = 0, ret; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zl|a!s", &zcert, &purpose, &zcainfo, &untrusted, &untrusted_len) == FAILURE) { + return; + } + + RETVAL_LONG(-1); + + if (untrusted) { + untrustedchain = load_all_certs_from_file(untrusted); + if (untrustedchain == NULL) { + goto clean_exit; + } + } + + cainfo = setup_verify(zcainfo TSRMLS_CC); + if (cainfo == NULL) { + goto clean_exit; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + ret = check_cert(cainfo, cert, untrustedchain, purpose); + if (ret != 0 && ret != 1) { + RETVAL_LONG(ret); + } else { + RETVAL_BOOL(ret); + } + +clean_exit: + if (certresource == 1 && cert) { + X509_free(cert); + } + if (cainfo) { + X509_STORE_free(cainfo); + } + if (untrustedchain) { + sk_X509_pop_free(untrustedchain, X509_free); + } +} +/* }}} */ + +/* {{{ setup_verify + * calist is an array containing file and directory names. create a + * certificate store and add those certs to it for use in verification. +*/ +static X509_STORE * setup_verify(zval * calist TSRMLS_DC) +{ + X509_STORE *store; + X509_LOOKUP * dir_lookup, * file_lookup; + HashPosition pos; + int ndirs = 0, nfiles = 0; + + store = X509_STORE_new(); + + if (store == NULL) { + return NULL; + } + + if (calist && (Z_TYPE_P(calist) == IS_ARRAY)) { + zend_hash_internal_pointer_reset_ex(HASH_OF(calist), &pos); + for (;; zend_hash_move_forward_ex(HASH_OF(calist), &pos)) { + zval ** item; + struct stat sb; + + if (zend_hash_get_current_data_ex(HASH_OF(calist), (void**)&item, &pos) == FAILURE) { + break; + } + convert_to_string_ex(item); + + if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to stat %s", Z_STRVAL_PP(item)); + continue; + } + + if ((sb.st_mode & S_IFREG) == S_IFREG) { + file_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); + if (file_lookup == NULL || !X509_LOOKUP_load_file(file_lookup, Z_STRVAL_PP(item), X509_FILETYPE_PEM)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error loading file %s", Z_STRVAL_PP(item)); + } else { + nfiles++; + } + file_lookup = NULL; + } else { + dir_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()); + if (dir_lookup == NULL || !X509_LOOKUP_add_dir(dir_lookup, Z_STRVAL_PP(item), X509_FILETYPE_PEM)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error loading directory %s", Z_STRVAL_PP(item)); + } else { + ndirs++; + } + dir_lookup = NULL; + } + } + } + if (nfiles == 0) { + file_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); + if (file_lookup) { + X509_LOOKUP_load_file(file_lookup, NULL, X509_FILETYPE_DEFAULT); + } + } + if (ndirs == 0) { + dir_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()); + if (dir_lookup) { + X509_LOOKUP_add_dir(dir_lookup, NULL, X509_FILETYPE_DEFAULT); + } + } + return store; +} +/* }}} */ + +/* {{{ proto resource openssl_x509_read(mixed cert) + Reads X.509 certificates */ +PHP_FUNCTION(openssl_x509_read) +{ + zval **cert; + X509 *x509; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &cert) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + x509 = php_openssl_x509_from_zval(cert, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (x509 == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied parameter cannot be coerced into an X509 certificate!"); + RETURN_FALSE; + } +} +/* }}} */ + +/* {{{ proto void openssl_x509_free(resource x509) + Frees X.509 certificates */ +PHP_FUNCTION(openssl_x509_free) +{ + zval *x509; + X509 *cert; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &x509) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(cert, X509 *, &x509, -1, "OpenSSL X.509", le_x509); + zend_list_delete(Z_LVAL_P(x509)); +} +/* }}} */ + +/* }}} */ + +/* Pop all X509 from Stack and free them, free the stack afterwards */ +static void php_sk_X509_free(STACK_OF(X509) * sk) /* {{{ */ +{ + for (;;) { + X509* x = sk_X509_pop(sk); + if (!x) break; + X509_free(x); + } + sk_X509_free(sk); +} +/* }}} */ + +static STACK_OF(X509) * php_array_to_X509_sk(zval ** zcerts TSRMLS_DC) /* {{{ */ +{ + HashPosition hpos; + zval ** zcertval; + STACK_OF(X509) * sk = NULL; + X509 * cert; + long certresource; + + sk = sk_X509_new_null(); + + /* get certs */ + if (Z_TYPE_PP(zcerts) == IS_ARRAY) { + zend_hash_internal_pointer_reset_ex(HASH_OF(*zcerts), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(*zcerts), (void**)&zcertval, &hpos) == SUCCESS) { + + cert = php_openssl_x509_from_zval(zcertval, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + cert = X509_dup(cert); + + if (cert == NULL) { + goto clean_exit; + } + + } + sk_X509_push(sk, cert); + + zend_hash_move_forward_ex(HASH_OF(*zcerts), &hpos); + } + } else { + /* a single certificate */ + cert = php_openssl_x509_from_zval(zcerts, 0, &certresource TSRMLS_CC); + + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(sk, cert); + } + + clean_exit: + return sk; +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_export_to_file(mixed x509, string filename, mixed priv_key, string pass[, array args]) + Creates and exports a PKCS to file */ +PHP_FUNCTION(openssl_pkcs12_export_to_file) +{ + X509 * cert = NULL; + BIO * bio_out = NULL; + PKCS12 * p12 = NULL; + char * filename; + char * friendly_name = NULL; + int filename_len; + char * pass; + int pass_len; + zval **zcert = NULL, *zpkey = NULL, *args = NULL; + EVP_PKEY *priv_key = NULL; + long certresource, keyresource; + zval ** item; + STACK_OF(X509) *ca = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zpzs|a", &zcert, &filename, &filename_len, &zpkey, &pass, &pass_len, &args) == FAILURE) + return; + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + priv_key = php_openssl_evp_from_zval(&zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to cert"); + goto cleanup; + } + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + goto cleanup; + } + + /* parse extra config from args array, promote this to an extra function */ + if (args && zend_hash_find(Z_ARRVAL_P(args), "friendly_name", sizeof("friendly_name"), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) + friendly_name = Z_STRVAL_PP(item); + /* certpbe (default RC2-40) + keypbe (default 3DES) + friendly_caname + */ + + if (args && zend_hash_find(Z_ARRVAL_P(args), "extracerts", sizeof("extracerts"), (void**)&item) == SUCCESS) + ca = php_array_to_X509_sk(item TSRMLS_CC); + /* end parse extra config */ + + /*PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert, STACK_OF(X509) *ca, + int nid_key, int nid_cert, int iter, int mac_iter, int keytype);*/ + + p12 = PKCS12_create(pass, friendly_name, priv_key, cert, ca, 0, 0, 0, 0, 0); + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + + i2d_PKCS12_bio(bio_out, p12); + + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + + BIO_free(bio_out); + PKCS12_free(p12); + php_sk_X509_free(ca); + +cleanup: + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_export(mixed x509, string &out, mixed priv_key, string pass[, array args]) + Creates and exports a PKCS12 to a var */ +PHP_FUNCTION(openssl_pkcs12_export) +{ + X509 * cert = NULL; + BIO * bio_out; + PKCS12 * p12 = NULL; + zval * zcert = NULL, *zout = NULL, *zpkey, *args = NULL; + EVP_PKEY *priv_key = NULL; + long certresource, keyresource; + char * pass; + int pass_len; + char * friendly_name = NULL; + zval ** item; + STACK_OF(X509) *ca = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zzzs|a", &zcert, &zout, &zpkey, &pass, &pass_len, &args) == FAILURE) + return; + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(&zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + priv_key = php_openssl_evp_from_zval(&zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to cert"); + goto cleanup; + } + + /* parse extra config from args array, promote this to an extra function */ + if (args && zend_hash_find(Z_ARRVAL_P(args), "friendly_name", sizeof("friendly_name"), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) + friendly_name = Z_STRVAL_PP(item); + + if (args && zend_hash_find(Z_ARRVAL_P(args), "extracerts", sizeof("extracerts"), (void**)&item) == SUCCESS) + ca = php_array_to_X509_sk(item TSRMLS_CC); + /* end parse extra config */ + + p12 = PKCS12_create(pass, friendly_name, priv_key, cert, ca, 0, 0, 0, 0, 0); + + bio_out = BIO_new(BIO_s_mem()); + if (i2d_PKCS12_bio(bio_out, p12)) { + BUF_MEM *bio_buf; + + zval_dtor(zout); + BIO_get_mem_ptr(bio_out, &bio_buf); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + BIO_free(bio_out); + PKCS12_free(p12); + php_sk_X509_free(ca); + +cleanup: + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_read(string PKCS12, array &certs, string pass) + Parses a PKCS12 to an array */ +PHP_FUNCTION(openssl_pkcs12_read) +{ + zval *zout = NULL, *zextracerts, *zcert, *zpkey; + char *pass, *zp12; + int pass_len, zp12_len; + PKCS12 * p12 = NULL; + EVP_PKEY * pkey = NULL; + X509 * cert = NULL; + STACK_OF(X509) * ca = NULL; + BIO * bio_in = NULL; + int i; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szs", &zp12, &zp12_len, &zout, &pass, &pass_len) == FAILURE) + return; + + RETVAL_FALSE; + + bio_in = BIO_new(BIO_s_mem()); + + if(!BIO_write(bio_in, zp12, zp12_len)) + goto cleanup; + + if(d2i_PKCS12_bio(bio_in, &p12)) { + if(PKCS12_parse(p12, pass, &pkey, &cert, &ca)) { + BIO * bio_out; + + zval_dtor(zout); + array_init(zout); + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_X509(bio_out, cert)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zcert); + ZVAL_STRINGL(zcert, bio_buf->data, bio_buf->length, 1); + add_assoc_zval(zout, "cert", zcert); + } + BIO_free(bio_out); + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_PrivateKey(bio_out, pkey, NULL, NULL, 0, 0, NULL)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zpkey); + ZVAL_STRINGL(zpkey, bio_buf->data, bio_buf->length, 1); + add_assoc_zval(zout, "pkey", zpkey); + } + BIO_free(bio_out); + + MAKE_STD_ZVAL(zextracerts); + array_init(zextracerts); + + for (i=0;;i++) { + zval * zextracert; + X509* aCA = sk_X509_pop(ca); + if (!aCA) break; + + /* fix for bug 69882 */ + { + int err = ERR_peek_error(); + if (err == OPENSSL_ERROR_X509_PRIVATE_KEY_VALUES_MISMATCH) { + ERR_get_error(); + } + } + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_X509(bio_out, aCA)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zextracert); + ZVAL_STRINGL(zextracert, bio_buf->data, bio_buf->length, 1); + add_index_zval(zextracerts, i, zextracert); + + } + BIO_free(bio_out); + + X509_free(aCA); + } + if(ca) { + sk_X509_free(ca); + add_assoc_zval(zout, "extracerts", zextracerts); + } else { + zval_dtor(zextracerts); + } + + RETVAL_TRUE; + + PKCS12_free(p12); + } + } + + cleanup: + if (bio_in) { + BIO_free(bio_in); + } + if (pkey) { + EVP_PKEY_free(pkey); + } + if (cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ x509 CSR functions */ + +/* {{{ php_openssl_make_REQ */ +static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, zval * dn, zval * attribs TSRMLS_DC) +{ + STACK_OF(CONF_VALUE) * dn_sk, *attr_sk = NULL; + char * str, *dn_sect, *attr_sect; + + dn_sect = CONF_get_string(req->req_config, req->section_name, "distinguished_name"); + if (dn_sect == NULL) { + return FAILURE; + } + dn_sk = CONF_get_section(req->req_config, dn_sect); + if (dn_sk == NULL) { + return FAILURE; + } + attr_sect = CONF_get_string(req->req_config, req->section_name, "attributes"); + if (attr_sect == NULL) { + attr_sk = NULL; + } else { + attr_sk = CONF_get_section(req->req_config, attr_sect); + if (attr_sk == NULL) { + return FAILURE; + } + } + /* setup the version number: version 1 */ + if (X509_REQ_set_version(csr, 0L)) { + int i, nid; + char * type; + CONF_VALUE * v; + X509_NAME * subj; + HashPosition hpos; + zval ** item; + + subj = X509_REQ_get_subject_name(csr); + /* apply values from the dn hash */ + zend_hash_internal_pointer_reset_ex(HASH_OF(dn), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(dn), (void**)&item, &hpos) == SUCCESS) { + char * strindex = NULL; + uint strindexlen = 0; + ulong intindex; + + zend_hash_get_current_key_ex(HASH_OF(dn), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(item); + + if (strindex) { + int nid; + + nid = OBJ_txt2nid(strindex); + if (nid != NID_undef) { + if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, + (unsigned char*)Z_STRVAL_PP(item), -1, -1, 0)) + { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "dn: add_entry_by_NID %d -> %s (failed; check error" + " queue and value of string_mask OpenSSL option " + "if illegal characters are reported)", + nid, Z_STRVAL_PP(item)); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "dn: %s is not a recognized name", strindex); + } + } + zend_hash_move_forward_ex(HASH_OF(dn), &hpos); + } + + /* Finally apply defaults from config file */ + for(i = 0; i < sk_CONF_VALUE_num(dn_sk); i++) { + int len; + char buffer[200 + 1]; /*200 + \0 !*/ + + v = sk_CONF_VALUE_value(dn_sk, i); + type = v->name; + + len = strlen(type); + if (len < sizeof("_default")) { + continue; + } + len -= sizeof("_default") - 1; + if (strcmp("_default", type + len) != 0) { + continue; + } + if (len > 200) { + len = 200; + } + memcpy(buffer, type, len); + buffer[len] = '\0'; + type = buffer; + + /* Skip past any leading X. X: X, etc to allow for multiple + * instances */ + for (str = type; *str; str++) { + if (*str == ':' || *str == ',' || *str == '.') { + str++; + if (*str) { + type = str; + } + break; + } + } + /* if it is already set, skip this */ + nid = OBJ_txt2nid(type); + if (X509_NAME_get_index_by_NID(subj, nid, -1) >= 0) { + continue; + } + if (!X509_NAME_add_entry_by_txt(subj, type, MBSTRING_UTF8, (unsigned char*)v->value, -1, -1, 0)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "add_entry_by_txt %s -> %s (failed)", type, v->value); + return FAILURE; + } + if (!X509_NAME_entry_count(subj)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "no objects specified in config file"); + return FAILURE; + } + } + if (attribs) { + zend_hash_internal_pointer_reset_ex(HASH_OF(attribs), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(attribs), (void**)&item, &hpos) == SUCCESS) { + char *strindex = NULL; + uint strindexlen; + ulong intindex; + + zend_hash_get_current_key_ex(HASH_OF(attribs), &strindex, &strindexlen, &intindex, 0, &hpos); + convert_to_string_ex(item); + + if (strindex) { + int nid; + + nid = OBJ_txt2nid(strindex); + if (nid != NID_undef) { + if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, (unsigned char*)Z_STRVAL_PP(item), -1, -1, 0)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "attribs: add_entry_by_NID %d -> %s (failed)", nid, Z_STRVAL_PP(item)); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "dn: %s is not a recognized name", strindex); + } + } + zend_hash_move_forward_ex(HASH_OF(attribs), &hpos); + } + for (i = 0; i < sk_CONF_VALUE_num(attr_sk); i++) { + v = sk_CONF_VALUE_value(attr_sk, i); + /* if it is already set, skip this */ + nid = OBJ_txt2nid(v->name); + if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { + continue; + } + if (!X509_REQ_add1_attr_by_txt(csr, v->name, MBSTRING_UTF8, (unsigned char*)v->value, -1)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "add1_attr_by_txt %s -> %s (failed; check error queue " + "and value of string_mask OpenSSL option if illegal " + "characters are reported)", + v->name, v->value); + return FAILURE; + } + } + } + } + + X509_REQ_set_pubkey(csr, req->priv_key); + return SUCCESS; +} +/* }}} */ + +/* {{{ php_openssl_csr_from_zval */ +static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC) +{ + X509_REQ * csr = NULL; + char * filename = NULL; + BIO * in; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_RESOURCE) { + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509 CSR", &type, 1, le_csr); + if (what) { + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + return (X509_REQ*)what; + } + return NULL; + } else if (Z_TYPE_PP(val) != IS_STRING) { + return NULL; + } + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); + } + if (filename) { + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return NULL; + } + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + csr = PEM_read_bio_X509_REQ(in, NULL,NULL,NULL); + BIO_free(in); + + return csr; +} +/* }}} */ + +/* {{{ proto bool openssl_csr_export_to_file(resource csr, string outfilename [, bool notext=true]) + Exports a CSR to file */ +PHP_FUNCTION(openssl_csr_export_to_file) +{ + X509_REQ * csr; + zval * zcsr = NULL; + zend_bool notext = 1; + char * filename = NULL; int filename_len; + BIO * bio_out; + long csr_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp|b", &zcsr, &filename, &filename_len, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + csr = php_openssl_csr_from_zval(&zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return; + } + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + if (!notext) { + X509_REQ_print(bio_out, csr); + } + PEM_write_bio_X509_REQ(bio_out, csr); + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto bool openssl_csr_export(resource csr, string &out [, bool notext=true]) + Exports a CSR to file or a var */ +PHP_FUNCTION(openssl_csr_export) +{ + X509_REQ * csr; + zval * zcsr = NULL, *zout=NULL; + zend_bool notext = 1; + BIO * bio_out; + + long csr_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz|b", &zcsr, &zout, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + csr = php_openssl_csr_from_zval(&zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + + /* export to a var */ + + bio_out = BIO_new(BIO_s_mem()); + if (!notext) { + X509_REQ_print(bio_out, csr); + } + + if (PEM_write_bio_X509_REQ(bio_out, csr)) { + BUF_MEM *bio_buf; + + BIO_get_mem_ptr(bio_out, &bio_buf); + zval_dtor(zout); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, long days [, array config_args [, long serial]]) + Signs a cert with another CERT */ +PHP_FUNCTION(openssl_csr_sign) +{ + zval ** zcert = NULL, **zcsr, **zpkey, *args = NULL; + long num_days; + long serial = 0L; + X509 * cert = NULL, *new_cert = NULL; + X509_REQ * csr; + EVP_PKEY * key = NULL, *priv_key = NULL; + long csr_resource, certresource = 0, keyresource = -1; + int i; + struct php_x509_request req; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ!Zl|a!l", &zcsr, &zcert, &zpkey, &num_days, &args, &serial) == FAILURE) + return; + + RETVAL_FALSE; + PHP_SSL_REQ_INIT(&req); + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + if (zcert) { + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 2"); + goto cleanup; + } + } + priv_key = php_openssl_evp_from_zval(zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to signing cert"); + goto cleanup; + } + + if (PHP_SSL_REQ_PARSE(&req, args) == FAILURE) { + goto cleanup; + } + /* Check that the request matches the signature */ + key = X509_REQ_get_pubkey(csr); + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error unpacking public key"); + goto cleanup; + } + i = X509_REQ_verify(csr, key); + + if (i < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Signature verification problems"); + goto cleanup; + } + else if (i == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Signature did not match the certificate request"); + goto cleanup; + } + + /* Now we can get on with it */ + + new_cert = X509_new(); + if (new_cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "No memory"); + goto cleanup; + } + /* Version 3 cert */ + if (!X509_set_version(new_cert, 2)) + goto cleanup; + + ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); + + X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); + + if (cert == NULL) { + cert = new_cert; + } + if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { + goto cleanup; + } + X509_gmtime_adj(X509_get_notBefore(new_cert), 0); + X509_gmtime_adj(X509_get_notAfter(new_cert), (long)60*60*24*num_days); + i = X509_set_pubkey(new_cert, key); + if (!i) { + goto cleanup; + } + if (req.extensions_section) { + X509V3_CTX ctx; + + X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); + X509V3_set_conf_lhash(&ctx, req.req_config); + if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) { + goto cleanup; + } + } + + /* Now sign it */ + if (!X509_sign(new_cert, priv_key, req.digest)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to sign it"); + goto cleanup; + } + + /* Succeeded; lets return the cert */ + RETVAL_RESOURCE(zend_list_insert(new_cert, le_x509 TSRMLS_CC)); + new_cert = NULL; + +cleanup: + + if (cert == new_cert) { + cert = NULL; + } + PHP_SSL_REQ_DISPOSE(&req); + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (key) { + EVP_PKEY_free(key); + } + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + if (certresource == -1 && cert) { + X509_free(cert); + } + if (new_cert) { + X509_free(new_cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array configargs [, array extraattribs]]) + Generates a privkey and CSR */ +PHP_FUNCTION(openssl_csr_new) +{ + struct php_x509_request req; + zval * args = NULL, * dn, *attribs = NULL; + zval * out_pkey; + X509_REQ * csr = NULL; + int we_made_the_key = 1; + long key_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "az|a!a!", &dn, &out_pkey, &args, &attribs) == FAILURE) { + return; + } + RETVAL_FALSE; + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + /* Generate or use a private key */ + if (Z_TYPE_P(out_pkey) != IS_NULL) { + req.priv_key = php_openssl_evp_from_zval(&out_pkey, 0, NULL, 0, &key_resource TSRMLS_CC); + if (req.priv_key != NULL) { + we_made_the_key = 0; + } + } + if (req.priv_key == NULL) { + php_openssl_generate_private_key(&req TSRMLS_CC); + } + if (req.priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to generate a private key"); + } else { + csr = X509_REQ_new(); + if (csr) { + if (php_openssl_make_REQ(&req, csr, dn, attribs TSRMLS_CC) == SUCCESS) { + X509V3_CTX ext_ctx; + + X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, 0); + X509V3_set_conf_lhash(&ext_ctx, req.req_config); + + /* Add extensions */ + if (req.request_extensions_section && !X509V3_EXT_REQ_add_conf(req.req_config, + &ext_ctx, req.request_extensions_section, csr)) + { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error loading extension section %s", req.request_extensions_section); + } else { + RETVAL_TRUE; + + if (X509_REQ_sign(csr, req.priv_key, req.digest)) { + RETVAL_RESOURCE(zend_list_insert(csr, le_csr TSRMLS_CC)); + csr = NULL; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error signing request"); + } + + if (we_made_the_key) { + /* and a resource for the private key */ + zval_dtor(out_pkey); + ZVAL_RESOURCE(out_pkey, zend_list_insert(req.priv_key, le_key TSRMLS_CC)); + req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ + } else if (key_resource != -1) { + req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ + } + } + } + else { + if (!we_made_the_key) { + /* if we have not made the key we are not supposed to zap it by calling dispose! */ + req.priv_key = NULL; + } + } + } + } + } + if (csr) { + X509_REQ_free(csr); + } + PHP_SSL_REQ_DISPOSE(&req); +} +/* }}} */ + +/* {{{ proto mixed openssl_csr_get_subject(mixed csr) + Returns the subject of a CERT or FALSE on error */ +PHP_FUNCTION(openssl_csr_get_subject) +{ + zval ** zcsr; + zend_bool use_shortnames = 1; + long csr_resource; + X509_NAME * subject; + X509_REQ * csr; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcsr, &use_shortnames) == FAILURE) { + return; + } + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + + if (csr == NULL) { + RETURN_FALSE; + } + + subject = X509_REQ_get_subject_name(csr); + + array_init(return_value); + add_assoc_name_entry(return_value, NULL, subject, use_shortnames TSRMLS_CC); + return; +} +/* }}} */ + +/* {{{ proto mixed openssl_csr_get_public_key(mixed csr) + Returns the subject of a CERT or FALSE on error */ +PHP_FUNCTION(openssl_csr_get_public_key) +{ + zval ** zcsr; + zend_bool use_shortnames = 1; + long csr_resource; + + X509_REQ * csr; + EVP_PKEY *tpubkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcsr, &use_shortnames) == FAILURE) { + return; + } + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + + if (csr == NULL) { + RETURN_FALSE; + } + +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + /* Due to changes in OpenSSL 1.1 related to locking when decoding CSR, + * the pub key is not changed after assigning. It means if we pass + * a private key, it will be returned including the private part. + * If we duplicate it, then we get just the public part which is + * the same behavior as for OpenSSL 1.0 */ + csr = X509_REQ_dup(csr); +#endif + /* Retrieve the public key from the CSR */ + tpubkey = X509_REQ_get_pubkey(csr); + +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + /* We need to free the CSR as it was duplicated */ + X509_REQ_free(csr); +#endif + RETVAL_RESOURCE(zend_list_insert(tpubkey, le_key TSRMLS_CC)); + return; +} +/* }}} */ + +/* }}} */ + +/* {{{ EVP Public/Private key functions */ + +/* {{{ php_openssl_evp_from_zval + Given a zval, coerce it into a EVP_PKEY object. + It can be: + 1. private key resource from openssl_get_privatekey() + 2. X509 resource -> public key will be extracted from it + 3. if it starts with file:// interpreted as path to key file + 4. interpreted as the data from the cert/key file and interpreted in same way as openssl_get_privatekey() + 5. an array(0 => [items 2..4], 1 => passphrase) + 6. if val is a string (possibly starting with file:///) and it is not an X509 certificate, then interpret as public key + NOTE: If you are requesting a private key but have not specified a passphrase, you should use an + empty string rather than NULL for the passphrase - NULL causes a passphrase prompt to be emitted in + the Apache error log! +*/ +static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int makeresource, long * resourceval TSRMLS_DC) +{ + EVP_PKEY * key = NULL; + X509 * cert = NULL; + int free_cert = 0; + long cert_res = -1; + char * filename = NULL; + zval tmp; + + Z_TYPE(tmp) = IS_NULL; + +#define TMP_CLEAN \ + if (Z_TYPE(tmp) == IS_STRING) {\ + zval_dtor(&tmp); \ + } \ + return NULL; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_ARRAY) { + zval ** zphrase; + + /* get passphrase */ + + if (zend_hash_index_find(HASH_OF(*val), 1, (void **)&zphrase) == FAILURE) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key array must be of the form array(0 => key, 1 => phrase)"); + return NULL; + } + + if (Z_TYPE_PP(zphrase) == IS_STRING) { + passphrase = Z_STRVAL_PP(zphrase); + } else { + tmp = **zphrase; + zval_copy_ctor(&tmp); + convert_to_string(&tmp); + passphrase = Z_STRVAL(tmp); + } + + /* now set val to be the key param and continue */ + if (zend_hash_index_find(HASH_OF(*val), 0, (void **)&val) == FAILURE) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key array must be of the form array(0 => key, 1 => phrase)"); + TMP_CLEAN; + } + } + + if (Z_TYPE_PP(val) == IS_RESOURCE) { + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509/key", &type, 2, le_x509, le_key); + if (!what) { + TMP_CLEAN; + } + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + if (type == le_x509) { + /* extract key from cert, depending on public_key param */ + cert = (X509*)what; + free_cert = 0; + } else if (type == le_key) { + int is_priv; + + is_priv = php_openssl_is_private_key((EVP_PKEY*)what TSRMLS_CC); + + /* check whether it is actually a private key if requested */ + if (!public_key && !is_priv) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param is a public key"); + TMP_CLEAN; + } + + if (public_key && is_priv) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Don't know how to get public key from this private key"); + TMP_CLEAN; + } else { + if (Z_TYPE(tmp) == IS_STRING) { + zval_dtor(&tmp); + } + /* got the key - return it */ + return (EVP_PKEY*)what; + } + } else { + /* other types could be used here - eg: file pointers and read in the data from them */ + TMP_CLEAN; + } + } else { + /* force it to be a string and check if it refers to a file */ + /* passing non string values leaks, object uses toString, it returns NULL + * See bug38255.phpt + */ + if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { + TMP_CLEAN; + } + convert_to_string_ex(val); + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); + } + /* it's an X509 file/cert of some kind, and we need to extract the data from that */ + if (public_key) { + cert = php_openssl_x509_from_zval(val, 0, &cert_res TSRMLS_CC); + free_cert = (cert_res == -1); + /* actual extraction done later */ + if (!cert) { + /* not a X509 certificate, try to retrieve public key */ + BIO* in; + if (filename) { + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + if (in == NULL) { + TMP_CLEAN; + } + key = PEM_read_bio_PUBKEY(in, NULL,NULL, NULL); + BIO_free(in); + } + } else { + /* we want the private key */ + BIO *in; + + if (filename) { + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + TMP_CLEAN; + } + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + + if (in == NULL) { + TMP_CLEAN; + } + key = PEM_read_bio_PrivateKey(in, NULL,NULL, passphrase); + BIO_free(in); + } + } + + if (public_key && cert && key == NULL) { + /* extract public key from X509 cert */ + key = (EVP_PKEY *) X509_get_pubkey(cert); + } + + if (free_cert && cert) { + X509_free(cert); + } + if (key && makeresource && resourceval) { + *resourceval = ZEND_REGISTER_RESOURCE(NULL, key, le_key); + } + if (Z_TYPE(tmp) == IS_STRING) { + zval_dtor(&tmp); + } + return key; +} +/* }}} */ + +/* {{{ php_openssl_generate_private_key */ +static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req TSRMLS_DC) +{ + char * randfile = NULL; + int egdsocket, seeded; + EVP_PKEY * return_val = NULL; + + if (req->priv_key_bits < MIN_KEY_LENGTH) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key length is too short; it needs to be at least %d bits, not %d", + MIN_KEY_LENGTH, req->priv_key_bits); + return NULL; + } + + randfile = CONF_get_string(req->req_config, req->section_name, "RANDFILE"); + php_openssl_load_rand_file(randfile, &egdsocket, &seeded TSRMLS_CC); + + if ((req->priv_key = EVP_PKEY_new()) != NULL) { + switch(req->priv_key_type) { + case OPENSSL_KEYTYPE_RSA: + PHP_OPENSSL_RAND_ADD_TIME(); + if (EVP_PKEY_assign_RSA(req->priv_key, RSA_generate_key(req->priv_key_bits, 0x10001, NULL, NULL))) { + return_val = req->priv_key; + } + break; +#if !defined(NO_DSA) && defined(HAVE_DSA_DEFAULT_METHOD) + case OPENSSL_KEYTYPE_DSA: + PHP_OPENSSL_RAND_ADD_TIME(); + { + DSA *dsapar = DSA_generate_parameters(req->priv_key_bits, NULL, 0, NULL, NULL, NULL, NULL); + if (dsapar) { + DSA_set_method(dsapar, DSA_get_default_method()); + if (DSA_generate_key(dsapar)) { + if (EVP_PKEY_assign_DSA(req->priv_key, dsapar)) { + return_val = req->priv_key; + } + } else { + DSA_free(dsapar); + } + } + } + break; +#endif +#if !defined(NO_DH) + case OPENSSL_KEYTYPE_DH: + PHP_OPENSSL_RAND_ADD_TIME(); + { + DH *dhpar = DH_generate_parameters(req->priv_key_bits, 2, NULL, NULL); + int codes = 0; + + if (dhpar) { + DH_set_method(dhpar, DH_get_default_method()); + if (DH_check(dhpar, &codes) && codes == 0 && DH_generate_key(dhpar)) { + if (EVP_PKEY_assign_DH(req->priv_key, dhpar)) { + return_val = req->priv_key; + } + } else { + DH_free(dhpar); + } + } + } + break; +#endif + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unsupported private key type"); + } + } + + php_openssl_write_rand_file(randfile, egdsocket, seeded); + + if (return_val == NULL) { + EVP_PKEY_free(req->priv_key); + req->priv_key = NULL; + return NULL; + } + + return return_val; +} +/* }}} */ + +/* {{{ php_openssl_is_private_key + Check whether the supplied key is a private key by checking if the secret prime factors are set */ +static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) +{ + assert(pkey != NULL); + + switch (EVP_PKEY_id(pkey)) { +#ifndef NO_RSA + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + { + RSA *rsa = EVP_PKEY_get0_RSA(pkey); + if (rsa != NULL) { + const BIGNUM *p, *q; + + RSA_get0_factors(rsa, &p, &q); + if (p == NULL || q == NULL) { + return 0; + } + } + } + break; +#endif +#ifndef NO_DSA + case EVP_PKEY_DSA: + case EVP_PKEY_DSA1: + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: + { + DSA *dsa = EVP_PKEY_get0_DSA(pkey); + if (dsa != NULL) { + const BIGNUM *p, *q, *g, *pub_key, *priv_key; + + DSA_get0_pqg(dsa, &p, &q, &g); + if (p == NULL || q == NULL) { + return 0; + } + + DSA_get0_key(dsa, &pub_key, &priv_key); + if (priv_key == NULL) { + return 0; + } + } + } + break; +#endif +#ifndef NO_DH + case EVP_PKEY_DH: + { + DH *dh = EVP_PKEY_get0_DH(pkey); + if (dh != NULL) { + const BIGNUM *p, *q, *g, *pub_key, *priv_key; + + DH_get0_pqg(dh, &p, &q, &g); + if (p == NULL) { + return 0; + } + + DH_get0_key(dh, &pub_key, &priv_key); + if (priv_key == NULL) { + return 0; + } + } + } + break; +#endif +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + { + EC_KEY *ec = EVP_PKEY_get0_EC_KEY(pkey); + if (ec != NULL && NULL == EC_KEY_get0_private_key(ec)) { + return 0; + } + } + break; +#endif + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + break; + } + return 1; +} +/* }}} */ + +#define OPENSSL_GET_BN(_array, _bn, _name) do { \ + if (_bn != NULL) { \ + int len = BN_num_bytes(_bn); \ + char *str = emalloc(len + 1); \ + BN_bn2bin(_bn, (unsigned char*)str); \ + str[len] = 0; \ + add_assoc_stringl(_array, #_name, str, len, 0); \ + } \ + } while (0); + +#define OPENSSL_PKEY_GET_BN(_type, _name) OPENSSL_GET_BN(_type, _name, _name) + +#define OPENSSL_PKEY_SET_BN(_data, _name) do { \ + zval **bn; \ + if (zend_hash_find(Z_ARRVAL_P(_data), #_name, sizeof(#_name),(void**)&bn) == SUCCESS && \ + Z_TYPE_PP(bn) == IS_STRING) { \ + _name = BN_bin2bn( \ + (unsigned char*)Z_STRVAL_PP(bn), \ + Z_STRLEN_PP(bn), NULL); \ + } else { \ + _name = NULL; \ + } \ + } while (0); + +/* {{{ php_openssl_pkey_init_rsa */ +zend_bool php_openssl_pkey_init_and_assign_rsa(EVP_PKEY *pkey, RSA *rsa, zval *data) +{ + BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; + + OPENSSL_PKEY_SET_BN(data, n); + OPENSSL_PKEY_SET_BN(data, e); + OPENSSL_PKEY_SET_BN(data, d); + if (!n || !d || !RSA_set0_key(rsa, n, e, d)) { + return 0; + } + + OPENSSL_PKEY_SET_BN(data, p); + OPENSSL_PKEY_SET_BN(data, q); + if ((p || q) && !RSA_set0_factors(rsa, p, q)) { + return 0; + } + + OPENSSL_PKEY_SET_BN(data, dmp1); + OPENSSL_PKEY_SET_BN(data, dmq1); + OPENSSL_PKEY_SET_BN(data, iqmp); + if ((dmp1 || dmq1 || iqmp) && !RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) { + return 0; + } + + if (!EVP_PKEY_assign_RSA(pkey, rsa)) { + return 0; + } + + return 1; +} +/* }}} */ + +/* {{{ php_openssl_pkey_init_dsa */ +zend_bool php_openssl_pkey_init_dsa(DSA *dsa, zval *data) +{ + BIGNUM *p, *q, *g, *priv_key, *pub_key; + const BIGNUM *priv_key_const, *pub_key_const; + + OPENSSL_PKEY_SET_BN(data, p); + OPENSSL_PKEY_SET_BN(data, q); + OPENSSL_PKEY_SET_BN(data, g); + if (!p || !q || !g || !DSA_set0_pqg(dsa, p, q, g)) { + return 0; + } + + OPENSSL_PKEY_SET_BN(data, pub_key); + OPENSSL_PKEY_SET_BN(data, priv_key); + if (pub_key) { + return DSA_set0_key(dsa, pub_key, priv_key); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DSA_generate_key(dsa)) { + return 0; + } + /* if BN_mod_exp return -1, then DSA_generate_key succeed for failed key + * so we need to double check that public key is created */ + DSA_get0_key(dsa, &pub_key_const, &priv_key_const); + if (!pub_key_const || BN_is_zero(pub_key_const)) { + return 0; + } + /* all good */ + return 1; +} +/* }}} */ + +/* {{{ php_openssl_dh_pub_from_priv */ +static BIGNUM *php_openssl_dh_pub_from_priv(BIGNUM *priv_key, BIGNUM *g, BIGNUM *p) +{ + BIGNUM *pub_key, *priv_key_const_time; + BN_CTX *ctx; + + pub_key = BN_new(); + if (pub_key == NULL) { + return NULL; + } + + priv_key_const_time = BN_new(); + if (priv_key_const_time == NULL) { + BN_free(pub_key); + return NULL; + } + ctx = BN_CTX_new(); + if (ctx == NULL) { + BN_free(pub_key); + BN_free(priv_key_const_time); + return NULL; + } + + BN_with_flags(priv_key_const_time, priv_key, BN_FLG_CONSTTIME); + + if (!BN_mod_exp_mont(pub_key, g, priv_key_const_time, p, ctx, NULL)) { + BN_free(pub_key); + pub_key = NULL; + } + + BN_free(priv_key_const_time); + BN_CTX_free(ctx); + + return pub_key; +} +/* }}} */ + +/* {{{ php_openssl_pkey_init_dh */ +zend_bool php_openssl_pkey_init_dh(DH *dh, zval *data) +{ + BIGNUM *p, *q, *g, *priv_key, *pub_key; + + OPENSSL_PKEY_SET_BN(data, p); + OPENSSL_PKEY_SET_BN(data, q); + OPENSSL_PKEY_SET_BN(data, g); + if (!p || !g || !DH_set0_pqg(dh, p, q, g)) { + return 0; + } + + OPENSSL_PKEY_SET_BN(data, priv_key); + OPENSSL_PKEY_SET_BN(data, pub_key); + if (pub_key) { + return DH_set0_key(dh, pub_key, priv_key); + } + if (priv_key) { + pub_key = php_openssl_dh_pub_from_priv(priv_key, g, p); + if (pub_key == NULL) { + return 0; + } + return DH_set0_key(dh, pub_key, priv_key); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DH_generate_key(dh)) { + return 0; + } + /* all good */ + return 1; +} +/* }}} */ + +/* {{{ proto resource openssl_pkey_new([array configargs]) + Generates a new private key */ +PHP_FUNCTION(openssl_pkey_new) +{ + struct php_x509_request req; + zval * args = NULL; + zval **data; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a!", &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (args && Z_TYPE_P(args) == IS_ARRAY) { + EVP_PKEY *pkey; + + if (zend_hash_find(Z_ARRVAL_P(args), "rsa", sizeof("rsa"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + RSA *rsa = RSA_new(); + if (rsa) { + if (php_openssl_pkey_init_and_assign_rsa(pkey, rsa, *data)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + RSA_free(rsa); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } else if (zend_hash_find(Z_ARRVAL_P(args), "dsa", sizeof("dsa"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + DSA *dsa = DSA_new(); + if (dsa) { + if (php_openssl_pkey_init_dsa(dsa, *data)) { + if (EVP_PKEY_assign_DSA(pkey, dsa)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + } + DSA_free(dsa); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } else if (zend_hash_find(Z_ARRVAL_P(args), "dh", sizeof("dh"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + DH *dh = DH_new(); + if (dh) { + if (php_openssl_pkey_init_dh(dh, *data)) { + if (EVP_PKEY_assign_DH(pkey, dh)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + } + DH_free(dh); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) + { + if (php_openssl_generate_private_key(&req TSRMLS_CC)) { + /* pass back a key resource */ + RETVAL_RESOURCE(zend_list_insert(req.priv_key, le_key TSRMLS_CC)); + /* make sure the cleanup code doesn't zap it! */ + req.priv_key = NULL; + } + } + PHP_SSL_REQ_DISPOSE(&req); +} +/* }}} */ + +/* {{{ proto bool openssl_pkey_export_to_file(mixed key, string outfilename [, string passphrase, array config_args) + Gets an exportable representation of a key into a file */ +PHP_FUNCTION(openssl_pkey_export_to_file) +{ + struct php_x509_request req; + zval ** zpkey, * args = NULL; + char * passphrase = NULL; + int passphrase_len = 0; + char * filename = NULL; + int filename_len = 0; + long key_resource = -1; + int pem_write = 0; + EVP_PKEY * key; + BIO * bio_out = NULL; + const EVP_CIPHER * cipher; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zp|s!a!", &zpkey, &filename, &filename_len, &passphrase, &passphrase_len, &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); + + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get key from parameter 1"); + RETURN_FALSE; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + RETURN_FALSE; + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + bio_out = BIO_new_file(filename, "w"); + + if (passphrase && req.priv_key_encrypt) { + if (req.priv_key_encrypt_cipher) { + cipher = req.priv_key_encrypt_cipher; + } else { + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); + } + } else { + cipher = NULL; + } + + switch (EVP_PKEY_base_id(key)) { +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get0_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; +#endif + default: + pem_write = PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; + } + + if (pem_write) { + /* Success! + * If returning the output as a string, do so now */ + RETVAL_TRUE; + } + } + PHP_SSL_REQ_DISPOSE(&req); + + if (key_resource == -1 && key) { + EVP_PKEY_free(key); + } + if (bio_out) { + BIO_free(bio_out); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkey_export(mixed key, &mixed out [, string passphrase [, array config_args]]) + Gets an exportable representation of a key into a string or file */ +PHP_FUNCTION(openssl_pkey_export) +{ + struct php_x509_request req; + zval ** zpkey, * args = NULL, *out; + char * passphrase = NULL; + int passphrase_len = 0; + long key_resource = -1; + int pem_write = 0; + EVP_PKEY * key; + BIO * bio_out = NULL; + const EVP_CIPHER * cipher; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zz|s!a!", &zpkey, &out, &passphrase, &passphrase_len, &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); + + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get key from parameter 1"); + RETURN_FALSE; + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + bio_out = BIO_new(BIO_s_mem()); + + if (passphrase && req.priv_key_encrypt) { + if (req.priv_key_encrypt_cipher) { + cipher = req.priv_key_encrypt_cipher; + } else { + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); + } + } else { + cipher = NULL; + } + + switch (EVP_PKEY_base_id(key)) { +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get1_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; +#endif + default: + pem_write = PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; + } + + if (pem_write) { + /* Success! + * If returning the output as a string, do so now */ + + char * bio_mem_ptr; + long bio_mem_len; + RETVAL_TRUE; + + bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); + zval_dtor(out); + ZVAL_STRINGL(out, bio_mem_ptr, bio_mem_len, 1); + } + } + PHP_SSL_REQ_DISPOSE(&req); + + if (key_resource == -1 && key) { + EVP_PKEY_free(key); + } + if (bio_out) { + BIO_free(bio_out); + } +} +/* }}} */ + +/* {{{ proto int openssl_pkey_get_public(mixed cert) + Gets public key from X.509 certificate */ +PHP_FUNCTION(openssl_pkey_get_public) +{ + zval **cert; + EVP_PKEY *pkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &cert) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + pkey = php_openssl_evp_from_zval(cert, 1, NULL, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (pkey == NULL) { + RETURN_FALSE; + } + zend_list_addref(Z_LVAL_P(return_value)); +} +/* }}} */ + +/* {{{ proto void openssl_pkey_free(int key) + Frees a key */ +PHP_FUNCTION(openssl_pkey_free) +{ + zval *key; + EVP_PKEY *pkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + zend_list_delete(Z_LVAL_P(key)); +} +/* }}} */ + +/* {{{ proto int openssl_pkey_get_private(string key [, string passphrase]) + Gets private keys */ +PHP_FUNCTION(openssl_pkey_get_private) +{ + zval **cert; + EVP_PKEY *pkey; + char * passphrase = ""; + int passphrase_len = sizeof("")-1; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|s", &cert, &passphrase, &passphrase_len) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + pkey = php_openssl_evp_from_zval(cert, 0, passphrase, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (pkey == NULL) { + RETURN_FALSE; + } + zend_list_addref(Z_LVAL_P(return_value)); +} + +/* }}} */ + +/* {{{ proto resource openssl_pkey_get_details(resource key) + returns an array with the key details (bits, pkey, type)*/ +PHP_FUNCTION(openssl_pkey_get_details) +{ + zval *key; + EVP_PKEY *pkey; + BIO *out; + unsigned int pbio_len; + char *pbio; + long ktype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + if (!pkey) { + RETURN_FALSE; + } + out = BIO_new(BIO_s_mem()); + PEM_write_bio_PUBKEY(out, pkey); + pbio_len = BIO_get_mem_data(out, &pbio); + + array_init(return_value); + add_assoc_long(return_value, "bits", EVP_PKEY_bits(pkey)); + add_assoc_stringl(return_value, "key", pbio, pbio_len, 1); + /*TODO: Use the real values once the openssl constants are used + * See the enum at the top of this file + */ + switch (EVP_PKEY_base_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + { + RSA *rsa = EVP_PKEY_get0_RSA(pkey); + ktype = OPENSSL_KEYTYPE_RSA; + + if (rsa != NULL) { + zval *z_rsa; + const BIGNUM *n, *e, *d, *p, *q, *dmp1, *dmq1, *iqmp; + + RSA_get0_key(rsa, &n, &e, &d); + RSA_get0_factors(rsa, &p, &q); + RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); + + ALLOC_INIT_ZVAL(z_rsa); + array_init(z_rsa); + OPENSSL_PKEY_GET_BN(z_rsa, n); + OPENSSL_PKEY_GET_BN(z_rsa, e); + OPENSSL_PKEY_GET_BN(z_rsa, d); + OPENSSL_PKEY_GET_BN(z_rsa, p); + OPENSSL_PKEY_GET_BN(z_rsa, q); + OPENSSL_PKEY_GET_BN(z_rsa, dmp1); + OPENSSL_PKEY_GET_BN(z_rsa, dmq1); + OPENSSL_PKEY_GET_BN(z_rsa, iqmp); + add_assoc_zval(return_value, "rsa", z_rsa); + } + } + + break; + case EVP_PKEY_DSA: + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: + { + DSA *dsa = EVP_PKEY_get0_DSA(pkey); + ktype = OPENSSL_KEYTYPE_DSA; + + if (dsa != NULL) { + zval *z_dsa; + const BIGNUM *p, *q, *g, *priv_key, *pub_key; + + DSA_get0_pqg(dsa, &p, &q, &g); + DSA_get0_key(dsa, &pub_key, &priv_key); + + ALLOC_INIT_ZVAL(z_dsa); + array_init(z_dsa); + OPENSSL_PKEY_GET_BN(z_dsa, p); + OPENSSL_PKEY_GET_BN(z_dsa, q); + OPENSSL_PKEY_GET_BN(z_dsa, g); + OPENSSL_PKEY_GET_BN(z_dsa, priv_key); + OPENSSL_PKEY_GET_BN(z_dsa, pub_key); + add_assoc_zval(return_value, "dsa", z_dsa); + } + } + break; + case EVP_PKEY_DH: + { + DH *dh = EVP_PKEY_get0_DH(pkey); + ktype = OPENSSL_KEYTYPE_DH; + + if (dh != NULL) { + zval *z_dh; + const BIGNUM *p, *q, *g, *priv_key, *pub_key; + + DH_get0_pqg(dh, &p, &q, &g); + DH_get0_key(dh, &pub_key, &priv_key); + + ALLOC_INIT_ZVAL(z_dh); + array_init(z_dh); + OPENSSL_PKEY_GET_BN(z_dh, p); + OPENSSL_PKEY_GET_BN(z_dh, g); + OPENSSL_PKEY_GET_BN(z_dh, priv_key); + OPENSSL_PKEY_GET_BN(z_dh, pub_key); + add_assoc_zval(return_value, "dh", z_dh); + } + } + + break; +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + ktype = OPENSSL_KEYTYPE_EC; + if (EVP_PKEY_get0_EC_KEY(pkey) != NULL) { + zval *ec; + const EC_GROUP *ec_group; + int nid; + char *crv_sn; + ASN1_OBJECT *obj; + // openssl recommends a buffer length of 80 + char oir_buf[80]; + + ec_group = EC_KEY_get0_group(EVP_PKEY_get1_EC_KEY(pkey)); + + // Curve nid (numerical identifier) used for ASN1 mapping + nid = EC_GROUP_get_curve_name(ec_group); + if (nid == NID_undef) { + break; + } + ALLOC_INIT_ZVAL(ec); + array_init(ec); + + // Short object name + crv_sn = (char*) OBJ_nid2sn(nid); + if (crv_sn != NULL) { + add_assoc_string(ec, "curve_name", crv_sn, 1); + } + + obj = OBJ_nid2obj(nid); + if (obj != NULL) { + int oir_len = OBJ_obj2txt(oir_buf, sizeof(oir_buf), obj, 1); + add_assoc_stringl(ec, "curve_oid", (char*)oir_buf, oir_len, 1); + ASN1_OBJECT_free(obj); + } + + add_assoc_zval(return_value, "ec", ec); + } + break; +#endif + default: + ktype = -1; + break; + } + add_assoc_long(return_value, "type", ktype); + + BIO_free(out); +} +/* }}} */ + +/* }}} */ + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + +/* {{{ proto string openssl_pbkdf2(string password, string salt, long key_length, long iterations [, string digest_method = "sha1"]) + Generates a PKCS5 v2 PBKDF2 string, defaults to sha1 */ +PHP_FUNCTION(openssl_pbkdf2) +{ + long key_length = 0, iterations = 0; + char *password; int password_len; + char *salt; int salt_len; + char *method; int method_len = 0; + unsigned char *out_buffer; + + const EVP_MD *digest; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssll|s", + &password, &password_len, + &salt, &salt_len, + &key_length, &iterations, + &method, &method_len) == FAILURE) { + return; + } + + if (key_length <= 0 || key_length > INT_MAX) { + RETURN_FALSE; + } + + if (method_len) { + digest = EVP_get_digestbyname(method); + } else { + digest = EVP_sha1(); + } + + if (!digest) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + RETURN_FALSE; + } + + out_buffer = emalloc(key_length + 1); + out_buffer[key_length] = '\0'; + + if (PKCS5_PBKDF2_HMAC(password, password_len, (unsigned char *)salt, salt_len, iterations, digest, key_length, out_buffer) == 1) { + RETVAL_STRINGL((char *)out_buffer, key_length, 0); + } else { + efree(out_buffer); + RETURN_FALSE; + } +} +/* }}} */ + +#endif + +/* {{{ PKCS7 S/MIME functions */ + +/* {{{ proto bool openssl_pkcs7_verify(string filename, long flags [, string signerscerts [, array cainfo [, string extracerts [, string content]]]]) + Verifys that the data block is intact, the signer is who they say they are, and returns the CERTs of the signers */ +PHP_FUNCTION(openssl_pkcs7_verify) +{ + X509_STORE * store = NULL; + zval * cainfo = NULL; + STACK_OF(X509) *signers= NULL; + STACK_OF(X509) *others = NULL; + PKCS7 * p7 = NULL; + BIO * in = NULL, * datain = NULL, * dataout = NULL; + long flags = 0; + char * filename; int filename_len; + char * extracerts = NULL; int extracerts_len = 0; + char * signersfilename = NULL; int signersfilename_len = 0; + char * datafilename = NULL; int datafilename_len = 0; + + RETVAL_LONG(-1); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|papp", &filename, &filename_len, + &flags, &signersfilename, &signersfilename_len, &cainfo, + &extracerts, &extracerts_len, &datafilename, &datafilename_len) == FAILURE) { + return; + } + + if (extracerts) { + others = load_all_certs_from_file(extracerts); + if (others == NULL) { + goto clean_exit; + } + } + + flags = flags & ~PKCS7_DETACHED; + + store = setup_verify(cainfo TSRMLS_CC); + + if (!store) { + goto clean_exit; + } + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + goto clean_exit; + } + + in = BIO_new_file(filename, (flags & PKCS7_BINARY) ? "rb" : "r"); + if (in == NULL) { + goto clean_exit; + } + p7 = SMIME_read_PKCS7(in, &datain); + if (p7 == NULL) { +#if DEBUG_SMIME + zend_printf("SMIME_read_PKCS7 failed\n"); +#endif + goto clean_exit; + } + + if (datafilename) { + + if (php_openssl_open_base_dir_chk(datafilename TSRMLS_CC)) { + goto clean_exit; + } + + dataout = BIO_new_file(datafilename, "w"); + if (dataout == NULL) { + goto clean_exit; + } + } +#if DEBUG_SMIME + zend_printf("Calling PKCS7 verify\n"); +#endif + + if (PKCS7_verify(p7, others, store, datain, dataout, flags)) { + + RETVAL_TRUE; + + if (signersfilename) { + BIO *certout; + + if (php_openssl_open_base_dir_chk(signersfilename TSRMLS_CC)) { + goto clean_exit; + } + + certout = BIO_new_file(signersfilename, "w"); + if (certout) { + int i; + signers = PKCS7_get0_signers(p7, NULL, flags); + + for(i = 0; i < sk_X509_num(signers); i++) { + PEM_write_bio_X509(certout, sk_X509_value(signers, i)); + } + BIO_free(certout); + sk_X509_free(signers); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "signature OK, but cannot open %s for writing", signersfilename); + RETVAL_LONG(-1); + } + } + goto clean_exit; + } else { + RETVAL_FALSE; + } +clean_exit: + X509_STORE_free(store); + BIO_free(datain); + BIO_free(in); + BIO_free(dataout); + PKCS7_free(p7); + sk_X509_free(others); +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_encrypt(string infile, string outfile, mixed recipcerts, array headers [, long flags [, long cipher]]) + Encrypts the message in the file named infile with the certificates in recipcerts and output the result to the file named outfile */ +PHP_FUNCTION(openssl_pkcs7_encrypt) +{ + zval ** zrecipcerts, * zheaders = NULL; + STACK_OF(X509) * recipcerts = NULL; + BIO * infile = NULL, * outfile = NULL; + long flags = 0; + PKCS7 * p7 = NULL; + HashPosition hpos; + zval ** zcertval; + X509 * cert; + const EVP_CIPHER *cipher = NULL; + long cipherid = PHP_OPENSSL_CIPHER_DEFAULT; + uint strindexlen; + ulong intindex; + char * strindex; + char * infilename = NULL; int infilename_len; + char * outfilename = NULL; int outfilename_len; + + RETVAL_FALSE; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZa!|ll", &infilename, &infilename_len, + &outfilename, &outfilename_len, &zrecipcerts, &zheaders, &flags, &cipherid) == FAILURE) + return; + + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + return; + } + + infile = BIO_new_file(infilename, "r"); + if (infile == NULL) { + goto clean_exit; + } + + outfile = BIO_new_file(outfilename, "w"); + if (outfile == NULL) { + goto clean_exit; + } + + recipcerts = sk_X509_new_null(); + + /* get certs */ + if (Z_TYPE_PP(zrecipcerts) == IS_ARRAY) { + zend_hash_internal_pointer_reset_ex(HASH_OF(*zrecipcerts), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(*zrecipcerts), (void**)&zcertval, &hpos) == SUCCESS) { + long certresource; + + cert = php_openssl_x509_from_zval(zcertval, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + /* we shouldn't free this particular cert, as it is a resource. + make a copy and push that on the stack instead */ + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(recipcerts, cert); + + zend_hash_move_forward_ex(HASH_OF(*zrecipcerts), &hpos); + } + } else { + /* a single certificate */ + long certresource; + + cert = php_openssl_x509_from_zval(zrecipcerts, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + /* we shouldn't free this particular cert, as it is a resource. + make a copy and push that on the stack instead */ + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(recipcerts, cert); + } + + /* sanity check the cipher */ + cipher = php_openssl_get_evp_cipher_from_algo(cipherid); + if (cipher == NULL) { + /* shouldn't happen */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to get cipher"); + goto clean_exit; + } + + p7 = PKCS7_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, flags); + + if (p7 == NULL) { + goto clean_exit; + } + + /* tack on extra headers */ + if (zheaders) { + zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&zcertval, &hpos) == SUCCESS) { + strindex = NULL; + zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(zcertval); + + if (strindex) { + BIO_printf(outfile, "%s: %s\n", strindex, Z_STRVAL_PP(zcertval)); + } else { + BIO_printf(outfile, "%s\n", Z_STRVAL_PP(zcertval)); + } + + zend_hash_move_forward_ex(HASH_OF(zheaders), &hpos); + } + } + + (void)BIO_reset(infile); + + /* write the encrypted data */ + SMIME_write_PKCS7(outfile, p7, infile, flags); + + RETVAL_TRUE; + +clean_exit: + PKCS7_free(p7); + BIO_free(infile); + BIO_free(outfile); + if (recipcerts) { + sk_X509_pop_free(recipcerts, X509_free); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_sign(string infile, string outfile, mixed signcert, mixed signkey, array headers [, long flags [, string extracertsfilename]]) + Signs the MIME message in the file named infile with signcert/signkey and output the result to file name outfile. headers lists plain text headers to exclude from the signed portion of the message, and should include to, from and subject as a minimum */ + +PHP_FUNCTION(openssl_pkcs7_sign) +{ + zval ** zcert, ** zprivkey, * zheaders; + zval ** hval; + X509 * cert = NULL; + EVP_PKEY * privkey = NULL; + long flags = PKCS7_DETACHED; + PKCS7 * p7 = NULL; + BIO * infile = NULL, * outfile = NULL; + STACK_OF(X509) *others = NULL; + long certresource = -1, keyresource = -1; + ulong intindex; + uint strindexlen; + HashPosition hpos; + char * strindex; + char * infilename; int infilename_len; + char * outfilename; int outfilename_len; + char * extracertsfilename = NULL; int extracertsfilename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZZa!|lp!", + &infilename, &infilename_len, &outfilename, &outfilename_len, + &zcert, &zprivkey, &zheaders, &flags, &extracertsfilename, + &extracertsfilename_len) == FAILURE) { + return; + } + + RETVAL_FALSE; + + if (extracertsfilename) { + others = load_all_certs_from_file(extracertsfilename); + if (others == NULL) { + goto clean_exit; + } + } + + privkey = php_openssl_evp_from_zval(zprivkey, 0, "", 0, &keyresource TSRMLS_CC); + if (privkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error getting private key"); + goto clean_exit; + } + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error getting cert"); + goto clean_exit; + } + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + goto clean_exit; + } + + infile = BIO_new_file(infilename, "r"); + if (infile == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening input file %s!", infilename); + goto clean_exit; + } + + outfile = BIO_new_file(outfilename, "w"); + if (outfile == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening output file %s!", outfilename); + goto clean_exit; + } + + p7 = PKCS7_sign(cert, privkey, others, infile, flags); + if (p7 == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error creating PKCS7 structure!"); + goto clean_exit; + } + + (void)BIO_reset(infile); + + /* tack on extra headers */ + if (zheaders) { + zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&hval, &hpos) == SUCCESS) { + strindex = NULL; + zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(hval); + + if (strindex) { + BIO_printf(outfile, "%s: %s\n", strindex, Z_STRVAL_PP(hval)); + } else { + BIO_printf(outfile, "%s\n", Z_STRVAL_PP(hval)); + } + zend_hash_move_forward_ex(HASH_OF(zheaders), &hpos); + } + } + /* write the signed data */ + SMIME_write_PKCS7(outfile, p7, infile, flags); + + RETVAL_TRUE; + +clean_exit: + PKCS7_free(p7); + BIO_free(infile); + BIO_free(outfile); + if (others) { + sk_X509_pop_free(others, X509_free); + } + if (privkey && keyresource == -1) { + EVP_PKEY_free(privkey); + } + if (cert && certresource == -1) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_decrypt(string infilename, string outfilename, mixed recipcert [, mixed recipkey]) + Decrypts the S/MIME message in the file name infilename and output the results to the file name outfilename. recipcert is a CERT for one of the recipients. recipkey specifies the private key matching recipcert, if recipcert does not include the key */ + +PHP_FUNCTION(openssl_pkcs7_decrypt) +{ + zval ** recipcert, ** recipkey = NULL; + X509 * cert = NULL; + EVP_PKEY * key = NULL; + long certresval, keyresval; + BIO * in = NULL, * out = NULL, * datain = NULL; + PKCS7 * p7 = NULL; + char * infilename; int infilename_len; + char * outfilename; int outfilename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZ|Z", &infilename, &infilename_len, + &outfilename, &outfilename_len, &recipcert, &recipkey) == FAILURE) { + return; + } + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(recipcert, 0, &certresval TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to coerce parameter 3 to x509 cert"); + goto clean_exit; + } + + key = php_openssl_evp_from_zval(recipkey ? recipkey : recipcert, 0, "", 0, &keyresval TSRMLS_CC); + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to get private key"); + goto clean_exit; + } + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + goto clean_exit; + } + + in = BIO_new_file(infilename, "r"); + if (in == NULL) { + goto clean_exit; + } + out = BIO_new_file(outfilename, "w"); + if (out == NULL) { + goto clean_exit; + } + + p7 = SMIME_read_PKCS7(in, &datain); + + if (p7 == NULL) { + goto clean_exit; + } + if (PKCS7_decrypt(p7, key, cert, out, PKCS7_DETACHED)) { + RETVAL_TRUE; + } +clean_exit: + PKCS7_free(p7); + BIO_free(datain); + BIO_free(in); + BIO_free(out); + if (cert && certresval == -1) { + X509_free(cert); + } + if (key && keyresval == -1) { + EVP_PKEY_free(key); + } +} +/* }}} */ + +/* }}} */ + +/* {{{ proto bool openssl_private_encrypt(string data, string &crypted, mixed key [, int padding]) + Encrypts data with private key */ +PHP_FUNCTION(openssl_private_encrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + int successful = 0; + long keyresource = -1; + char * data; + int data_len; + long padding = RSA_PKCS1_PADDING; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key param is not a valid private key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + + switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_private_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, + EVP_PKEY_get0_RSA(pkey), + padding) == cryptedlen); + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + } + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + if (cryptedbuf) { + efree(cryptedbuf); + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto bool openssl_private_decrypt(string data, string &decrypted, mixed key [, int padding]) + Decrypts data with private key */ +PHP_FUNCTION(openssl_private_decrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + unsigned char *crypttemp; + int successful = 0; + long padding = RSA_PKCS1_PADDING; + long keyresource = -1; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid private key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + + switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_private_decrypt(data_len, + (unsigned char *)data, + crypttemp, + EVP_PKEY_get0_RSA(pkey), + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); + memcpy(cryptedbuf, crypttemp, cryptedlen); + successful = 1; + } + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + } + + efree(crypttemp); + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + if (cryptedbuf) { + efree(cryptedbuf); + } +} +/* }}} */ + +/* {{{ proto bool openssl_public_encrypt(string data, string &crypted, mixed key [, int padding]) + Encrypts data with public key */ +PHP_FUNCTION(openssl_public_encrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf; + int successful = 0; + long keyresource = -1; + long padding = RSA_PKCS1_PADDING; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) + return; + + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid public key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + + switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_public_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, + EVP_PKEY_get0_RSA(pkey), + padding) == cryptedlen); + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + + } + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + if (cryptedbuf) { + efree(cryptedbuf); + } +} +/* }}} */ + +/* {{{ proto bool openssl_public_decrypt(string data, string &crypted, resource key [, int padding]) + Decrypts data with public key */ +PHP_FUNCTION(openssl_public_decrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + unsigned char *crypttemp; + int successful = 0; + long keyresource = -1; + long padding = RSA_PKCS1_PADDING; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid public key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + + switch (EVP_PKEY_id(pkey)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_public_decrypt(data_len, + (unsigned char *)data, + crypttemp, + EVP_PKEY_get0_RSA(pkey), + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); + memcpy(cryptedbuf, crypttemp, cryptedlen); + successful = 1; + } + break; + + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + + } + + efree(crypttemp); + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + + if (cryptedbuf) { + efree(cryptedbuf); + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto mixed openssl_error_string(void) + Returns a description of the last error, and alters the index of the error messages. Returns false when the are no more messages */ +PHP_FUNCTION(openssl_error_string) +{ + char buf[512]; + unsigned long val; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + val = ERR_get_error(); + if (val) { + RETURN_STRING(ERR_error_string(val, buf), 1); + } else { + RETURN_FALSE; + } +} +/* }}} */ + +/* {{{ proto bool openssl_sign(string data, &string signature, mixed key[, mixed method]) + Signs data */ +PHP_FUNCTION(openssl_sign) +{ + zval **key, *signature; + EVP_PKEY *pkey; + int siglen; + unsigned char *sigbuf; + long keyresource = -1; + char * data; + int data_len; + EVP_MD_CTX *md_ctx; + zval *method = NULL; + long signature_algo = OPENSSL_ALGO_SHA1; + const EVP_MD *mdtype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|z", &data, &data_len, &signature, &key, &method) == FAILURE) { + return; + } + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param cannot be coerced into a private key"); + RETURN_FALSE; + } + + if (method == NULL || Z_TYPE_P(method) == IS_LONG) { + if (method != NULL) { + signature_algo = Z_LVAL_P(method); + } + mdtype = php_openssl_get_evp_md_from_algo(signature_algo); + } else if (Z_TYPE_P(method) == IS_STRING) { + mdtype = EVP_get_digestbyname(Z_STRVAL_P(method)); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + + siglen = EVP_PKEY_size(pkey); + sigbuf = emalloc(siglen + 1); + + md_ctx = EVP_MD_CTX_create(); + EVP_SignInit(md_ctx, mdtype); + EVP_SignUpdate(md_ctx, data, data_len); + if (EVP_SignFinal (md_ctx, sigbuf,(unsigned int *)&siglen, pkey)) { + zval_dtor(signature); + sigbuf[siglen] = '\0'; + ZVAL_STRINGL(signature, (char *)sigbuf, siglen, 0); + RETVAL_TRUE; + } else { + efree(sigbuf); + RETVAL_FALSE; + } + EVP_MD_CTX_destroy(md_ctx); + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto int openssl_verify(string data, string signature, mixed key[, mixed method]) + Verifys data */ +PHP_FUNCTION(openssl_verify) +{ + zval **key; + EVP_PKEY *pkey; + int err; + EVP_MD_CTX *md_ctx; + const EVP_MD *mdtype; + long keyresource = -1; + char * data; int data_len; + char * signature; int signature_len; + zval *method = NULL; + long signature_algo = OPENSSL_ALGO_SHA1; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssZ|z", &data, &data_len, &signature, &signature_len, &key, &method) == FAILURE) { + return; + } + + if (method == NULL || Z_TYPE_P(method) == IS_LONG) { + if (method != NULL) { + signature_algo = Z_LVAL_P(method); + } + mdtype = php_openssl_get_evp_md_from_algo(signature_algo); + } else if (Z_TYPE_P(method) == IS_STRING) { + mdtype = EVP_get_digestbyname(Z_STRVAL_P(method)); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param cannot be coerced into a public key"); + RETURN_FALSE; + } + + md_ctx = EVP_MD_CTX_create(); + EVP_VerifyInit (md_ctx, mdtype); + EVP_VerifyUpdate (md_ctx, data, data_len); + err = EVP_VerifyFinal (md_ctx, (unsigned char *)signature, signature_len, pkey); + EVP_MD_CTX_destroy(md_ctx); + + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + RETURN_LONG(err); +} +/* }}} */ + +/* {{{ proto int openssl_seal(string data, &string sealdata, &array ekeys, array pubkeys) + Seals data */ +PHP_FUNCTION(openssl_seal) +{ + zval *pubkeys, **pubkey, *sealdata, *ekeys; + HashTable *pubkeysht; + HashPosition pos; + EVP_PKEY **pkeys; + long * key_resources; /* so we know what to cleanup */ + int i, len1, len2, *eksl, nkeys; + unsigned char *buf = NULL, **eks; + char * data; int data_len; + char *method =NULL; + int method_len = 0; + const EVP_CIPHER *cipher; + EVP_CIPHER_CTX *ctx; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szza/|s", &data, &data_len, &sealdata, &ekeys, &pubkeys, &method, &method_len) == FAILURE) { + return; + } + + pubkeysht = HASH_OF(pubkeys); + nkeys = pubkeysht ? zend_hash_num_elements(pubkeysht) : 0; + if (!nkeys) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Fourth argument to openssl_seal() must be a non-empty array"); + RETURN_FALSE; + } + + if (method) { + cipher = EVP_get_cipherbyname(method); + if (!cipher) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (EVP_CIPHER_iv_length(cipher) > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Ciphers with modes requiring IV are not supported"); + RETURN_FALSE; + } + } else { + cipher = EVP_rc4(); + } + + pkeys = safe_emalloc(nkeys, sizeof(*pkeys), 0); + eksl = safe_emalloc(nkeys, sizeof(*eksl), 0); + eks = safe_emalloc(nkeys, sizeof(*eks), 0); + memset(eks, 0, sizeof(*eks) * nkeys); + key_resources = safe_emalloc(nkeys, sizeof(long), 0); + memset(key_resources, 0, sizeof(*key_resources) * nkeys); + memset(pkeys, 0, sizeof(*pkeys) * nkeys); + + /* get the public keys we are using to seal this data */ + zend_hash_internal_pointer_reset_ex(pubkeysht, &pos); + i = 0; + while (zend_hash_get_current_data_ex(pubkeysht, (void **) &pubkey, + &pos) == SUCCESS) { + pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, &key_resources[i] TSRMLS_CC); + if (pkeys[i] == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "not a public key (%dth member of pubkeys)", i+1); + RETVAL_FALSE; + goto clean_exit; + } + eks[i] = emalloc(EVP_PKEY_size(pkeys[i]) + 1); + zend_hash_move_forward_ex(pubkeysht, &pos); + i++; + } + + ctx = EVP_CIPHER_CTX_new(); + if (ctx == NULL || !EVP_EncryptInit(ctx,cipher,NULL,NULL)) { + RETVAL_FALSE; + EVP_CIPHER_CTX_free(ctx); + goto clean_exit; + } + +#if 0 + /* Need this if allow ciphers that require initialization vector */ + ivlen = EVP_CIPHER_CTX_iv_length(ctx); + iv = ivlen ? emalloc(ivlen + 1) : NULL; +#endif + /* allocate one byte extra to make room for \0 */ + buf = emalloc(data_len + EVP_CIPHER_CTX_block_size(ctx)); + EVP_CIPHER_CTX_cleanup(ctx); + + if (EVP_SealInit(ctx, cipher, eks, eksl, NULL, pkeys, nkeys) <= 0 || + !EVP_SealUpdate(ctx, buf, &len1, (unsigned char *)data, data_len) || + !EVP_SealFinal(ctx, buf + len1, &len2)) { + RETVAL_FALSE; + efree(buf); + EVP_CIPHER_CTX_free(ctx); + goto clean_exit; + } + + if (len1 + len2 > 0) { + zval_dtor(sealdata); + buf[len1 + len2] = '\0'; + buf = erealloc(buf, len1 + len2 + 1); + ZVAL_STRINGL(sealdata, (char *)buf, len1 + len2, 0); + + zval_dtor(ekeys); + array_init(ekeys); + for (i=0; iname, 1); +} +/* }}} */ + +static void openssl_add_method(const OBJ_NAME *name, void *arg) /* {{{ */ +{ + if (name->alias == 0) { + add_next_index_string((zval*)arg, (char*)name->name, 1); + } +} +/* }}} */ + +/* {{{ proto array openssl_get_md_methods([bool aliases = false]) + Return array of available digest methods */ +PHP_FUNCTION(openssl_get_md_methods) +{ + zend_bool aliases = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &aliases) == FAILURE) { + return; + } + array_init(return_value); + OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_MD_METH, + aliases ? openssl_add_method_or_alias: openssl_add_method, + return_value); +} +/* }}} */ + +/* {{{ proto array openssl_get_cipher_methods([bool aliases = false]) + Return array of available cipher methods */ +PHP_FUNCTION(openssl_get_cipher_methods) +{ + zend_bool aliases = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &aliases) == FAILURE) { + return; + } + array_init(return_value); + OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, + aliases ? openssl_add_method_or_alias: openssl_add_method, + return_value); +} +/* }}} */ + +/* {{{ proto string openssl_digest(string data, string method [, bool raw_output=false]) + Computes digest hash value for given data using given method, returns raw or binhex encoded string */ +PHP_FUNCTION(openssl_digest) +{ + zend_bool raw_output = 0; + char *data, *method; + int data_len, method_len; + const EVP_MD *mdtype; + EVP_MD_CTX *md_ctx; + int siglen; + unsigned char *sigbuf; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &data, &data_len, &method, &method_len, &raw_output) == FAILURE) { + return; + } + mdtype = EVP_get_digestbyname(method); + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + RETURN_FALSE; + } + + siglen = EVP_MD_size(mdtype); + sigbuf = emalloc(siglen + 1); + + md_ctx = EVP_MD_CTX_create(); + EVP_DigestInit(md_ctx, mdtype); + EVP_DigestUpdate(md_ctx, (unsigned char *)data, data_len); + if (EVP_DigestFinal (md_ctx, (unsigned char *)sigbuf, (unsigned int *)&siglen)) { + if (raw_output) { + sigbuf[siglen] = '\0'; + RETVAL_STRINGL((char *)sigbuf, siglen, 0); + } else { + int digest_str_len = siglen * 2; + char *digest_str = emalloc(digest_str_len + 1); + + make_digest_ex(digest_str, sigbuf, siglen); + efree(sigbuf); + RETVAL_STRINGL(digest_str, digest_str_len, 0); + } + } else { + efree(sigbuf); + RETVAL_FALSE; + } + + EVP_MD_CTX_destroy(md_ctx); +} +/* }}} */ + +static zend_bool php_openssl_validate_iv(char **piv, int *piv_len, int iv_required_len TSRMLS_DC) +{ + char *iv_new; + + /* Best case scenario, user behaved */ + if (*piv_len == iv_required_len) { + return 0; + } + + iv_new = ecalloc(1, iv_required_len + 1); + + if (*piv_len <= 0) { + /* BC behavior */ + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + } + + if (*piv_len < iv_required_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "IV passed is only %d bytes long, cipher expects an IV of precisely %d bytes, padding with \\0", *piv_len, iv_required_len); + memcpy(iv_new, *piv, *piv_len); + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + } + + php_error_docref(NULL TSRMLS_CC, E_WARNING, "IV passed is %d bytes long which is longer than the %d expected by selected cipher, truncating", *piv_len, iv_required_len); + memcpy(iv_new, *piv, iv_required_len); + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + +} + +/* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv='']]) + Encrypts given data with given method and key, returns raw or base64 encoded string */ +PHP_FUNCTION(openssl_encrypt) +{ + long options = 0; + char *data, *method, *password, *iv = ""; + int data_len, method_len, password_len, iv_len = 0, max_iv_len; + const EVP_CIPHER *cipher_type; + EVP_CIPHER_CTX *cipher_ctx; + int i=0, outlen, keylen; + unsigned char *outbuf, *key; + zend_bool free_iv; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) { + return; + } + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + keylen = EVP_CIPHER_key_length(cipher_type); + if (keylen > password_len) { + key = emalloc(keylen); + memset(key, 0, keylen); + memcpy(key, password, password_len); + } else { + key = (unsigned char*)password; + } + + max_iv_len = EVP_CIPHER_iv_length(cipher_type); + if (iv_len <= 0 && max_iv_len > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Using an empty Initialization Vector (iv) is potentially insecure and not recommended"); + } + free_iv = php_openssl_validate_iv(&iv, &iv_len, max_iv_len TSRMLS_CC); + + outlen = data_len + EVP_CIPHER_block_size(cipher_type); + outbuf = safe_emalloc(outlen, 1, 1); + + cipher_ctx = EVP_CIPHER_CTX_new(); + if (!cipher_ctx) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to create cipher context"); + RETURN_FALSE; + } + EVP_EncryptInit(cipher_ctx, cipher_type, NULL, NULL); + if (password_len > keylen) { + EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len); + } + EVP_EncryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { + EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); + } + if (data_len > 0) { + EVP_EncryptUpdate(cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + } + outlen = i; + if (EVP_EncryptFinal(cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + if (options & OPENSSL_RAW_DATA) { + outbuf[outlen] = '\0'; + RETVAL_STRINGL_CHECK((char *)outbuf, outlen, 0); + } else { + int base64_str_len; + char *base64_str; + + base64_str = (char*)php_base64_encode(outbuf, outlen, &base64_str_len); + efree(outbuf); + if (!base64_str) { + RETVAL_FALSE; + } else { + RETVAL_STRINGL(base64_str, base64_str_len, 0); + } + } + } else { + efree(outbuf); + RETVAL_FALSE; + } + if (key != (unsigned char*)password) { + efree(key); + } + if (free_iv) { + efree(iv); + } + EVP_CIPHER_CTX_cleanup(cipher_ctx); + EVP_CIPHER_CTX_free(cipher_ctx); +} +/* }}} */ + +/* {{{ proto string openssl_decrypt(string data, string method, string password [, long options=0 [, string $iv = '']]) + Takes raw or base64 encoded string and dectupt it using given method and key */ +PHP_FUNCTION(openssl_decrypt) +{ + long options = 0; + char *data, *method, *password, *iv = ""; + int data_len, method_len, password_len, iv_len = 0; + const EVP_CIPHER *cipher_type; + EVP_CIPHER_CTX *cipher_ctx; + int i, outlen, keylen; + unsigned char *outbuf, *key; + int base64_str_len; + char *base64_str = NULL; + zend_bool free_iv; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) { + return; + } + + if (!method_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + if (!(options & OPENSSL_RAW_DATA)) { + base64_str = (char*)php_base64_decode((unsigned char*)data, data_len, &base64_str_len); + if (!base64_str) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to base64 decode the input"); + RETURN_FALSE; + } + data_len = base64_str_len; + data = base64_str; + } + + keylen = EVP_CIPHER_key_length(cipher_type); + if (keylen > password_len) { + key = emalloc(keylen); + memset(key, 0, keylen); + memcpy(key, password, password_len); + } else { + key = (unsigned char*)password; + } + + free_iv = php_openssl_validate_iv(&iv, &iv_len, EVP_CIPHER_iv_length(cipher_type) TSRMLS_CC); + + outlen = data_len + EVP_CIPHER_block_size(cipher_type); + outbuf = emalloc(outlen + 1); + + cipher_ctx = EVP_CIPHER_CTX_new(); + if (!cipher_ctx) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to create cipher context"); + RETURN_FALSE; + } + + EVP_DecryptInit(cipher_ctx, cipher_type, NULL, NULL); + if (password_len > keylen) { + EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len); + } + EVP_DecryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { + EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); + } + EVP_DecryptUpdate(cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + outlen = i; + if (EVP_DecryptFinal(cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + outbuf[outlen] = '\0'; + RETVAL_STRINGL((char *)outbuf, outlen, 0); + } else { + efree(outbuf); + RETVAL_FALSE; + } + if (key != (unsigned char*)password) { + efree(key); + } + if (free_iv) { + efree(iv); + } + if (base64_str) { + efree(base64_str); + } + EVP_CIPHER_CTX_cleanup(cipher_ctx); + EVP_CIPHER_CTX_free(cipher_ctx); +} +/* }}} */ + +/* {{{ proto int openssl_cipher_iv_length(string $method) */ +PHP_FUNCTION(openssl_cipher_iv_length) +{ + char *method; + int method_len; + const EVP_CIPHER *cipher_type; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len) == FAILURE) { + return; + } + + if (!method_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + RETURN_LONG(EVP_CIPHER_iv_length(cipher_type)); +} +/* }}} */ + + +/* {{{ proto string openssl_dh_compute_key(string pub_key, resource dh_key) + Computes shared secret for public value of remote DH key and local DH key */ +PHP_FUNCTION(openssl_dh_compute_key) +{ + zval *key; + char *pub_str; + int pub_len; + DH *dh; + EVP_PKEY *pkey; + BIGNUM *pub; + char *data; + int len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sr", &pub_str, &pub_len, &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + if (pkey == NULL) { + RETURN_FALSE; + } + if (EVP_PKEY_base_id(pkey) != EVP_PKEY_DH) { + RETURN_FALSE; + } + dh = EVP_PKEY_get0_DH(pkey); + if (dh == NULL) { + RETURN_FALSE; + } + + pub = BN_bin2bn((unsigned char*)pub_str, pub_len, NULL); + + data = emalloc(DH_size(dh) + 1); + len = DH_compute_key((unsigned char*)data, pub, dh); + + if (len >= 0) { + data[len] = 0; + RETVAL_STRINGL(data, len, 0); + } else { + efree(data); + RETVAL_FALSE; + } + + BN_free(pub); +} +/* }}} */ + +/* {{{ proto string openssl_random_pseudo_bytes(integer length [, &bool returned_strong_result]) + Returns a string of the length specified filled with random pseudo bytes */ +PHP_FUNCTION(openssl_random_pseudo_bytes) +{ + long buffer_length; + unsigned char *buffer = NULL; + zval *zstrong_result_returned = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|z", &buffer_length, &zstrong_result_returned) == FAILURE) { + return; + } + + if (zstrong_result_returned) { + zval_dtor(zstrong_result_returned); + ZVAL_BOOL(zstrong_result_returned, 0); + } + + if (buffer_length <= 0 || buffer_length > INT_MAX) { + RETURN_FALSE; + } + + buffer = safe_emalloc(buffer_length, 1, 1); + +#ifdef PHP_WIN32 + /* random/urandom equivalent on Windows */ + if (php_win32_get_random_bytes(buffer, (size_t) buffer_length) == FAILURE){ + efree(buffer); + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 0); + } + RETURN_FALSE; + } +#else + PHP_OPENSSL_RAND_ADD_TIME(); + if (RAND_bytes(buffer, buffer_length) <= 0) { + efree(buffer); + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 0); + } + RETURN_FALSE; + } +#endif + + buffer[buffer_length] = 0; + RETVAL_STRINGL((char *)buffer, buffer_length, 0); + + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 1); + } +} +/* }}} */ + +/* + * Local variables: + * tab-width: 8 + * c-basic-offset: 8 + * End: + * vim600: sw=4 ts=4 fdm=marker + * vim<600: sw=4 ts=4 + */ + diff --git a/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/xp_ssl.c b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/xp_ssl.c new file mode 100644 index 000000000..c2d477c1d --- /dev/null +++ b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/openssl/xp_ssl.c @@ -0,0 +1,2486 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 5 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Wez Furlong | + | Daniel Lowrey | + | Chris Wright | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "ext/standard/file.h" +#include "ext/standard/url.h" +#include "streams/php_streams_int.h" +#include "ext/standard/php_smart_str.h" +#include "php_openssl.h" +#include "php_network.h" +#include +#include +#include +#include + +#ifdef PHP_WIN32 +#include "win32/winutil.h" +#include "win32/time.h" +#include +/* These are from Wincrypt.h, they conflict with OpenSSL */ +#undef X509_NAME +#undef X509_CERT_PAIR +#undef X509_EXTENSIONS +#endif + +#ifdef NETWARE +#include +#endif + +#if !defined(OPENSSL_NO_ECDH) && OPENSSL_VERSION_NUMBER >= 0x0090800fL +#define HAVE_ECDH 1 +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x00908070L && !defined(OPENSSL_NO_TLSEXT) +#define HAVE_SNI 1 +#endif + +/* Flags for determining allowed stream crypto methods */ +#define STREAM_CRYPTO_IS_CLIENT (1<<0) +#define STREAM_CRYPTO_METHOD_SSLv2 (1<<1) +#define STREAM_CRYPTO_METHOD_SSLv3 (1<<2) +#define STREAM_CRYPTO_METHOD_TLSv1_0 (1<<3) +#define STREAM_CRYPTO_METHOD_TLSv1_1 (1<<4) +#define STREAM_CRYPTO_METHOD_TLSv1_2 (1<<5) + +/* Simplify ssl context option retrieval */ +#define GET_VER_OPT(name) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, "ssl", name, &val)) +#define GET_VER_OPT_STRING(name, str) if (GET_VER_OPT(name)) { convert_to_string_ex(val); str = Z_STRVAL_PP(val); } +#define GET_VER_OPT_LONG(name, num) if (GET_VER_OPT(name)) { convert_to_long_ex(val); num = Z_LVAL_PP(val); } + +/* Used for peer verification in windows */ +#define PHP_X509_NAME_ENTRY_TO_UTF8(ne, i, out) ASN1_STRING_to_UTF8(&out, X509_NAME_ENTRY_get_data(X509_NAME_get_entry(ne, i))) + +extern php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl); +extern int php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw, char **out, int *out_len TSRMLS_DC); +extern int php_openssl_get_ssl_stream_data_index(); +extern int php_openssl_get_x509_list_id(void); +static struct timeval subtract_timeval( struct timeval a, struct timeval b ); +static int compare_timeval( struct timeval a, struct timeval b ); +static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count TSRMLS_DC); + +php_stream_ops php_openssl_socket_ops; + +/* Certificate contexts used for server-side SNI selection */ +typedef struct _php_openssl_sni_cert_t { + char *name; + SSL_CTX *ctx; +} php_openssl_sni_cert_t; + +/* Provides leaky bucket handhsake renegotiation rate-limiting */ +typedef struct _php_openssl_handshake_bucket_t { + long prev_handshake; + long limit; + long window; + float tokens; + unsigned should_close; +} php_openssl_handshake_bucket_t; + +/* This implementation is very closely tied to the that of the native + * sockets implemented in the core. + * Don't try this technique in other extensions! + * */ +typedef struct _php_openssl_netstream_data_t { + php_netstream_data_t s; + SSL *ssl_handle; + SSL_CTX *ctx; + struct timeval connect_timeout; + int enable_on_connect; + int is_client; + int ssl_active; + php_stream_xport_crypt_method_t method; + php_openssl_handshake_bucket_t *reneg; + php_openssl_sni_cert_t *sni_certs; + unsigned sni_cert_count; + char *url_name; + unsigned state_set:1; + unsigned _spare:31; +} php_openssl_netstream_data_t; + +/* it doesn't matter that we do some hash traversal here, since it is done only + * in an error condition arising from a network connection problem */ +static int is_http_stream_talking_to_iis(php_stream *stream TSRMLS_DC) /* {{{ */ +{ + if (stream->wrapperdata && stream->wrapper && strcasecmp(stream->wrapper->wops->label, "HTTP") == 0) { + /* the wrapperdata is an array zval containing the headers */ + zval **tmp; + +#define SERVER_MICROSOFT_IIS "Server: Microsoft-IIS" +#define SERVER_GOOGLE "Server: GFE/" + + zend_hash_internal_pointer_reset(Z_ARRVAL_P(stream->wrapperdata)); + while (SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(stream->wrapperdata), (void**)&tmp)) { + + if (strncasecmp(Z_STRVAL_PP(tmp), SERVER_MICROSOFT_IIS, sizeof(SERVER_MICROSOFT_IIS)-1) == 0) { + return 1; + } else if (strncasecmp(Z_STRVAL_PP(tmp), SERVER_GOOGLE, sizeof(SERVER_GOOGLE)-1) == 0) { + return 1; + } + + zend_hash_move_forward(Z_ARRVAL_P(stream->wrapperdata)); + } + } + return 0; +} +/* }}} */ + +static int handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init TSRMLS_DC) /* {{{ */ +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); + char esbuf[512]; + smart_str ebuf = {0}; + unsigned long ecode; + int retry = 1; + + switch(err) { + case SSL_ERROR_ZERO_RETURN: + /* SSL terminated (but socket may still be active) */ + retry = 0; + break; + case SSL_ERROR_WANT_READ: + case SSL_ERROR_WANT_WRITE: + /* re-negotiation, or perhaps the SSL layer needs more + * packets: retry in next iteration */ + errno = EAGAIN; + retry = is_init ? 1 : sslsock->s.is_blocked; + break; + case SSL_ERROR_SYSCALL: + if (ERR_peek_error() == 0) { + if (nr_bytes == 0) { + if (!is_http_stream_talking_to_iis(stream TSRMLS_CC) && ERR_get_error() != 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: fatal protocol error"); + } + SSL_set_shutdown(sslsock->ssl_handle, SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN); + stream->eof = 1; + retry = 0; + } else { + char *estr = php_socket_strerror(php_socket_errno(), NULL, 0); + + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: %s", estr); + + efree(estr); + retry = 0; + } + break; + } + + + /* fall through */ + default: + /* some other error */ + ecode = ERR_get_error(); + + switch (ERR_GET_REASON(ecode)) { + case SSL_R_NO_SHARED_CIPHER: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL_R_NO_SHARED_CIPHER: no suitable shared cipher could be used. This could be because the server is missing an SSL certificate (local_cert context option)"); + retry = 0; + break; + + default: + do { + /* NULL is automatically added */ + ERR_error_string_n(ecode, esbuf, sizeof(esbuf)); + if (ebuf.c) { + smart_str_appendc(&ebuf, '\n'); + } + smart_str_appends(&ebuf, esbuf); + } while ((ecode = ERR_get_error()) != 0); + + smart_str_0(&ebuf); + + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL operation failed with code %d. %s%s", + err, + ebuf.c ? "OpenSSL Error messages:\n" : "", + ebuf.c ? ebuf.c : ""); + if (ebuf.c) { + smart_str_free(&ebuf); + } + } + + retry = 0; + errno = 0; + } + return retry; +} +/* }}} */ + +static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) /* {{{ */ +{ + php_stream *stream; + SSL *ssl; + int err, depth, ret; + zval **val; + unsigned long allowed_depth = OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH; + + ret = preverify_ok; + + /* determine the status for the current cert */ + err = X509_STORE_CTX_get_error(ctx); + depth = X509_STORE_CTX_get_error_depth(ctx); + + /* conjure the stream & context to use */ + ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx()); + stream = (php_stream*)SSL_get_ex_data(ssl, php_openssl_get_ssl_stream_data_index()); + + /* if allow_self_signed is set, make sure that verification succeeds */ + if (err == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT && + GET_VER_OPT("allow_self_signed") && + zend_is_true(*val) + ) { + ret = 1; + } + + /* check the depth */ + GET_VER_OPT_LONG("verify_depth", allowed_depth); + if ((unsigned long)depth > allowed_depth) { + ret = 0; + X509_STORE_CTX_set_error(ctx, X509_V_ERR_CERT_CHAIN_TOO_LONG); + } + + return ret; +} +/* }}} */ + +static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char *expected TSRMLS_DC) +{ + char *fingerprint; + int fingerprint_len; + int result = -1; + + if (php_openssl_x509_fingerprint(peer, method, 0, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) { + result = strcasecmp(expected, fingerprint); + efree(fingerprint); + } + + return result; +} + +static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC) +{ + if (Z_TYPE_P(val) == IS_STRING) { + const char *method = NULL; + + switch (Z_STRLEN_P(val)) { + case 32: + method = "md5"; + break; + + case 40: + method = "sha1"; + break; + } + + return method && php_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val) TSRMLS_CC) == 0; + + } else if (Z_TYPE_P(val) == IS_ARRAY) { + HashPosition pos; + zval **current; + char *key; + uint key_len; + ulong key_index; + + if (!zend_hash_num_elements(Z_ARRVAL_P(val))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required"); + return 0; + } + + for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(val), &pos); + zend_hash_get_current_data_ex(Z_ARRVAL_P(val), (void **)¤t, &pos) == SUCCESS; + zend_hash_move_forward_ex(Z_ARRVAL_P(val), &pos) + ) { + int key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(val), &key, &key_len, &key_index, 0, &pos); + + if (!(key_type == HASH_KEY_IS_STRING && Z_TYPE_PP(current) == IS_STRING)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required"); + return 0; + } + if (php_x509_fingerprint_cmp(peer, key, Z_STRVAL_PP(current) TSRMLS_CC) != 0) { + return 0; + } + } + + return 1; + + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Invalid peer_fingerprint value; fingerprint string or array of the form [algo => fingerprint] required"); + } + + return 0; +} + +static zend_bool matches_wildcard_name(const char *subjectname, const char *certname) /* {{{ */ +{ + char *wildcard = NULL; + int prefix_len, suffix_len, subject_len; + + if (strcasecmp(subjectname, certname) == 0) { + return 1; + } + + /* wildcard, if present, must only be present in the left-most component */ + if (!(wildcard = strchr(certname, '*')) || memchr(certname, '.', wildcard - certname)) { + return 0; + } + + /* 1) prefix, if not empty, must match subject */ + prefix_len = wildcard - certname; + if (prefix_len && strncasecmp(subjectname, certname, prefix_len) != 0) { + return 0; + } + + suffix_len = strlen(wildcard + 1); + subject_len = strlen(subjectname); + if (suffix_len <= subject_len) { + /* 2) suffix must match + * 3) no . between prefix and suffix + **/ + return strcasecmp(wildcard + 1, subjectname + subject_len - suffix_len) == 0 && + memchr(subjectname + prefix_len, '.', subject_len - suffix_len - prefix_len) == NULL; + } + + return 0; +} +/* }}} */ + +static zend_bool matches_san_list(X509 *peer, const char *subject_name) /* {{{ */ +{ + int i, len; + unsigned char *cert_name = NULL; + char ipbuffer[64]; + + GENERAL_NAMES *alt_names = X509_get_ext_d2i(peer, NID_subject_alt_name, 0, 0); + int alt_name_count = sk_GENERAL_NAME_num(alt_names); + + for (i = 0; i < alt_name_count; i++) { + GENERAL_NAME *san = sk_GENERAL_NAME_value(alt_names, i); + + if (san->type == GEN_DNS) { + ASN1_STRING_to_UTF8(&cert_name, san->d.dNSName); + if (ASN1_STRING_length(san->d.dNSName) != strlen((const char*)cert_name)) { + OPENSSL_free(cert_name); + /* prevent null-byte poisoning*/ + continue; + } + + /* accommodate valid FQDN entries ending in "." */ + len = strlen((const char*)cert_name); + if (len && strcmp((const char *)&cert_name[len-1], ".") == 0) { + cert_name[len-1] = '\0'; + } + + if (matches_wildcard_name(subject_name, (const char *)cert_name)) { + OPENSSL_free(cert_name); + return 1; + } + OPENSSL_free(cert_name); + } else if (san->type == GEN_IPADD) { + if (san->d.iPAddress->length == 4) { + sprintf(ipbuffer, "%d.%d.%d.%d", + san->d.iPAddress->data[0], + san->d.iPAddress->data[1], + san->d.iPAddress->data[2], + san->d.iPAddress->data[3] + ); + if (strcasecmp(subject_name, (const char*)ipbuffer) == 0) { + return 1; + } + } + /* No, we aren't bothering to check IPv6 addresses. Why? + * Because IP SAN names are officially deprecated and are + * not allowed by CAs starting in 2015. Deal with it. + */ + } + } + + return 0; +} +/* }}} */ + +static zend_bool matches_common_name(X509 *peer, const char *subject_name TSRMLS_DC) /* {{{ */ +{ + char buf[1024]; + X509_NAME *cert_name; + zend_bool is_match = 0; + int cert_name_len; + + cert_name = X509_get_subject_name(peer); + cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); + + if (cert_name_len == -1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate peer certificate CN"); + } else if (cert_name_len != strlen(buf)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Peer certificate CN=`%.*s' is malformed", cert_name_len, buf); + } else if (matches_wildcard_name(subject_name, buf)) { + is_match = 1; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Peer certificate CN=`%.*s' did not match expected CN=`%s'", cert_name_len, buf, subject_name); + } + + return is_match; +} +/* }}} */ + +static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *peer_name = NULL; + int err, + must_verify_peer, + must_verify_peer_name, + must_verify_fingerprint, + has_cnmatch_ctx_opt; + + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + must_verify_peer = GET_VER_OPT("verify_peer") + ? zend_is_true(*val) + : sslsock->is_client; + + has_cnmatch_ctx_opt = GET_VER_OPT("CN_match"); + must_verify_peer_name = (has_cnmatch_ctx_opt || GET_VER_OPT("verify_peer_name")) + ? zend_is_true(*val) + : sslsock->is_client; + + must_verify_fingerprint = GET_VER_OPT("peer_fingerprint"); + + if ((must_verify_peer || must_verify_peer_name || must_verify_fingerprint) && peer == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not get peer certificate"); + return FAILURE; + } + + /* Verify the peer against using CA file/path settings */ + if (must_verify_peer) { + err = SSL_get_verify_result(ssl); + switch (err) { + case X509_V_OK: + /* fine */ + break; + case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: + if (GET_VER_OPT("allow_self_signed") && zend_is_true(*val)) { + /* allowed */ + break; + } + /* not allowed, so fall through */ + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Could not verify peer: code:%d %s", + err, + X509_verify_cert_error_string(err) + ); + return FAILURE; + } + } + + /* If a peer_fingerprint match is required this trumps peer and peer_name verification */ + if (must_verify_fingerprint) { + if (Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_ARRAY) { + if (!php_x509_fingerprint_match(peer, *val TSRMLS_CC)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "peer_fingerprint match failure" + ); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Expected peer fingerprint must be a string or an array" + ); + return FAILURE; + } + } + + /* verify the host name presented in the peer certificate */ + if (must_verify_peer_name) { + GET_VER_OPT_STRING("peer_name", peer_name); + + if (has_cnmatch_ctx_opt) { + GET_VER_OPT_STRING("CN_match", peer_name); + php_error(E_DEPRECATED, + "the 'CN_match' SSL context option is deprecated in favor of 'peer_name'" + ); + } + /* If no peer name was specified we use the autodetected url name in client environments */ + if (peer_name == NULL && sslsock->is_client) { + peer_name = sslsock->url_name; + } + + if (peer_name) { + if (matches_san_list(peer, peer_name)) { + return SUCCESS; + } else if (matches_common_name(peer, peer_name TSRMLS_CC)) { + return SUCCESS; + } else { + return FAILURE; + } + } else { + return FAILURE; + } + } + + return SUCCESS; +} +/* }}} */ + +static int passwd_callback(char *buf, int num, int verify, void *data) /* {{{ */ +{ + php_stream *stream = (php_stream *)data; + zval **val = NULL; + char *passphrase = NULL; + /* TODO: could expand this to make a callback into PHP user-space */ + + GET_VER_OPT_STRING("passphrase", passphrase); + + if (passphrase) { + if (Z_STRLEN_PP(val) < num - 1) { + memcpy(buf, Z_STRVAL_PP(val), Z_STRLEN_PP(val)+1); + return Z_STRLEN_PP(val); + } + } + return 0; +} +/* }}} */ + +#if defined(PHP_WIN32) && OPENSSL_VERSION_NUMBER >= 0x00907000L +#define RETURN_CERT_VERIFY_FAILURE(code) X509_STORE_CTX_set_error(x509_store_ctx, code); return 0; +static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) /* {{{ */ +{ + PCCERT_CONTEXT cert_ctx = NULL; + PCCERT_CHAIN_CONTEXT cert_chain_ctx = NULL; + + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + zval **val; + zend_bool is_self_signed = 0; + + TSRMLS_FETCH(); + + stream = (php_stream*)arg; + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + { /* First convert the x509 struct back to a DER encoded buffer and let Windows decode it into a form it can work with */ + unsigned char *der_buf = NULL; + int der_len; + + der_len = i2d_X509(x509_store_ctx->cert, &der_buf); + if (der_len < 0) { + unsigned long err_code, e; + char err_buf[512]; + + while ((e = ERR_get_error()) != 0) { + err_code = e; + } + + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error encoding X509 certificate: %d: %s", err_code, ERR_error_string(err_code, err_buf)); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + cert_ctx = CertCreateCertificateContext(X509_ASN_ENCODING, der_buf, der_len); + OPENSSL_free(der_buf); + + if (cert_ctx == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error creating certificate context: %s", php_win_err()); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + } + + { /* Next fetch the relevant cert chain from the store */ + CERT_ENHKEY_USAGE enhkey_usage = {0}; + CERT_USAGE_MATCH cert_usage = {0}; + CERT_CHAIN_PARA chain_params = {sizeof(CERT_CHAIN_PARA)}; + LPSTR usages[] = {szOID_PKIX_KP_SERVER_AUTH, szOID_SERVER_GATED_CRYPTO, szOID_SGC_NETSCAPE}; + DWORD chain_flags = 0; + unsigned long allowed_depth = OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH; + unsigned int i; + + enhkey_usage.cUsageIdentifier = 3; + enhkey_usage.rgpszUsageIdentifier = usages; + cert_usage.dwType = USAGE_MATCH_TYPE_OR; + cert_usage.Usage = enhkey_usage; + chain_params.RequestedUsage = cert_usage; + chain_flags = CERT_CHAIN_CACHE_END_CERT | CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT; + + if (!CertGetCertificateChain(NULL, cert_ctx, NULL, NULL, &chain_params, chain_flags, NULL, &cert_chain_ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error getting certificate chain: %s", php_win_err()); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + /* check if the cert is self-signed */ + if (cert_chain_ctx->cChain > 0 && cert_chain_ctx->rgpChain[0]->cElement > 0 + && (cert_chain_ctx->rgpChain[0]->rgpElement[0]->TrustStatus.dwInfoStatus & CERT_TRUST_IS_SELF_SIGNED) != 0) { + is_self_signed = 1; + } + + /* check the depth */ + GET_VER_OPT_LONG("verify_depth", allowed_depth); + + for (i = 0; i < cert_chain_ctx->cChain; i++) { + if (cert_chain_ctx->rgpChain[i]->cElement > allowed_depth) { + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(X509_V_ERR_CERT_CHAIN_TOO_LONG); + } + } + } + + { /* Then verify it against a policy */ + SSL_EXTRA_CERT_CHAIN_POLICY_PARA ssl_policy_params = {sizeof(SSL_EXTRA_CERT_CHAIN_POLICY_PARA)}; + CERT_CHAIN_POLICY_PARA chain_policy_params = {sizeof(CERT_CHAIN_POLICY_PARA)}; + CERT_CHAIN_POLICY_STATUS chain_policy_status = {sizeof(CERT_CHAIN_POLICY_STATUS)}; + LPWSTR server_name = NULL; + BOOL verify_result; + + { /* This looks ridiculous and it is - but we validate the name ourselves using the peer_name + ctx option, so just use the CN from the cert here */ + + X509_NAME *cert_name; + unsigned char *cert_name_utf8; + int index, cert_name_utf8_len; + DWORD num_wchars; + + cert_name = X509_get_subject_name(x509_store_ctx->cert); + index = X509_NAME_get_index_by_NID(cert_name, NID_commonName, -1); + if (index < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate certificate CN"); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + cert_name_utf8_len = PHP_X509_NAME_ENTRY_TO_UTF8(cert_name, index, cert_name_utf8); + + num_wchars = MultiByteToWideChar(CP_UTF8, 0, (char*)cert_name_utf8, -1, NULL, 0); + if (num_wchars == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to convert %s to wide character string", cert_name_utf8); + OPENSSL_free(cert_name_utf8); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + server_name = emalloc((num_wchars * sizeof(WCHAR)) + sizeof(WCHAR)); + + num_wchars = MultiByteToWideChar(CP_UTF8, 0, (char*)cert_name_utf8, -1, server_name, num_wchars); + if (num_wchars == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to convert %s to wide character string", cert_name_utf8); + efree(server_name); + OPENSSL_free(cert_name_utf8); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + OPENSSL_free(cert_name_utf8); + } + + ssl_policy_params.dwAuthType = (sslsock->is_client) ? AUTHTYPE_SERVER : AUTHTYPE_CLIENT; + ssl_policy_params.pwszServerName = server_name; + chain_policy_params.pvExtraPolicyPara = &ssl_policy_params; + + verify_result = CertVerifyCertificateChainPolicy(CERT_CHAIN_POLICY_SSL, cert_chain_ctx, &chain_policy_params, &chain_policy_status); + + efree(server_name); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + + if (!verify_result) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error verifying certificate chain policy: %s", php_win_err()); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + if (chain_policy_status.dwError != 0) { + /* The chain does not match the policy */ + if (is_self_signed && chain_policy_status.dwError == CERT_E_UNTRUSTEDROOT + && GET_VER_OPT("allow_self_signed") && zend_is_true(*val)) { + /* allow self-signed certs */ + X509_STORE_CTX_set_error(x509_store_ctx, X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT); + } else { + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + } + } + + return 1; +} +/* }}} */ +#endif + +static long load_stream_cafile(X509_STORE *cert_store, const char *cafile TSRMLS_DC) /* {{{ */ +{ + php_stream *stream; + X509 *cert; + BIO *buffer; + int buffer_active = 0; + char *line = NULL; + size_t line_len; + long certs_added = 0; + + stream = php_stream_open_wrapper(cafile, "rb", 0, NULL); + + if (stream == NULL) { + php_error(E_WARNING, "failed loading cafile stream: `%s'", cafile); + return 0; + } else if (stream->wrapper->is_url) { + php_stream_close(stream); + php_error(E_WARNING, "remote cafile streams are disabled for security purposes"); + return 0; + } + + cert_start: { + line = php_stream_get_line(stream, NULL, 0, &line_len); + if (line == NULL) { + goto stream_complete; + } else if (!strcmp(line, "-----BEGIN CERTIFICATE-----\n") || + !strcmp(line, "-----BEGIN CERTIFICATE-----\r\n") + ) { + buffer = BIO_new(BIO_s_mem()); + buffer_active = 1; + goto cert_line; + } else { + efree(line); + goto cert_start; + } + } + + cert_line: { + BIO_puts(buffer, line); + efree(line); + line = php_stream_get_line(stream, NULL, 0, &line_len); + if (line == NULL) { + goto stream_complete; + } else if (!strcmp(line, "-----END CERTIFICATE-----") || + !strcmp(line, "-----END CERTIFICATE-----\n") || + !strcmp(line, "-----END CERTIFICATE-----\r\n") + ) { + goto add_cert; + } else { + goto cert_line; + } + } + + add_cert: { + BIO_puts(buffer, line); + efree(line); + cert = PEM_read_bio_X509(buffer, NULL, 0, NULL); + BIO_free(buffer); + buffer_active = 0; + if (cert && X509_STORE_add_cert(cert_store, cert)) { + ++certs_added; + } + goto cert_start; + } + + stream_complete: { + php_stream_close(stream); + if (buffer_active == 1) { + BIO_free(buffer); + } + } + + if (certs_added == 0) { + php_error(E_WARNING, "no valid certs found cafile stream: `%s'", cafile); + } + + return certs_added; +} +/* }}} */ + +static int enable_peer_verification(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *cafile = NULL; + char *capath = NULL; + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + GET_VER_OPT_STRING("cafile", cafile); + GET_VER_OPT_STRING("capath", capath); + + if (cafile == NULL) { + cafile = zend_ini_string("openssl.cafile", sizeof("openssl.cafile"), 0); + cafile = strlen(cafile) ? cafile : NULL; + } else if (!sslsock->is_client) { + /* Servers need to load and assign CA names from the cafile */ + STACK_OF(X509_NAME) *cert_names = SSL_load_client_CA_file(cafile); + if (cert_names != NULL) { + SSL_CTX_set_client_CA_list(ctx, cert_names); + } else { + php_error(E_WARNING, "SSL: failed loading CA names from cafile"); + return FAILURE; + } + } + + if (capath == NULL) { + capath = zend_ini_string("openssl.capath", sizeof("openssl.capath"), 0); + capath = strlen(capath) ? capath : NULL; + } + + if (cafile || capath) { + if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) { + if (cafile && !load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile TSRMLS_CC)) { + return FAILURE; + } + } + } else { +#if defined(PHP_WIN32) && OPENSSL_VERSION_NUMBER >= 0x00907000L + SSL_CTX_set_cert_verify_callback(ctx, win_cert_verify_callback, (void *)stream); + SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); +#else + if (sslsock->is_client && !SSL_CTX_set_default_verify_paths(ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Unable to set default verify locations and no CA settings specified"); + return FAILURE; + } +#endif + } + + SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, verify_callback); + + return SUCCESS; +} +/* }}} */ + +static void disable_peer_verification(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); +} +/* }}} */ + +static int set_local_cert(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *certfile = NULL; + + GET_VER_OPT_STRING("local_cert", certfile); + + if (certfile) { + char resolved_path_buff[MAXPATHLEN]; + const char * private_key = NULL; + + if (VCWD_REALPATH(certfile, resolved_path_buff)) { + /* a certificate to use for authentication */ + if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set local cert chain file `%s'; Check that your cafile/capath settings include details of your certificate and its issuer", certfile); + return FAILURE; + } + GET_VER_OPT_STRING("local_pk", private_key); + + if (private_key) { + char resolved_path_buff_pk[MAXPATHLEN]; + if (VCWD_REALPATH(private_key, resolved_path_buff_pk)) { + if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff_pk, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set private key file `%s'", resolved_path_buff_pk); + return FAILURE; + } + } + } else { + if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set private key file `%s'", resolved_path_buff); + return FAILURE; + } + } + +#if OPENSSL_VERSION_NUMBER < 0x10001001L + do { + /* Unnecessary as of OpenSSLv1.0.1 (will segfault if used with >= 10001001 ) */ + X509 *cert = NULL; + EVP_PKEY *key = NULL; + SSL *tmpssl = SSL_new(ctx); + cert = SSL_get_certificate(tmpssl); + + if (cert) { + key = X509_get_pubkey(cert); + EVP_PKEY_copy_parameters(key, SSL_get_privatekey(tmpssl)); + EVP_PKEY_free(key); + } + SSL_free(tmpssl); + } while (0); +#endif + if (!SSL_CTX_check_private_key(ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Private key does not match certificate!"); + } + } + } + + return SUCCESS; +} +/* }}} */ + +static const SSL_METHOD *php_select_crypto_method(long method_value, int is_client TSRMLS_DC) /* {{{ */ +{ + if (method_value == STREAM_CRYPTO_METHOD_SSLv2) { +#if !defined(OPENSSL_NO_SSL2) && OPENSSL_VERSION_NUMBER < 0x10100000L + return is_client ? SSLv2_client_method() : SSLv2_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSLv2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_SSLv3) { +#ifndef OPENSSL_NO_SSL3 + return is_client ? SSLv3_client_method() : SSLv3_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSLv3 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_0) { + return is_client ? TLSv1_client_method() : TLSv1_server_method(); + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_1) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + return is_client ? TLSv1_1_client_method() : TLSv1_1_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "TLSv1.1 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_2) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + return is_client ? TLSv1_2_client_method() : TLSv1_2_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "TLSv1.2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Invalid crypto method"); + return NULL; + } +} +/* }}} */ + +static long php_get_crypto_method_ctx_flags(long method_flags TSRMLS_DC) /* {{{ */ +{ + long ssl_ctx_options = SSL_OP_ALL; + +#ifndef OPENSSL_NO_SSL2 + if (!(method_flags & STREAM_CRYPTO_METHOD_SSLv2)) { + ssl_ctx_options |= SSL_OP_NO_SSLv2; + } +#endif +#ifndef OPENSSL_NO_SSL3 + if (!(method_flags & STREAM_CRYPTO_METHOD_SSLv3)) { + ssl_ctx_options |= SSL_OP_NO_SSLv3; + } +#endif +#ifndef OPENSSL_NO_TLS1 + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_0)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1; + } +#endif +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_1)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1_1; + } + + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_2)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1_2; + } +#endif + + return ssl_ctx_options; +} +/* }}} */ + +static void limit_handshake_reneg(const SSL *ssl) /* {{{ */ +{ + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + struct timeval now; + long elapsed_time; + + stream = php_openssl_get_stream_from_ssl_handle(ssl); + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + gettimeofday(&now, NULL); + + /* The initial handshake is never rate-limited */ + if (sslsock->reneg->prev_handshake == 0) { + sslsock->reneg->prev_handshake = now.tv_sec; + return; + } + + elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); + sslsock->reneg->prev_handshake = now.tv_sec; + sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); + + if (sslsock->reneg->tokens < 0) { + sslsock->reneg->tokens = 0; + } + ++sslsock->reneg->tokens; + + /* The token level exceeds our allowed limit */ + if (sslsock->reneg->tokens > sslsock->reneg->limit) { + zval **val; + + TSRMLS_FETCH(); + + sslsock->reneg->should_close = 1; + + if (stream->context && SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_limit_callback", &val) + ) { + zval *param, **params[1], *retval; + + MAKE_STD_ZVAL(param); + php_stream_to_zval(stream, param); + params[0] = ¶m; + + /* Closing the stream inside this callback would segfault! */ + stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE; + if (FAILURE == call_user_function_ex(EG(function_table), NULL, *val, &retval, 1, params, 0, NULL TSRMLS_CC)) { + php_error(E_WARNING, "SSL: failed invoking reneg limit notification callback"); + } + stream->flags ^= PHP_STREAM_FLAG_NO_FCLOSE; + + /* If the reneg_limit_callback returned true don't auto-close */ + if (retval != NULL && Z_TYPE_P(retval) == IS_BOOL && Z_BVAL_P(retval) == 1) { + sslsock->reneg->should_close = 0; + } + + FREE_ZVAL(param); + if (retval != NULL) { + zval_ptr_dtor(&retval); + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: client-initiated handshake rate limit exceeded by peer"); + } + } +} +/* }}} */ + +static void info_callback(const SSL *ssl, int where, int ret) /* {{{ */ +{ + /* Rate-limit client-initiated handshake renegotiation to prevent DoS */ + if (where & SSL_CB_HANDSHAKE_START) { + limit_handshake_reneg(ssl); + } +} +/* }}} */ + +static void init_server_reneg_limit(php_stream *stream, php_openssl_netstream_data_t *sslsock) /* {{{ */ +{ + zval **val; + long limit = OPENSSL_DEFAULT_RENEG_LIMIT; + long window = OPENSSL_DEFAULT_RENEG_WINDOW; + + if (stream->context && + SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_limit", &val) + ) { + convert_to_long(*val); + limit = Z_LVAL_PP(val); + } + + /* No renegotiation rate-limiting */ + if (limit < 0) { + return; + } + + if (stream->context && + SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_window", &val) + ) { + convert_to_long(*val); + window = Z_LVAL_PP(val); + } + + sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), + php_stream_is_persistent(stream) + ); + + sslsock->reneg->limit = limit; + sslsock->reneg->window = window; + sslsock->reneg->prev_handshake = 0; + sslsock->reneg->tokens = 0; + sslsock->reneg->should_close = 0; + + SSL_set_info_callback(sslsock->ssl_handle, info_callback); +} +/* }}} */ + +static int set_server_rsa_key(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval ** val; + int rsa_key_size; + RSA* rsa; + + if (php_stream_context_get_option(stream->context, "ssl", "rsa_key_size", &val) == SUCCESS) { + rsa_key_size = (int) Z_LVAL_PP(val); + if ((rsa_key_size != 1) && (rsa_key_size & (rsa_key_size - 1))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "RSA key size requires a power of 2: %d", rsa_key_size); + rsa_key_size = 2048; + } + } else { + rsa_key_size = 2048; + } + + rsa = RSA_generate_key(rsa_key_size, RSA_F4, NULL, NULL); + + if (!SSL_CTX_set_tmp_rsa(ctx, rsa)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed setting RSA key"); + RSA_free(rsa); + return FAILURE; + } + + RSA_free(rsa); + + return SUCCESS; +} +/* }}} */ + +static int set_server_dh_param(SSL_CTX *ctx, char *dh_path TSRMLS_DC) /* {{{ */ +{ + DH *dh; + BIO* bio; + + bio = BIO_new_file(dh_path, "r"); + + if (bio == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid dh_param file: %s", dh_path); + return FAILURE; + } + + dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); + BIO_free(bio); + + if (dh == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed reading DH params from file: %s", dh_path); + return FAILURE; + } + + if (SSL_CTX_set_tmp_dh(ctx, dh) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "DH param assignment failed"); + DH_free(dh); + return FAILURE; + } + + DH_free(dh); + + return SUCCESS; +} +/* }}} */ + +#ifdef HAVE_ECDH +static int set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval **val; + int curve_nid; + char *curve_str; + EC_KEY *ecdh; + + if (php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val) == SUCCESS) { + convert_to_string_ex(val); + curve_str = Z_STRVAL_PP(val); + curve_nid = OBJ_sn2nid(curve_str); + if (curve_nid == NID_undef) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid ECDH curve: %s", curve_str); + return FAILURE; + } + } else { + curve_nid = NID_X9_62_prime256v1; + } + + ecdh = EC_KEY_new_by_curve_name(curve_nid); + if (ecdh == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Failed generating ECDH curve"); + + return FAILURE; + } + + SSL_CTX_set_tmp_ecdh(ctx, ecdh); + EC_KEY_free(ecdh); + + return SUCCESS; +} +/* }}} */ +#endif + +static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval **val; + long ssl_ctx_options = SSL_CTX_get_options(ctx); + +#ifdef HAVE_ECDH + if (FAILURE == set_server_ecdh_curve(stream, ctx TSRMLS_CC)) { + return FAILURE; + } +#else + if (SUCCESS == php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "ECDH curve support not compiled into the OpenSSL lib against which PHP is linked"); + + return FAILURE; + } +#endif + + if (php_stream_context_get_option(stream->context, "ssl", "dh_param", &val) == SUCCESS) { + convert_to_string_ex(val); + if (FAILURE == set_server_dh_param(ctx, Z_STRVAL_PP(val) TSRMLS_CC)) { + return FAILURE; + } + } + + if (FAILURE == set_server_rsa_key(stream, ctx TSRMLS_CC)) { + return FAILURE; + } + + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "honor_cipher_order", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_CIPHER_SERVER_PREFERENCE; + } + + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "single_dh_use", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_SINGLE_DH_USE; + } + +#ifdef HAVE_ECDH + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "single_ecdh_use", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_SINGLE_ECDH_USE; + } +#endif + + SSL_CTX_set_options(ctx, ssl_ctx_options); + + return SUCCESS; +} +/* }}} */ + +#ifdef HAVE_SNI +static int server_sni_callback(SSL *ssl_handle, int *al, void *arg) /* {{{ */ +{ + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + unsigned i; + const char *server_name; + + server_name = SSL_get_servername(ssl_handle, TLSEXT_NAMETYPE_host_name); + + if (!server_name) { + return SSL_TLSEXT_ERR_NOACK; + } + + stream = (php_stream*)SSL_get_ex_data(ssl_handle, php_openssl_get_ssl_stream_data_index()); + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + if (!(sslsock->sni_cert_count && sslsock->sni_certs)) { + return SSL_TLSEXT_ERR_NOACK; + } + + for (i=0; i < sslsock->sni_cert_count; i++) { + if (matches_wildcard_name(server_name, sslsock->sni_certs[i].name)) { + SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx); + return SSL_TLSEXT_ERR_OK; + } + } + + return SSL_TLSEXT_ERR_NOACK; +} +/* }}} */ + +static int enable_server_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock TSRMLS_DC) +{ + zval **val; + zval **current; + char *key; + uint key_len; + ulong key_index; + int key_type; + HashPosition pos; + int i = 0; + char resolved_path_buff[MAXPATHLEN]; + SSL_CTX *ctx; + + /* If the stream ctx disables SNI we're finished here */ + if (GET_VER_OPT("SNI_enabled") && !zend_is_true(*val)) { + return SUCCESS; + } + + /* If no SNI cert array is specified we're finished here */ + if (!GET_VER_OPT("SNI_server_certs")) { + return SUCCESS; + } + + if (Z_TYPE_PP(val) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs requires an array mapping host names to cert paths" + ); + return FAILURE; + } + + sslsock->sni_cert_count = zend_hash_num_elements(Z_ARRVAL_PP(val)); + if (sslsock->sni_cert_count == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs host cert array must not be empty" + ); + return FAILURE; + } + + sslsock->sni_certs = (php_openssl_sni_cert_t*)safe_pemalloc(sslsock->sni_cert_count, + sizeof(php_openssl_sni_cert_t), 0, php_stream_is_persistent(stream) + ); + memset(sslsock->sni_certs, 0, sslsock->sni_cert_count * sizeof(php_openssl_sni_cert_t)); + + for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(val), &pos); + zend_hash_get_current_data_ex(Z_ARRVAL_PP(val), (void **)¤t, &pos) == SUCCESS; + zend_hash_move_forward_ex(Z_ARRVAL_PP(val), &pos) + ) { + key_type = zend_hash_get_current_key_ex(Z_ARRVAL_PP(val), &key, &key_len, &key_index, 0, &pos); + if (key_type != HASH_KEY_IS_STRING) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs array requires string host name keys" + ); + return FAILURE; + } + + if (VCWD_REALPATH(Z_STRVAL_PP(current), resolved_path_buff)) { + /* The hello method is not inherited by SSL structs when assigning a new context + * inside the SNI callback, so the just use SSLv23 */ + ctx = SSL_CTX_new(SSLv23_server_method()); + + if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting local cert chain file `%s'; " \ + "check that your cafile/capath settings include " \ + "details of your certificate and its issuer", + resolved_path_buff + ); + SSL_CTX_free(ctx); + return FAILURE; + } else if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting private key from file `%s'", + resolved_path_buff + ); + SSL_CTX_free(ctx); + return FAILURE; + } else { + sslsock->sni_certs[i].name = pestrdup(key, php_stream_is_persistent(stream)); + sslsock->sni_certs[i].ctx = ctx; + ++i; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting local cert chain file `%s'; file not found", + Z_STRVAL_PP(current) + ); + return FAILURE; + } + } + + SSL_CTX_set_tlsext_servername_callback(sslsock->ctx, server_sni_callback); + + return SUCCESS; +} + +static void enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock) /* {{{ */ +{ + zval **val; + char *sni_server_name; + + /* If SNI is explicitly disabled we're finished here */ + if (GET_VER_OPT("SNI_enabled") && !zend_is_true(*val)) { + return; + } + + sni_server_name = sslsock->url_name; + + GET_VER_OPT_STRING("peer_name", sni_server_name); + + if (GET_VER_OPT("SNI_server_name")) { + GET_VER_OPT_STRING("SNI_server_name", sni_server_name); + php_error(E_DEPRECATED, "SNI_server_name is deprecated in favor of peer_name"); + } + + if (sni_server_name) { + SSL_set_tlsext_host_name(sslsock->ssl_handle, sni_server_name); + } +} +/* }}} */ +#endif + +int php_openssl_setup_crypto(php_stream *stream, + php_openssl_netstream_data_t *sslsock, + php_stream_xport_crypto_param *cparam + TSRMLS_DC) /* {{{ */ +{ + const SSL_METHOD *method; + long ssl_ctx_options; + long method_flags; + char *cipherlist = NULL; + zval **val; + + if (sslsock->ssl_handle) { + if (sslsock->s.is_blocked) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL/TLS already set-up for this stream"); + return FAILURE; + } else { + return SUCCESS; + } + } + + ERR_clear_error(); + + /* We need to do slightly different things based on client/server method + * so lets remember which method was selected */ + sslsock->is_client = cparam->inputs.method & STREAM_CRYPTO_IS_CLIENT; + method_flags = ((cparam->inputs.method >> 1) << 1); + + /* Should we use a specific crypto method or is generic SSLv23 okay? */ + if ((method_flags & (method_flags-1)) == 0) { + ssl_ctx_options = SSL_OP_ALL; + method = php_select_crypto_method(method_flags, sslsock->is_client TSRMLS_CC); + if (method == NULL) { + return FAILURE; + } + } else { + method = sslsock->is_client ? SSLv23_client_method() : SSLv23_server_method(); + ssl_ctx_options = php_get_crypto_method_ctx_flags(method_flags TSRMLS_CC); + if (ssl_ctx_options == -1) { + return FAILURE; + } + } + +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->ctx = SSL_CTX_new(method); +#else + /* Avoid const warning with old versions */ + sslsock->ctx = SSL_CTX_new((SSL_METHOD*)method); +#endif + + if (sslsock->ctx == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL context creation failure"); + return FAILURE; + } + +#if OPENSSL_VERSION_NUMBER >= 0x0090806fL + if (GET_VER_OPT("no_ticket") && zend_is_true(*val)) { + ssl_ctx_options |= SSL_OP_NO_TICKET; + } +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x0090605fL + ssl_ctx_options &= ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + if (!GET_VER_OPT("disable_compression") || zend_is_true(*val)) { + ssl_ctx_options |= SSL_OP_NO_COMPRESSION; + } +#endif + + if (GET_VER_OPT("verify_peer") && !zend_is_true(*val)) { + disable_peer_verification(sslsock->ctx, stream TSRMLS_CC); + } else if (FAILURE == enable_peer_verification(sslsock->ctx, stream TSRMLS_CC)) { + return FAILURE; + } + + /* callback for the passphrase (for localcert) */ + if (GET_VER_OPT("passphrase")) { + SSL_CTX_set_default_passwd_cb_userdata(sslsock->ctx, stream); + SSL_CTX_set_default_passwd_cb(sslsock->ctx, passwd_callback); + } + + GET_VER_OPT_STRING("ciphers", cipherlist); +#ifndef USE_OPENSSL_SYSTEM_CIPHERS + if (!cipherlist) { + cipherlist = OPENSSL_DEFAULT_STREAM_CIPHERS; + } +#endif + if (cipherlist) { + if (SSL_CTX_set_cipher_list(sslsock->ctx, cipherlist) != 1) { + return FAILURE; + } + } + if (FAILURE == set_local_cert(sslsock->ctx, stream TSRMLS_CC)) { + return FAILURE; + } + + SSL_CTX_set_options(sslsock->ctx, ssl_ctx_options); + + if (sslsock->is_client == 0 && + stream->context && + FAILURE == set_server_specific_opts(stream, sslsock->ctx TSRMLS_CC) + ) { + return FAILURE; + } + + sslsock->ssl_handle = SSL_new(sslsock->ctx); + if (sslsock->ssl_handle == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL handle creation failure"); + SSL_CTX_free(sslsock->ctx); + sslsock->ctx = NULL; + return FAILURE; + } else { + SSL_set_ex_data(sslsock->ssl_handle, php_openssl_get_ssl_stream_data_index(), stream); + } + + if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) { + handle_ssl_error(stream, 0, 1 TSRMLS_CC); + } + +#ifdef HAVE_SNI + /* Enable server-side SNI */ + if (sslsock->is_client == 0 && enable_server_sni(stream, sslsock TSRMLS_CC) == FAILURE) { + return FAILURE; + } +#endif + + /* Enable server-side handshake renegotiation rate-limiting */ + if (sslsock->is_client == 0) { + init_server_reneg_limit(stream, sslsock); + } + +#ifdef SSL_MODE_RELEASE_BUFFERS + do { + long mode = SSL_get_mode(sslsock->ssl_handle); + SSL_set_mode(sslsock->ssl_handle, mode | SSL_MODE_RELEASE_BUFFERS); + } while (0); +#endif + + if (cparam->inputs.session) { + if (cparam->inputs.session->ops != &php_openssl_socket_ops) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied session stream must be an SSL enabled stream"); + } else if (((php_openssl_netstream_data_t*)cparam->inputs.session->abstract)->ssl_handle == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied SSL session stream is not initialized"); + } else { + SSL_copy_session_id(sslsock->ssl_handle, ((php_openssl_netstream_data_t*)cparam->inputs.session->abstract)->ssl_handle); + } + } + + return SUCCESS; +} +/* }}} */ + +#define PHP_SSL_MAX_VERSION_LEN 32 + +static char *php_ssl_cipher_get_version(const SSL_CIPHER *c, char *buffer, size_t max_len) /* {{{ */ +{ + const char *version = SSL_CIPHER_get_version(c); + strncpy(buffer, version, max_len); + if (max_len <= strlen(version)) { + buffer[max_len - 1] = 0; + } + return buffer; +} +/* }}} */ + +static zval *capture_session_meta(SSL *ssl_handle) /* {{{ */ +{ + zval *meta_arr; + char *proto_str; + long proto = SSL_version(ssl_handle); + const SSL_CIPHER *cipher = SSL_get_current_cipher(ssl_handle); + char version_str[PHP_SSL_MAX_VERSION_LEN]; + + switch (proto) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + case TLS1_2_VERSION: proto_str = "TLSv1.2"; break; + case TLS1_1_VERSION: proto_str = "TLSv1.1"; break; +#endif + case TLS1_VERSION: proto_str = "TLSv1"; break; + case SSL3_VERSION: proto_str = "SSLv3"; break; + case SSL2_VERSION: proto_str = "SSLv2"; break; + default: proto_str = "UNKNOWN"; + } + + MAKE_STD_ZVAL(meta_arr); + array_init(meta_arr); + add_assoc_string(meta_arr, "protocol", proto_str, 1); + add_assoc_string(meta_arr, "cipher_name", (char *) SSL_CIPHER_get_name(cipher), 1); + add_assoc_long(meta_arr, "cipher_bits", SSL_CIPHER_get_bits(cipher, NULL)); + add_assoc_string(meta_arr, "cipher_version", php_ssl_cipher_get_version(cipher, version_str, PHP_SSL_MAX_VERSION_LEN), 1); + + return meta_arr; +} +/* }}} */ + +static int capture_peer_certs(php_stream *stream, php_openssl_netstream_data_t *sslsock, X509 *peer_cert TSRMLS_DC) /* {{{ */ +{ + zval **val, *zcert; + int cert_captured = 0; + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_peer_cert", &val) && + zend_is_true(*val) + ) { + MAKE_STD_ZVAL(zcert); + ZVAL_RESOURCE(zcert, zend_list_insert(peer_cert, php_openssl_get_x509_list_id() TSRMLS_CC)); + php_stream_context_set_option(stream->context, "ssl", "peer_certificate", zcert); + cert_captured = 1; + FREE_ZVAL(zcert); + } + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_peer_cert_chain", &val) && + zend_is_true(*val) + ) { + zval *arr; + STACK_OF(X509) *chain; + + MAKE_STD_ZVAL(arr); + chain = SSL_get_peer_cert_chain(sslsock->ssl_handle); + + if (chain && sk_X509_num(chain) > 0) { + int i; + array_init(arr); + + for (i = 0; i < sk_X509_num(chain); i++) { + X509 *mycert = X509_dup(sk_X509_value(chain, i)); + MAKE_STD_ZVAL(zcert); + ZVAL_RESOURCE(zcert, zend_list_insert(mycert, php_openssl_get_x509_list_id() TSRMLS_CC)); + add_next_index_zval(arr, zcert); + } + + } else { + ZVAL_NULL(arr); + } + + php_stream_context_set_option(stream->context, "ssl", "peer_certificate_chain", arr); + zval_dtor(arr); + efree(arr); + } + + return cert_captured; +} +/* }}} */ + +static int php_openssl_enable_crypto(php_stream *stream, + php_openssl_netstream_data_t *sslsock, + php_stream_xport_crypto_param *cparam + TSRMLS_DC) +{ + int n; + int retry = 1; + int cert_captured; + X509 *peer_cert; + + if (cparam->inputs.activate && !sslsock->ssl_active) { + struct timeval start_time, + *timeout; + int blocked = sslsock->s.is_blocked, + has_timeout = 0; + +#ifdef HAVE_SNI + if (sslsock->is_client) { + enable_client_sni(stream, sslsock); + } +#endif + + if (!sslsock->state_set) { + if (sslsock->is_client) { + SSL_set_connect_state(sslsock->ssl_handle); + } else { + SSL_set_accept_state(sslsock->ssl_handle); + } + sslsock->state_set = 1; + } + + if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC)) { + sslsock->s.is_blocked = 0; + } + + timeout = sslsock->is_client ? &sslsock->connect_timeout : &sslsock->s.timeout; + has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec); + /* gettimeofday is not monotonic; using it here is not strictly correct */ + if (has_timeout) { + gettimeofday(&start_time, NULL); + } + + do { + struct timeval cur_time, + elapsed_time = {0}; + + if (sslsock->is_client) { + n = SSL_connect(sslsock->ssl_handle); + } else { + n = SSL_accept(sslsock->ssl_handle); + } + + if (has_timeout) { + gettimeofday(&cur_time, NULL); + elapsed_time = subtract_timeval( cur_time, start_time ); + + if (compare_timeval( elapsed_time, *timeout) > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: Handshake timed out"); + return -1; + } + } + + if (n <= 0) { + /* in case of SSL_ERROR_WANT_READ/WRITE, do not retry in non-blocking mode */ + retry = handle_ssl_error(stream, n, blocked TSRMLS_CC); + if (retry) { + /* wait until something interesting happens in the socket. It may be a + * timeout. Also consider the unlikely of possibility of a write block */ + int err = SSL_get_error(sslsock->ssl_handle, n); + struct timeval left_time; + + if (has_timeout) { + left_time = subtract_timeval( *timeout, elapsed_time ); + } + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : POLLOUT, has_timeout ? &left_time : NULL); + } + } else { + retry = 0; + } + } while (retry); + + if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocked TSRMLS_CC)) { + sslsock->s.is_blocked = blocked; + } + + if (n == 1) { + peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); + if (peer_cert && stream->context) { + cert_captured = capture_peer_certs(stream, sslsock, peer_cert TSRMLS_CC); + } + + if (FAILURE == apply_peer_verification_policy(sslsock->ssl_handle, peer_cert, stream TSRMLS_CC)) { + SSL_shutdown(sslsock->ssl_handle); + n = -1; + } else { + sslsock->ssl_active = 1; + + if (stream->context) { + zval **val; + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_session_meta", &val) && + zend_is_true(*val) + ) { + zval *meta_arr = capture_session_meta(sslsock->ssl_handle); + php_stream_context_set_option(stream->context, "ssl", "session_meta", meta_arr); + zval_dtor(meta_arr); + efree(meta_arr); + } + } + } + } else if (errno == EAGAIN) { + n = 0; + } else { + n = -1; + peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); + if (peer_cert && stream->context) { + cert_captured = capture_peer_certs(stream, sslsock, peer_cert TSRMLS_CC); + } + } + + if (n && peer_cert && cert_captured == 0) { + X509_free(peer_cert); + } + + return n; + + } else if (!cparam->inputs.activate && sslsock->ssl_active) { + /* deactivate - common for server/client */ + SSL_shutdown(sslsock->ssl_handle); + sslsock->ssl_active = 0; + } + + return -1; +} + +static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC)/* {{{ */ +{ + return php_openssl_sockop_io(1, stream, buf, count TSRMLS_CC); +} +/* }}} */ + +static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ +{ + return php_openssl_sockop_io(0, stream, (char*)buf, count TSRMLS_CC); +} +/* }}} */ + +/** + * Factored out common functionality (blocking, timeout, loop management) for read and write. + * Perform IO (read or write) to an SSL socket. If we have a timeout, we switch to non-blocking mode + * for the duration of the operation, using select to do our waits. If we time out, or we have an error + * report that back to PHP + * + */ +static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + int nr_bytes = 0; + + /* Only do this if SSL is active. */ + if (sslsock->ssl_active) { + int retry = 1; + struct timeval start_time; + struct timeval *timeout = NULL; + int began_blocked = sslsock->s.is_blocked; + int has_timeout = 0; + + /* never use a timeout with non-blocking sockets */ + if (began_blocked && &sslsock->s.timeout) { + timeout = &sslsock->s.timeout; + } + + if (timeout && php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC) == SUCCESS) { + sslsock->s.is_blocked = 0; + } + + if (!sslsock->s.is_blocked && timeout && (timeout->tv_sec || timeout->tv_usec)) { + has_timeout = 1; + /* gettimeofday is not monotonic; using it here is not strictly correct */ + gettimeofday(&start_time, NULL); + } + + /* Main IO loop. */ + do { + struct timeval cur_time, elapsed_time, left_time; + + /* If we have a timeout to check, figure out how much time has elapsed since we started. */ + if (has_timeout) { + gettimeofday(&cur_time, NULL); + + /* Determine how much time we've taken so far. */ + elapsed_time = subtract_timeval(cur_time, start_time); + + /* and return an error if we've taken too long. */ + if (compare_timeval(elapsed_time, *timeout) > 0 ) { + /* If the socket was originally blocking, set it back. */ + if (began_blocked) { + php_set_sock_blocking(sslsock->s.socket, 1 TSRMLS_CC); + sslsock->s.is_blocked = 1; + } + sslsock->s.timeout_event = 1; + return -1; + } + } + + /* Now, do the IO operation. Don't block if we can't complete... */ + if (read) { + nr_bytes = SSL_read(sslsock->ssl_handle, buf, count); + + if (sslsock->reneg && sslsock->reneg->should_close) { + /* renegotiation rate limiting triggered */ + php_stream_xport_shutdown(stream, (stream_shutdown_t)SHUT_RDWR TSRMLS_CC); + nr_bytes = 0; + stream->eof = 1; + break; + } + } else { + nr_bytes = SSL_write(sslsock->ssl_handle, buf, count); + } + + /* Now, how much time until we time out? */ + if (has_timeout) { + left_time = subtract_timeval( *timeout, elapsed_time ); + } + + /* If we didn't do anything on the last loop (or an error) check to see if we should retry or exit. */ + if (nr_bytes <= 0) { + + /* Get the error code from SSL, and check to see if it's an error or not. */ + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); + retry = handle_ssl_error(stream, nr_bytes, 0 TSRMLS_CC); + + /* If we get this (the above doesn't check) then we'll retry as well. */ + if (errno == EAGAIN && err == SSL_ERROR_WANT_READ && read) { + retry = 1; + } + if (errno == EAGAIN && err == SSL_ERROR_WANT_WRITE && read == 0) { + retry = 1; + } + + /* Also, on reads, we may get this condition on an EOF. We should check properly. */ + if (read) { + stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle)); + } + + /* Don't loop indefinitely in non-blocking mode if no data is available */ + if (began_blocked == 0) { + break; + } + + /* Now, if we have to wait some time, and we're supposed to be blocking, wait for the socket to become + * available. Now, php_pollfd_for uses select to wait up to our time_left value only... + */ + if (retry) { + if (read) { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? + (POLLOUT|POLLPRI) : (POLLIN|POLLPRI), has_timeout ? &left_time : NULL); + } else { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : (POLLOUT|POLLPRI), has_timeout ? &left_time : NULL); + } + } + } else { + /* Else, if we got bytes back, check for possible errors. */ + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); + + /* If we didn't get any error, then let's return it to PHP. */ + if (err == SSL_ERROR_NONE) + break; + + /* Otherwise, we need to wait again (up to time_left or we get an error) */ + if (began_blocked) { + if (read) { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? + (POLLOUT|POLLPRI) : (POLLIN|POLLPRI), has_timeout ? &left_time : NULL); + } else { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : (POLLOUT|POLLPRI), has_timeout ? &left_time : NULL); + } + } + } + /* Finally, we keep going until we got data, and an SSL_ERROR_NONE, unless we had an error. */ + } while (retry); + + /* Tell PHP if we read / wrote bytes. */ + if (nr_bytes > 0) { + php_stream_notify_progress_increment(stream->context, nr_bytes, 0); + } + + /* And if we were originally supposed to be blocking, let's reset the socket to that. */ + if (began_blocked && php_set_sock_blocking(sslsock->s.socket, 1 TSRMLS_CC) == SUCCESS) { + sslsock->s.is_blocked = 1; + } + } else { + /* + * This block is if we had no timeout... We will just sit and wait forever on the IO operation. + */ + if (read) { + nr_bytes = php_stream_socket_ops.read(stream, buf, count TSRMLS_CC); + } else { + nr_bytes = php_stream_socket_ops.write(stream, buf, count TSRMLS_CC); + } + } + + /* PHP doesn't expect a negative return. */ + if (nr_bytes < 0) { + nr_bytes = 0; + } + + return nr_bytes; +} +/* }}} */ + +struct timeval subtract_timeval( struct timeval a, struct timeval b ) +{ + struct timeval difference; + + difference.tv_sec = a.tv_sec - b.tv_sec; + difference.tv_usec = a.tv_usec - b.tv_usec; + + if (a.tv_usec < b.tv_usec) { + b.tv_sec -= 1L; + b.tv_usec += 1000000L; + } + + return difference; +} + +int compare_timeval( struct timeval a, struct timeval b ) +{ + if (a.tv_sec > b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_usec > b.tv_usec) ) { + return 1; + } else if( a.tv_sec == b.tv_sec && a.tv_usec == b.tv_usec ) { + return 0; + } else { + return -1; + } +} + +static int php_openssl_sockop_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; +#ifdef PHP_WIN32 + int n; +#endif + unsigned i; + + if (close_handle) { + if (sslsock->ssl_active) { + SSL_shutdown(sslsock->ssl_handle); + sslsock->ssl_active = 0; + } + if (sslsock->ssl_handle) { + SSL_free(sslsock->ssl_handle); + sslsock->ssl_handle = NULL; + } + if (sslsock->ctx) { + SSL_CTX_free(sslsock->ctx); + sslsock->ctx = NULL; + } +#ifdef PHP_WIN32 + if (sslsock->s.socket == -1) + sslsock->s.socket = SOCK_ERR; +#endif + if (sslsock->s.socket != SOCK_ERR) { +#ifdef PHP_WIN32 + /* prevent more data from coming in */ + shutdown(sslsock->s.socket, SHUT_RD); + + /* try to make sure that the OS sends all data before we close the connection. + * Essentially, we are waiting for the socket to become writeable, which means + * that all pending data has been sent. + * We use a small timeout which should encourage the OS to send the data, + * but at the same time avoid hanging indefinitely. + * */ + do { + n = php_pollfd_for_ms(sslsock->s.socket, POLLOUT, 500); + } while (n == -1 && php_socket_errno() == EINTR); +#endif + closesocket(sslsock->s.socket); + sslsock->s.socket = SOCK_ERR; + } + } + + if (sslsock->sni_certs) { + for (i = 0; i < sslsock->sni_cert_count; i++) { + if (sslsock->sni_certs[i].ctx) { + SSL_CTX_free(sslsock->sni_certs[i].ctx); + pefree(sslsock->sni_certs[i].name, php_stream_is_persistent(stream)); + } + } + pefree(sslsock->sni_certs, php_stream_is_persistent(stream)); + sslsock->sni_certs = NULL; + } + + if (sslsock->url_name) { + pefree(sslsock->url_name, php_stream_is_persistent(stream)); + } + + if (sslsock->reneg) { + pefree(sslsock->reneg, php_stream_is_persistent(stream)); + } + + pefree(sslsock, php_stream_is_persistent(stream)); + + return 0; +} +/* }}} */ + +static int php_openssl_sockop_flush(php_stream *stream TSRMLS_DC) /* {{{ */ +{ + return php_stream_socket_ops.flush(stream TSRMLS_CC); +} +/* }}} */ + +static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */ +{ + return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); +} +/* }}} */ + +static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_netstream_data_t *sock, + php_stream_xport_param *xparam STREAMS_DC TSRMLS_DC) +{ + int clisock; + + xparam->outputs.client = NULL; + + clisock = php_network_accept_incoming(sock->s.socket, + xparam->want_textaddr ? &xparam->outputs.textaddr : NULL, + xparam->want_textaddr ? &xparam->outputs.textaddrlen : NULL, + xparam->want_addr ? &xparam->outputs.addr : NULL, + xparam->want_addr ? &xparam->outputs.addrlen : NULL, + xparam->inputs.timeout, + xparam->want_errortext ? &xparam->outputs.error_text : NULL, + &xparam->outputs.error_code + TSRMLS_CC); + + if (clisock >= 0) { + php_openssl_netstream_data_t *clisockdata; + + clisockdata = emalloc(sizeof(*clisockdata)); + + if (clisockdata == NULL) { + closesocket(clisock); + /* technically a fatal error */ + } else { + /* copy underlying tcp fields */ + memset(clisockdata, 0, sizeof(*clisockdata)); + memcpy(clisockdata, sock, sizeof(clisockdata->s)); + + clisockdata->s.socket = clisock; + + xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); + if (xparam->outputs.client) { + xparam->outputs.client->context = stream->context; + if (stream->context) { + zend_list_addref(stream->context->rsrc_id); + } + } + } + + if (xparam->outputs.client && sock->enable_on_connect) { + /* remove the client bit */ + if (sock->method & STREAM_CRYPTO_IS_CLIENT) { + sock->method = ((sock->method >> 1) << 1); + } + + clisockdata->method = sock->method; + + if (php_stream_xport_crypto_setup(xparam->outputs.client, clisockdata->method, + NULL TSRMLS_CC) < 0 || php_stream_xport_crypto_enable( + xparam->outputs.client, 1 TSRMLS_CC) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to enable crypto"); + + php_stream_close(xparam->outputs.client); + xparam->outputs.client = NULL; + xparam->outputs.returncode = -1; + } + } + } + + return xparam->outputs.client == NULL ? -1 : 0; +} + +static int php_openssl_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + php_stream_xport_crypto_param *cparam = (php_stream_xport_crypto_param *)ptrparam; + php_stream_xport_param *xparam = (php_stream_xport_param *)ptrparam; + + switch (option) { + case PHP_STREAM_OPTION_CHECK_LIVENESS: + { + struct timeval tv; + char buf; + int alive = 1; + + if (value == -1) { + if (sslsock->s.timeout.tv_sec == -1) { + tv.tv_sec = FG(default_socket_timeout); + tv.tv_usec = 0; + } else { + tv = sslsock->connect_timeout; + } + } else { + tv.tv_sec = value; + tv.tv_usec = 0; + } + + if (sslsock->s.socket == -1) { + alive = 0; + } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { + if (sslsock->ssl_active) { + int n; + + do { + n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); + if (n <= 0) { + int err = SSL_get_error(sslsock->ssl_handle, n); + + if (err == SSL_ERROR_SYSCALL) { + alive = php_socket_errno() == EAGAIN; + break; + } + + if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) { + /* re-negotiate */ + continue; + } + + /* any other problem is a fatal error */ + alive = 0; + } + /* either peek succeeded or there was an error; we + * have set the alive flag appropriately */ + break; + } while (1); + } else if (0 == recv(sslsock->s.socket, &buf, sizeof(buf), MSG_PEEK) && php_socket_errno() != EAGAIN) { + alive = 0; + } + } + return alive ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; + } + + case PHP_STREAM_OPTION_CRYPTO_API: + + switch(cparam->op) { + + case STREAM_XPORT_CRYPTO_OP_SETUP: + cparam->outputs.returncode = php_openssl_setup_crypto(stream, sslsock, cparam TSRMLS_CC); + return PHP_STREAM_OPTION_RETURN_OK; + break; + case STREAM_XPORT_CRYPTO_OP_ENABLE: + cparam->outputs.returncode = php_openssl_enable_crypto(stream, sslsock, cparam TSRMLS_CC); + return PHP_STREAM_OPTION_RETURN_OK; + break; + default: + /* fall through */ + break; + } + + break; + + case PHP_STREAM_OPTION_XPORT_API: + switch(xparam->op) { + + case STREAM_XPORT_OP_CONNECT: + case STREAM_XPORT_OP_CONNECT_ASYNC: + /* TODO: Async connects need to check the enable_on_connect option when + * we notice that the connect has actually been established */ + php_stream_socket_ops.set_option(stream, option, value, ptrparam TSRMLS_CC); + + if ((sslsock->enable_on_connect) && + ((xparam->outputs.returncode == 0) || + (xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC && + xparam->outputs.returncode == 1 && xparam->outputs.error_code == EINPROGRESS))) + { + if (php_stream_xport_crypto_setup(stream, sslsock->method, NULL TSRMLS_CC) < 0 || + php_stream_xport_crypto_enable(stream, 1 TSRMLS_CC) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to enable crypto"); + xparam->outputs.returncode = -1; + } + } + return PHP_STREAM_OPTION_RETURN_OK; + + case STREAM_XPORT_OP_ACCEPT: + /* we need to copy the additional fields that the underlying tcp transport + * doesn't know about */ + xparam->outputs.returncode = php_openssl_tcp_sockop_accept(stream, sslsock, xparam STREAMS_CC TSRMLS_CC); + + + return PHP_STREAM_OPTION_RETURN_OK; + + default: + /* fall through */ + break; + } + } + + return php_stream_socket_ops.set_option(stream, option, value, ptrparam TSRMLS_CC); +} + +static int php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + switch(castas) { + case PHP_STREAM_AS_STDIO: + if (sslsock->ssl_active) { + return FAILURE; + } + if (ret) { + *ret = fdopen(sslsock->s.socket, stream->mode); + if (*ret) { + return SUCCESS; + } + return FAILURE; + } + return SUCCESS; + + case PHP_STREAM_AS_FD_FOR_SELECT: + if (ret) { + size_t pending; + if (stream->writepos == stream->readpos + && sslsock->ssl_active + && (pending = (size_t)SSL_pending(sslsock->ssl_handle)) > 0) { + php_stream_fill_read_buffer(stream, pending < stream->chunk_size + ? pending + : stream->chunk_size); + } + + *(php_socket_t *)ret = sslsock->s.socket; + } + return SUCCESS; + + case PHP_STREAM_AS_FD: + case PHP_STREAM_AS_SOCKETD: + if (sslsock->ssl_active) { + return FAILURE; + } + if (ret) { + *(php_socket_t *)ret = sslsock->s.socket; + } + return SUCCESS; + default: + return FAILURE; + } +} + +php_stream_ops php_openssl_socket_ops = { + php_openssl_sockop_write, php_openssl_sockop_read, + php_openssl_sockop_close, php_openssl_sockop_flush, + "tcp_socket/ssl", + NULL, /* seek */ + php_openssl_sockop_cast, + php_openssl_sockop_stat, + php_openssl_sockop_set_option, +}; + +static long get_crypto_method(php_stream_context *ctx, long crypto_method) +{ + zval **val; + + if (ctx && php_stream_context_get_option(ctx, "ssl", "crypto_method", &val) == SUCCESS) { + convert_to_long_ex(val); + crypto_method = (long)Z_LVAL_PP(val); + crypto_method |= STREAM_CRYPTO_IS_CLIENT; + } + + return crypto_method; +} + +static char *get_url_name(const char *resourcename, size_t resourcenamelen, int is_persistent TSRMLS_DC) +{ + php_url *url; + + if (!resourcename) { + return NULL; + } + + url = php_url_parse_ex(resourcename, resourcenamelen); + if (!url) { + return NULL; + } + + if (url->host) { + const char * host = url->host; + char * url_name = NULL; + size_t len = strlen(host); + + /* skip trailing dots */ + while (len && host[len-1] == '.') { + --len; + } + + if (len) { + url_name = pestrndup(host, len, is_persistent); + } + + php_url_free(url); + return url_name; + } + + php_url_free(url); + return NULL; +} + +php_stream *php_openssl_ssl_socket_factory(const char *proto, size_t protolen, + const char *resourcename, size_t resourcenamelen, + const char *persistent_id, int options, int flags, + struct timeval *timeout, + php_stream_context *context STREAMS_DC TSRMLS_DC) +{ + php_stream *stream = NULL; + php_openssl_netstream_data_t *sslsock = NULL; + + sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); + memset(sslsock, 0, sizeof(*sslsock)); + + sslsock->s.is_blocked = 1; + /* this timeout is used by standard stream funcs, therefor it should use the default value */ + sslsock->s.timeout.tv_sec = FG(default_socket_timeout); + sslsock->s.timeout.tv_usec = 0; + + /* use separate timeout for our private funcs */ + sslsock->connect_timeout.tv_sec = timeout->tv_sec; + sslsock->connect_timeout.tv_usec = timeout->tv_usec; + + /* we don't know the socket until we have determined if we are binding or + * connecting */ + sslsock->s.socket = -1; + + /* Initialize context as NULL */ + sslsock->ctx = NULL; + + stream = php_stream_alloc_rel(&php_openssl_socket_ops, sslsock, persistent_id, "r+"); + + if (stream == NULL) { + pefree(sslsock, persistent_id ? 1 : 0); + return NULL; + } + + if (strncmp(proto, "ssl", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_ANY_CLIENT); + } else if (strncmp(proto, "sslv2", protolen) == 0) { +#ifdef OPENSSL_NO_SSL2 + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSLv2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#else + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_SSLv2_CLIENT; +#endif + } else if (strncmp(proto, "sslv3", protolen) == 0) { +#ifdef OPENSSL_NO_SSL3 + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSLv3 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#else + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_SSLv3_CLIENT; +#endif + } else if (strncmp(proto, "tls", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_TLS_CLIENT); + } else if (strncmp(proto, "tlsv1.0", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT; + } else if (strncmp(proto, "tlsv1.1", protolen) == 0) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT; +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, "TLSv1.1 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (strncmp(proto, "tlsv1.2", protolen) == 0) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, "TLSv1.2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } + + sslsock->url_name = get_url_name(resourcename, resourcenamelen, !!persistent_id TSRMLS_CC); + + return stream; +} + + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ diff --git a/tests/expected/php/5.6.40-php56-openssl11-patch/ext/phar/util.c b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/phar/util.c new file mode 100644 index 000000000..06e4e55da --- /dev/null +++ b/tests/expected/php/5.6.40-php56-openssl11-patch/ext/phar/util.c @@ -0,0 +1,2143 @@ +/* + +----------------------------------------------------------------------+ + | phar php single-file executable PHP extension | + | utility functions | + +----------------------------------------------------------------------+ + | Copyright (c) 2005-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Gregory Beaver | + | Marcus Boerger | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#include "phar_internal.h" +#ifdef PHAR_HASH_OK +#include "ext/hash/php_hash_sha.h" +#endif + +#ifdef PHAR_HAVE_OPENSSL +/* OpenSSL includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#else +static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC); +#endif + +/* for links to relative location, prepend cwd of the entry */ +static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC) /* {{{ */ +{ + char *p, *ret = NULL; + if (!entry->link) { + return NULL; + } + if (entry->link[0] == '/') { + return estrdup(entry->link + 1); + } + p = strrchr(entry->filename, '/'); + if (p) { + *p = '\0'; + spprintf(&ret, 0, "%s/%s", entry->filename, entry->link); + return ret; + } + return entry->link; +} +/* }}} */ + +phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC) /* {{{ */ +{ + phar_entry_info *link_entry; + char *link; + + if (!entry->link) { + return entry; + } + + link = phar_get_link_location(entry TSRMLS_CC); + if (SUCCESS == zend_hash_find(&(entry->phar->manifest), entry->link, strlen(entry->link), (void **)&link_entry) || + SUCCESS == zend_hash_find(&(entry->phar->manifest), link, strlen(link), (void **)&link_entry)) { + if (link != entry->link) { + efree(link); + } + return phar_get_link_source(link_entry TSRMLS_CC); + } else { + if (link != entry->link) { + efree(link); + } + return NULL; + } +} +/* }}} */ + +/* retrieve a phar_entry_info's current file pointer for reading contents */ +php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) /* {{{ */ +{ + if (follow_links && entry->link) { + phar_entry_info *link_entry = phar_get_link_source(entry TSRMLS_CC); + + if (link_entry && link_entry != entry) { + return phar_get_efp(link_entry, 1 TSRMLS_CC); + } + } + + if (phar_get_fp_type(entry TSRMLS_CC) == PHAR_FP) { + if (!phar_get_entrypfp(entry TSRMLS_CC)) { + /* re-open just in time for cases where our refcount reached 0 on the phar archive */ + phar_open_archive_fp(entry->phar TSRMLS_CC); + } + return phar_get_entrypfp(entry TSRMLS_CC); + } else if (phar_get_fp_type(entry TSRMLS_CC) == PHAR_UFP) { + return phar_get_entrypufp(entry TSRMLS_CC); + } else if (entry->fp_type == PHAR_MOD) { + return entry->fp; + } else { + /* temporary manifest entry */ + if (!entry->fp) { + entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); + } + return entry->fp; + } +} +/* }}} */ + +int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) /* {{{ */ +{ + php_stream *fp = phar_get_efp(entry, follow_links TSRMLS_CC); + off_t temp, eoffset; + + if (!fp) { + return -1; + } + + if (follow_links) { + phar_entry_info *t; + t = phar_get_link_source(entry TSRMLS_CC); + if (t) { + entry = t; + } + } + + if (entry->is_dir) { + return 0; + } + + eoffset = phar_get_fp_offset(entry TSRMLS_CC); + + switch (whence) { + case SEEK_END: + temp = eoffset + entry->uncompressed_filesize + offset; + break; + case SEEK_CUR: + temp = eoffset + position + offset; + break; + case SEEK_SET: + temp = eoffset + offset; + break; + default: + temp = 0; + } + + if (temp > eoffset + (off_t) entry->uncompressed_filesize) { + return -1; + } + + if (temp < eoffset) { + return -1; + } + + return php_stream_seek(fp, temp, SEEK_SET); +} +/* }}} */ + +/* mount an absolute path or uri to a path internal to the phar archive */ +int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */ +{ + phar_entry_info entry = {0}; + php_stream_statbuf ssb; + int is_phar; + const char *err; + + if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) { + return FAILURE; + } + + if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { + /* no creating magic phar files by mounting them */ + return FAILURE; + } + + is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); + + entry.phar = phar; + entry.filename = estrndup(path, path_len); +#ifdef PHP_WIN32 + phar_unixify_path_separators(entry.filename, path_len); +#endif + entry.filename_len = path_len; + if (is_phar) { + entry.tmp = estrndup(filename, filename_len); + } else { + entry.tmp = expand_filepath(filename, NULL TSRMLS_CC); + if (!entry.tmp) { + entry.tmp = estrndup(filename, filename_len); + } + } +#if PHP_API_VERSION < 20100412 + if (PG(safe_mode) && !is_phar && (!php_checkuid(entry.tmp, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } +#endif + filename = entry.tmp; + + /* only check openbasedir for files, not for phar streams */ + if (!is_phar && php_check_open_basedir(filename TSRMLS_CC)) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + + entry.is_mounted = 1; + entry.is_crc_checked = 1; + entry.fp_type = PHAR_TMP; + + if (SUCCESS != php_stream_stat_path(filename, &ssb)) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + + if (ssb.sb.st_mode & S_IFDIR) { + entry.is_dir = 1; + if (SUCCESS != zend_hash_add(&phar->mounted_dirs, entry.filename, path_len, (void *)&(entry.filename), sizeof(char *), NULL)) { + /* directory already mounted */ + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + } else { + entry.is_dir = 0; + entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; + } + + entry.flags = ssb.sb.st_mode; + + if (SUCCESS == zend_hash_add(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info), NULL)) { + return SUCCESS; + } + + efree(entry.tmp); + efree(entry.filename); + return FAILURE; +} +/* }}} */ + +char *phar_find_in_include_path(char *filename, int filename_len, phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + char *path, *fname, *arch, *entry, *ret, *test; + int arch_len, entry_len, fname_len, ret_len; + phar_archive_data *phar; + + if (pphar) { + *pphar = NULL; + } else { + pphar = &phar; + } + + if (!zend_is_executing(TSRMLS_C) || !PHAR_G(cwd)) { + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } + + fname = (char*)zend_get_executed_filename(TSRMLS_C); + fname_len = strlen(fname); + + if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) { + arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); + arch_len = PHAR_G(last_phar_name_len); + phar = PHAR_G(last_phar); + goto splitted; + } + + if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) { + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } + + efree(entry); + + if (*filename == '.') { + int try_len; + + if (FAILURE == phar_get_archive(&phar, arch, arch_len, NULL, 0, NULL TSRMLS_CC)) { + efree(arch); + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } +splitted: + if (pphar) { + *pphar = phar; + } + + try_len = filename_len; + test = phar_fix_filepath(estrndup(filename, filename_len), &try_len, 1 TSRMLS_CC); + + if (*test == '/') { + if (zend_hash_exists(&(phar->manifest), test + 1, try_len - 1)) { + spprintf(&ret, 0, "phar://%s%s", arch, test); + efree(arch); + efree(test); + return ret; + } + } else { + if (zend_hash_exists(&(phar->manifest), test, try_len)) { + spprintf(&ret, 0, "phar://%s/%s", arch, test); + efree(arch); + efree(test); + return ret; + } + } + efree(test); + } + + spprintf(&path, MAXPATHLEN, "phar://%s/%s%c%s", arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path)); + efree(arch); + ret = php_resolve_path(filename, filename_len, path TSRMLS_CC); + efree(path); + + if (ret && strlen(ret) > 8 && !strncmp(ret, "phar://", 7)) { + ret_len = strlen(ret); + /* found phar:// */ + + if (SUCCESS != phar_split_fname(ret, ret_len, &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) { + return ret; + } + + zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), arch, arch_len, (void **) &pphar); + + if (!pphar && PHAR_G(manifest_cached)) { + zend_hash_find(&cached_phars, arch, arch_len, (void **) &pphar); + } + + efree(arch); + efree(entry); + } + + return ret; +} +/* }}} */ + +/** + * Retrieve a copy of the file information on a single file within a phar, or null. + * This also transfers the open file pointer, if any, to the entry. + * + * If the file does not already exist, this will fail. Pre-existing files can be + * appended, truncated, or read. For read, if the entry is marked unmodified, it is + * assumed that the file pointer, if present, is opened for reading + */ +int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + phar_entry_info *entry; + int for_write = mode[0] != 'r' || mode[1] == '+'; + int for_append = mode[0] == 'a'; + int for_create = mode[0] != 'r'; + int for_trunc = mode[0] == 'w'; + + if (!ret) { + return FAILURE; + } + + *ret = NULL; + + if (error) { + *error = NULL; + } + + if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { + return FAILURE; + } + + if (for_write && PHAR_G(readonly) && !phar->is_data) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname); + } + return FAILURE; + } + + if (!path_len) { + if (error) { + spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); + } + return FAILURE; + } +really_get_entry: + if (allow_dir) { + if ((entry = phar_get_entry_info_dir(phar, path, path_len, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_CC)) == NULL) { + if (for_create && (!PHAR_G(readonly) || phar->is_data)) { + return SUCCESS; + } + return FAILURE; + } + } else { + if ((entry = phar_get_entry_info(phar, path, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_CC)) == NULL) { + if (for_create && (!PHAR_G(readonly) || phar->is_data)) { + return SUCCESS; + } + return FAILURE; + } + } + + if (for_write && phar->is_persistent) { + if (FAILURE == phar_copy_on_write(&phar TSRMLS_CC)) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname); + } + return FAILURE; + } else { + goto really_get_entry; + } + } + + if (entry->is_modified && !for_write) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname); + } + return FAILURE; + } + + if (entry->fp_refcount && for_write) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname); + } + return FAILURE; + } + + if (entry->is_deleted) { + if (!for_create) { + return FAILURE; + } + entry->is_deleted = 0; + } + + if (entry->is_dir) { + *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + (*ret)->position = 0; + (*ret)->fp = NULL; + (*ret)->phar = phar; + (*ret)->for_write = for_write; + (*ret)->internal_file = entry; + (*ret)->is_zip = entry->is_zip; + (*ret)->is_tar = entry->is_tar; + + if (!phar->is_persistent) { + ++(entry->phar->refcount); + ++(entry->fp_refcount); + } + + return SUCCESS; + } + + if (entry->fp_type == PHAR_MOD) { + if (for_trunc) { + if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { + return FAILURE; + } + } else if (for_append) { + phar_seek_efp(entry, 0, SEEK_END, 0, 0 TSRMLS_CC); + } + } else { + if (for_write) { + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + if (for_trunc) { + if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { + return FAILURE; + } + } else { + if (FAILURE == phar_separate_entry_fp(entry, error TSRMLS_CC)) { + return FAILURE; + } + } + } else { + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return FAILURE; + } + } + } + + *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + (*ret)->position = 0; + (*ret)->phar = phar; + (*ret)->for_write = for_write; + (*ret)->internal_file = entry; + (*ret)->is_zip = entry->is_zip; + (*ret)->is_tar = entry->is_tar; + (*ret)->fp = phar_get_efp(entry, 1 TSRMLS_CC); + if (entry->link) { + phar_entry_info *link = phar_get_link_source(entry TSRMLS_CC); + if(!link) { + efree(*ret); + return FAILURE; + } + (*ret)->zero = phar_get_fp_offset(link TSRMLS_CC); + } else { + (*ret)->zero = phar_get_fp_offset(entry TSRMLS_CC); + } + + if (!phar->is_persistent) { + ++(entry->fp_refcount); + ++(entry->phar->refcount); + } + + return SUCCESS; +} +/* }}} */ + +/** + * Create a new dummy file slot within a writeable phar for a newly created file + */ +phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + phar_entry_info *entry, etemp; + phar_entry_data *ret; + const char *pcr_error; + char is_dir; + +#ifdef PHP_WIN32 + phar_unixify_path_separators(path, path_len); +#endif + + is_dir = (path_len && path[path_len - 1] == '/') ? 1 : 0; + + if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { + return NULL; + } + + if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security TSRMLS_CC)) { + return NULL; + } else if (ret) { + return ret; + } + + if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { + if (error) { + spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); + } + return NULL; + } + + if (phar->is_persistent && FAILURE == phar_copy_on_write(&phar TSRMLS_CC)) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make cached phar writeable", path, fname); + } + return NULL; + } + + /* create a new phar data holder */ + ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + + /* create an entry, this is a new file */ + memset(&etemp, 0, sizeof(phar_entry_info)); + etemp.filename_len = path_len; + etemp.fp_type = PHAR_MOD; + etemp.fp = php_stream_fopen_tmpfile(); + + if (!etemp.fp) { + if (error) { + spprintf(error, 0, "phar error: unable to create temporary file"); + } + efree(ret); + return NULL; + } + + etemp.fp_refcount = 1; + + if (allow_dir == 2) { + etemp.is_dir = 1; + etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_DIR; + } else { + etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_FILE; + } + if (is_dir) { + etemp.filename_len--; /* strip trailing / */ + path_len--; + } + + phar_add_virtual_dirs(phar, path, path_len TSRMLS_CC); + etemp.is_modified = 1; + etemp.timestamp = time(0); + etemp.is_crc_checked = 1; + etemp.phar = phar; + etemp.filename = estrndup(path, path_len); + etemp.is_zip = phar->is_zip; + + if (phar->is_tar) { + etemp.is_tar = phar->is_tar; + etemp.tar_type = etemp.is_dir ? TAR_DIR : TAR_FILE; + } + + if (FAILURE == zend_hash_add(&phar->manifest, etemp.filename, path_len, (void*)&etemp, sizeof(phar_entry_info), (void **) &entry)) { + php_stream_close(etemp.fp); + if (error) { + spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, phar->fname); + } + efree(ret); + efree(etemp.filename); + return NULL; + } + + if (!entry) { + php_stream_close(etemp.fp); + efree(etemp.filename); + efree(ret); + return NULL; + } + + ++(phar->refcount); + ret->phar = phar; + ret->fp = entry->fp; + ret->position = ret->zero = 0; + ret->for_write = 1; + ret->is_zip = entry->is_zip; + ret->is_tar = entry->is_tar; + ret->internal_file = entry; + + return ret; +} +/* }}} */ + +/* initialize a phar_archive_data's read-only fp for existing phar data */ +int phar_open_archive_fp(phar_archive_data *phar TSRMLS_DC) /* {{{ */ +{ + if (phar_get_pharfp(phar TSRMLS_CC)) { + return SUCCESS; + } + + if (php_check_open_basedir(phar->fname TSRMLS_CC)) { + return FAILURE; + } + + phar_set_pharfp(phar, php_stream_open_wrapper(phar->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, NULL) TSRMLS_CC); + + if (!phar_get_pharfp(phar TSRMLS_CC)) { + return FAILURE; + } + + return SUCCESS; +} +/* }}} */ + +/* copy file data from an existing to a new phar_entry_info that is not in the manifest */ +int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC) /* {{{ */ +{ + phar_entry_info *link; + + if (FAILURE == phar_open_entry_fp(source, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + if (dest->link) { + efree(dest->link); + dest->link = NULL; + dest->tar_type = (dest->is_tar ? TAR_FILE : '\0'); + } + + dest->fp_type = PHAR_MOD; + dest->offset = 0; + dest->is_modified = 1; + dest->fp = php_stream_fopen_tmpfile(); + if (dest->fp == NULL) { + spprintf(error, 0, "phar error: unable to create temporary file"); + return EOF; + } + phar_seek_efp(source, 0, SEEK_SET, 0, 1 TSRMLS_CC); + link = phar_get_link_source(source TSRMLS_CC); + + if (!link) { + link = source; + } + + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), dest->fp, link->uncompressed_filesize, NULL)) { + php_stream_close(dest->fp); + dest->fp_type = PHAR_FP; + if (error) { + spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archive \"%s\"", source->filename, dest->filename, source->phar->fname); + } + return FAILURE; + } + + return SUCCESS; +} +/* }}} */ + +/* open and decompress a compressed phar entry + */ +int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) /* {{{ */ +{ + php_stream_filter *filter; + phar_archive_data *phar = entry->phar; + char *filtername; + off_t loc; + php_stream *ufp; + phar_entry_data dummy; + + if (follow_links && entry->link) { + phar_entry_info *link_entry = phar_get_link_source(entry TSRMLS_CC); + if (link_entry && link_entry != entry) { + return phar_open_entry_fp(link_entry, error, 1 TSRMLS_CC); + } + } + + if (entry->is_modified) { + return SUCCESS; + } + + if (entry->fp_type == PHAR_TMP) { + if (!entry->fp) { + entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); + } + return SUCCESS; + } + + if (entry->fp_type != PHAR_FP) { + /* either newly created or already modified */ + return SUCCESS; + } + + if (!phar_get_pharfp(phar TSRMLS_CC)) { + if (FAILURE == phar_open_archive_fp(phar TSRMLS_CC)) { + spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); + return FAILURE; + } + } + + if ((entry->old_flags && !(entry->old_flags & PHAR_ENT_COMPRESSION_MASK)) || !(entry->flags & PHAR_ENT_COMPRESSION_MASK)) { + dummy.internal_file = entry; + dummy.phar = phar; + dummy.zero = entry->offset; + dummy.fp = phar_get_pharfp(phar TSRMLS_CC); + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { + return FAILURE; + } + return SUCCESS; + } + + if (!phar_get_entrypufp(entry TSRMLS_CC)) { + phar_set_entrypufp(entry, php_stream_fopen_tmpfile() TSRMLS_CC); + if (!phar_get_entrypufp(entry TSRMLS_CC)) { + spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\" file \"%s\"", phar->fname, entry->filename); + return FAILURE; + } + } + + dummy.internal_file = entry; + dummy.phar = phar; + dummy.zero = entry->offset; + dummy.fp = phar_get_pharfp(phar TSRMLS_CC); + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + ufp = phar_get_entrypufp(entry TSRMLS_CC); + + if ((filtername = phar_decompress_filter(entry, 0)) != NULL) { + filter = php_stream_filter_create(filtername, NULL, 0 TSRMLS_CC); + } else { + filter = NULL; + } + + if (!filter) { + spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decompressing file \"%s\")", phar->fname, phar_decompress_filter(entry, 1), entry->filename); + return FAILURE; + } + + /* now we can safely use proper decompression */ + /* save the new offset location within ufp */ + php_stream_seek(ufp, 0, SEEK_END); + loc = php_stream_tell(ufp); + php_stream_filter_append(&ufp->writefilters, filter); + php_stream_seek(phar_get_entrypfp(entry TSRMLS_CC), phar_get_fp_offset(entry TSRMLS_CC), SEEK_SET); + + if (entry->uncompressed_filesize) { + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_entrypfp(entry TSRMLS_CC), ufp, entry->compressed_filesize, NULL)) { + spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); + php_stream_filter_remove(filter, 1 TSRMLS_CC); + return FAILURE; + } + } + + php_stream_filter_flush(filter, 1); + php_stream_flush(ufp); + php_stream_filter_remove(filter, 1 TSRMLS_CC); + + if (php_stream_tell(ufp) - loc != (off_t) entry->uncompressed_filesize) { + spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); + return FAILURE; + } + + entry->old_flags = entry->flags; + + /* this is now the new location of the file contents within this fp */ + phar_set_fp_type(entry, PHAR_UFP, loc TSRMLS_CC); + dummy.zero = entry->offset; + dummy.fp = ufp; + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0 TSRMLS_CC)) { + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + if (entry->fp_type == PHAR_MOD) { + /* already newly created, truncate */ + php_stream_truncate_set_size(entry->fp, 0); + + entry->old_flags = entry->flags; + entry->is_modified = 1; + phar->is_modified = 1; + /* reset file size */ + entry->uncompressed_filesize = 0; + entry->compressed_filesize = 0; + entry->crc32 = 0; + entry->flags = PHAR_ENT_PERM_DEF_FILE; + entry->fp_type = PHAR_MOD; + entry->offset = 0; + return SUCCESS; + } + + if (error) { + *error = NULL; + } + + /* open a new temp file for writing */ + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + entry->fp = php_stream_fopen_tmpfile(); + + if (!entry->fp) { + if (error) { + spprintf(error, 0, "phar error: unable to create temporary file"); + } + return FAILURE; + } + + entry->old_flags = entry->flags; + entry->is_modified = 1; + phar->is_modified = 1; + /* reset file size */ + entry->uncompressed_filesize = 0; + entry->compressed_filesize = 0; + entry->crc32 = 0; + entry->flags = PHAR_ENT_PERM_DEF_FILE; + entry->fp_type = PHAR_MOD; + entry->offset = 0; + return SUCCESS; +} +/* }}} */ + +int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + php_stream *fp; + phar_entry_info *link; + + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + if (entry->fp_type == PHAR_MOD) { + return SUCCESS; + } + + fp = php_stream_fopen_tmpfile(); + if (fp == NULL) { + spprintf(error, 0, "phar error: unable to create temporary file"); + return FAILURE; + } + phar_seek_efp(entry, 0, SEEK_SET, 0, 1 TSRMLS_CC); + link = phar_get_link_source(entry TSRMLS_CC); + + if (!link) { + link = entry; + } + + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) { + if (error) { + spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s\" for write access", entry->filename, entry->phar->fname); + } + return FAILURE; + } + + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + entry->offset = 0; + entry->fp = fp; + entry->fp_type = PHAR_MOD; + entry->is_modified = 1; + return SUCCESS; +} +/* }}} */ + +/** + * helper function to open an internal file's fp just-in-time + */ +phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + if (error) { + *error = NULL; + } + /* seek to start of internal file and read it */ + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return NULL; + } + if (-1 == phar_seek_efp(entry, 0, SEEK_SET, 0, 1 TSRMLS_CC)) { + spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->filename, phar->fname); + return NULL; + } + return entry; +} +/* }}} */ + +PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC) /* {{{ */ { + phar_archive_data **fd_ptr; + if (PHAR_GLOBALS->phar_alias_map.arBuckets + && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) { + *filename = (*fd_ptr)->fname; + *filename_len = (*fd_ptr)->fname_len; + return SUCCESS; + } + return FAILURE; +} +/* }}} */ + +int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC) /* {{{ */ +{ + if (phar->refcount || phar->is_persistent) { + return FAILURE; + } + + /* this archive has no open references, so emit an E_STRICT and remove it */ + if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { + return FAILURE; + } + + /* invalidate phar cache */ + PHAR_G(last_phar) = NULL; + PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; + + return SUCCESS; +} +/* }}} */ + +/** + * Looks up a phar archive in the filename map, connecting it to the alias + * (if any) or returns null + */ +int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *fd, **fd_ptr; + char *my_realpath, *save; + int save_len; + ulong fhash, ahash = 0; + + phar_request_initialize(TSRMLS_C); + + if (error) { + *error = NULL; + } + + *archive = NULL; + + if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_phar_name), fname_len)) { + *archive = PHAR_G(last_phar); + if (alias && alias_len) { + + if (!PHAR_G(last_phar)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp(PHAR_G(last_phar)->alias, alias, alias_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname); + } + *archive = NULL; + return FAILURE; + } + + if (PHAR_G(last_phar)->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_len, (void**)&fd_ptr)) { + zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_len); + } + + zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&(*archive), sizeof(phar_archive_data*), NULL); + PHAR_G(last_alias) = alias; + PHAR_G(last_alias_len) = alias_len; + } + + return SUCCESS; + } + + if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alias, PHAR_G(last_alias), alias_len)) { + fd = PHAR_G(last_phar); + fd_ptr = &fd; + goto alias_success; + } + + if (alias && alias_len) { + ahash = zend_inline_hash_func(alias, alias_len); + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void**)&fd_ptr)) { +alias_success: + if (fname && (fname_len != (*fd_ptr)->fname_len || strncmp(fname, (*fd_ptr)->fname, fname_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + if (SUCCESS == phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) { + if (error) { + efree(*error); + *error = NULL; + } + } + return FAILURE; + } + + *archive = *fd_ptr; + fd = *fd_ptr; + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = alias; + PHAR_G(last_alias_len) = alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_alias, alias, alias_len, ahash, (void **)&fd_ptr)) { + goto alias_success; + } + } + + fhash = zend_inline_hash_func(fname, fname_len); + my_realpath = NULL; + save = fname; + save_len = fname_len; + + if (fname && fname_len) { + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { + *archive = *fd_ptr; + fd = *fd_ptr; + + if (alias && alias_len) { + if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + return FAILURE; + } + + if (fd->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len, (void**)&fd_ptr)) { + zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len); + } + + zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); + } + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { + *archive = *fd_ptr; + fd = *fd_ptr; + + /* this could be problematic - alias should never be different from manifest alias + for cached phars */ + if (!fd->is_temporary_alias && alias && alias_len) { + if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + return FAILURE; + } + } + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_alias_map), save, save_len, fhash, (void**)&fd_ptr)) { + fd = *archive = *fd_ptr; + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_alias, save, save_len, fhash, (void**)&fd_ptr)) { + fd = *archive = *fd_ptr; + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + /* not found, try converting \ to / */ + my_realpath = expand_filepath(fname, my_realpath TSRMLS_CC); + + if (my_realpath) { + fname_len = strlen(my_realpath); + fname = my_realpath; + } else { + return FAILURE; + } +#ifdef PHP_WIN32 + phar_unixify_path_separators(fname, fname_len); +#endif + fhash = zend_inline_hash_func(fname, fname_len); + + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { +realpath_success: + *archive = *fd_ptr; + fd = *fd_ptr; + + if (alias && alias_len) { + zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); + } + + efree(my_realpath); + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { + goto realpath_success; + } + + efree(my_realpath); + } + + return FAILURE; +} +/* }}} */ + +/** + * Determine which stream compression filter (if any) we need to read this file + */ +char * phar_compress_filter(phar_entry_info * entry, int return_unknown) /* {{{ */ +{ + switch (entry->flags & PHAR_ENT_COMPRESSION_MASK) { + case PHAR_ENT_COMPRESSED_GZ: + return "zlib.deflate"; + case PHAR_ENT_COMPRESSED_BZ2: + return "bzip2.compress"; + default: + return return_unknown ? "unknown" : NULL; + } +} +/* }}} */ + +/** + * Determine which stream decompression filter (if any) we need to read this file + */ +char * phar_decompress_filter(phar_entry_info * entry, int return_unknown) /* {{{ */ +{ + php_uint32 flags; + + if (entry->is_modified) { + flags = entry->old_flags; + } else { + flags = entry->flags; + } + + switch (flags & PHAR_ENT_COMPRESSION_MASK) { + case PHAR_ENT_COMPRESSED_GZ: + return "zlib.inflate"; + case PHAR_ENT_COMPRESSED_BZ2: + return "bzip2.decompress"; + default: + return return_unknown ? "unknown" : NULL; + } +} +/* }}} */ + +/** + * retrieve information on a file contained within a phar, or null if it ain't there + */ +phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) /* {{{ */ +{ + return phar_get_entry_info_dir(phar, path, path_len, 0, error, security TSRMLS_CC); +} +/* }}} */ +/** + * retrieve information on a file or directory contained within a phar, or null if none found + * allow_dir is 0 for none, 1 for both empty directories in the phar and temp directories, and 2 for only + * valid pre-existing empty directory entries + */ +phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + const char *pcr_error; + phar_entry_info *entry; + int is_dir; + +#ifdef PHP_WIN32 + phar_unixify_path_separators(path, path_len); +#endif + + is_dir = (path_len && (path[path_len - 1] == '/')) ? 1 : 0; + + if (error) { + *error = NULL; + } + + if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { + if (error) { + spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files within it"); + } + return NULL; + } + + if (!path_len && !dir) { + if (error) { + spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); + } + return NULL; + } + + if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { + if (error) { + spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); + } + return NULL; + } + + if (!phar->manifest.arBuckets) { + return NULL; + } + + if (is_dir) { + if (!path_len || path_len == 1) { + return NULL; + } + path_len--; + } + + if (SUCCESS == zend_hash_find(&phar->manifest, path, path_len, (void**)&entry)) { + if (entry->is_deleted) { + /* entry is deleted, but has not been flushed to disk yet */ + return NULL; + } + if (entry->is_dir && !dir) { + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); + } + return NULL; + } + if (!entry->is_dir && dir == 2) { + /* user requested a directory, we must return one */ + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); + } + return NULL; + } + return entry; + } + + if (dir) { + if (zend_hash_exists(&phar->virtual_dirs, path, path_len)) { + /* a file or directory exists in a sub-directory of this path */ + entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); + /* this next line tells PharFileInfo->__destruct() to efree the filename */ + entry->is_temp_dir = entry->is_dir = 1; + entry->filename = (char *) estrndup(path, path_len + 1); + entry->filename_len = path_len; + entry->phar = phar; + return entry; + } + } + + if (phar->mounted_dirs.arBuckets && zend_hash_num_elements(&phar->mounted_dirs)) { + char *str_key; + ulong unused; + uint keylen; + + zend_hash_internal_pointer_reset(&phar->mounted_dirs); + while (FAILURE != zend_hash_has_more_elements(&phar->mounted_dirs)) { + if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &str_key, &keylen, &unused, 0, NULL)) { + break; + } + + if ((int)keylen >= path_len || strncmp(str_key, path, keylen)) { + continue; + } else { + char *test; + int test_len; + php_stream_statbuf ssb; + + if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) { + if (error) { + spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manifest", str_key); + } + return NULL; + } + + if (!entry->tmp || !entry->is_mounted) { + if (error) { + spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a mounted path", str_key); + } + return NULL; + } + + test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + keylen); + + if (SUCCESS != php_stream_stat_path(test, &ssb)) { + efree(test); + return NULL; + } + + if (ssb.sb.st_mode & S_IFDIR && !dir) { + efree(test); + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); + } + return NULL; + } + + if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { + efree(test); + /* user requested a directory, we must return one */ + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); + } + return NULL; + } + + /* mount the file just in time */ + if (SUCCESS != phar_mount_entry(phar, test, test_len, path, path_len TSRMLS_CC)) { + efree(test); + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", path, test); + } + return NULL; + } + + efree(test); + + if (SUCCESS != zend_hash_find(&phar->manifest, path, path_len, (void**)&entry)) { + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved after being mounted", path, test); + } + return NULL; + } + return entry; + } + } + } + + return NULL; +} +/* }}} */ + +static const char hexChars[] = "0123456789ABCDEF"; + +static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ +{ + int pos = -1; + size_t len = 0; + + *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist)); + + for (; len < digest_len; ++len) { + (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4]; + (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F]; + } + (*signature)[++pos] = '\0'; + return pos; +} +/* }}} */ + +#ifndef PHAR_HAVE_OPENSSL +static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */ +{ + zend_fcall_info fci; + zend_fcall_info_cache fcc; + zval *zdata, *zsig, *zkey, *retval_ptr, **zp[3], *openssl; + + MAKE_STD_ZVAL(zdata); + MAKE_STD_ZVAL(openssl); + ZVAL_STRINGL(openssl, is_sign ? "openssl_sign" : "openssl_verify", is_sign ? sizeof("openssl_sign")-1 : sizeof("openssl_verify")-1, 1); + MAKE_STD_ZVAL(zsig); + ZVAL_STRINGL(zsig, *signature, *signature_len, 1); + MAKE_STD_ZVAL(zkey); + ZVAL_STRINGL(zkey, key, key_len, 1); + zp[0] = &zdata; + zp[1] = &zsig; + zp[2] = &zkey; + + php_stream_rewind(fp); + Z_TYPE_P(zdata) = IS_STRING; + Z_STRLEN_P(zdata) = end; + + if (end != (off_t) php_stream_copy_to_mem(fp, &(Z_STRVAL_P(zdata)), (size_t) end, 0)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + if (FAILURE == zend_fcall_info_init(openssl, 0, &fci, &fcc, NULL, NULL TSRMLS_CC)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + fci.param_count = 3; + fci.params = zp; + Z_ADDREF_P(zdata); + if (is_sign) { + Z_SET_ISREF_P(zsig); + } else { + Z_ADDREF_P(zsig); + } + Z_ADDREF_P(zkey); + + fci.retval_ptr_ptr = &retval_ptr; + + if (FAILURE == zend_call_function(&fci, &fcc TSRMLS_CC)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + zval_dtor(openssl); + efree(openssl); + Z_DELREF_P(zdata); + + if (is_sign) { + Z_UNSET_ISREF_P(zsig); + } else { + Z_DELREF_P(zsig); + } + Z_DELREF_P(zkey); + + zval_dtor(zdata); + efree(zdata); + zval_dtor(zkey); + efree(zkey); + + switch (Z_TYPE_P(retval_ptr)) { + default: + case IS_LONG: + zval_dtor(zsig); + efree(zsig); + if (1 == Z_LVAL_P(retval_ptr)) { + efree(retval_ptr); + return SUCCESS; + } + efree(retval_ptr); + return FAILURE; + case IS_BOOL: + efree(retval_ptr); + if (Z_BVAL_P(retval_ptr)) { + *signature = estrndup(Z_STRVAL_P(zsig), Z_STRLEN_P(zsig)); + *signature_len = Z_STRLEN_P(zsig); + zval_dtor(zsig); + efree(zsig); + return SUCCESS; + } + zval_dtor(zsig); + efree(zsig); + return FAILURE; + } +} +/* }}} */ +#endif /* #ifndef PHAR_HAVE_OPENSSL */ + +int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ */ +{ + int read_size, len; + off_t read_len; + unsigned char buf[1024]; + + php_stream_rewind(fp); + + switch (sig_type) { + case PHAR_SIG_OPENSSL: { +#ifdef PHAR_HAVE_OPENSSL + BIO *in; + EVP_PKEY *key; + EVP_MD *mdtype = (EVP_MD *) EVP_sha1(); + EVP_MD_CTX *md_ctx; +#else + int tempsig; +#endif + php_uint32 pubkey_len; + char *pubkey = NULL, *pfile; + php_stream *pfp; +#ifndef PHAR_HAVE_OPENSSL + if (!zend_hash_exists(&module_registry, "openssl", sizeof("openssl"))) { + if (error) { + spprintf(error, 0, "openssl not loaded"); + } + return FAILURE; + } +#endif + /* use __FILE__ . '.pubkey' for public key file */ + spprintf(&pfile, 0, "%s.pubkey", fname); + pfp = php_stream_open_wrapper(pfile, "rb", 0, NULL); + efree(pfile); + +#if PHP_MAJOR_VERSION > 5 + if (!pfp || !(pubkey_len = php_stream_copy_to_mem(pfp, (void **) &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey) { +#else + if (!pfp || !(pubkey_len = php_stream_copy_to_mem(pfp, &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey) { +#endif + if (pfp) { + php_stream_close(pfp); + } + if (error) { + spprintf(error, 0, "openssl public key could not be read"); + } + return FAILURE; + } + + php_stream_close(pfp); +#ifndef PHAR_HAVE_OPENSSL + tempsig = sig_len; + + if (FAILURE == phar_call_openssl_signverify(0, fp, end_of_phar, pubkey, pubkey_len, &sig, &tempsig TSRMLS_CC)) { + if (pubkey) { + efree(pubkey); + } + + if (error) { + spprintf(error, 0, "openssl signature could not be verified"); + } + + return FAILURE; + } + + if (pubkey) { + efree(pubkey); + } + + sig_len = tempsig; +#else + in = BIO_new_mem_buf(pubkey, pubkey_len); + + if (NULL == in) { + efree(pubkey); + if (error) { + spprintf(error, 0, "openssl signature could not be processed"); + } + return FAILURE; + } + + key = PEM_read_bio_PUBKEY(in, NULL,NULL, NULL); + BIO_free(in); + efree(pubkey); + + if (NULL == key) { + if (error) { + spprintf(error, 0, "openssl signature could not be processed"); + } + return FAILURE; + } + + md_ctx = EVP_MD_CTX_create(); + EVP_VerifyInit(md_ctx, mdtype); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + php_stream_seek(fp, 0, SEEK_SET); + + while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + EVP_VerifyUpdate (md_ctx, buf, len); + read_len -= (off_t)len; + + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + if (EVP_VerifyFinal(md_ctx, (unsigned char *)sig, sig_len, key) != 1) { + /* 1: signature verified, 0: signature does not match, -1: failed signature operation */ + EVP_MD_CTX_destroy(md_ctx); + + if (error) { + spprintf(error, 0, "broken openssl signature"); + } + + return FAILURE; + } + + EVP_MD_CTX_destroy(md_ctx); +#endif + + *signature_len = phar_hex_str((const char*)sig, sig_len, signature TSRMLS_CC); + } + break; +#ifdef PHAR_HASH_OK + case PHAR_SIG_SHA512: { + unsigned char digest[64]; + PHP_SHA512_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA512Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA512Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA512Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + case PHAR_SIG_SHA256: { + unsigned char digest[32]; + PHP_SHA256_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA256Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA256Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA256Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } +#else + case PHAR_SIG_SHA512: + case PHAR_SIG_SHA256: + if (error) { + spprintf(error, 0, "unsupported signature"); + } + return FAILURE; +#endif + case PHAR_SIG_SHA1: { + unsigned char digest[20]; + PHP_SHA1_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA1Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA1Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA1Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + case PHAR_SIG_MD5: { + unsigned char digest[16]; + PHP_MD5_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_MD5Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_MD5Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_MD5Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + default: + if (error) { + spprintf(error, 0, "broken or unsupported signature"); + } + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ */ +{ + unsigned char buf[1024]; + int sig_len; + + php_stream_rewind(fp); + + if (phar->signature) { + efree(phar->signature); + phar->signature = NULL; + } + + switch(phar->sig_flags) { +#ifdef PHAR_HASH_OK + case PHAR_SIG_SHA512: { + unsigned char digest[64]; + PHP_SHA512_CTX context; + + PHP_SHA512Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA512Update(&context, buf, sig_len); + } + + PHP_SHA512Final(digest, &context); + *signature = estrndup((char *) digest, 64); + *signature_length = 64; + break; + } + case PHAR_SIG_SHA256: { + unsigned char digest[32]; + PHP_SHA256_CTX context; + + PHP_SHA256Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA256Update(&context, buf, sig_len); + } + + PHP_SHA256Final(digest, &context); + *signature = estrndup((char *) digest, 32); + *signature_length = 32; + break; + } +#else + case PHAR_SIG_SHA512: + case PHAR_SIG_SHA256: + if (error) { + spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname); + } + + return FAILURE; +#endif + case PHAR_SIG_OPENSSL: { + int siglen; + unsigned char *sigbuf; +#ifdef PHAR_HAVE_OPENSSL + BIO *in; + EVP_PKEY *key; + EVP_MD_CTX *md_ctx; + + in = BIO_new_mem_buf(PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len)); + + if (in == NULL) { + if (error) { + spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } + + key = PEM_read_bio_PrivateKey(in, NULL,NULL, ""); + BIO_free(in); + + if (!key) { + if (error) { + spprintf(error, 0, "unable to process private key"); + } + return FAILURE; + } + + md_ctx = EVP_MD_CTX_create(); + + siglen = EVP_PKEY_size(key); + sigbuf = emalloc(siglen + 1); + + if (!EVP_SignInit(md_ctx, EVP_sha1())) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); + } + return FAILURE; + } + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); + } + return FAILURE; + } + } + + if (!EVP_SignFinal (md_ctx, sigbuf,(unsigned int *)&siglen, key)) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } + + sigbuf[siglen] = '\0'; + EVP_MD_CTX_destroy(md_ctx); +#else + sigbuf = NULL; + siglen = 0; + php_stream_seek(fp, 0, SEEK_END); + + if (FAILURE == phar_call_openssl_signverify(1, fp, php_stream_tell(fp), PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len), (char **)&sigbuf, &siglen TSRMLS_CC)) { + if (error) { + spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } +#endif + *signature = (char *) sigbuf; + *signature_length = siglen; + } + break; + default: + phar->sig_flags = PHAR_SIG_SHA1; + case PHAR_SIG_SHA1: { + unsigned char digest[20]; + PHP_SHA1_CTX context; + + PHP_SHA1Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA1Update(&context, buf, sig_len); + } + + PHP_SHA1Final(digest, &context); + *signature = estrndup((char *) digest, 20); + *signature_length = 20; + break; + } + case PHAR_SIG_MD5: { + unsigned char digest[16]; + PHP_MD5_CTX context; + + PHP_MD5Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_MD5Update(&context, buf, sig_len); + } + + PHP_MD5Final(digest, &context); + *signature = estrndup((char *) digest, 16); + *signature_length = 16; + break; + } + } + + phar->sig_len = phar_hex_str((const char *)*signature, *signature_length, &phar->signature TSRMLS_CC); + return SUCCESS; +} +/* }}} */ + +void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC) /* {{{ */ +{ + const char *s; + + while ((s = zend_memrchr(filename, '/', filename_len))) { + filename_len = s - filename; + if (!filename_len || FAILURE == zend_hash_add_empty_element(&phar->virtual_dirs, filename, filename_len)) { + break; + } + } +} +/* }}} */ + +static int phar_update_cached_entry(void *data, void *argument) /* {{{ */ +{ + phar_entry_info *entry = (phar_entry_info *)data; + TSRMLS_FETCH(); + + entry->phar = (phar_archive_data *)argument; + + if (entry->link) { + entry->link = estrdup(entry->link); + } + + if (entry->tmp) { + entry->tmp = estrdup(entry->tmp); + } + + entry->metadata_str.c = 0; + entry->filename = estrndup(entry->filename, entry->filename_len); + entry->is_persistent = 0; + + if (entry->metadata) { + if (entry->metadata_len) { + char *buf = estrndup((char *) entry->metadata, entry->metadata_len); + /* assume success, we would have failed before */ + phar_parse_metadata((char **) &buf, &entry->metadata, entry->metadata_len TSRMLS_CC); + efree(buf); + } else { + zval *t; + + t = entry->metadata; + ALLOC_ZVAL(entry->metadata); + *entry->metadata = *t; + zval_copy_ctor(entry->metadata); + Z_SET_REFCOUNT_P(entry->metadata, 1); + entry->metadata_str.c = NULL; + entry->metadata_str.len = 0; + } + } + return ZEND_HASH_APPLY_KEEP; +} +/* }}} */ + +static void phar_copy_cached_phar(phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + HashTable newmanifest; + char *fname; + phar_archive_object **objphar; + + phar = (phar_archive_data *) emalloc(sizeof(phar_archive_data)); + *phar = **pphar; + phar->is_persistent = 0; + fname = phar->fname; + phar->fname = estrndup(phar->fname, phar->fname_len); + phar->ext = phar->fname + (phar->ext - fname); + + if (phar->alias) { + phar->alias = estrndup(phar->alias, phar->alias_len); + } + + if (phar->signature) { + phar->signature = estrdup(phar->signature); + } + + if (phar->metadata) { + /* assume success, we would have failed before */ + if (phar->metadata_len) { + char *buf = estrndup((char *) phar->metadata, phar->metadata_len); + phar_parse_metadata(&buf, &phar->metadata, phar->metadata_len TSRMLS_CC); + efree(buf); + } else { + zval *t; + + t = phar->metadata; + ALLOC_ZVAL(phar->metadata); + *phar->metadata = *t; + zval_copy_ctor(phar->metadata); + Z_SET_REFCOUNT_P(phar->metadata, 1); + } + } + + zend_hash_init(&newmanifest, sizeof(phar_entry_info), + zend_get_hash_value, destroy_phar_manifest_entry, 0); + zend_hash_copy(&newmanifest, &(*pphar)->manifest, NULL, NULL, sizeof(phar_entry_info)); + zend_hash_apply_with_argument(&newmanifest, (apply_func_arg_t) phar_update_cached_entry, (void *)phar TSRMLS_CC); + phar->manifest = newmanifest; + zend_hash_init(&phar->mounted_dirs, sizeof(char *), + zend_get_hash_value, NULL, 0); + zend_hash_init(&phar->virtual_dirs, sizeof(char *), + zend_get_hash_value, NULL, 0); + zend_hash_copy(&phar->virtual_dirs, &(*pphar)->virtual_dirs, NULL, NULL, sizeof(void *)); + *pphar = phar; + + /* now, scan the list of persistent Phar objects referencing this phar and update the pointers */ + for (zend_hash_internal_pointer_reset(&PHAR_GLOBALS->phar_persist_map); + SUCCESS == zend_hash_get_current_data(&PHAR_GLOBALS->phar_persist_map, (void **) &objphar); + zend_hash_move_forward(&PHAR_GLOBALS->phar_persist_map)) { + if (objphar[0]->arc.archive->fname_len == phar->fname_len && !memcmp(objphar[0]->arc.archive->fname, phar->fname, phar->fname_len)) { + objphar[0]->arc.archive = phar; + } + } +} +/* }}} */ + +int phar_copy_on_write(phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + phar_archive_data **newpphar, *newphar = NULL; + + if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len, (void *)&newphar, sizeof(phar_archive_data *), (void **)&newpphar)) { + return FAILURE; + } + + *newpphar = *pphar; + phar_copy_cached_phar(newpphar TSRMLS_CC); + /* invalidate phar cache */ + PHAR_G(last_phar) = NULL; + PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; + + if (newpphar[0]->alias_len && FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), newpphar[0]->alias, newpphar[0]->alias_len, (void*)newpphar, sizeof(phar_archive_data*), NULL)) { + zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len); + return FAILURE; + } + + *pphar = *newpphar; + return SUCCESS; +} +/* }}} */ + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ diff --git a/tests/expected/php/7.3.12-freetype-patch/ext/gd/config.m4 b/tests/expected/php/7.3.12-freetype-patch/ext/gd/config.m4 new file mode 100644 index 000000000..1a32737ce --- /dev/null +++ b/tests/expected/php/7.3.12-freetype-patch/ext/gd/config.m4 @@ -0,0 +1,378 @@ +dnl config.m4 for extension gd + +dnl +dnl Configure options +dnl + +PHP_ARG_WITH(gd, for GD support, +[ --with-gd[=DIR] Include GD support. DIR is the GD library base + install directory [BUNDLED]]) +if test -z "$PHP_WEBP_DIR"; then + PHP_ARG_WITH(webp-dir, for the location of libwebp, + [ --with-webp-dir[=DIR] GD: Set the path to libwebp install prefix], no, no) +fi + +if test -z "$PHP_JPEG_DIR"; then + PHP_ARG_WITH(jpeg-dir, for the location of libjpeg, + [ --with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix], no, no) +fi + +if test -z "$PHP_PNG_DIR"; then + PHP_ARG_WITH(png-dir, for the location of libpng, + [ --with-png-dir[=DIR] GD: Set the path to libpng install prefix], no, no) +fi + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] GD: Set the path to libz install prefix], no, no) +fi + +PHP_ARG_WITH(xpm-dir, for the location of libXpm, +[ --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix], no, no) + +PHP_ARG_WITH(freetype-dir, for FreeType 2, +[ --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix], no, no) + +PHP_ARG_ENABLE(gd-jis-conv, whether to enable JIS-mapped Japanese font support in GD, +[ --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support], no, no) + +dnl +dnl Checks for the configure options +dnl + +AC_DEFUN([PHP_GD_ZLIB],[ + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + AC_MSG_ERROR([Can't find zlib headers under "$PHP_ZLIB_DIR"]) + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi +]) + +AC_DEFUN([PHP_GD_WEBP],[ + if test "$PHP_WEBP_DIR" != "no"; then + + for i in $PHP_WEBP_DIR /usr/local /usr; do + test -f $i/include/webp/decode.h && GD_WEBP_DIR=$i && break + done + + if test -z "$GD_WEBP_DIR"; then + AC_MSG_ERROR([webp/decode.h not found.]) + fi + + for i in $PHP_WEBP_DIR /usr/local /usr; do + test -f $i/include/webp/encode.h && GD_WEBP_DIR=$i && break + done + + if test -z "$GD_WEBP_DIR"; then + AC_MSG_ERROR([webp/encode.h not found.]) + fi + + PHP_CHECK_LIBRARY(webp,WebPGetInfo, + [ + PHP_ADD_INCLUDE($GD_WEBP_DIR/include) + PHP_ADD_LIBRARY(pthread) + PHP_ADD_LIBRARY_WITH_PATH(webp, $GD_WEBP_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libwebp.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_WEBP_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-webp-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_JPEG],[ + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + AC_MSG_ERROR([jpeglib.h not found.]) + fi + + PHP_CHECK_LIBRARY(jpeg,jpeg_read_header, + [ + PHP_ADD_INCLUDE($GD_JPEG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(jpeg, $GD_JPEG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libjpeg.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_JPEG_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-jpeg-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_PNG],[ + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + AC_MSG_ERROR([png.h not found.]) + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=]) + fi + + PHP_CHECK_LIBRARY(png,png_write_image, + [ + PHP_ADD_INCLUDE($GD_PNG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(png, $GD_PNG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.]) + ],[ + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + ]) + + else + AC_MSG_RESULT([If configure fails try --with-png-dir= and --with-zlib-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_XPM],[ + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + AC_MSG_ERROR([xpm.h not found.]) + fi + + PHP_CHECK_LIBRARY(Xpm,XpmFreeXpmImage, + [ + PHP_ADD_INCLUDE($GD_XPM_INC) + PHP_ADD_LIBRARY_WITH_PATH(Xpm, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(X11, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + ]) + else + AC_MSG_RESULT(If configure fails try --with-xpm-dir=) + fi +]) + +AC_DEFUN([PHP_GD_FREETYPE2],[ + if test "$PHP_FREETYPE_DIR" != "no"; then + + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + + AC_MSG_CHECKING([for freetype]) + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -n "$FREETYPE2_CONFIG"; then + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + AC_MSG_RESULT([found in $FREETYPE2_DIR]) + elif test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists freetype2; then + FREETYPE2_DIR=pkg-config + FREETYPE2_CFLAGS=`$PKG_CONFIG freetype2 --cflags` + FREETYPE2_LIBS=`$PKG_CONFIG freetype2 --libs` + AC_MSG_RESULT([found by pkg-config]) + else + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([freetype-config not found.]) + fi + + PHP_EVAL_INCLINE($FREETYPE2_CFLAGS) + PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) + AC_DEFINE(ENABLE_GD_TTF,1,[ ]) + else + AC_MSG_RESULT([If configure fails try --with-freetype-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_JISX0208],[ + if test "$PHP_GD_JIS_CONV" = "yes"; then + USE_GD_JIS_CONV=1 + fi +]) + +AC_DEFUN([PHP_GD_CHECK_VERSION],[ + PHP_CHECK_LIBRARY(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromWebp, [AC_DEFINE(HAVE_GD_WEBP, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromJpeg, [AC_DEFINE(HAVE_GD_JPG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromXpm, [AC_DEFINE(HAVE_GD_XPM, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromBmp, [AC_DEFINE(HAVE_GD_BMP, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageStringFT, [AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdVersionString, [AC_DEFINE(HAVE_GD_LIBVERSION, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) +]) + +dnl +dnl Main GD configure +dnl + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + +dnl PNG is required by GD library + test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_WEBP + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + PHP_GD_JISX0208 +fi + +if test "$PHP_GD" = "yes"; then + GD_MODULE_TYPE=builtin + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_rotate.c libgd/gd_color_match.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \ + libgd/gd_bmp.c" + +dnl check for fabsf and floorf which are available since C99 + AC_CHECK_FUNCS(fabsf floorf) + +dnl These are always available with bundled library + AC_DEFINE(HAVE_GD_BUNDLED, 1, [ ]) + AC_DEFINE(HAVE_GD_PNG, 1, [ ]) + AC_DEFINE(HAVE_GD_BMP, 1, [ ]) + AC_DEFINE(HAVE_GD_CACHE_CREATE, 1, [ ]) + +dnl Make sure the libgd/ is first in the include path + GDLIB_CFLAGS="-DHAVE_LIBPNG" + +dnl Depending which libraries were included to PHP configure, +dnl enable the support in bundled GD library + + if test -n "$GD_WEBP_DIR"; then + AC_DEFINE(HAVE_GD_WEBP, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBWEBP" + fi + + if test -n "$GD_JPEG_DIR"; then + AC_DEFINE(HAVE_GD_JPG, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG" + fi + + if test -n "$GD_XPM_DIR"; then + AC_DEFINE(HAVE_GD_XPM, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM" + fi + + if test -n "$FREETYPE2_DIR"; then + AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ]) + AC_DEFINE(ENABLE_GD_TTF, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF" + fi + + if test -n "$USE_GD_JIS_CONV"; then + AC_DEFINE(USE_GD_JISX0208, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" + fi + +else + + if test "$PHP_GD" != "no"; then + GD_MODULE_TYPE=external + extra_sources="gd_compat.c" + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_WEBP + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + +dnl Header path + for i in include/gd include/gd2 include gd ""; do + test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i" + done + + if test -z "$GD_INCLUDE"; then + AC_MSG_ERROR([Unable to find gd.h anywhere under $PHP_GD]) + fi + +dnl Library path + + PHP_CHECK_LIBRARY(gd, gdSetErrorMethod, + [ + PHP_ADD_LIBRARY_WITH_PATH(gd, $PHP_GD/$PHP_LIBDIR, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBGD, 1, [ ]) + ],[ + AC_MSG_ERROR([Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD]) + ],[ + -L$PHP_GD/$PHP_LIBDIR + ]) + PHP_GD_CHECK_VERSION + + PHP_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE) + fi +fi + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS)) + + if test "$GD_MODULE_TYPE" = "builtin"; then + PHP_ADD_BUILD_DIR($ext_builddir/libgd) + GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS" + GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/" + + PHP_TEST_BUILD(foobar, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ], [char foobar () {}]) + else + GD_HEADER_DIRS="ext/gd/" + GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" + PHP_ADD_INCLUDE($GD_INCLUDE) + PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ]) + fi + + PHP_INSTALL_HEADERS([$GD_HEADER_DIRS]) + PHP_SUBST(GDLIB_CFLAGS) + PHP_SUBST(GD_SHARED_LIBADD) +fi diff --git a/tests/expected/php/7.4.0-apxs-patch/build/Makefile.global b/tests/expected/php/7.4.0-apxs-patch/build/Makefile.global new file mode 100644 index 000000000..816bb2a3e --- /dev/null +++ b/tests/expected/php/7.4.0-apxs-patch/build/Makefile.global @@ -0,0 +1,147 @@ +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d zend_extension=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h + rm -f main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 sapi/phpdbg/phpdbg.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +prof-gen: + CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-generate all + +prof-clean: + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + rm -f libphp$(PHP_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +prof-use: + CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-use all + + +.PHONY: all clean install distclean test prof-gen prof-clean prof-use +.NOEXPORT: diff --git a/tests/expected/php/7.4.0-apxs-patch/configure b/tests/expected/php/7.4.0-apxs-patch/configure new file mode 100755 index 000000000..528cb9134 --- /dev/null +++ b/tests/expected/php/7.4.0-apxs-patch/configure @@ -0,0 +1,93836 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for PHP 7.4.0. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: https://bugs.php.net about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +tagnames=${tagnames+${tagnames},}CXX + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='PHP' +PACKAGE_TARNAME='php' +PACKAGE_VERSION='7.4.0' +PACKAGE_STRING='PHP 7.4.0' +PACKAGE_BUGREPORT='https://bugs.php.net' +PACKAGE_URL='https://www.php.net' + +ac_unique_file="main/php_version.h" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='LTLIBOBJS +LIBTOOL +NMEDIT +DSYMUTIL +STRIP +RANLIB +AR +ECHO +AR_FLAGS +PHP_VERSION_ID +PHP_VERSION +PHP_LIBS +PHP_LDFLAGS +PEAR_INSTALLDIR +NATIVE_RPATHS +INSTALL_IT +EXTRA_INCLUDES +INCLUDES +ZEND_EXTRA_LIBS +EXTRA_LIBS +EXTRA_LDFLAGS_PROGRAM +EXTRA_LDFLAGS +EXTENSION_DIR +DEBUG_CFLAGS +program_suffix +program_prefix +abs_srcdir +abs_builddir +PHP_INSTALLED_SAPIS +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR +EXPANDED_PHP_CONFIG_FILE_PATH +EXPANDED_LOCALSTATEDIR +EXPANDED_SYSCONFDIR +EXPANDED_DATADIR +EXPANDED_LIBDIR +EXPANDED_MANDIR +EXPANDED_SBINDIR +EXPANDED_BINDIR +EXPANDED_EXTENSION_DIR +EXPANDED_PEAR_INSTALLDIR +INCLUDE_PATH +INLINE_CFLAGS +LIBZIP_LIBS +LIBZIP_CFLAGS +EXSLT_LIBS +EXSLT_CFLAGS +XSL_LIBS +XSL_CFLAGS +EXPAT_LIBS +EXPAT_CFLAGS +LIBSODIUM_LIBS +LIBSODIUM_CFLAGS +SNMP_CONFIG +EDIT_LIBS +EDIT_CFLAGS +PDO_OCI_VERSION +PDO_OCI_DIR +PDO_OCI_SHARED_LIBADD +PDO_MYSQL_MODULE_TYPE +FB_CONFIG +ODBC_TYPE +ODBC_LFLAGS +ODBC_LIBS +ODBC_CFLAGS +OCI8_ORACLE_VERSION +OCI8_DIR +OCI8_SHARED_LIBADD +ONIG_LIBS +ONIG_CFLAGS +SASL_LIBS +SASL_CFLAGS +HAVE_CXX11 +CXXCPP +ac_ct_CXX +CXXFLAGS +CXX +ICU_LIBS +ICU_CFLAGS +GDLIB_LIBS +GDLIB_CFLAGS +FREETYPE2_LIBS +FREETYPE2_CFLAGS +XPM_LIBS +XPM_CFLAGS +JPEG_LIBS +JPEG_CFLAGS +WEBP_LIBS +WEBP_CFLAGS +PNG_LIBS +PNG_CFLAGS +FFI_LIBS +FFI_CFLAGS +ENCHANT_LIBS +ENCHANT_CFLAGS +CURL_FEATURES +CURL_LIBS +CURL_CFLAGS +ZLIB_LIBS +ZLIB_CFLAGS +SQLITE_LIBS +SQLITE_CFLAGS +PCRE2_LIBS +PCRE2_CFLAGS +OPENSSL_LIBS +OPENSSL_CFLAGS +KERBEROS_LIBS +KERBEROS_CFLAGS +LIBXML_LIBS +LIBXML_CFLAGS +VALGRIND_LIBS +VALGRIND_CFLAGS +ALLOCA +LIBOBJS +PROG_SENDMAIL +php_fpm_prefix +php_fpm_localstatedir +php_fpm_sysconfdir +php_fpm_group +php_fpm_user +php_fpm_systemd +SYSTEMD_LIBS +SYSTEMD_CFLAGS +SHLIB_DL_SUFFIX_NAME +SHLIB_SUFFIX_NAME +RE2C +YACC +AWK +LN_S +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +CONFIGURE_OPTIONS +CONFIGURE_COMMAND +SED +EGREP +GREP +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_libdir +enable_rpath +enable_re2c_cgoto +enable_gcc_global_regs +enable_ +with_apxs2 +enable_cli +enable_embed +enable_fpm +with_fpm_user +with_fpm_group +with_fpm_systemd +with_fpm_acl +enable_litespeed +enable_phpdbg +enable_phpdbg_webhelper +enable_phpdbg_debug +enable_phpdbg_readline +enable_cgi +with_valgrind +enable_gcov +enable_debug +enable_rtld_now +with_layout +with_config_file_path +with_config_file_scan_dir +enable_sigchild +enable_libgcc +enable_short_tags +enable_dmalloc +enable_ipv6 +enable_dtrace +enable_fd_setsize +enable_werror +enable_all +with_libxml +with_openssl +with_kerberos +with_system_ciphers +with_external_pcre +with_pcre_jit +with_sqlite3 +with_zlib +enable_bcmath +with_bz2 +enable_calendar +enable_ctype +with_curl +enable_dba +with_qdbm +with_gdbm +with_ndbm +with_db4 +with_db3 +with_db2 +with_db1 +with_dbm +with_tcadb +with_lmdb +with_cdb +enable_inifile +enable_flatfile +enable_dom +with_enchant +enable_exif +with_ffi +enable_fileinfo +enable_filter +enable_ftp +with_openssl_dir +enable_gd +with_external_gd +with_webp +with_jpeg +with_xpm +with_freetype +enable_gd_jis_conv +with_gettext +with_gmp +with_mhash +with_iconv +with_imap +with_imap_ssl +enable_intl +enable_json +with_ldap +with_ldap_sasl +enable_mbstring +enable_mbregex +with_mysqli +with_mysql_sock +with_oci8 +with_odbcver +with_adabas +with_sapdb +with_solid +with_ibm_db2 +with_empress +with_empress_bcs +with_custom_odbc +with_iodbc +with_esoob +with_unixODBC +with_dbmaker +enable_opcache +enable_huge_code_pages +enable_pcntl +enable_pdo +with_pdo_dblib +with_pdo_firebird +with_pdo_mysql +with_zlib_dir +with_pdo_oci +with_pdo_odbc +with_pdo_pgsql +with_pdo_sqlite +with_pgsql +enable_phar +enable_posix +with_pspell +with_libedit +with_readline +enable_session +with_mm +enable_shmop +enable_simplexml +with_snmp +enable_soap +enable_sockets +with_sodium +with_password_argon2 +enable_sysvmsg +enable_sysvsem +enable_sysvshm +with_tidy +enable_tokenizer +enable_xml +with_expat +enable_xmlreader +with_xmlrpc +with_iconv_dir +enable_xmlwriter +with_xsl +enable_zend_test +with_zip +enable_mysqlnd +enable_mysqlnd_compression_support +with_pear +enable_maintainer_zts +enable_inline_optimization +enable_zend_signals +with_tsrm_pth +with_tsrm_st +with_tsrm_pthreads +enable_shared +enable_static +enable_fast_install +with_gnu_ld +enable_libtool_lock +with_pic +with_tags +' + ac_precious_vars='build_alias +host_alias +target_alias +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +SYSTEMD_CFLAGS +SYSTEMD_LIBS +VALGRIND_CFLAGS +VALGRIND_LIBS +LIBXML_CFLAGS +LIBXML_LIBS +KERBEROS_CFLAGS +KERBEROS_LIBS +OPENSSL_CFLAGS +OPENSSL_LIBS +PCRE2_CFLAGS +PCRE2_LIBS +SQLITE_CFLAGS +SQLITE_LIBS +ZLIB_CFLAGS +ZLIB_LIBS +CURL_CFLAGS +CURL_LIBS +CURL_FEATURES +ENCHANT_CFLAGS +ENCHANT_LIBS +FFI_CFLAGS +FFI_LIBS +PNG_CFLAGS +PNG_LIBS +WEBP_CFLAGS +WEBP_LIBS +JPEG_CFLAGS +JPEG_LIBS +XPM_CFLAGS +XPM_LIBS +FREETYPE2_CFLAGS +FREETYPE2_LIBS +GDLIB_CFLAGS +GDLIB_LIBS +ICU_CFLAGS +ICU_LIBS +CXX +CXXFLAGS +CCC +CXXCPP +SASL_CFLAGS +SASL_LIBS +ONIG_CFLAGS +ONIG_LIBS +ODBC_CFLAGS +ODBC_LIBS +EDIT_CFLAGS +EDIT_LIBS +LIBSODIUM_CFLAGS +LIBSODIUM_LIBS +EXPAT_CFLAGS +EXPAT_LIBS +XSL_CFLAGS +XSL_LIBS +EXSLT_CFLAGS +EXSLT_LIBS +LIBZIP_CFLAGS +LIBZIP_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures PHP 7.4.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/php] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of PHP 7.4.0:";; + esac + cat <<\_ACEOF + +Optional Features and Packages: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-libdir=NAME Look for libraries in .../NAME rather than .../lib + --disable-rpath Disable passing additional runtime library search + paths + --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc + extension + --disable-gcc-global-regs + whether to enable GCC global register variables + +SAPI modules: + + --with-apxs2[=FILE] Build shared Apache 2 handler module. FILE is the + optional pathname to the Apache apxs tool [apxs] + --disable-cli Disable building CLI version of PHP (this forces + --without-pear) + --enable-embed[=TYPE] EXPERIMENTAL: Enable building of embedded SAPI + library TYPE is either 'shared' or 'static'. + [TYPE=shared] + --enable-fpm Enable building of the fpm SAPI executable + --with-fpm-user[=USER] Set the user for php-fpm to run as. (default: + nobody) + --with-fpm-group[=GRP] Set the group for php-fpm to run as. For a system + user, this should usually be set to match the fpm + username (default: nobody) + --with-fpm-systemd Activate systemd integration + --with-fpm-acl Use POSIX Access Control Lists + --enable-litespeed Build PHP as litespeed module + --enable-phpdbg Build phpdbg + --enable-phpdbg-webhelper + Build phpdbg web SAPI support + --enable-phpdbg-debug Build phpdbg in debug mode + --enable-phpdbg-readline + Enable readline support in phpdbg (depends on static + ext/readline) + --disable-cgi Disable building CGI version of PHP + --with-valgrind Enable valgrind support + +General settings: + + --enable-gcov Enable GCOV code coverage - FOR DEVELOPERS ONLY!! + --enable-debug Compile with debugging symbols + --enable-rtld-now Use dlopen with RTLD_NOW instead of RTLD_LAZY + --with-layout=TYPE Set how installed files will be laid out. Type can + be either PHP or GNU [PHP] + --with-config-file-path=PATH + Set the path in which to look for php.ini + [PREFIX/lib] + --with-config-file-scan-dir=PATH + Set the path where to scan for configuration files + --enable-sigchild Enable PHP's own SIGCHLD handler + --enable-libgcc Enable explicitly linking against libgcc + --disable-short-tags Disable the short-form = 1.0.1) + --with-kerberos OPENSSL: Include Kerberos support + --with-system-ciphers OPENSSL: Use system default cipher list instead of + hardcoded value + --with-external-pcre Use external library for PCRE support + --with-pcre-jit Enable PCRE JIT functionality + --without-sqlite3 Do not include SQLite3 support. + --with-zlib Include ZLIB support (requires zlib >= 1.2.0.4) + --enable-bcmath Enable bc style precision math functions + --with-bz2[=DIR] Include BZip2 support + --enable-calendar Enable support for calendar conversion + --disable-ctype Disable ctype functions + --with-curl Include cURL support + --enable-dba Build DBA with bundled modules. To build shared DBA + extension use --enable-dba=shared + --with-qdbm[=DIR] DBA: QDBM support + --with-gdbm[=DIR] DBA: GDBM support + --with-ndbm[=DIR] DBA: NDBM support + --with-db4[=DIR] DBA: Oracle Berkeley DB 4.x or 5.x support + --with-db3[=DIR] DBA: Oracle Berkeley DB 3.x support + --with-db2[=DIR] DBA: Oracle Berkeley DB 2.x support + --with-db1[=DIR] DBA: Oracle Berkeley DB 1.x support/emulation + --with-dbm[=DIR] DBA: DBM support + --with-tcadb[=DIR] DBA: Tokyo Cabinet abstract DB support + --with-lmdb[=DIR] DBA: Lightning memory-mapped database support + --without-cdb[=DIR] DBA: CDB support (bundled) + --disable-inifile DBA: INI support (bundled) + --disable-flatfile DBA: FlatFile support (bundled) + --disable-dom Disable DOM support + --with-enchant Include Enchant support + --enable-exif Enable EXIF (metadata from images) support + --with-ffi Include FFI support + --disable-fileinfo Disable fileinfo support + --disable-filter Disable input filter support + --enable-ftp Enable FTP support + --with-openssl-dir[=DIR] + FTP: openssl install prefix + --enable-gd Include GD support + --with-external-gd Use external libgd + --with-webp GD: Enable WEBP support (only for bundled libgd) + --with-jpeg GD: Enable JPEG support (only for bundled libgd) + --with-xpm GD: Enable XPM support (only for bundled libgd) + --with-freetype GD: Enable FreeType 2 support (only for bundled + libgd) + --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support (only + for bundled libgd) + --with-gettext[=DIR] Include GNU gettext support + --with-gmp[=DIR] Include GNU MP support + --with-mhash Include mhash support + --without-iconv[=DIR] Exclude iconv support + --with-imap[=DIR] Include IMAP support. DIR is the c-client install + prefix + --with-kerberos IMAP: Include Kerberos support + --with-imap-ssl[=DIR] IMAP: Include SSL support. DIR is the OpenSSL + install prefix + --enable-intl Enable internationalization support + --disable-json Disable JavaScript Object Serialization support + --with-ldap[=DIR] Include LDAP support + --with-ldap-sasl LDAP: Build with Cyrus SASL support + --enable-mbstring Enable multibyte string support + --disable-mbregex MBSTRING: Disable multibyte regex support + --with-mysqli[=FILE] Include MySQLi support. FILE is the path to + mysql_config. If no value or mysqlnd is passed as + FILE, the MySQL native driver will be used + --with-mysql-sock[=SOCKPATH] + MySQLi/PDO_MYSQL: Location of the MySQL unix socket + pointer. If unspecified, the default locations are + searched + --with-oci8[=DIR] Include Oracle Database OCI8 support. DIR defaults + to $ORACLE_HOME. Use + --with-oci8=instantclient,/path/to/instant/client/lib + to use an Oracle Instant Client installation + --with-odbcver[=HEX] Force support for the passed ODBC version. A hex + number is expected, default 0x0350. Use the special + value of 0 to prevent an explicit ODBCVER to be + defined. + --with-adabas[=DIR] Include Adabas D support [/usr/local] + --with-sapdb[=DIR] Include SAP DB support [/usr/local] + --with-solid[=DIR] Include Solid support [/usr/local/solid] + --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib] + --with-empress[=DIR] Include Empress support $EMPRESSPATH (Empress + Version >= 8.60 required) + --with-empress-bcs[=DIR] + Include Empress Local Access support $EMPRESSPATH + (Empress Version >= 8.60 required) + --with-custom-odbc[=DIR] + Include user defined ODBC support. DIR is ODBC + install base directory [/usr/local]. Make sure to + define CUSTOM_ODBC_LIBS and have some odbc.h in your + include dirs. For example, you should define + following for Sybase SQL Anywhere 5.5.00 on QNX, + prior to running this configure script: + CPPFLAGS="-DODBC_QNX -DSQLANY_BUG" LDFLAGS=-lunix + CUSTOM_ODBC_LIBS="-ldblib -lodbc" + --with-iodbc Include iODBC support + --with-esoob[=DIR] Include Easysoft OOB support + [/usr/local/easysoft/oob/client] + --with-unixODBC Include unixODBC support + --with-dbmaker[=DIR] Include DBMaker support + --disable-opcache Disable Zend OPcache support + --disable-huge-code-pages + Disable copying PHP CODE pages into HUGE PAGES + --enable-pcntl Enable pcntl support (CLI/CGI only) + --disable-pdo Disable PHP Data Objects support + --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home + directory + --with-pdo-firebird[=DIR] + PDO: Firebird support. DIR is the Firebird base + install directory [/opt/firebird] + --with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directory. + If no value or mysqlnd is passed as DIR, the MySQL + native driver will be used + --with-zlib-dir[=DIR] PDO_MySQL: Set the path to libz install prefix + --with-pdo-oci[=DIR] PDO: Oracle OCI support. DIR defaults to + $ORACLE_HOME. Use + --with-pdo-oci=instantclient,/path/to/instant/client/lib + for an Oracle Instant Client installation. + --with-pdo-odbc=flavour,dir + PDO: Support for 'flavour' ODBC driver. The include + and lib dirs are looked for under 'dir'. The + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, + generic. If ',dir' part is omitted, default for the + flavour you have selected will be used. e.g.: + --with-pdo-odbc=unixODBC will check for unixODBC + under /usr/local. You may attempt to use an + otherwise unsupported driver using the 'generic' + flavour. The syntax for generic ODBC support is: + --with-pdo-odbc=generic,dir,libname,ldflags,cflags. + When built as 'shared' the extension filename is + always pdo_odbc.so + --with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base + install directory or the path to pg_config + --without-pdo-sqlite PDO: sqlite 3 support. + --with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL + base install directory or the path to pg_config + --disable-phar Disable phar support + --disable-posix Disable POSIX-like functions + --with-pspell[=DIR] Include PSPELL support. GNU Aspell version 0.50.0 or + higher required + --with-libedit Include libedit readline replacement (CLI/CGI only) + --with-readline[=DIR] Include readline support (CLI/CGI only) + --disable-session Disable session support + --with-mm[=DIR] SESSION: Include mm support for session storage + --enable-shmop Enable shmop support + --disable-simplexml Disable SimpleXML support + --with-snmp[=DIR] Include SNMP support + --with-openssl-dir[=DIR] + SNMP: openssl install prefix + --enable-soap Enable SOAP support + --enable-sockets Enable sockets support + --with-sodium Include sodium support + --with-password-argon2[=DIR] + Include Argon2 support in password_*. DIR is the + Argon2 shared library path + --enable-sysvmsg Enable sysvmsg support + --enable-sysvsem Enable System V semaphore support + --enable-sysvshm Enable the System V shared memory support + --with-tidy[=DIR] Include TIDY support + --disable-tokenizer Disable tokenizer support + --disable-xml Disable XML support + --with-expat XML: use expat instead of libxml2 + --disable-xmlreader Disable XMLReader support + --with-xmlrpc[=DIR] Include XMLRPC-EPI support + --with-expat XMLRPC-EPI: use expat instead of libxml2 + --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI + --disable-xmlwriter Disable XMLWriter support + --with-xsl Build with XSL support + --enable-zend-test Enable zend-test extension + --with-zip Include Zip read/write support + --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions + --disable-mysqlnd-compression-support + Disable support for the MySQL compressed protocol in + mysqlnd + +PEAR: + + --with-pear[=DIR] Install PEAR in DIR [PREFIX/lib/php] + +Zend: + + --enable-maintainer-zts Enable thread safety - for code maintainers only!! + --disable-inline-optimization + If building zend_execute.lo fails, try this switch + --disable-zend-signals whether to enable zend signal handling + +TSRM: + + --with-tsrm-pth[=pth-config] + Use GNU Pth + --with-tsrm-st Use SGI's State Threads + --with-tsrm-pthreads Use POSIX threads (default) + +Libtool: + + --enable-shared=PKGS Build shared libraries default=yes + --enable-static=PKGS Build static libraries default=yes + --enable-fast-install=PKGS + Optimize for fast installation default=yes + --with-gnu-ld Assume the C compiler uses GNU ld default=no + --disable-libtool-lock Avoid locking (might break parallel builds) + --with-pic Try to use only PIC/non-PIC objects default=use both + --with-tags=TAGS Include additional configurations automatic + + +Some influential environment variables: + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + SYSTEMD_CFLAGS + C compiler flags for SYSTEMD, overriding pkg-config + SYSTEMD_LIBS + linker flags for SYSTEMD, overriding pkg-config + VALGRIND_CFLAGS + C compiler flags for VALGRIND, overriding pkg-config + VALGRIND_LIBS + linker flags for VALGRIND, overriding pkg-config + LIBXML_CFLAGS + C compiler flags for LIBXML, overriding pkg-config + LIBXML_LIBS linker flags for LIBXML, overriding pkg-config + KERBEROS_CFLAGS + C compiler flags for KERBEROS, overriding pkg-config + KERBEROS_LIBS + linker flags for KERBEROS, overriding pkg-config + OPENSSL_CFLAGS + C compiler flags for OPENSSL, overriding pkg-config + OPENSSL_LIBS + linker flags for OPENSSL, overriding pkg-config + PCRE2_CFLAGS + C compiler flags for PCRE2, overriding pkg-config + PCRE2_LIBS linker flags for PCRE2, overriding pkg-config + SQLITE_CFLAGS + C compiler flags for SQLITE, overriding pkg-config + SQLITE_LIBS linker flags for SQLITE, overriding pkg-config + ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config + ZLIB_LIBS linker flags for ZLIB, overriding pkg-config + CURL_CFLAGS C compiler flags for CURL, overriding pkg-config + CURL_LIBS linker flags for CURL, overriding pkg-config + CURL_FEATURES + value of supported_features for libcurl, overriding pkg-config + ENCHANT_CFLAGS + C compiler flags for ENCHANT, overriding pkg-config + ENCHANT_LIBS + linker flags for ENCHANT, overriding pkg-config + FFI_CFLAGS C compiler flags for FFI, overriding pkg-config + FFI_LIBS linker flags for FFI, overriding pkg-config + PNG_CFLAGS C compiler flags for PNG, overriding pkg-config + PNG_LIBS linker flags for PNG, overriding pkg-config + WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config + WEBP_LIBS linker flags for WEBP, overriding pkg-config + JPEG_CFLAGS C compiler flags for JPEG, overriding pkg-config + JPEG_LIBS linker flags for JPEG, overriding pkg-config + XPM_CFLAGS C compiler flags for XPM, overriding pkg-config + XPM_LIBS linker flags for XPM, overriding pkg-config + FREETYPE2_CFLAGS + C compiler flags for FREETYPE2, overriding pkg-config + FREETYPE2_LIBS + linker flags for FREETYPE2, overriding pkg-config + GDLIB_CFLAGS + C compiler flags for GDLIB, overriding pkg-config + GDLIB_LIBS linker flags for GDLIB, overriding pkg-config + ICU_CFLAGS C compiler flags for ICU, overriding pkg-config + ICU_LIBS linker flags for ICU, overriding pkg-config + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + SASL_CFLAGS C compiler flags for SASL, overriding pkg-config + SASL_LIBS linker flags for SASL, overriding pkg-config + ONIG_CFLAGS C compiler flags for ONIG, overriding pkg-config + ONIG_LIBS linker flags for ONIG, overriding pkg-config + ODBC_CFLAGS C compiler flags for ODBC, overriding pkg-config + ODBC_LIBS linker flags for ODBC, overriding pkg-config + EDIT_CFLAGS C compiler flags for EDIT, overriding pkg-config + EDIT_LIBS linker flags for EDIT, overriding pkg-config + LIBSODIUM_CFLAGS + C compiler flags for LIBSODIUM, overriding pkg-config + LIBSODIUM_LIBS + linker flags for LIBSODIUM, overriding pkg-config + EXPAT_CFLAGS + C compiler flags for EXPAT, overriding pkg-config + EXPAT_LIBS linker flags for EXPAT, overriding pkg-config + XSL_CFLAGS C compiler flags for XSL, overriding pkg-config + XSL_LIBS linker flags for XSL, overriding pkg-config + EXSLT_CFLAGS + C compiler flags for EXSLT, overriding pkg-config + EXSLT_LIBS linker flags for EXSLT, overriding pkg-config + LIBZIP_CFLAGS + C compiler flags for LIBZIP, overriding pkg-config + LIBZIP_LIBS linker flags for LIBZIP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +PHP home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +PHP configure 7.4.0 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ----------------------------------- ## +## Report this to https://bugs.php.net ## +## ----------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by PHP $as_me 7.4.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_aux_dir= +for ac_dir in build "$srcdir"/build; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SED" + + + + test -f config.nice && mv config.nice config.nice.old + rm -f config.nice.old + cat >config.nice<> config.nice + if test `expr "X$ac_configure_args" : ".*${var}.*"` != 0; then + clean_configure_args=$(echo $clean_configure_args | sed -e "s#'$var=$val'##") + fi + fi + done + + echo "'$0' \\" >> config.nice + if test `expr " $0" : " '.*"` = 0; then + CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'" + else + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0" + fi + CONFIGURE_ARGS="$clean_configure_args" + while test "X$CONFIGURE_ARGS" != "X"; + do + if CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\('[^']*'\)"` + then + CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *'[^']*' \(.*\)"` + elif CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\([^ ]*\)"` + then + CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *[^ ]* \(.*\)"` + CURRENT_ARG="'$CURRENT_ARG'" + else + break + fi + $as_echo "$CURRENT_ARG \\" >>config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $CURRENT_ARG" + done + echo '"$@"' >> config.nice + chmod +x config.nice + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS" + + + + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set!" "$LINENO" 5 + fi + + +ac_config_headers="$ac_config_headers main/php_config.h" + + + + + +ac_IFS=$IFS; IFS="." +set $(echo 7.4.0 | "${SED}" 's/\([0-9\.]*\)\(.*\)/\1\.\2/') +IFS=$ac_IFS +PHP_MAJOR_VERSION=$1 +PHP_MINOR_VERSION=$2 +PHP_RELEASE_VERSION=$3 +PHP_EXTRA_VERSION=$4 +PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" +PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION" + + + + +echo "/* automatically generated by configure */" > php_version.h.new +echo "/* edit configure.ac to change version number */" >> php_version.h.new +echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new +echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new +echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new +echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new +cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 +if test $? -ne 0 ; then + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' +else + rm -f php_version.h.new +fi + + +php_shtool=$srcdir/build/shtool +T_MD=`$php_shtool echo -n -e %B` +T_ME=`$php_shtool echo -n -e %b` + + +test -d include || $php_shtool mkdir include +> Makefile.objects +> Makefile.fragments +pattern=define +$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null + + +test -z "$CFLAGS" && auto_cflags=1 + +abs_srcdir=`(cd $srcdir; pwd)` +abs_builddir=`pwd` + + +$php_shtool mkdir -p libs +rm -f libs/* + + + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in cc gcc + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cc gcc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 +$as_echo_n "checking for icc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__INTEL_COMPILER +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + ICC="yes" + GCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + + + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 +$as_echo_n "checking for suncc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__SUNPRO_C +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then : + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + SUNCC="yes" + GCC="no" + test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + GCC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + +php_with_libdir=lib + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 +$as_echo_n "checking for system library directory... " >&6; } + +# Check whether --with-libdir was given. +if test "${with_libdir+set}" = set; then : + withval=$with_libdir; PHP_LIBDIR=$withval +else + + PHP_LIBDIR=lib + + +fi + + +ext_output=$PHP_LIBDIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_rpath=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 +$as_echo_n "checking whether to enable runpaths... " >&6; } +# Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; PHP_RPATH=$enableval +else + + PHP_RPATH=yes + + +fi + + +ext_output=$PHP_RPATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 +$as_echo_n "checking if compiler supports -R... " >&6; } +if ${php_cv_cc_dashr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-R /usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_dashr=yes +else + php_cv_cc_dashr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 +$as_echo "$php_cv_cc_dashr" >&6; } +if test $php_cv_cc_dashr = "yes"; then + ld_runpath_switch=-R +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 +$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } + if ${php_cv_cc_rpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_rpath=yes +else + php_cv_cc_rpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 +$as_echo "$php_cv_cc_rpath" >&6; } + if test $php_cv_cc_rpath = "yes"; then + ld_runpath_switch=-Wl,-rpath, + else + ld_runpath_switch=-L + fi +fi +if test "$PHP_RPATH" = "no"; then + ld_runpath_switch= +fi + + + + for ac_prog in gawk nawk awk mawk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/xpg4/bin/:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done +test -n "$AWK" || AWK="bork" + + case "$AWK" in + *mawk) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 +$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} + ;; + *gawk) + ;; + bork) + as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 +$as_echo_n "checking if $AWK is broken... " >&6; } + if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + as_fn_error $? "You should install GNU awk" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST AWK" + + + + # Extract the first word of "bison", so it can be a program name with args. +set dummy bison; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_YACC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_YACC="bison" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + php_bison_required_version="3.0.0" + php_bison_excluded_versions='none' + + if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } + + php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z) + ac_IFS=$IFS; IFS="." + set $php_bison_version + IFS=$ac_IFS + php_bison_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_bison_branch="$1.$2" + php_bison_check=ok + + if test -z "$php_bison_required_version" && test -z "$php_bison_num"; then + php_bison_check=invalid + elif test -n "$php_bison_required_version"; then + ac_IFS=$IFS; IFS="." + set $php_bison_required_version + IFS=$ac_IFS + php_bison_required_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_bison_required_version="$php_bison_required_version or later" + + if test -z "$php_bison_num" || test "$php_bison_num" -lt "$php_bison_required_num"; then + php_bison_check=invalid + fi + fi + + for php_bison_check_version in $php_bison_excluded_versions; do + if test "$php_bison_version" = "$php_bison_check_version" || test "$php_bison_branch" = "$php_bison_check_version"; then + php_bison_check=invalid + break + fi + done + + if test "$php_bison_check" != "invalid"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version (ok)" >&5 +$as_echo "$php_bison_version (ok)" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version" >&5 +$as_echo "$php_bison_version" >&6; } + fi + fi + + case $php_bison_check in + ""|invalid) + if test ! -f "$abs_srcdir/Zend/zend_language_parser.h" || test ! -f "$abs_srcdir/Zend/zend_language_parser.c"; then + as_fn_error $? "bison $php_bison_required_version is required to generate PHP parsers (excluded versions: $php_bison_excluded_versions)." "$LINENO" 5 + fi + + YACC="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST YACC" + + + + # Extract the first word of "re2c", so it can be a program name with args. +set dummy re2c; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RE2C+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RE2C"; then + ac_cv_prog_RE2C="$RE2C" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RE2C="re2c" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RE2C=$ac_cv_prog_RE2C +if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 +$as_echo "$RE2C" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + php_re2c_required_version="0.13.4" + + if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 +$as_echo_n "checking for re2c version... " >&6; } + + php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null) + ac_IFS=$IFS; IFS="." + set $php_re2c_version + IFS=$ac_IFS + php_re2c_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_re2c_check=ok + + if test -z "$php_re2c_required_version" && test -z "$php_re2c_num"; then + php_re2c_check=invalid + elif test -n "$php_re2c_required_version"; then + ac_IFS=$IFS; IFS="." + set $php_re2c_required_version + IFS=$ac_IFS + php_re2c_required_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_re2c_required_version="$php_re2c_required_version or later" + + if test -z "$php_re2c_num" || test "$php_re2c_num" -lt "$php_re2c_required_num"; then + php_re2c_check=invalid + fi + fi + + if test "$php_re2c_check" != "invalid"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version (ok)" >&5 +$as_echo "$php_re2c_version (ok)" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version" >&5 +$as_echo "$php_re2c_version" >&6; } + fi + fi + + case $php_re2c_check in + ""|invalid) + if test ! -f "$abs_srcdir/Zend/zend_language_scanner.c"; then + as_fn_error $? "re2c $php_re2c_required_version is required to generate PHP lexers." "$LINENO" 5 + fi + + RE2C="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C" + + + + +php_enable_re2c_cgoto=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 +$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; } +# Check whether --enable-re2c-cgoto was given. +if test "${enable_re2c_cgoto+set}" = set; then : + enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval +else + + PHP_RE2C_CGOTO=no + + +fi + + +ext_output=$PHP_RE2C_CGOTO +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RE2C_CGOTO" = "no"; then + RE2C_FLAGS="" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 +$as_echo_n "checking whether re2c -g works... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +int main(int argc, const char **argv) +{ + argc = argc; + argv = argv; +label1: +label2: + static void *adr[] = { &&label1, &&label2}; + goto *adr[0]; + return 0; +} + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + RE2C_FLAGS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + RE2C_FLAGS="-g" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS" + + + +case $host_cpu in + alpha*) + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -mieee" + else + CFLAGS="$CFLAGS -ieee" + fi + ;; + sparc*) + if test "$SUNCC" = "yes"; then + CFLAGS="$CFLAGS -xmemalign=8s" + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 +$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; } +if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -fvisibility=hidden" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___fvisibility_hidden=yes +else + ax_cv_check_cflags___fvisibility_hidden=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 +$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; } +if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then : + CFLAGS="$CFLAGS -fvisibility=hidden" +else + : +fi + + +case $host_alias in + *solaris*) + CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then + enable_libgcc=yes + fi + ;; + *dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" + ;; + *darwin*) + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5 +$as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; } +if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -no-cpp-precomp -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5 +$as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_no_cpp_precomp=yes + else + : + + fi + + if test "$gcc_no_cpp_precomp" = "yes"; then + CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + fi + fi + ;; + *mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV" + ;; + *hpux*) + if test "$GCC" = "yes"; then + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5 +$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; } +case $host_alias in + i?86-*-linux*|i?86-*-freebsd*) + if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then + with_pic=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 +$as_echo_n "checking whether /dev/urandom exists... " >&6; } +if test -r "/dev/urandom" && test -c "/dev/urandom"; then + +$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# Check whether --enable-gcc-global-regs was given. +if test "${enable_gcc_global_regs+set}" = set; then : + enableval=$enable_gcc_global_regs; ZEND_GCC_GLOBAL_REGS=$enableval +else + ZEND_GCC_GLOBAL_REGS=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for global register variables support" >&5 +$as_echo_n "checking for global register variables support... " >&6; } +if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined(__GNUC__) +# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) +#else +# define ZEND_GCC_VERSION 0 +#endif +#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386) +# define ZEND_VM_FP_GLOBAL_REG "%esi" +# define ZEND_VM_IP_GLOBAL_REG "%edi" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__) +# define ZEND_VM_FP_GLOBAL_REG "%r14" +# define ZEND_VM_IP_GLOBAL_REG "%r15" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__powerpc64__) +# define ZEND_VM_FP_GLOBAL_REG "r28" +# define ZEND_VM_IP_GLOBAL_REG "r29" +#elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__) +# define ZEND_VM_FP_GLOBAL_REG "r28" +# define ZEND_VM_IP_GLOBAL_REG "r29" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__) +# define ZEND_VM_FP_GLOBAL_REG "x27" +# define ZEND_VM_IP_GLOBAL_REG "x28" +#else +# error "global register variables are not supported" +#endif +typedef int (*opcode_handler_t)(void); +register void *FP __asm__(ZEND_VM_FP_GLOBAL_REG); +register const opcode_handler_t *IP __asm__(ZEND_VM_IP_GLOBAL_REG); +int emu(const opcode_handler_t *ip, void *fp) { + const opcode_handler_t *orig_ip = IP; + void *orig_fp = FP; + IP = ip; + FP = fp; + while ((*ip)()); + FP = orig_fp; + IP = orig_ip; +} + +int +main () +{ + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ZEND_GCC_GLOBAL_REGS=yes + +else + + ZEND_GCC_GLOBAL_REGS=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +if test "$ZEND_GCC_GLOBAL_REGS" = "yes"; then + +$as_echo "#define HAVE_GCC_GLOBAL_REGS 1" >>confdefs.h + +else + HAVE_GCC_GLOBAL_REGS=no +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_GCC_GLOBAL_REGS" >&5 +$as_echo "$ZEND_GCC_GLOBAL_REGS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5 +$as_echo_n "checking whether atof() accepts NAN... " >&6; } +if ${ac_cv_atof_accept_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_nan=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isnan(atof("NAN")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_nan=yes + +else + + ac_cv_atof_accept_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5 +$as_echo "$ac_cv_atof_accept_nan" >&6; } +if test "$ac_cv_atof_accept_nan" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5 +$as_echo_n "checking whether atof() accepts INF... " >&6; } +if ${ac_cv_atof_accept_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_inf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_inf=yes + +else + + ac_cv_atof_accept_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5 +$as_echo "$ac_cv_atof_accept_inf" >&6; } +if test "$ac_cv_atof_accept_inf" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5 +$as_echo_n "checking whether HUGE_VAL == INF... " >&6; } +if ${ac_cv_huge_val_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_inf=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(HUGE_VAL) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_inf=yes + +else + + ac_cv_huge_val_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5 +$as_echo "$ac_cv_huge_val_inf" >&6; } +if test "$ac_cv_huge_val_inf" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5 +$as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; } +if ${ac_cv_huge_val_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_nan=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ +#if defined(__sparc__) && !(__GNUC__ >= 3) + /* prevent bug #27830 */ + return 1; +#else + return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1; +#endif +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_nan=yes + +else + + ac_cv_huge_val_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5 +$as_echo "$ac_cv_huge_val_nan" >&6; } +if test "$ac_cv_huge_val_nan" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __cpuid_count is available" >&5 +$as_echo_n "checking whether __cpuid_count is available... " >&6; } +if ${ac_cv_cpuid_count_available+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned eax, ebx, ecx, edx; + __cpuid_count(0, 0, eax, ebx, ecx, edx); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + ac_cv_cpuid_count_available=yes + +else + + ac_cv_cpuid_count_available=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpuid_count_available" >&5 +$as_echo "$ac_cv_cpuid_count_available" >&6; } +if test "$ac_cv_cpuid_count_available" = "yes"; then + +$as_echo "#define HAVE_CPUID_COUNT 1" >>confdefs.h + +fi + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_cflags= +if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then + pthreads_working="yes" +fi + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME" + + + + SHLIB_SUFFIX_NAME=so + SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME + case $host_alias in + *hpux*) + SHLIB_SUFFIX_NAME=sl + SHLIB_DL_SUFFIX_NAME=sl + ;; + *darwin*) + SHLIB_SUFFIX_NAME=dylib + SHLIB_DL_SUFFIX_NAME=so + ;; + esac + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + +PHP_SAPI=none + + +SAPI_SHARED=libs/libphp$PHP_VERSION.$SHLIB_DL_SUFFIX_NAME +SAPI_STATIC=libs/libphp$PHP_VERSION.a +SAPI_LIBTOOL=libphp$PHP_VERSION.la + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 +$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; } + + + + + + + + + + +php_with_apxs2=no + + + +# Check whether --with-apxs2 was given. +if test "${with_apxs2+set}" = set; then : + withval=$with_apxs2; PHP_APXS2=$withval +else + + PHP_APXS2=no + + +fi + + +ext_output=$PHP_APXS2 + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2 handler module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2 handler module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2" != "no"; then + if test "$PHP_APXS2" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2 + else + + ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -lt 2000044; then + as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php7" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php7" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2handler" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2handler + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2handler" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2handler in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_php7.c sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects</dev/null | grep 'threaded:.*yes'` + if test -n "$APACHE_THREADED_MPM"; then + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_cli=yes + + +# Check whether --enable-cli was given. +if test "${enable_cli+set}" = set; then : + enableval=$enable_cli; PHP_CLI=$enableval +else + + PHP_CLI=yes + + +fi + + +ext_output=$PHP_CLI + + + + + +for ac_func in setproctitle +do : + ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SETPROCTITLE 1 +_ACEOF + +fi +done + + +for ac_header in sys/pstat.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_pstat_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_PSTAT_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 +$as_echo_n "checking for PS_STRINGS... " >&6; } +if ${cli_cv_var_PS_STRINGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +PS_STRINGS->ps_nargvstr = 1; +PS_STRINGS->ps_argvstr = "foo"; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cli_cv_var_PS_STRINGS=yes +else + cli_cv_var_PS_STRINGS=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 +$as_echo "$cli_cv_var_PS_STRINGS" >&6; } +if test "$cli_cv_var_PS_STRINGS" = yes ; then + +$as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 +$as_echo_n "checking for CLI build... " >&6; } +if test "$PHP_CLI" != "no"; then + + src=$abs_srcdir/sapi/cli/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_CLI_PATH=sapi/cli/php + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cli" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cli + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cli" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cli" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS" + + + case sapi/cli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + else + BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + fi + ;; + *darwin*) + BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + *) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + esac + + PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1" + + + + + for header_file in sapi/cli/cli.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 +$as_echo "$PHP_CLI" >&6; } + + + + + +php_enable_embed=no + + +# Check whether --enable-embed was given. +if test "${enable_embed+set}" = set; then : + enableval=$enable_embed; PHP_EMBED=$enableval +else + + PHP_EMBED=no + + +fi + + +ext_output=$PHP_EMBED + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 +$as_echo_n "checking for embedded SAPI library support... " >&6; } + +if test "$PHP_EMBED" != "no"; then + case "$PHP_EMBED" in + yes|shared) + PHP_EMBED_TYPE=shared + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + static) + PHP_EMBED_TYPE=static + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + *) + PHP_EMBED_TYPE=no + ;; + esac + if test "$PHP_EMBED_TYPE" != "no"; then + + if test "$PHP_EMBED_TYPE" = "program"; then + PHP_BINARIES="$PHP_BINARIES embed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=embed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/embed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed" + + + case "$PHP_EMBED_TYPE" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/embed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_embed.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_EMBED_TYPE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_fpm=no + + +# Check whether --enable-fpm was given. +if test "${enable_fpm+set}" = set; then : + enableval=$enable_fpm; PHP_FPM=$enableval +else + + PHP_FPM=no + + +fi + + +ext_output=$PHP_FPM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 +$as_echo_n "checking for FPM build... " >&6; } +if test "$PHP_FPM" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 +$as_echo "$PHP_FPM" >&6; } + + + for ac_func in clearenv setproctitle setproctitle_fast +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +for ac_lib in '' socket; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_socket+:} false; then : + break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else + ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +$as_echo_n "checking for library containing inet_addr... " >&6; } +if ${ac_cv_search_inet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_addr (); +int +main () +{ +return inet_addr (); + ; + return 0; +} +_ACEOF +for ac_lib in '' nsl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_inet_addr=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_inet_addr+:} false; then : + break +fi +done +if ${ac_cv_search_inet_addr+:} false; then : + +else + ac_cv_search_inet_addr=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +$as_echo "$ac_cv_search_inet_addr" >&6; } +ac_res=$ac_cv_search_inet_addr +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 +$as_echo_n "checking for prctl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +prctl(0, 0, 0, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PRCTL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + have_clock_gettime=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 +$as_echo_n "checking for clock_gettime... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +$as_echo_n "checking for clock_gettime in -lrt... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lrt" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test "$have_clock_gettime" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h + + fi + + have_clock_get_time=no + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 +$as_echo_n "checking for clock_get_time... " >&6; } + + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5 +$as_echo "no (cross-compiling)" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include + + int main() + { + kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime; + ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock); + + if (ret != KERN_SUCCESS) { + return 1; + } + + ret = clock_get_time(aClock, &aTime); + if (ret != KERN_SUCCESS) { + return 2; + } + + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_clock_get_time=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_clock_get_time" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h + + fi + + + have_ptrace=no + have_broken_ptrace=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 +$as_echo_n "checking for ptrace... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include +int +main () +{ +ptrace(0, 0, (void *) 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 +$as_echo_n "checking whether ptrace works... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +$as_echo "skipped (cross-compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + #include + + #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH) + #define PTRACE_ATTACH PT_ATTACH + #endif + + #if !defined(PTRACE_DETACH) && defined(PT_DETACH) + #define PTRACE_DETACH PT_DETACH + #endif + + #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D) + #define PTRACE_PEEKDATA PT_READ_D + #endif + + int main() + { + long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */ + long v2; + pid_t child; + int status; + + if ( (child = fork()) ) { /* parent */ + int ret = 0; + + if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) { + return 2; + } + + waitpid(child, &status, 0); + + #ifdef PT_IO + struct ptrace_io_desc ptio = { + .piod_op = PIOD_READ_D, + .piod_offs = &v1, + .piod_addr = &v2, + .piod_len = sizeof(v1) + }; + + if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) { + ret = 3; + } + #else + errno = 0; + + v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0); + + if (errno) { + ret = 4; + } + #endif + ptrace(PTRACE_DETACH, child, (void *) 1, 0); + + kill(child, SIGKILL); + + return ret ? ret : (v1 != v2); + } + else { /* child */ + sleep(10); + return 0; + } + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_ptrace=no + have_broken_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_ptrace" = "yes"; then + +$as_echo "#define HAVE_PTRACE 1" >>confdefs.h + + fi + + have_mach_vm_read=no + + if test "$have_broken_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 +$as_echo_n "checking for mach_vm_read... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_mach_vm_read=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$have_mach_vm_read" = "yes"; then + +$as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h + + fi + + proc_mem_file="" + + if test -r /proc/$$/mem ; then + proc_mem_file="mem" + else + if test -r /proc/$$/as ; then + proc_mem_file="as" + fi + fi + + if test -n "$proc_mem_file" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 +$as_echo_n "checking for proc mem file... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +$as_echo "skipped (cross-compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #define _FILE_OFFSET_BITS 64 + #include + #include + #include + #include + #include + #include + int main() + { + long v1 = (unsigned int) -1, v2 = 0; + char buf[128]; + int fd; + sprintf(buf, "/proc/%d/$proc_mem_file", getpid()); + fd = open(buf, O_RDONLY); + if (0 > fd) { + return 1; + } + if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) { + close(fd); + return 1; + } + close(fd); + return v1 != v2; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 +$as_echo "$proc_mem_file" >&6; } + +else + + proc_mem_file="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -n "$proc_mem_file"; then + +cat >>confdefs.h <<_ACEOF +#define PROC_MEM_FILE "$proc_mem_file" +_ACEOF + + fi + + fpm_trace_type="" + + if test "$have_ptrace" = "yes"; then + fpm_trace_type=ptrace + + elif test -n "$proc_mem_file"; then + fpm_trace_type=pread + + elif test "$have_mach_vm_read" = "yes" ; then + fpm_trace_type=mach + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 +$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 +$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + int variable = 1; + return (__sync_bool_compare_and_swap(&variable, 1, 2) + && __sync_add_and_fetch(&variable, 1)) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + have_lq=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 +$as_echo_n "checking for TCP_INFO... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tcp_info ti; int x = TCP_INFO; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=tcp_info + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h + + fi + + if test "$have_lq" = "no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 +$as_echo_n "checking for SO_LISTENQLEN... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=so_listenq + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 +$as_echo_n "checking for sysconf... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +sysconf(_SC_CLK_TCK); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5 +$as_echo_n "checking for times... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tms t; times(&t); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_TIMES 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 +$as_echo_n "checking for kqueue... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + int kfd; + struct kevent k; + kfd = kqueue(); + /* 0 -> STDIN_FILENO */ + EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 +$as_echo_n "checking for port framework... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int port; + + port = port_create(); + if (port < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 +$as_echo_n "checking for /dev/poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + int n, dp; + struct dvpoll dvp; + dp = 0; + dvp.dp_fds = NULL; + dvp.dp_nfds = 0; + dvp.dp_timeout = 0; + n = ioctl(dp, DP_POLL, &dvp) + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 +$as_echo_n "checking for epoll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int epollfd; + struct epoll_event e; + + epollfd = epoll_create(1); + if (epollfd < 0) { + return 1; + } + + e.events = EPOLLIN | EPOLLET; + e.data.fd = 0; + + if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) { + return 1; + } + + e.events = 0; + if (epoll_wait(epollfd, &e, 1, 1) < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 +$as_echo_n "checking for select... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* According to POSIX.1-2001 */ + #include + + /* According to earlier standards */ + #include + #include + #include + +int +main () +{ + + fd_set fds; + struct timeval t; + t.tv_sec = 0; + t.tv_usec = 42; + FD_ZERO(&fds); + /* 0 -> STDIN_FILENO */ + FD_SET(0, &fds); + select(FD_SETSIZE, &fds, NULL, NULL, &t); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SELECT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apparmor" >&5 +$as_echo_n "checking for apparmor... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lapparmor" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +change_hat("test", 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +$as_echo "#define HAVE_APPARMOR 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + +php_with_fpm_user=nobody + + + +# Check whether --with-fpm-user was given. +if test "${with_fpm_user+set}" = set; then : + withval=$with_fpm_user; PHP_FPM_USER=$withval +else + + PHP_FPM_USER=nobody + + +fi + + +ext_output=$PHP_FPM_USER + + + + + + +php_with_fpm_group=nobody + + + +# Check whether --with-fpm-group was given. +if test "${with_fpm_group+set}" = set; then : + withval=$with_fpm_group; PHP_FPM_GROUP=$withval +else + + PHP_FPM_GROUP=nobody + + +fi + + +ext_output=$PHP_FPM_GROUP + + + + + + +php_with_fpm_systemd=no + + + +# Check whether --with-fpm-systemd was given. +if test "${with_fpm_systemd+set}" = set; then : + withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval +else + + PHP_FPM_SYSTEMD=no + + +fi + + +ext_output=$PHP_FPM_SYSTEMD + + + + + + +php_with_fpm_acl=no + + + +# Check whether --with-fpm-acl was given. +if test "${with_fpm_acl+set}" = set; then : + withval=$with_fpm_acl; PHP_FPM_ACL=$withval +else + + PHP_FPM_ACL=no + + +fi + + +ext_output=$PHP_FPM_ACL + + + + + + if test "$PHP_FPM_SYSTEMD" != "no" ; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5 +$as_echo_n "checking for libsystemd >= 209... " >&6; } + +if test -n "$SYSTEMD_CFLAGS"; then + pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then + pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` + else + SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SYSTEMD_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsystemd >= 209) were not met: + +$SYSTEMD_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SYSTEMD_CFLAGS +and SYSTEMD_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SYSTEMD_CFLAGS +and SYSTEMD_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS + SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_header in systemd/sd-daemon.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSTEMD_SD_DAEMON_H 1 +_ACEOF + HAVE_SD_DAEMON_H="yes" +else + HAVE_SD_DAEMON_H="no" +fi + +done + + if test $HAVE_SD_DAEMON_H = "no"; then + as_fn_error $? "Your system does not support systemd." "$LINENO" 5 + else + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + + PHP_FPM_SD_FILES="fpm/fpm_systemd.c" + + for ac_i in $SYSTEMD_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + + for ac_i in $SYSTEMD_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + php_fpm_systemd=notify + fi + else + php_fpm_systemd=simple + fi + + if test "$PHP_FPM_ACL" != "no" ; then + for ac_header in sys/acl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_acl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_ACL_H 1 +_ACEOF + +fi + +done + + ac_fn_c_check_func "$LINENO" "acl_free" "ac_cv_func_acl_free" +if test "x$ac_cv_func_acl_free" = xyes; then : + + +$as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_free in -lacl" >&5 +$as_echo_n "checking for acl_free in -lacl... " >&6; } +if ${ac_cv_lib_acl_acl_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lacl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char acl_free (); +int +main () +{ +return acl_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_acl_acl_free=yes +else + ac_cv_lib_acl_acl_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_free" >&5 +$as_echo "$ac_cv_lib_acl_acl_free" >&6; } +if test "x$ac_cv_lib_acl_acl_free" = xyes; then : + + + + case acl in + c|c_r|pthread*) ;; + *) + LIBS="-lacl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h + + +else + + as_fn_error $? "libacl required not found" "$LINENO" 5 + +fi + + +fi + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd" + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_SYSTEMD "$php_fpm_systemd" +_ACEOF + + + if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then + php_fpm_user="nobody" + else + php_fpm_user="$PHP_FPM_USER" + fi + + if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then + php_fpm_group="nobody" + else + php_fpm_group="$PHP_FPM_GROUP" + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group" + + + + php_fpm_sysconfdir=`eval echo $sysconfdir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir" + + + + php_fpm_localstatedir=`eval echo $localstatedir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir" + + + + php_fpm_prefix=`eval echo $prefix` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_USER "$php_fpm_user" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_GROUP "$php_fpm_group" +_ACEOF + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm" + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/www.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html" + + + src=$abs_srcdir/sapi/fpm/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_FPM_PATH=sapi/fpm/php-fpm + + if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then + PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c" + fi + + PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + PHP_FPM_FILES="fpm/fpm.c \ + fpm/fpm_children.c \ + fpm/fpm_cleanup.c \ + fpm/fpm_clock.c \ + fpm/fpm_conf.c \ + fpm/fpm_env.c \ + fpm/fpm_events.c \ + fpm/fpm_log.c \ + fpm/fpm_main.c \ + fpm/fpm_php.c \ + fpm/fpm_php_trace.c \ + fpm/fpm_process_ctl.c \ + fpm/fpm_request.c \ + fpm/fpm_shm.c \ + fpm/fpm_scoreboard.c \ + fpm/fpm_signals.c \ + fpm/fpm_sockets.c \ + fpm/fpm_status.c \ + fpm/fpm_stdio.c \ + fpm/fpm_unix.c \ + fpm/fpm_worker_pool.c \ + fpm/zlog.c \ + fpm/events/select.c \ + fpm/events/poll.c \ + fpm/events/epoll.c \ + fpm/events/kqueue.c \ + fpm/events/devpoll.c \ + fpm/events/port.c \ + " + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES fpm" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=fpm + fi + + + + BUILD_DIR="$BUILD_DIR sapi/fpm" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-fpm" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS" + + + case sapi/fpm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *darwin*) + BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *) + BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM" + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5 +$as_echo_n "checking for LiteSpeed support... " >&6; } + + +php_enable_litespeed=no + + +# Check whether --enable-litespeed was given. +if test "${enable_litespeed+set}" = set; then : + enableval=$enable_litespeed; PHP_LITESPEED=$enableval +else + + PHP_LITESPEED=no + test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LITESPEED in +shared,*) + PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'` + ;; +shared) + PHP_LITESPEED=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test "$PHP_LITESPEED" != "no"; then + + src=$abs_srcdir/sapi/litespeed/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/litespeed + ac_builddir=sapi/litespeed + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + SAPI_LITESPEED_PATH=sapi/litespeed/php + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES litespeed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=litespeed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/litespeed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-litespeed" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS" + + + case sapi/litespeed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in lsapi_main.c lsapilib.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_LITESPEED" >&6; } + + + + + +php_enable_phpdbg=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg support" >&5 +$as_echo_n "checking for phpdbg support... " >&6; } +# Check whether --enable-phpdbg was given. +if test "${enable_phpdbg+set}" = set; then : + enableval=$enable_phpdbg; PHP_PHPDBG=$enableval +else + + PHP_PHPDBG=yes + test "$PHP_ENABLE_ALL" && PHP_PHPDBG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHPDBG in +shared,*) + PHP_PHPDBG=`echo "$PHP_PHPDBG"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHPDBG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_webhelper=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg web SAPI support" >&5 +$as_echo_n "checking for phpdbg web SAPI support... " >&6; } +# Check whether --enable-phpdbg-webhelper was given. +if test "${enable_phpdbg_webhelper+set}" = set; then : + enableval=$enable_phpdbg_webhelper; PHP_PHPDBG_WEBHELPER=$enableval +else + + PHP_PHPDBG_WEBHELPER=no + test "$PHP_ENABLE_ALL" && PHP_PHPDBG_WEBHELPER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHPDBG_WEBHELPER in +shared,*) + PHP_PHPDBG_WEBHELPER=`echo "$PHP_PHPDBG_WEBHELPER"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHPDBG_WEBHELPER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg debug build" >&5 +$as_echo_n "checking for phpdbg debug build... " >&6; } +# Check whether --enable-phpdbg-debug was given. +if test "${enable_phpdbg_debug+set}" = set; then : + enableval=$enable_phpdbg_debug; PHP_PHPDBG_DEBUG=$enableval +else + + PHP_PHPDBG_DEBUG=no + + +fi + + +ext_output=$PHP_PHPDBG_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg readline support" >&5 +$as_echo_n "checking for phpdbg readline support... " >&6; } +# Check whether --enable-phpdbg-readline was given. +if test "${enable_phpdbg_readline+set}" = set; then : + enableval=$enable_phpdbg_readline; PHP_PHPDBG_READLINE=$enableval +else + + PHP_PHPDBG_READLINE=no + + +fi + + +ext_output=$PHP_PHPDBG_READLINE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 +$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } +if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#ifdef TIOCGWINSZ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + ac_cv_sys_tiocgwinsz_in_termios_h=yes +else + ac_cv_sys_tiocgwinsz_in_termios_h=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 +$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } + +if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 +$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } +if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#ifdef TIOCGWINSZ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes +else + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 +$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } + + if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then + +$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h + + fi +fi + + +$as_echo "#define HAVE_PHPDBG 1" >>confdefs.h + + + if test "$PHP_PHPDBG_DEBUG" != "no"; then + +$as_echo "#define PHPDBG_DEBUG 1" >>confdefs.h + + else + +$as_echo "#define PHPDBG_DEBUG 0" >>confdefs.h + + fi + + PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + PHP_PHPDBG_FILES="phpdbg.c phpdbg_parser.c phpdbg_lexer.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_btree.c phpdbg_sigsafe.c phpdbg_wait.c phpdbg_io.c phpdbg_eol.c phpdbg_out.c" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg and readline integration" >&5 +$as_echo_n "checking for phpdbg and readline integration... " >&6; } + if test "$PHP_PHPDBG_READLINE" = "yes"; then + if test "$PHP_READLINE" != "no" -o "$PHP_LIBEDIT" != "no"; then + +$as_echo "#define HAVE_PHPDBG_READLINE 1" >>confdefs.h + + PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline is not available" >&5 +$as_echo "readline is not available" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 +$as_echo "disabled" >&6; } + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_FILES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHPDBG_EXTRA_LIBS" + + + + src=$abs_srcdir/sapi/phpdbg/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/phpdbg + ac_builddir=$abs_builddir/sapi/phpdbg + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES phpdbg" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=phpdbg + fi + + + + BUILD_DIR="$BUILD_DIR sapi/phpdbg" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phpdbg" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-phpdbg" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_OBJS" + + + case sapi/phpdbg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/phpdbg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/phpdbg/"; ac_bdir="sapi/phpdbg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_PHPDBG_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_PHPDBG_OBJS="$PHP_PHPDBG_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHPDBG_WEBHELPER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHPDBG_WEBHELPER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for CGI build... " >&6; } +if test "$PHP_CGI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 +$as_echo_n "checking for sun_len in sys/un.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sun_len" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 +$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; } + case "`uname -sr`" in + IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_LOCKING 1" >>confdefs.h + + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + + src=$abs_srcdir/sapi/cgi/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + case $host_alias in + *cygwin* ) + SAPI_CGI_PATH=sapi/cgi/php-cgi.exe + ;; + * ) + SAPI_CGI_PATH=sapi/cgi/php-cgi + ;; + esac + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cgi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cgi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cgi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cgi" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS" + + + case sapi/cgi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in cgi_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + else + BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + fi + ;; + *darwin*) + BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + *) + BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 +$as_echo_n "checking for chosen SAPI module... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 +$as_echo "$PHP_SAPI" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 +$as_echo_n "checking for executable SAPI binaries... " >&6; } +if test "$PHP_BINARIES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 +$as_echo "$PHP_BINARIES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + +if test -z "$PHP_INSTALLED_SAPIS"; then + as_fn_error $? "Nothing to build." "$LINENO" 5 +fi + +if test "$enable_maintainer_zts" = "yes"; then + if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" + fi + if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" + fi + + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 + fi + case $host_alias in + *solaris*) + PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";; + *freebsd*) + PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";; + *linux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *aix*) + PTHREAD_FLAGS=-D_THREAD_SAFE;; + *irix*) + PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;; + *hpux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *sco*) + PTHREAD_FLAGS=-D_REENTRANT;; + esac + + if test -n "$PTHREAD_FLAGS"; then + CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS" + fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 +$as_echo "${T_MD}Running system checks${T_ME}" >&6; } + + + + PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib + # Extract the first word of "sendmail", so it can be a program name with args. +set dummy sendmail; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PROG_SENDMAIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PROG_SENDMAIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:$PHP_ALT_PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL +if test -n "$PROG_SENDMAIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 +$as_echo "$PROG_SENDMAIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL" + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 +$as_echo_n "checking whether system uses EBCDIC... " >&6; } +if ${ac_cv_ebcdic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_ebcdic=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { + return (unsigned char)'A' != (unsigned char)0xC1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_ebcdic=yes + +else + + ac_cv_ebcdic=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 +$as_echo "$ac_cv_ebcdic" >&6; } + if test "$ac_cv_ebcdic" = "yes"; then + +$as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 +$as_echo_n "checking whether writing to stdout works... " >&6; } +if ${ac_cv_write_stdout+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_write_stdout=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_UNISTD_H +#include +#endif + +#define TEXT "This is the test message -- " + +main() +{ + int n; + + n = write(1, TEXT, sizeof(TEXT)-1); + return (!(n == sizeof(TEXT)-1)); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_write_stdout=yes + +else + + ac_cv_write_stdout=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 +$as_echo "$ac_cv_write_stdout" >&6; } + if test "$ac_cv_write_stdout" = "yes"; then + +$as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h + + fi + + +if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib" +fi +test -d /usr/ucblib && + if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then + + if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then + ai_p=/usr/ucblib + else + + ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "/usr/ucblib"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + + + unset ac_cv_func_socket + unset ac_cv_func___socket + unset found + + ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" +if test "x$ac_cv_func___socket" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + ;; + + *) + + unset ac_cv_lib_socket_socket + unset ac_cv_lib_socket___socket + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 +$as_echo_n "checking for __socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socket (); +int +main () +{ +return __socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socket=yes +else + ac_cv_lib_socket___socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 +$as_echo "$ac_cv_lib_socket___socket" >&6; } +if test "x$ac_cv_lib_socket___socket" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_socketpair + unset ac_cv_func___socketpair + unset found + + ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" +if test "x$ac_cv_func_socketpair" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" +if test "x$ac_cv_func___socketpair" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + ac_cv_func_socketpair=yes + ;; + + *) + + unset ac_cv_lib_socket_socketpair + unset ac_cv_lib_socket___socketpair + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 +$as_echo_n "checking for socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socketpair (); +int +main () +{ +return socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socketpair=yes +else + ac_cv_lib_socket_socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 +$as_echo "$ac_cv_lib_socket_socketpair" >&6; } +if test "x$ac_cv_lib_socket_socketpair" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 +$as_echo_n "checking for __socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socketpair (); +int +main () +{ +return __socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socketpair=yes +else + ac_cv_lib_socket___socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 +$as_echo "$ac_cv_lib_socket___socketpair" >&6; } +if test "x$ac_cv_lib_socket___socketpair" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socketpair=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_htonl + unset ac_cv_func___htonl + unset found + + ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" +if test "x$ac_cv_func_htonl" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" +if test "x$ac_cv_func___htonl" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + ac_cv_func_htonl=yes + ;; + + *) + + unset ac_cv_lib_socket_htonl + unset ac_cv_lib_socket___htonl + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 +$as_echo_n "checking for htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket_htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char htonl (); +int +main () +{ +return htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_htonl=yes +else + ac_cv_lib_socket_htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 +$as_echo "$ac_cv_lib_socket_htonl" >&6; } +if test "x$ac_cv_lib_socket_htonl" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 +$as_echo_n "checking for __htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket___htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __htonl (); +int +main () +{ +return __htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___htonl=yes +else + ac_cv_lib_socket___htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 +$as_echo "$ac_cv_lib_socket___htonl" >&6; } +if test "x$ac_cv_lib_socket___htonl" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_htonl=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostname + unset ac_cv_func___gethostname + unset found + + ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" +if test "x$ac_cv_func_gethostname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" +if test "x$ac_cv_func___gethostname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + ac_cv_func_gethostname=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostname + unset ac_cv_lib_nsl___gethostname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 +$as_echo_n "checking for gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostname (); +int +main () +{ +return gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostname=yes +else + ac_cv_lib_nsl_gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostname" >&6; } +if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 +$as_echo_n "checking for __gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostname (); +int +main () +{ +return __gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostname=yes +else + ac_cv_lib_nsl___gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 +$as_echo "$ac_cv_lib_nsl___gethostname" >&6; } +if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostname=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostbyaddr + unset ac_cv_func___gethostbyaddr + unset found + + ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" +if test "x$ac_cv_func___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostbyaddr + unset ac_cv_lib_nsl___gethostbyaddr + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyaddr=yes +else + ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostbyaddr (); +int +main () +{ +return __gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostbyaddr=yes +else + ac_cv_lib_nsl___gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_dlopen + unset ac_cv_func___dlopen + unset found + + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" +if test "x$ac_cv_func___dlopen" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + ac_cv_func_dlopen=yes + ;; + + *) + + unset ac_cv_lib_dl_dlopen + unset ac_cv_lib_dl___dlopen + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 +$as_echo_n "checking for __dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlopen (); +int +main () +{ +return __dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlopen=yes +else + ac_cv_lib_dl___dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 +$as_echo "$ac_cv_lib_dl___dlopen" >&6; } +if test "x$ac_cv_lib_dl___dlopen" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlopen=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_dlsym + unset ac_cv_func___dlsym + unset found + + ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" +if test "x$ac_cv_func_dlsym" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlsym" "ac_cv_func___dlsym" +if test "x$ac_cv_func___dlsym" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLSYM 1" >>confdefs.h + + ac_cv_func_dlsym=yes + ;; + + *) + + unset ac_cv_lib_dl_dlsym + unset ac_cv_lib_dl___dlsym + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 +$as_echo_n "checking for dlsym in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlsym+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlsym (); +int +main () +{ +return dlsym (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlsym=yes +else + ac_cv_lib_dl_dlsym=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 +$as_echo "$ac_cv_lib_dl_dlsym" >&6; } +if test "x$ac_cv_lib_dl_dlsym" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -ldl" >&5 +$as_echo_n "checking for __dlsym in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlsym+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlsym (); +int +main () +{ +return __dlsym (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlsym=yes +else + ac_cv_lib_dl___dlsym=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlsym" >&5 +$as_echo "$ac_cv_lib_dl___dlsym" >&6; } +if test "x$ac_cv_lib_dl___dlsym" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLSYM 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlsym=yes + else + + : + + fi + + ;; + + esac + +if test "$ac_cv_func_dlopen" = "yes"; then + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + + + unset ac_cv_func_inet_aton + unset ac_cv_func___inet_aton + unset found + + ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" +if test "x$ac_cv_func_inet_aton" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" +if test "x$ac_cv_func___inet_aton" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + ;; + + *) + + unset ac_cv_lib_resolv_inet_aton + unset ac_cv_lib_resolv___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_inet_aton=yes +else + ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 +$as_echo_n "checking for __inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___inet_aton=yes +else + ac_cv_lib_resolv___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } +if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + + unset ac_cv_lib_bind_inet_aton + unset ac_cv_lib_bind___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 +$as_echo_n "checking for inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_inet_aton=yes +else + ac_cv_lib_bind_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 +$as_echo "$ac_cv_lib_bind_inet_aton" >&6; } +if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 +$as_echo_n "checking for __inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___inet_aton=yes +else + ac_cv_lib_bind___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 +$as_echo "$ac_cv_lib_bind___inet_aton" >&6; } +if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + : + + fi + + + fi + + ;; + + esac + + + +for ac_header in \ +inttypes.h \ +stdint.h \ +dirent.h \ +sys/param.h \ +sys/types.h \ +sys/time.h \ +netinet/in.h \ +alloca.h \ +arpa/inet.h \ +arpa/nameser.h \ +crypt.h \ +dns.h \ +fcntl.h \ +grp.h \ +ieeefp.h \ +langinfo.h \ +locale.h \ +malloc.h \ +monetary.h \ +netdb.h \ +poll.h \ +pwd.h \ +resolv.h \ +strings.h \ +syslog.h \ +sysexits.h \ +sys/ioctl.h \ +sys/file.h \ +sys/mman.h \ +sys/mount.h \ +sys/poll.h \ +sys/resource.h \ +sys/select.h \ +sys/socket.h \ +sys/stat.h \ +sys/statfs.h \ +sys/statvfs.h \ +sys/vfs.h \ +sys/sysexits.h \ +sys/uio.h \ +sys/wait.h \ +sys/loadavg.h \ +termios.h \ +unistd.h \ +unix.h \ +utime.h \ +sys/utsname.h \ +sys/ipc.h \ +dlfcn.h \ +tmmintrin.h \ +nmmintrin.h \ +immintrin.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" +if test "x$ac_cv_func_fopencookie" = xyes; then : + have_glibc_fopencookie=yes +fi + + + if test "$have_glibc_fopencookie" = "yes"; then +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_cookie_io_functions_t" = "yes"; then + cookie_io_functions_t=cookie_io_functions_t + have_fopen_cookie=yes + +if test "$cross_compiling" = yes; then : + + cookie_io_functions_use_off64_t=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +struct cookiedata { + __off64_t pos; +}; + +__ssize_t reader(void *cookie, char *buffer, size_t size) +{ return size; } +__ssize_t writer(void *cookie, const char *buffer, size_t size) +{ return size; } +int closer(void *cookie) +{ return 0; } +int seeker(void *cookie, __off64_t *position, int whence) +{ ((struct cookiedata*)cookie)->pos = *position; return 0; } + +cookie_io_functions_t funcs = {reader, writer, seeker, closer}; + +main() { + struct cookiedata g = { 0 }; + FILE *fp = fopencookie(&g, "r", funcs); + + if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192) + exit(0); + exit(1); +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + cookie_io_functions_use_off64_t=yes + +else + + cookie_io_functions_use_off64_t=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +_IO_cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_IO_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$have_cookie_io_functions_t" = "yes" ; then + cookie_io_functions_t=_IO_cookie_io_functions_t + have_fopen_cookie=yes + fi + fi + + if test "$have_fopen_cookie" = "yes" ; then + +$as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h + + +cat >>confdefs.h <<_ACEOF +#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t +_ACEOF + + if test "$cookie_io_functions_use_off64_t" = "yes" ; then + +$as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h + + fi + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 +$as_echo_n "checking for broken getcwd... " >&6; } + os=`uname -sr 2>/dev/null` + case $os in + SunOS*) + +$as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; };; + esac + +if test "$GCC" = "yes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken gcc optimize-strlen" >&5 +$as_echo_n "checking for broken gcc optimize-strlen... " >&6; } +if ${ac_cv_have_broken_gcc_strlen_opt+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_have_broken_gcc_strlen_opt=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +struct s +{ + int i; + char c[1]; +}; +int main() +{ + struct s *s = malloc(sizeof(struct s) + 3); + s->i = 3; + strcpy(s->c, "foo"); + return strlen(s->c+1) == 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_have_broken_gcc_strlen_opt=yes + +else + + ac_cv_have_broken_gcc_strlen_opt=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_gcc_strlen_opt" >&5 +$as_echo "$ac_cv_have_broken_gcc_strlen_opt" >&6; } + if test "$ac_cv_have_broken_gcc_strlen_opt" = "yes"; then + CFLAGS="$CFLAGS -fno-optimize-strlen" + fi + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include +#include <$ac_cv_struct_tm> + +" +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_ZONE 1 +_ACEOF + + +fi + +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h + +else + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" +if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_TZNAME $ac_have_decl +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +$as_echo_n "checking for tzname... " >&6; } +if ${ac_cv_var_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if !HAVE_DECL_TZNAME +extern char *tzname[]; +#endif + +int +main () +{ +return tzname[0][0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_var_tzname=yes +else + ac_cv_var_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +$as_echo "$ac_cv_var_tzname" >&6; } + if test $ac_cv_var_tzname = yes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + fi +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5 +$as_echo_n "checking for missing declarations of reentrant functions... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = localtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = gmtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = asctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = ctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = strtok_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 +$as_echo_n "checking for fclose declaration... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int (*func)() = fclose + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + +$as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +$as_echo "missing" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 +$as_echo_n "checking for struct flock... " >&6; } +if ${ac_cv_struct_flock+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +struct flock x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_struct_flock=yes + +else + + ac_cv_struct_flock=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 +$as_echo "$ac_cv_struct_flock" >&6; } +if test "$ac_cv_struct_flock" = "yes" ; then + +$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h + +fi + + +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " + #ifdef HAVE_SYS_TYPES_H + # include + #endif + #ifdef HAVE_SYS_SOCKET_H + # include + #endif + +" +if test "x$ac_cv_type_socklen_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SOCKLEN_T 1 +_ACEOF + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 +$as_echo_n "checking size of intmax_t... " >&6; } + + php_cache_value=php_cv_sizeof_intmax_t + if ${php_cv_sizeof_intmax_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(intmax_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTMAX_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 +$as_echo "$php_cv_sizeof_intmax_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 +$as_echo_n "checking size of ssize_t... " >&6; } + + php_cache_value=php_cv_sizeof_ssize_t + if ${php_cv_sizeof_ssize_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ssize_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 +$as_echo "$php_cv_sizeof_ssize_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +$as_echo_n "checking size of ptrdiff_t... " >&6; } + + php_cache_value=php_cv_sizeof_ptrdiff_t + if ${php_cv_sizeof_ptrdiff_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ptrdiff_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_PTRDIFF_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 +$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; } + + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +$as_echo_n "checking size of size_t... " >&6; } +if ${ac_cv_sizeof_size_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_size_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (size_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_size_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +$as_echo "$ac_cv_sizeof_size_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t +_ACEOF + + + ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int8" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT8 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int16" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT16 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int32" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int64" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT64 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT64_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint8" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT8 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint16" "ac_cv_type_uint16" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint16" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT16 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint32" "ac_cv_type_uint32" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint32" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint64" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT64 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT64_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT64_T 1 +_ACEOF + + +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 +$as_echo_n "checking for __builtin_expect... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_expect(1,1) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_expect=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_expect=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_EXPECT $have_builtin_expect +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 +$as_echo_n "checking for __builtin_clz... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_clz(1) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_clz=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_clz=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CLZ $have_builtin_clz +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5 +$as_echo_n "checking for __builtin_ctzl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_ctzl(2L) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ctzl=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ctzl=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CTZL $have_builtin_ctzl +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 +$as_echo_n "checking for __builtin_ctzll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_ctzll(2LL) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ctzll=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ctzll=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CTZLL $have_builtin_ctzll +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smull_overflow" >&5 +$as_echo_n "checking for __builtin_smull_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_smull_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_smull_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_smull_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SMULL_OVERFLOW $have_builtin_smull_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smulll_overflow" >&5 +$as_echo_n "checking for __builtin_smulll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_smulll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_smulll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_smulll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SMULLL_OVERFLOW $have_builtin_smulll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddl_overflow" >&5 +$as_echo_n "checking for __builtin_saddl_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_saddl_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_saddl_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_saddl_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SADDL_OVERFLOW $have_builtin_saddl_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddll_overflow" >&5 +$as_echo_n "checking for __builtin_saddll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_saddll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_saddll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_saddll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SADDLL_OVERFLOW $have_builtin_saddll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubl_overflow" >&5 +$as_echo_n "checking for __builtin_ssubl_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_ssubl_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ssubl_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ssubl_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SSUBL_OVERFLOW $have_builtin_ssubl_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubll_overflow" >&5 +$as_echo_n "checking for __builtin_ssubll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_ssubll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ssubll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ssubll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SSUBLL_OVERFLOW $have_builtin_ssubll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_init" >&5 +$as_echo_n "checking for __builtin_cpu_init... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_cpu_init()? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_cpu_init=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_cpu_init=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CPU_INIT $have_builtin_cpu_init +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_supports" >&5 +$as_echo_n "checking for __builtin_cpu_supports... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_cpu_supports("sse")? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_cpu_supports=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_cpu_supports=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CPU_SUPPORTS $have_builtin_cpu_supports +_ACEOF + + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssse3 instructions supports" >&5 +$as_echo_n "checking for ssse3 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("ssse3")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_SSSE3_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse4.2 instructions supports" >&5 +$as_echo_n "checking for sse4.2 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("sse4.2")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_SSE4_2_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx instructions supports" >&5 +$as_echo_n "checking for avx instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("avx")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_AVX_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx2 instructions supports" >&5 +$as_echo_n "checking for avx2 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("avx2")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_AVX2_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include +" +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_GMTOFF 1 +_ACEOF + + +fi + +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 +_ACEOF + + +fi +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_RDEV 1 +_ACEOF + + +fi + +if test "`uname -s 2>/dev/null`" != "QNX"; then + ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" fileblocks.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" + ;; +esac + +fi + + +fi + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 +$as_echo_n "checking for struct sockaddr_storage... " >&6; } +if ${ac_cv_sockaddr_storage+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +struct sockaddr_storage s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_storage=yes +else + ac_cv_sockaddr_storage=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 +$as_echo "$ac_cv_sockaddr_storage" >&6; } + if test "$ac_cv_sockaddr_storage" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 +$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } +if ${ac_cv_sockaddr_sa_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +static struct sockaddr sa; int n = (int) sa.sa_len; return n; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_sa_len=yes +else + ac_cv_sockaddr_sa_len=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 +$as_echo "$ac_cv_sockaddr_sa_len" >&6; } + if test "$ac_cv_sockaddr_sa_len" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h + + fi + + +case $host_alias in #( + *-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*) : + true ;; #( + *) : + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((ifunc))" >&5 +$as_echo_n "checking for __attribute__((ifunc))... " >&6; } +if ${ax_cv_have_func_attribute_ifunc+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + int my_foo( void ) { return 0; } + static int (*resolve_foo(void))(void) { return my_foo; } + int foo( void ) __attribute__((ifunc("resolve_foo"))); + +int +main () +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test -s conftest.err; then : + ax_cv_have_func_attribute_ifunc=no +else + ax_cv_have_func_attribute_ifunc=yes +fi +else + ax_cv_have_func_attribute_ifunc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_ifunc" >&5 +$as_echo "$ax_cv_have_func_attribute_ifunc" >&6; } + + if test yes = $ax_cv_have_func_attribute_ifunc; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_FUNC_ATTRIBUTE_IFUNC 1 +_ACEOF + +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((target))" >&5 +$as_echo_n "checking for __attribute__((target))... " >&6; } +if ${ax_cv_have_func_attribute_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + static int bar( void ) __attribute__((target("sse2"))); + +int +main () +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test -s conftest.err; then : + ax_cv_have_func_attribute_target=no +else + ax_cv_have_func_attribute_target=yes +fi +else + ax_cv_have_func_attribute_target=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_target" >&5 +$as_echo "$ax_cv_have_func_attribute_target" >&6; } + + if test yes = $ax_cv_have_func_attribute_target; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_FUNC_ATTRIBUTE_TARGET 1 +_ACEOF + +fi + + + + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +$as_echo_n "checking for IPv6 support... " >&6; } +if ${ac_cv_ipv6_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int +main () +{ +struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_ipv6_support=yes +else + ac_cv_ipv6_support=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 +$as_echo "$ac_cv_ipv6_support" >&6; } + + +for ac_func in alphasort \ +asctime_r \ +chroot \ +ctime_r \ +crypt \ +explicit_memset \ +flock \ +fpclass \ +ftok \ +funopen \ +gai_strerror \ +getcwd \ +getloadavg \ +getlogin \ +getprotobyname \ +getprotobynumber \ +getservbyname \ +getservbyport \ +getrusage \ +gettimeofday \ +gmtime_r \ +getpwnam_r \ +getgrnam_r \ +getpwuid_r \ +getwd \ +glob \ +grantpt \ +inet_ntoa \ +inet_ntop \ +inet_pton \ +localtime_r \ +lchown \ +mbrlen \ +memmove \ +mkstemp \ +mmap \ +nice \ +nl_langinfo \ +poll \ +ptsname \ +putenv \ +realpath \ +rand_r \ +scandir \ +setitimer \ +setenv \ +shutdown \ +sigprocmask \ +statfs \ +statvfs \ +std_syslog \ +strcasecmp \ +strfmon \ +strnlen \ +strptime \ +strtok_r \ +symlink \ +tzset \ +unlockpt \ +unsetenv \ +usleep \ +utime \ +vasprintf \ +asprintf \ +nanosleep \ +memmem \ + +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5 +$as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; } + + if ${ac_cv_func_which_gethostbyname_r+:} false; then : + $as_echo_n "(cached) " >&6 +else + + +################################################################ + +ac_cv_func_which_gethostbyname_r=unknown + +# +# ONE ARGUMENT (sanity check) +# + +# This should fail, as there is no variant of gethostbyname_r() that takes +# a single argument. If it actually compiles, then we can assume that +# netdb.h is not declaring the function, and the compiler is thereby +# assuming an implicit prototype. In which case, we're out of luck. +# +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + (void)gethostbyname_r(name) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +# +# SIX ARGUMENTS +# (e.g. Linux) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret, *retp; + char buf[1024]; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=six +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +# +# FIVE ARGUMENTS +# (e.g. Solaris) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret; + char buf[1024]; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=five +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +# +# THREE ARGUMENTS +# (e.g. AIX, HP-UX, Tru64) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret; + struct hostent_data data; + (void)gethostbyname_r(name, &ret, &data) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=three +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +################################################################ + + +fi + +case "$ac_cv_func_which_gethostbyname_r" in + three|five|six) + +$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h + + ;; +esac + +case "$ac_cv_func_which_gethostbyname_r" in + three) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5 +$as_echo "three" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h + + ;; + + five) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5 +$as_echo "five" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h + + ;; + + six) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5 +$as_echo "six" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h + + ;; + + no) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5 +$as_echo "cannot find function declaration in netdb.h" >&6; } + ;; + + unknown) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5 +$as_echo "can't tell" >&6; } + ;; + + *) + as_fn_error $? "internal error" "$LINENO" 5 + ;; +esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + unset ac_cv_lib_rt_nanosleep + unset ac_cv_lib_rt___nanosleep + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 +$as_echo_n "checking for nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt_nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nanosleep (); +int +main () +{ +return nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_nanosleep=yes +else + ac_cv_lib_rt_nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 +$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } +if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 +$as_echo_n "checking for __nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt___nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __nanosleep (); +int +main () +{ +return __nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___nanosleep=yes +else + ac_cv_lib_rt___nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 +$as_echo "$ac_cv_lib_rt___nanosleep" >&6; } +if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_nanosleep=yes + else + + : + + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +$as_echo_n "checking for getaddrinfo... " >&6; } +if ${ac_cv_func_getaddrinfo+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_func_getaddrinfo=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifndef AF_INET +# include +#endif +int main(void) { + struct addrinfo *ai, *pai, hints; + + memset(&hints, 0, sizeof(hints)); + hints.ai_flags = AI_NUMERICHOST; + + if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { + exit(1); + } + + if (ai == 0) { + exit(1); + } + + pai = ai; + + while (pai) { + if (pai->ai_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + if (pai->ai_addr->sa_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + pai = pai->ai_next; + } + freeaddrinfo(ai); + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_getaddrinfo=yes +else + ac_cv_func_getaddrinfo=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + ac_cv_func_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 +$as_echo "$ac_cv_func_getaddrinfo" >&6; } +if test "$ac_cv_func_getaddrinfo" = yes; then + +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 +$as_echo_n "checking for __sync_fetch_and_add... " >&6; } +if ${ac_cv_func_sync_fetch_and_add+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int x;__sync_fetch_and_add(&x,1); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_sync_fetch_and_add=yes +else + ac_cv_func_sync_fetch_and_add=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5 +$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; } +if test "$ac_cv_func_sync_fetch_and_add" = yes; then + +$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes; then : + $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcat.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" +if test "x$ac_cv_func_strlcpy" = xyes; then : + $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcpy.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" +if test "x$ac_cv_func_explicit_bzero" = xyes; then : + $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" explicit_bzero.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes; then : + $as_echo "#define HAVE_GETOPT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" getopt.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS getopt.$ac_objext" + ;; +esac + +fi + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 +$as_echo_n "checking for type of reentrant time-related functions... " >&6; } +if ${ac_cv_time_r_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +main() { +char buf[27]; +struct tm t; +time_t old = 0; +int r, s; + +s = gmtime_r(&old, &t); +r = (int) asctime_r(&t, buf, 26); +if (r == s && s == 0) return (0); +return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=hpux + +else + + if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +main() { + struct tm t, *s; + time_t old = 0; + char buf[27], *p; + + s = gmtime_r(&old, &t); + p = asctime_r(&t, buf, 26); + if (p == buf && s == &t) return (0); + return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=irix + +else + + ac_cv_time_r_type=POSIX + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 +$as_echo "$ac_cv_time_r_type" >&6; } + case $ac_cv_time_r_type in + hpux) +$as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h + ;; + irix) +$as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h + ;; + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 +$as_echo_n "checking for in_addr_t... " >&6; } +if ${ac_cv_type_in_addr_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_NETINET_IN_H +#include +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + ac_cv_type_in_addr_t=yes +else + ac_cv_type_in_addr_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 +$as_echo "$ac_cv_type_in_addr_t" >&6; } +if test $ac_cv_type_in_addr_t = no; then + +$as_echo "#define in_addr_t u_int" >>confdefs.h + +fi + + +for ac_func in crypt_r +do : + ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" +if test "x$ac_cv_func_crypt_r" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CRYPT_R 1 +_ACEOF + php_crypt_r="1" +else + php_crypt_r="0" +fi +done + +if test "x$php_crypt_r" = "x1"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +$as_echo_n "checking which data struct is used by crypt_r... " >&6; } +if ${php_cv_crypt_r_style+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_crypt_r_style=none + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +CRYPTD buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=cryptd +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#define _GNU_SOURCE +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data_gnu_source +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +$as_echo "$php_cv_crypt_r_style" >&6; } + + if test "$php_cv_crypt_r_style" = "cryptd"; then + +$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "none"; then + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 + fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asm goto" >&5 +$as_echo_n "checking for asm goto... " >&6; } +if ${ac_cv__asm_goto+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv__asm_goto=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { +#if defined(__x86_64__) || defined(__i386__) + __asm__ goto("jmp %l0\n" :::: end); +#elif defined(__aarch64__) + __asm__ goto("b %l0\n" :::: end); +#endif +end: + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv__asm_goto=yes +else + ac_cv__asm_goto=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__asm_goto" >&5 +$as_echo "$ac_cv__asm_goto" >&6; } + +if test "$ac_cv__asm_goto" = yes; then + +$as_echo "#define HAVE_ASM_GOTO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports VLA" >&5 +$as_echo_n "checking whether compiler supports VLA... " >&6; } +if ${ac_cv__compiler_c99_vla+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv__compiler_c99_vla=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + int main(void) { + int i[rand()%10]; + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv__compiler_c99_vla=yes +else + ac_cv__compiler_c99_vla=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__compiler_c99_vla" >&5 +$as_echo "$ac_cv__compiler_c99_vla" >&6; } + +if test "$ac_cv__compiler_c99_vla" = yes; then + +$as_echo "#define HAVE_COMPILER_C99_VLA 1" >>confdefs.h + +fi + + +php_with_valgrind=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind support" >&5 +$as_echo_n "checking whether to enable valgrind support... " >&6; } + +# Check whether --with-valgrind was given. +if test "${with_valgrind+set}" = set; then : + withval=$with_valgrind; PHP_VALGRIND=$withval +else + + PHP_VALGRIND=yes + + +fi + + +ext_output=$PHP_VALGRIND +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_VALGRIND" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 +$as_echo_n "checking for valgrind... " >&6; } + +if test -n "$VALGRIND_CFLAGS"; then + pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$VALGRIND_LIBS"; then + pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` + else + VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$VALGRIND_PKG_ERRORS" >&5 + + have_valgrind="no" +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_valgrind="no" +else + VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS + VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_valgrind="yes" +fi + + if test "$have_valgrind" = "yes"; then + + for ac_i in $VALGRIND_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h + + else + if test "$with_valgrind" = "yes"; then + as_fn_error $? "Valgrind not found. Please install Valgrind." "$LINENO" 5 + fi + fi +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 +$as_echo "${T_MD}General settings${T_ME}" >&6; } + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + +php_enable_gcov=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 +$as_echo_n "checking whether to include gcov symbols... " >&6; } +# Check whether --enable-gcov was given. +if test "${enable_gcov+set}" = set; then : + enableval=$enable_gcov; PHP_GCOV=$enableval +else + + PHP_GCOV=no + + +fi + + +ext_output=$PHP_GCOV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GCOV" = "yes"; then + + if test "$GCC" != "yes"; then + as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 + fi + + case `$php_shtool path $CC` in + *ccache*) gcc_ccache=yes;; + *) gcc_ccache=no;; + esac + + if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then + as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_GCOV 1" >>confdefs.h + + + src=$abs_srcdir/build/Makefile.gcov + ac_srcdir=$abs_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + CFLAGS=`echo "$CFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + + + CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" +fi + + +php_enable_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 +$as_echo_n "checking whether to include debugging symbols... " >&6; } +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; PHP_DEBUG=$enableval +else + + PHP_DEBUG=no + + +fi + + +ext_output=$PHP_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DEBUG" = "yes"; then + PHP_DEBUG=1 + ZEND_DEBUG=yes + + CFLAGS=`echo "$CFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + + if test "$GCC" = "yes" || test "$ICC" = "yes"; then + CFLAGS="$CFLAGS -O0" + CXXFLAGS="$CXXFLAGS -g -O0" + fi + if test "$SUNCC" = "yes"; then + if test -n "$auto_cflags"; then + CFLAGS="-g" + CXXFLAGS="-g" + else + CFLAGS="$CFLAGS -g" + CXXFLAGS="$CFLAGS -g" + fi + fi +else + PHP_DEBUG=0 + ZEND_DEBUG=no +fi + + +php_enable_rtld_now=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY" >&5 +$as_echo_n "checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... " >&6; } +# Check whether --enable-rtld-now was given. +if test "${enable_rtld_now+set}" = set; then : + enableval=$enable_rtld_now; PHP_RTLD_NOW=$enableval +else + + PHP_RTLD_NOW=no + + +fi + + +ext_output=$PHP_RTLD_NOW +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RTLD_NOW" = "yes"; then + +$as_echo "#define PHP_USE_RTLD_NOW 1" >>confdefs.h + +fi + + +php_with_layout=PHP + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 +$as_echo_n "checking layout of installed files... " >&6; } + +# Check whether --with-layout was given. +if test "${with_layout+set}" = set; then : + withval=$with_layout; PHP_LAYOUT=$withval +else + + PHP_LAYOUT=PHP + + +fi + + +ext_output=$PHP_LAYOUT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +case $PHP_LAYOUT in + GNU) + oldstyleextdir=no + ;; + *) + oldstyleextdir=yes + ;; +esac + + +php_with_config_file_path=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 +$as_echo_n "checking path to configuration file... " >&6; } + +# Check whether --with-config-file-path was given. +if test "${with_config_file_path+set}" = set; then : + withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval +else + + PHP_CONFIG_FILE_PATH=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_PATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then + case $PHP_LAYOUT in + GNU) + PHP_CONFIG_FILE_PATH=$sysconfdir + ;; + *) + PHP_CONFIG_FILE_PATH=$libdir + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 +$as_echo_n "checking where to scan for configuration files... " >&6; } + +php_with_config_file_scan_dir=DEFAULT + + + +# Check whether --with-config-file-scan-dir was given. +if test "${with_config_file_scan_dir+set}" = set; then : + withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval +else + + PHP_CONFIG_FILE_SCAN_DIR=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_SCAN_DIR + + + + + +if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then + PHP_CONFIG_FILE_SCAN_DIR= +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 +$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + + +php_enable_sigchild=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 +$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; } +# Check whether --enable-sigchild was given. +if test "${enable_sigchild+set}" = set; then : + enableval=$enable_sigchild; PHP_SIGCHILD=$enableval +else + + PHP_SIGCHILD=no + + +fi + + +ext_output=$PHP_SIGCHILD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIGCHILD" = "yes"; then + +$as_echo "#define PHP_SIGCHILD 1" >>confdefs.h + +else + +$as_echo "#define PHP_SIGCHILD 0" >>confdefs.h + +fi + + +php_enable_libgcc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 +$as_echo_n "checking whether to explicitly link against libgcc... " >&6; } +# Check whether --enable-libgcc was given. +if test "${enable_libgcc+set}" = set; then : + enableval=$enable_libgcc; PHP_LIBGCC=$enableval +else + + PHP_LIBGCC=no + + +fi + + +ext_output=$PHP_LIBGCC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBGCC" = "yes"; then + + + libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'` + + + if test -z "$libgcc_libpath"; then + as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 + fi + + if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then + + if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then + ai_p=$libgcc_libpath + else + + ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$libgcc_libpath"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case gcc in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgcc" + ;; + esac + + +fi + + +php_enable_short_tags=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 +$as_echo_n "checking whether to enable short tags by default... " >&6; } +# Check whether --enable-short-tags was given. +if test "${enable_short_tags+set}" = set; then : + enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval +else + + PHP_SHORT_TAGS=yes + + +fi + + +ext_output=$PHP_SHORT_TAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHORT_TAGS" = "yes"; then + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h + +else + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h + +fi + + +php_enable_dmalloc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 +$as_echo_n "checking whether to enable dmalloc... " >&6; } +# Check whether --enable-dmalloc was given. +if test "${enable_dmalloc+set}" = set; then : + enableval=$enable_dmalloc; PHP_DMALLOC=$enableval +else + + PHP_DMALLOC=no + + +fi + + +ext_output=$PHP_DMALLOC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DMALLOC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 +$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } +if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldmalloc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dmalloc_error (); +int +main () +{ +return dmalloc_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dmalloc_dmalloc_error=yes +else + ac_cv_lib_dmalloc_dmalloc_error=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 +$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : + + + + case dmalloc in + c|c_r|pthread*) ;; + *) + LIBS="-ldmalloc $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DMALLOC 1" >>confdefs.h + + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + +else + + as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 + +fi + +fi + + +php_enable_ipv6=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 +$as_echo_n "checking whether to enable IPv6 support... " >&6; } +# Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : + enableval=$enable_ipv6; PHP_IPV6=$enableval +else + + PHP_IPV6=yes + + +fi + + +ext_output=$PHP_IPV6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then + +$as_echo "#define HAVE_IPV6 1" >>confdefs.h + +fi + + +php_enable_dtrace=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 +$as_echo_n "checking whether to enable DTrace support... " >&6; } +# Check whether --enable-dtrace was given. +if test "${enable_dtrace+set}" = set; then : + enableval=$enable_dtrace; PHP_DTRACE=$enableval +else + + PHP_DTRACE=no + + +fi + + +ext_output=$PHP_DTRACE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DTRACE" = "yes"; then + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + case "" in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;; + /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;; + *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";; + esac + + ac_provsrc=Zend/zend_dtrace.d + old_IFS=$IFS + IFS=. + set $ac_provsrc + ac_provobj=$1 + IFS=$old_IFS + + ac_hdrobj=Zend/zend_dtrace_gen.h + + case $host_alias in + *freebsd*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + PHP_LDFLAGS="$PHP_LDFLAGS -lelf" + ;; + *solaris*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + *linux*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + esac + + old_IFS=$IFS + for ac_src in main/main.c Zend/zend_API.c \ + Zend/zend_execute.c Zend/zend_exceptions.c \ + Zend/zend_dtrace.c Zend/zend.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + case $php_sapi_module in + shared) + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + ;; + *) + dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + ;; + esac + + cat>>Makefile.objects< \$@ + +\$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*|*freebsd*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + + ;; + *) +cat>>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS" + + +else + + as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 + +fi + +done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 +$as_echo_n "checking how big to make fd sets... " >&6; } + +php_enable_fd_setsize=no + + +# Check whether --enable-fd-setsize was given. +if test "${enable_fd_setsize+set}" = set; then : + enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval +else + + PHP_FD_SETSIZE=no + + +fi + + +ext_output=$PHP_FD_SETSIZE + + + + + +if test "$PHP_FD_SETSIZE" != "no"; then + if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then + CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 +$as_echo "using $PHP_FD_SETSIZE" >&6; } + else + as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 +$as_echo "using system default" >&6; } +fi + + +php_enable_werror=no + + +# Check whether --enable-werror was given. +if test "${enable_werror+set}" = set; then : + enableval=$enable_werror; PHP_WERROR=$enableval +else + + PHP_WERROR=no + + +fi + + +ext_output=$PHP_WERROR + + + + + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 +$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; } + + +# Check whether --enable-all was given. +if test "${enable_all+set}" = set; then : + enableval=$enable_all; PHP_ENABLE_ALL=$enableval +fi + + + + + +for ac_header in io.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" +if test "x$ac_cv_header_io_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_IO_H 1 +_ACEOF + +fi + +done + + +for ac_func in strtoll atoll +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +PHP_DATE_CFLAGS="-I@ext_builddir@/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DHAVE_TIMELIB_CONFIG_H=1" +timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c + lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" + + + ext_builddir=ext/date + ext_srcdir=$abs_srcdir/ext/date + ext_dir=ext/date + + ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_DATE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DATE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_DATE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_builddir/lib + else + + ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_srcdir/lib" != "/usr/include"; then + + if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/lib + else + + ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + header_path=ext/date + for header_file in php_date.h lib/timelib.h lib/timelib_config.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + +$as_echo "#define HAVE_TIMELIB_CONFIG_H 1" >>confdefs.h + + +cat > $ext_builddir/lib/timelib_config.h < +#endif +#include + +#include "zend.h" + +#define timelib_malloc emalloc +#define timelib_realloc erealloc +#define timelib_calloc ecalloc +#define timelib_strdup estrdup +#define timelib_free efree +EOF + + + + + +php_with_libxml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LIBXML support" >&5 +$as_echo_n "checking whether to build with LIBXML support... " >&6; } + +# Check whether --with-libxml was given. +if test "${with_libxml+set}" = set; then : + withval=$with_libxml; PHP_LIBXML=$withval +else + + PHP_LIBXML=yes + test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBXML in +shared,*) + PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBXML" != "no"; then + + ext_shared=no + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + ext_builddir=ext/libxml + ext_srcdir=$abs_srcdir/ext/libxml + ext_dir=ext/libxml + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LIBXML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LIBXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LIBXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for OpenSSL support... " >&6; } + +# Check whether --with-openssl was given. +if test "${with_openssl+set}" = set; then : + withval=$with_openssl; PHP_OPENSSL=$withval +else + + PHP_OPENSSL=no + test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPENSSL in +shared,*) + PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPENSSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 +$as_echo_n "checking for Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_system_ciphers=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system default cipher list instead of hardcoded value" >&5 +$as_echo_n "checking whether to use system default cipher list instead of hardcoded value... " >&6; } + +# Check whether --with-system-ciphers was given. +if test "${with_system_ciphers+set}" = set; then : + withval=$with_system_ciphers; PHP_SYSTEM_CIPHERS=$withval +else + + PHP_SYSTEM_CIPHERS=no + + +fi + + +ext_output=$PHP_SYSTEM_CIPHERS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPENSSL" != "no"; then + + ext_builddir=ext/openssl + ext_srcdir=$abs_srcdir/ext/openssl + ext_dir=ext/openssl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OPENSSL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPENSSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OPENSSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for krb5-gssapi krb5... " >&6; } + +if test -n "$KERBEROS_CFLAGS"; then + pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$KERBEROS_LIBS"; then + pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + else + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$KERBEROS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (krb5-gssapi krb5) were not met: + +$KERBEROS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS + KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + for ac_func in RAND_egd +do : + ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd" +if test "x$ac_cv_func_RAND_egd" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RAND_EGD 1 +_ACEOF + +fi +done + + + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 + + fi + + if test "$PHP_SYSTEM_CIPHERS" != "no"; then + +$as_echo "#define USE_OPENSSL_SYSTEM_CIPHERS 1" >>confdefs.h + + fi +fi + + + + + +php_with_external_pcre=no + + + +# Check whether --with-external-pcre was given. +if test "${with_external_pcre+set}" = set; then : + withval=$with_external_pcre; PHP_EXTERNAL_PCRE=$withval +else + + PHP_EXTERNAL_PCRE=no + + +fi + + +ext_output=$PHP_EXTERNAL_PCRE + + + + + + +php_with_pcre_jit=yes + + + +# Check whether --with-pcre-jit was given. +if test "${with_pcre_jit+set}" = set; then : + withval=$with_pcre_jit; PHP_PCRE_JIT=$withval +else + + PHP_PCRE_JIT=yes + + +fi + + +ext_output=$PHP_PCRE_JIT + + + + + +if test "$PHP_EXTERNAL_PCRE" != "no"; then + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8 >= 10.30" >&5 +$as_echo_n "checking for libpcre2-8 >= 10.30... " >&6; } + +if test -n "$PCRE2_CFLAGS"; then + pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.30" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$PCRE2_LIBS"; then + pkg_cv_PCRE2_LIBS="$PCRE2_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.30" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.30" 2>&1` + else + PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.30" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$PCRE2_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libpcre2-8 >= 10.30) were not met: + +$PCRE2_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables PCRE2_CFLAGS +and PCRE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables PCRE2_CFLAGS +and PCRE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS + PCRE2_LIBS=$pkg_cv_PCRE2_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $PCRE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PCRE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + +$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h + + +$as_echo "#define HAVE_PCRE 1" >>confdefs.h + + + if test "$PHP_PCRE_JIT" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT support in PCRE2" >&5 +$as_echo_n "checking for JIT support in PCRE2... " >&6; } +if ${ac_cv_have_pcre2_jit+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + + case $host_cpu in + arm*|i3456786|x86_64|mips*|powerpc*|sparc) + ac_cv_have_pcre2_jit=yes + ;; + *) + ac_cv_have_pcre2_jit=no + ;; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + #include + #include + int main(void) { + uint32_t have_jit; + pcre2_config_8(PCRE2_CONFIG_JIT, &have_jit); + return !have_jit; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_have_pcre2_jit=yes + +else + + ac_cv_have_pcre2_jit=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_jit" >&5 +$as_echo "$ac_cv_have_pcre2_jit" >&6; } + if test $ac_cv_have_pcre2_jit = yes; then + $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + ext_dir=ext/pcre + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PCRE library to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 +$as_echo "bundled" >&6; } + pcrelib_sources="pcre2lib/pcre2_auto_possess.c pcre2lib/pcre2_chartables.c pcre2lib/pcre2_compile.c \ + pcre2lib/pcre2_config.c pcre2lib/pcre2_context.c pcre2lib/pcre2_dfa_match.c pcre2lib/pcre2_error.c \ + pcre2lib/pcre2_jit_compile.c pcre2lib/pcre2_maketables.c pcre2lib/pcre2_match.c pcre2lib/pcre2_match_data.c \ + pcre2lib/pcre2_newline.c pcre2lib/pcre2_ord2utf.c pcre2lib/pcre2_pattern_info.c pcre2lib/pcre2_serialize.c \ + pcre2lib/pcre2_string_utils.c pcre2lib/pcre2_study.c pcre2lib/pcre2_substitute.c pcre2lib/pcre2_substring.c \ + pcre2lib/pcre2_tables.c pcre2lib/pcre2_ucd.c pcre2lib/pcre2_valid_utf.c pcre2lib/pcre2_xclass.c \ + pcre2lib/pcre2_find_bracket.c pcre2lib/pcre2_convert.c pcre2lib/pcre2_extuni.c pcre2lib/pcre2_script_run.c" + PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + ext_dir=ext/pcre + + ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE JIT functionality" >&5 +$as_echo_n "checking whether to enable PCRE JIT functionality... " >&6; } + if test "$PHP_PCRE_JIT" != "no"; then + +$as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + if test "$PHP_VALGRIND" != "no" && test "$have_valgrind" = "yes"; then + if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define HAVE_PCRE_VALGRIND_SUPPORT 1" >>confdefs.h + + fi + fi +fi + + + + + +php_with_sqlite3=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 +$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; } + +# Check whether --with-sqlite3 was given. +if test "${with_sqlite3+set}" = set; then : + withval=$with_sqlite3; PHP_SQLITE3=$withval +else + + PHP_SQLITE3=yes + test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SQLITE3 in +shared,*) + PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'` + ;; +shared) + PHP_SQLITE3=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test $PHP_SQLITE3 != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 > 3.7.4" >&5 +$as_echo_n "checking for sqlite3 > 3.7.4... " >&6; } + +if test -n "$SQLITE_CFLAGS"; then + pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SQLITE_LIBS"; then + pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + else + SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SQLITE_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (sqlite3 > 3.7.4) were not met: + +$SQLITE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS + SQLITE_LIBS=$pkg_cv_SQLITE_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_stmt_readonly in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_stmt_readonly in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_stmt_readonly+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_stmt_readonly (); +int +main () +{ +return sqlite3_stmt_readonly (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_stmt_readonly=yes +else + ac_cv_lib_sqlite3_sqlite3_stmt_readonly=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_stmt_readonly" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_stmt_readonly" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_stmt_readonly" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $SQLITE_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SQLITE_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="$SQLITE3_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="$SQLITE3_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_stmt_readonly + + as_fn_error $? "Please install SQLite 3.7.4 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_errstr in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_errstr in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_errstr (); +int +main () +{ +return sqlite3_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_errstr=yes +else + ac_cv_lib_sqlite3_sqlite3_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_errstr" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_errstr" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_errstr + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_load_extension (); +int +main () +{ +return sqlite3_load_extension (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_load_extension=yes +else + ac_cv_lib_sqlite3_sqlite3_load_extension=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_load_extension + +$as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h + + + +fi + + + + ext_builddir=ext/sqlite3 + ext_srcdir=$abs_srcdir/ext/sqlite3 + ext_dir=ext/sqlite3 + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SQLITE3_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sqlite3.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SQLITE3 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SQLITE3_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sqlite3.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ZLIB support... " >&6; } + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; PHP_ZLIB=$withval +else + + PHP_ZLIB=no + test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZLIB in +shared,*) + PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZLIB" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0.4" >&5 +$as_echo_n "checking for zlib >= 1.2.0.4... " >&6; } + +if test -n "$ZLIB_CFLAGS"; then + pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ZLIB_LIBS"; then + pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0.4" 2>&1` + else + ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ZLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (zlib >= 1.2.0.4) were not met: + +$ZLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS + ZLIB_LIBS=$pkg_cv_ZLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ZLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="$ZLIB_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="$ZLIB_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ZLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_ZLIB 1" >>confdefs.h + + + + ext_builddir=ext/zlib + ext_srcdir=$abs_srcdir/ext/zlib + ext_dir=ext/zlib + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZLIB_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable bc style precision math functions... " >&6; } +# Check whether --enable-bcmath was given. +if test "${enable_bcmath+set}" = set; then : + enableval=$enable_bcmath; PHP_BCMATH=$enableval +else + + PHP_BCMATH=no + test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BCMATH in +shared,*) + PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'` + ;; +shared) + PHP_BCMATH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BCMATH" != "no"; then + + ext_builddir=ext/bcmath + ext_srcdir=$abs_srcdir/ext/bcmath + ext_dir=ext/bcmath + + ac_extra=`echo "-I@ext_srcdir@/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BCMATH_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BCMATH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BCMATH_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_with_bz2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 +$as_echo_n "checking for BZip2 support... " >&6; } + +# Check whether --with-bz2 was given. +if test "${with_bz2+set}" = set; then : + withval=$with_bz2; PHP_BZ2=$withval +else + + PHP_BZ2=no + test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BZ2 in +shared,*) + PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'` + ;; +shared) + PHP_BZ2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BZ2" != "no"; then + if test -r $PHP_BZ2/include/bzlib.h; then + BZIP_DIR=$PHP_BZ2 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 +$as_echo_n "checking for BZip2 in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/bzlib.h; then + BZIP_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$BZIP_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$BZIP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 +$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } +if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbz2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char BZ2_bzerror (); +int +main () +{ +return BZ2_bzerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bz2_BZ2_bzerror=yes +else + ac_cv_lib_bz2_BZ2_bzerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 +$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$BZIP_DIR/include" != "/usr/include"; then + + if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/include + else + + ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD" + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD" + test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case bz2 in + c|c_r|pthread*) ;; + *) + LIBS="-lbz2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BZ2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_bz2_BZ2_bzerror + + as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/bz2 + ext_srcdir=$abs_srcdir/ext/bz2 + ext_dir=ext/bz2 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BZ2_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BZ2 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BZ2_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable calendar conversion support... " >&6; } +# Check whether --enable-calendar was given. +if test "${enable_calendar+set}" = set; then : + enableval=$enable_calendar; PHP_CALENDAR=$enableval +else + + PHP_CALENDAR=no + test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CALENDAR in +shared,*) + PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_CALENDAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CALENDAR" = "yes"; then + +$as_echo "#define HAVE_CALENDAR 1" >>confdefs.h + + + ext_builddir=ext/calendar + ext_srcdir=$abs_srcdir/ext/calendar + ext_dir=ext/calendar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CALENDAR_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CALENDAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CALENDAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable ctype functions... " >&6; } +# Check whether --enable-ctype was given. +if test "${enable_ctype+set}" = set; then : + enableval=$enable_ctype; PHP_CTYPE=$enableval +else + + PHP_CTYPE=yes + test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CTYPE in +shared,*) + PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'` + ;; +shared) + PHP_CTYPE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CTYPE" != "no"; then + +$as_echo "#define HAVE_CTYPE 1" >>confdefs.h + + + ext_builddir=ext/ctype + ext_srcdir=$abs_srcdir/ext/ctype + ext_dir=ext/ctype + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CTYPE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CTYPE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CTYPE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for cURL support... " >&6; } + +# Check whether --with-curl was given. +if test "${with_curl+set}" = set; then : + withval=$with_curl; PHP_CURL=$withval +else + + PHP_CURL=no + test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CURL in +shared,*) + PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'` + ;; +shared) + PHP_CURL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CURL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= 7.15.5" >&5 +$as_echo_n "checking for libcurl >= 7.15.5... " >&6; } + +if test -n "$CURL_CFLAGS"; then + pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.15.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CURL_LIBS"; then + pkg_cv_CURL_LIBS="$CURL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.15.5" 2>&1` + else + CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.15.5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CURL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libcurl >= 7.15.5) were not met: + +$CURL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CURL_CFLAGS +and CURL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CURL_CFLAGS +and CURL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CURL_CFLAGS=$pkg_cv_CURL_CFLAGS + CURL_LIBS=$pkg_cv_CURL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + +if test -n "$CURL_FEATURES"; then + pkg_cv_CURL_FEATURES="$CURL_FEATURES" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_FEATURES=`$PKG_CONFIG --variable="supported_features" "libcurl" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +CURL_FEATURES=$pkg_cv_CURL_FEATURES + +if test "x$CURL_FEATURES" = x""; then : + +fi + + + for ac_i in $CURL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $CURL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 +$as_echo_n "checking for SSL support in libcurl... " >&6; } + case "$CURL_FEATURES" in + *SSL*) + CURL_SSL=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + ;; + *) + CURL_SSL=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + if test "$CURL_SSL" = yes; then + +$as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h + + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $CURL_CFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $CURL_LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5 +$as_echo_n "checking for openssl support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h + + for ac_header in openssl/crypto.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OPENSSL_CRYPTO_H 1 +_ACEOF + +fi + +done + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + CFLAGS="$save_CFLAGS" + LDFLAGS="$save_LDFLAGS" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 +$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_perform (); +int +main () +{ +return curl_easy_perform (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_perform=yes +else + ac_cv_lib_curl_curl_easy_perform=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_perform + + as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + ext_builddir=ext/curl + ext_srcdir=$abs_srcdir/ext/curl + ext_dir=ext/curl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CURL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CURL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CURL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 +$as_echo_n "checking for dpopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dpopen (); +int +main () +{ +return dpopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define QDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_QDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dpopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=QDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_GDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=GDBM + if test -n "gdbm"; then + THIS_FULL_NAME="gdbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-gdbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_GDBM /usr/local /usr; do + if test -f "$i/include/gdbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 +$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } +if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdbm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdbm_open (); +int +main () +{ +return gdbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gdbm_gdbm_open=yes +else + ac_cv_lib_gdbm_gdbm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 +$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define GDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_GDBM 1" >>confdefs.h + + THIS_LIBS=gdbm + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gdbm_gdbm_open + + +fi + + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=GDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_NDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_NDBM /usr/local /usr; do + if test -f "$i/include/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/ndbm.h + break + elif test -f "$i/include/db1/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/ndbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in ndbm db1 c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 +$as_echo_n "checking for dbm_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbm_open (); +int +main () +{ +return dbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define NDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_NDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbm_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=NDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_TCADB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_TCADB /usr/local /usr; do + if test -f "$i/include/tcadb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/tcadb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in tokyocabinet; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 +$as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tcadbopen (); +int +main () +{ +return tcadbopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define TCADB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_TCADB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_tcadbopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=TCADB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_LMDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_LMDB /usr/local /usr; do + if test -f "$i/include/lmdb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/lmdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in lmdb; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_mdb_env_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -l$LIB" >&5 +$as_echo_n "checking for mdb_env_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mdb_env_open (); +int +main () +{ +return mdb_env_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define LMDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_LMDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_mdb_env_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=LMDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + + + +if test "$PHP_DB4" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + dbdp4="/usr/local/BerkeleyDB.4." + dbdp5="/usr/local/BerkeleyDB.5." + for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do + if test -f "$i/db5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db5/db.h + break + elif test -f "$i/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break + elif test -f "$i/include/db5.3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.3/db.h + break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h + break + elif test -f "$i/include/db5.0/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.0/db.h + break + elif test -f "$i/include/db4.8/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.8/db.h + break + elif test -f "$i/include/db4.7/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.7/db.h + break + elif test -f "$i/include/db4.6/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.6/db.h + break + elif test -f "$i/include/db4.5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.5/db.h + break + elif test -f "$i/include/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4/db.h + break + elif test -f "$i/include/db/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db4.h + break + elif test -f "$i/include/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 +$as_echo_n "checking for DB4 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "4" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB4 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB4_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB4_LIBS=$THIS_LIBS + DB4_PREFIX=$THIS_PREFIX + DB4_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB4 + if test -n "Berkeley DB4"; then + THIS_FULL_NAME="Berkeley DB4" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB3" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db3 with --with-db4"; then + as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db3.h + break + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 +$as_echo_n "checking for DB3 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "3" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB3 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB3_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB3_LIBS=$THIS_LIBS + DB3_PREFIX=$THIS_PREFIX + DB3_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB2" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then + as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do + if test -f "$i/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db2/db.h + break + elif test -f "$i/include/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2/db.h + break + elif test -f "$i/include/db/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db2.h + break + elif test -f "$i/include/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-2 db2 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_appinit("", NULL, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 +$as_echo_n "checking for DB2 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "2" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB2 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB2_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB2_LIBS=$THIS_LIBS + DB2_PREFIX=$THIS_PREFIX + DB2_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB1" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 +$as_echo_n "checking for DB1 in library... " >&6; } + if test "$HAVE_DB4" = "1"; then + THIS_VERSION=4 + THIS_LIBS=$DB4_LIBS + THIS_PREFIX=$DB4_PREFIX + elif test "$HAVE_DB3" = "1"; then + THIS_LIBS=$DB3_LIBS + THIS_PREFIX=$DB3_PREFIX + elif test "$HAVE_DB2" = "1"; then + THIS_VERSION=2 + THIS_LIBS=$DB2_LIBS + THIS_PREFIX=$DB2_PREFIX + fi + if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION" +_ACEOF + + for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do + if test -f "$THIS_PREFIX/$i"; then + THIS_INCLUDE=$THIS_PREFIX/$i + break + fi + done + else + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Unknown DB1" +_ACEOF + + for i in $PHP_DB1 /usr/local /usr; do + if test -f "$i/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db1/db.h + break + elif test -f "$i/include/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/db.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + THIS_LIBS=db + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 +$as_echo "$THIS_LIBS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 +$as_echo_n "checking for DB1 in header... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 +$as_echo "$THIS_INCLUDE" >&6; } + if test -n "$THIS_INCLUDE"; then + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$THIS_LIBS $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + DB * dbp = dbopen("", 0, 0, DB_HASH, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define DB1_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_DB1 1" >>confdefs.h + + THIS_RESULT=yes + +else + + THIS_RESULT=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + fi + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DB1 + if test -n "DB1"; then + THIS_FULL_NAME="DB1" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=DBM + if test -n "dbm"; then + THIS_FULL_NAME="dbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-dbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DBM /usr/local /usr; do + if test -f "$i/include/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/dbm.h + break + elif test -f "$i/include/gdbm/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm/dbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in dbm c gdbm; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 +$as_echo_n "checking for dbminit in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbminit (); +int +main () +{ +return dbminit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 +$as_echo_n "checking for DBM using GDBM... " >&6; } + +cat >>confdefs.h <<_ACEOF +#define DBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + if test "$LIB" = "gdbm"; then + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "GDBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "DBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + +$as_echo "#define DBA_DBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbminit + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then + php_dba_enable=yes +else + php_dba_enable=no +fi + + +php_with_cdb=$php_dba_enable + + + +# Check whether --with-cdb was given. +if test "${with_cdb+set}" = set; then : + withval=$with_cdb; PHP_CDB=$withval +else + + PHP_CDB=$php_dba_enable + + +fi + + +ext_output=$PHP_CDB + + + + + + +php_enable_inifile=$php_dba_enable + + +# Check whether --enable-inifile was given. +if test "${enable_inifile+set}" = set; then : + enableval=$enable_inifile; PHP_INIFILE=$enableval +else + + PHP_INIFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_INIFILE + + + + + + +php_enable_flatfile=$php_dba_enable + + +# Check whether --enable-flatfile was given. +if test "${enable_flatfile+set}" = set; then : + enableval=$enable_flatfile; PHP_FLATFILE=$enableval +else + + PHP_FLATFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_FLATFILE + + + + + +if test "$PHP_CDB" = "yes"; then + +$as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h + + +$as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" + THIS_RESULT="builtin" +elif test "$PHP_CDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_CDB /usr/local /usr; do + if test -f "$i/include/cdb.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/cdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in cdb c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 +$as_echo_n "checking for cdb_read in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cdb_read (); +int +main () +{ +return cdb_read (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define CDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_cdb_read + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=CDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_INIFILE" != "no"; then + +$as_echo "#define DBA_INIFILE 1" >>confdefs.h + + ini_sources="libinifile/inifile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=INIFILE + if test -n "INI File"; then + THIS_FULL_NAME="INI File" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_FLATFILE" != "no"; then + +$as_echo "#define DBA_FLATFILE 1" >>confdefs.h + + flat_sources="libflatfile/flatfile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=FLATFILE + if test -n "FlatFile"; then + THIS_FULL_NAME="FlatFile" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 +$as_echo_n "checking whether to enable DBA interface... " >&6; } +if test "$HAVE_DBA" = "1"; then + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 +$as_echo "yes, shared" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + +$as_echo "#define HAVE_DBA 1" >>confdefs.h + + + ext_builddir=ext/dba + ext_srcdir=$abs_srcdir/ext/dba + ext_dir=ext/dba + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DBA_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DBA 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DBA_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_dom=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 +$as_echo_n "checking whether to enable DOM support... " >&6; } +# Check whether --enable-dom was given. +if test "${enable_dom+set}" = set; then : + enableval=$enable_dom; PHP_DOM=$enableval +else + + PHP_DOM=yes + test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DOM in +shared,*) + PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'` + ;; +shared) + PHP_DOM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DOM" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "DOM extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_DOM 1" >>confdefs.h + + + ext_builddir=ext/dom + ext_srcdir=$abs_srcdir/ext/dom + ext_dir=ext/dom + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DOM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DOM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DOM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with Enchant support... " >&6; } + +# Check whether --with-enchant was given. +if test "${with_enchant+set}" = set; then : + withval=$with_enchant; PHP_ENCHANT=$withval +else + + PHP_ENCHANT=no + test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ENCHANT in +shared,*) + PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'` + ;; +shared) + PHP_ENCHANT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ENCHANT" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant" >&5 +$as_echo_n "checking for enchant... " >&6; } + +if test -n "$ENCHANT_CFLAGS"; then + pkg_cv_ENCHANT_CFLAGS="$ENCHANT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 + ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ENCHANT_LIBS"; then + pkg_cv_ENCHANT_LIBS="$ENCHANT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 + ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "enchant" 2>&1` + else + ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "enchant" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ENCHANT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (enchant) were not met: + +$ENCHANT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ENCHANT_CFLAGS +and ENCHANT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ENCHANT_CFLAGS +and ENCHANT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ENCHANT_CFLAGS=$pkg_cv_ENCHANT_CFLAGS + ENCHANT_LIBS=$pkg_cv_ENCHANT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ENCHANT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ENCHANT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="$ENCHANT_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="$ENCHANT_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_ENCHANT 1" >>confdefs.h + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ENCHANT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_get_version in -lenchant" >&5 +$as_echo_n "checking for enchant_get_version in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_get_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_get_version (); +int +main () +{ +return enchant_get_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_get_version=yes +else + ac_cv_lib_enchant_enchant_get_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_get_version" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_get_version" >&6; } +if test "x$ac_cv_lib_enchant_enchant_get_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_get_version + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ENCHANT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 +$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_broker_set_param (); +int +main () +{ +return enchant_broker_set_param (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_broker_set_param=yes +else + ac_cv_lib_enchant_enchant_broker_set_param=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_broker_set_param + + +fi + + + + ext_builddir=ext/enchant + ext_srcdir=$abs_srcdir/ext/enchant + ext_dir=ext/enchant + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ENCHANT_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ENCHANT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ENCHANT_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; } +# Check whether --enable-exif was given. +if test "${enable_exif+set}" = set; then : + enableval=$enable_exif; PHP_EXIF=$enableval +else + + PHP_EXIF=no + test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EXIF in +shared,*) + PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'` + ;; +shared) + PHP_EXIF=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_EXIF" != "no"; then + +$as_echo "#define HAVE_EXIF 1" >>confdefs.h + + + ext_builddir=ext/exif + ext_srcdir=$abs_srcdir/ext/exif + ext_dir=ext/exif + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_EXIF_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EXIF 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_EXIF_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for FFI support... " >&6; } + +# Check whether --with-ffi was given. +if test "${with_ffi+set}" = set; then : + withval=$with_ffi; PHP_FFI=$withval +else + + PHP_FFI=no + test "$PHP_ENABLE_ALL" && PHP_FFI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FFI in +shared,*) + PHP_FFI=`echo "$PHP_FFI"|$SED 's/^shared,//'` + ;; +shared) + PHP_FFI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FFI" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi >= 3.0.11" >&5 +$as_echo_n "checking for libffi >= 3.0.11... " >&6; } + +if test -n "$FFI_CFLAGS"; then + pkg_cv_FFI_CFLAGS="$FFI_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$FFI_LIBS"; then + pkg_cv_FFI_LIBS="$FFI_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.11" 2>&1` + else + FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.11" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$FFI_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libffi >= 3.0.11) were not met: + +$FFI_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables FFI_CFLAGS +and FFI_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables FFI_CFLAGS +and FFI_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + FFI_CFLAGS=$pkg_cv_FFI_CFLAGS + FFI_LIBS=$pkg_cv_FFI_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $FFI_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FFI_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="$FFI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="$FFI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="-L$ai_p $FFI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FFI_SHARED_LIBADD="$ld_runpath_switch$ai_p $FFI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_FFI 1" >>confdefs.h + + + ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" +if test "x$ac_cv_type_long_double" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_LONG_DOUBLE 1 +_ACEOF + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fastcall calling convention" >&5 +$as_echo_n "checking for fastcall calling convention... " >&6; } +if ${ac_cv_ffi_fastcall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_FASTCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_fastcall=yes +else + ac_cv_ffi_fastcall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_fastcall" >&5 +$as_echo "$ac_cv_ffi_fastcall" >&6; } + + if test "$ac_cv_ffi_fastcall" = yes; then + +$as_echo "#define HAVE_FFI_FASTCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thiscall calling convention" >&5 +$as_echo_n "checking for thiscall calling convention... " >&6; } +if ${ac_cv_ffi_thiscall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_THISCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_thiscall=yes +else + ac_cv_ffi_thiscall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_thiscall" >&5 +$as_echo "$ac_cv_ffi_thiscall" >&6; } + + if test "$ac_cv_ffi_thiscall" = yes; then + +$as_echo "#define HAVE_FFI_THISCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdcall calling convention" >&5 +$as_echo_n "checking for stdcall calling convention... " >&6; } +if ${ac_cv_ffi_stdcall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_STDCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_stdcall=yes +else + ac_cv_ffi_stdcall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_stdcall" >&5 +$as_echo "$ac_cv_ffi_stdcall" >&6; } + + if test "$ac_cv_ffi_stdcall" = yes; then + +$as_echo "#define HAVE_FFI_STDCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pascal calling convention" >&5 +$as_echo_n "checking for pascal calling convention... " >&6; } +if ${ac_cv_ffi_pascal+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_PASCAL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_pascal=yes +else + ac_cv_ffi_pascal=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_pascal" >&5 +$as_echo "$ac_cv_ffi_pascal" >&6; } + + if test "$ac_cv_ffi_pascal" = yes; then + +$as_echo "#define HAVE_FFI_PASCAL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register calling convention" >&5 +$as_echo_n "checking for register calling convention... " >&6; } +if ${ac_cv_ffi_register+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_REGISTER + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_register=yes +else + ac_cv_ffi_register=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_register" >&5 +$as_echo "$ac_cv_ffi_register" >&6; } + + if test "$ac_cv_ffi_register" = yes; then + +$as_echo "#define HAVE_FFI_REGISTER 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_cdecl calling convention" >&5 +$as_echo_n "checking for ms_cdecl calling convention... " >&6; } +if ${ac_cv_ffi_ms_cdecl+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_MS_CDECL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_ms_cdecl=yes +else + ac_cv_ffi_ms_cdecl=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_ms_cdecl" >&5 +$as_echo "$ac_cv_ffi_ms_cdecl" >&6; } + + if test "$ac_cv_ffi_ms_cdecl" = yes; then + +$as_echo "#define HAVE_FFI_MS_CDECL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysv calling convention" >&5 +$as_echo_n "checking for sysv calling convention... " >&6; } +if ${ac_cv_ffi_sysv+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_SYSV + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_sysv=yes +else + ac_cv_ffi_sysv=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_sysv" >&5 +$as_echo "$ac_cv_ffi_sysv" >&6; } + + if test "$ac_cv_ffi_sysv" = yes; then + +$as_echo "#define HAVE_FFI_SYSV 1" >>confdefs.h + + fi + + + ext_builddir=ext/ffi + ext_srcdir=$abs_srcdir/ext/ffi + ext_dir=ext/ffi + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FFI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ffi.c ffi_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FFI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FFI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ffi.c ffi_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for fileinfo support... " >&6; } +# Check whether --enable-fileinfo was given. +if test "${enable_fileinfo+set}" = set; then : + enableval=$enable_fileinfo; PHP_FILEINFO=$enableval +else + + PHP_FILEINFO=yes + test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILEINFO in +shared,*) + PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILEINFO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ + libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \ + libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \ + libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \ + libmagic/is_json.c libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c \ + libmagic/buffer.c" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasestr" >&5 +$as_echo_n "checking for strcasestr... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped, cross-compiling" >&5 +$as_echo "skipped, cross-compiling" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int main(void) +{ + char *s0, *s1, *ret; + + s0 = (char *) malloc(42); + s1 = (char *) malloc(8); + + memset(s0, 'X', 42); + s0[24] = 'Y'; + s0[26] = 'Z'; + s0[41] = '\0'; + memset(s1, 'x', 8); + s1[0] = 'y'; + s1[2] = 'Z'; + s1[7] = '\0'; + + ret = strcasestr(s0, s1); + + return !(NULL != ret); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: using libmagic strcasestr implementation" >&5 +$as_echo "$as_me: using libmagic strcasestr implementation" >&6;} + libmagic_sources="$libmagic_sources libmagic/strcasestr.c" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + ext_builddir=ext/fileinfo + ext_srcdir=$abs_srcdir/ext/fileinfo + ext_dir=ext/fileinfo + + ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILEINFO_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILEINFO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILEINFO_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + + + +php_enable_filter=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 +$as_echo_n "checking whether to enable input filter support... " >&6; } +# Check whether --enable-filter was given. +if test "${enable_filter+set}" = set; then : + enableval=$enable_filter; PHP_FILTER=$enableval +else + + PHP_FILTER=yes + test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILTER in +shared,*) + PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILTER" != "no"; then + + ext_builddir=ext/filter + ext_srcdir=$abs_srcdir/ext/filter + ext_dir=ext/filter + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILTER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILTER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILTER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable FTP support... " >&6; } +# Check whether --enable-ftp was given. +if test "${enable_ftp+set}" = set; then : + enableval=$enable_ftp; PHP_FTP=$enableval +else + + PHP_FTP=no + test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FTP in +shared,*) + PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'` + ;; +shared) + PHP_FTP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5 +$as_echo_n "checking OpenSSL dir for FTP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FTP" = "yes"; then + +$as_echo "#define HAVE_FTP 1" >>confdefs.h + + + ext_builddir=ext/ftp + ext_srcdir=$abs_srcdir/ext/ftp + ext_dir=ext/ftp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FTP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FTP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FTP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + +: + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD" + + +$as_echo "#define HAVE_FTP_SSL 1" >>confdefs.h + + fi +fi + + + + + +php_enable_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 +$as_echo_n "checking for GD support... " >&6; } +# Check whether --enable-gd was given. +if test "${enable_gd+set}" = set; then : + enableval=$enable_gd; PHP_GD=$enableval +else + + PHP_GD=no + test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GD in +shared,*) + PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'` + ;; +shared) + PHP_GD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_external_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libgd" >&5 +$as_echo_n "checking for external libgd... " >&6; } + +# Check whether --with-external-gd was given. +if test "${with_external_gd+set}" = set; then : + withval=$with_external_gd; PHP_EXTERNAL_GD=$withval +else + + PHP_EXTERNAL_GD=no + + +fi + + +ext_output=$PHP_EXTERNAL_GD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_WEBP"; then + +php_with_webp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 +$as_echo_n "checking for libwebp... " >&6; } + +# Check whether --with-webp was given. +if test "${with_webp+set}" = set; then : + withval=$with_webp; PHP_WEBP=$withval +else + + PHP_WEBP=no + + +fi + + +ext_output=$PHP_WEBP +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_JPEG"; then + +php_with_jpeg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +$as_echo_n "checking for libjpeg... " >&6; } + +# Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; PHP_JPEG=$withval +else + + PHP_JPEG=no + + +fi + + +ext_output=$PHP_JPEG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_xpm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXpm" >&5 +$as_echo_n "checking for libXpm... " >&6; } + +# Check whether --with-xpm was given. +if test "${with_xpm+set}" = set; then : + withval=$with_xpm; PHP_XPM=$withval +else + + PHP_XPM=no + + +fi + + +ext_output=$PHP_XPM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_freetype=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 +$as_echo_n "checking for FreeType 2... " >&6; } + +# Check whether --with-freetype was given. +if test "${with_freetype+set}" = set; then : + withval=$with_freetype; PHP_FREETYPE=$withval +else + + PHP_FREETYPE=no + + +fi + + +ext_output=$PHP_FREETYPE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_jis_conv=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 +$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } +# Check whether --enable-gd-jis-conv was given. +if test "${enable_gd_jis_conv+set}" = set; then : + enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval +else + + PHP_GD_JIS_CONV=no + + +fi + + +ext_output=$PHP_GD_JIS_CONV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + + + + + + + + + + + + + + + + +if test "$PHP_GD" != "no"; then + + if test "$PHP_EXTERNAL_GD" = "no"; then + GD_CFLAGS="" + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_rotate.c libgd/gd_color_match.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \ + libgd/gd_bmp.c libgd/gd_tga.c" + + for ac_func in fabsf floorf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + +$as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 +$as_echo_n "checking for zlib... " >&6; } + +if test -n "$ZLIB_CFLAGS"; then + pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ZLIB_LIBS"; then + pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` + else + ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ZLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (zlib) were not met: + +$ZLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS + ZLIB_LIBS=$pkg_cv_ZLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ZLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ZLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5 +$as_echo_n "checking for libpng... " >&6; } + +if test -n "$PNG_CFLAGS"; then + pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$PNG_LIBS"; then + pkg_cv_PNG_LIBS="$PNG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` + else + PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$PNG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libpng) were not met: + +$PNG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables PNG_CFLAGS +and PNG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables PNG_CFLAGS +and PNG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + PNG_CFLAGS=$pkg_cv_PNG_CFLAGS + PNG_LIBS=$pkg_cv_PNG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $PNG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $PNG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h + + + + if test "$PHP_WEBP" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 +$as_echo_n "checking for libwebp... " >&6; } + +if test -n "$WEBP_CFLAGS"; then + pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$WEBP_LIBS"; then + pkg_cv_WEBP_LIBS="$WEBP_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1` + else + WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$WEBP_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libwebp) were not met: + +$WEBP_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables WEBP_CFLAGS +and WEBP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables WEBP_CFLAGS +and WEBP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS + WEBP_LIBS=$pkg_cv_WEBP_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $WEBP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $WEBP_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBWEBP 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + fi + + + if test "$PHP_JPEG" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +$as_echo_n "checking for libjpeg... " >&6; } + +if test -n "$JPEG_CFLAGS"; then + pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$JPEG_LIBS"; then + pkg_cv_JPEG_LIBS="$JPEG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + JPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg" 2>&1` + else + JPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$JPEG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libjpeg) were not met: + +$JPEG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables JPEG_CFLAGS +and JPEG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables JPEG_CFLAGS +and JPEG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS + JPEG_LIBS=$pkg_cv_JPEG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $JPEG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $JPEG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + fi + + + if test "$PHP_XPM" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5 +$as_echo_n "checking for xpm... " >&6; } + +if test -n "$XPM_CFLAGS"; then + pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$XPM_LIBS"; then + pkg_cv_XPM_LIBS="$XPM_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1` + else + XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$XPM_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (xpm) were not met: + +$XPM_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables XPM_CFLAGS +and XPM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables XPM_CFLAGS +and XPM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XPM_CFLAGS=$pkg_cv_XPM_CFLAGS + XPM_LIBS=$pkg_cv_XPM_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $XPM_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $XPM_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_XPM 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + fi + + + if test "$PHP_FREETYPE" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 +$as_echo_n "checking for freetype2... " >&6; } + +if test -n "$FREETYPE2_CFLAGS"; then + pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$FREETYPE2_LIBS"; then + pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` + else + FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$FREETYPE2_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (freetype2) were not met: + +$FREETYPE2_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables FREETYPE2_CFLAGS +and FREETYPE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables FREETYPE2_CFLAGS +and FREETYPE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS + FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + FREETYPE2_FOUND=true +fi + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + fi + + + if test "$PHP_GD_JIS_CONV" = "yes"; then + +$as_echo "#define USE_GD_JISX0208 1" >>confdefs.h + + +$as_echo "#define JISX0208 1" >>confdefs.h + + fi + + + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + ext_dir=ext/gd + + ac_extra=`echo "\\$(GD_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<conftest.$ac_ext +/* end confdefs.h. */ + + char foobar () {} + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +else + + LIBS=$old_LIBS + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + else + extra_sources="gd_compat.c" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib >= 2.1.0" >&5 +$as_echo_n "checking for gdlib >= 2.1.0... " >&6; } + +if test -n "$GDLIB_CFLAGS"; then + pkg_cv_GDLIB_CFLAGS="$GDLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GDLIB_CFLAGS=`$PKG_CONFIG --cflags "gdlib >= 2.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GDLIB_LIBS"; then + pkg_cv_GDLIB_LIBS="$GDLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GDLIB_LIBS=`$PKG_CONFIG --libs "gdlib >= 2.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GDLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdlib >= 2.1.0" 2>&1` + else + GDLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdlib >= 2.1.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GDLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (gdlib >= 2.1.0) were not met: + +$GDLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables GDLIB_CFLAGS +and GDLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables GDLIB_CFLAGS +and GDLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + GDLIB_CFLAGS=$pkg_cv_GDLIB_CFLAGS + GDLIB_LIBS=$pkg_cv_GDLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $GDLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $GDLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBGD 1" >>confdefs.h + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromPng (); +int +main () +{ +return gdImageCreateFromPng (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromPng=yes +else + ac_cv_lib_gd_gdImageCreateFromPng=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromPng + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromWebp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromWebp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromWebp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromWebp (); +int +main () +{ +return gdImageCreateFromWebp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromWebp=yes +else + ac_cv_lib_gd_gdImageCreateFromWebp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromWebp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromWebp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromWebp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromWebp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromJpeg (); +int +main () +{ +return gdImageCreateFromJpeg (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromJpeg=yes +else + ac_cv_lib_gd_gdImageCreateFromJpeg=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromJpeg + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromXpm (); +int +main () +{ +return gdImageCreateFromXpm (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromXpm=yes +else + ac_cv_lib_gd_gdImageCreateFromXpm=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromXpm + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromBmp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromBmp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromBmp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromBmp (); +int +main () +{ +return gdImageCreateFromBmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromBmp=yes +else + ac_cv_lib_gd_gdImageCreateFromBmp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromBmp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromBmp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromBmp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromBmp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromTga in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromTga in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromTga+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromTga (); +int +main () +{ +return gdImageCreateFromTga (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromTga=yes +else + ac_cv_lib_gd_gdImageCreateFromTga=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromTga" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromTga" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromTga" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromTga + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5 +$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageStringFT+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageStringFT (); +int +main () +{ +return gdImageStringFT (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageStringFT=yes +else + ac_cv_lib_gd_gdImageStringFT=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5 +$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; } +if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageStringFT + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdVersionString in -lgd" >&5 +$as_echo_n "checking for gdVersionString in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdVersionString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdVersionString (); +int +main () +{ +return gdVersionString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdVersionString=yes +else + ac_cv_lib_gd_gdVersionString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdVersionString" >&5 +$as_echo "$ac_cv_lib_gd_gdVersionString" >&6; } +if test "x$ac_cv_lib_gd_gdVersionString" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_LIBVERSION 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdVersionString + + +fi + + + + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + ext_dir=ext/gd + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 +$as_echo_n "checking for gdImageCreate in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreate (); +int +main () +{ +return gdImageCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreate=yes +else + ac_cv_lib_gd_gdImageCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreate + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi + + fi + + + + for header_file in $GD_HEADER_DIRS; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_LIBS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD" + +fi + + + + + +php_with_gettext=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 +$as_echo_n "checking for GNU gettext support... " >&6; } + +# Check whether --with-gettext was given. +if test "${with_gettext+set}" = set; then : + withval=$with_gettext; PHP_GETTEXT=$withval +else + + PHP_GETTEXT=no + test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GETTEXT in +shared,*) + PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'` + ;; +shared) + PHP_GETTEXT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GETTEXT" != "no"; then + for i in $PHP_GETTEXT /usr/local /usr; do + test -r $i/include/libintl.h && GETTEXT_DIR=$i && break + done + + if test -z "$GETTEXT_DIR"; then + as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5 + fi + + GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR + GETTEXT_INCDIR=$GETTEXT_DIR/include + + O_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 +$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } +if ${ac_cv_lib_intl_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_bindtextdomain=yes +else + ac_cv_lib_intl_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : + + GETTEXT_LIBS=intl + GETTEXT_CHECK_IN_LIB=intl + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 +$as_echo_n "checking for bindtextdomain in -lc... " >&6; } +if ${ac_cv_lib_c_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_bindtextdomain=yes +else + ac_cv_lib_c_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } +if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : + + GETTEXT_LIBS= + GETTEXT_CHECK_IN_LIB=c + +else + + as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 + +fi + + +fi + + + +$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h + + + ext_builddir=ext/gettext + ext_srcdir=$abs_srcdir/ext/gettext + ext_dir=ext/gettext + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GETTEXT_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GETTEXT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GETTEXT_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$GETTEXT_INCDIR + else + + ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ngettext (); +int +main () +{ +return ngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dngettext (); +int +main () +{ +return dngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dcngettext (); +int +main () +{ +return dcngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind_textdomain_codeset (); +int +main () +{ +return bind_textdomain_codeset (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h + +fi + + LDFLAGS=$O_LDFLAGS + + if test -n "$GETTEXT_LIBS"; then + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD" + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $GETTEXT_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$GETTEXT_LIBS $LIBS" + ;; + esac + + + + + fi + + + fi +fi + + + + + +php_with_gmp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 +$as_echo_n "checking for GNU MP support... " >&6; } + +# Check whether --with-gmp was given. +if test "${with_gmp+set}" = set; then : + withval=$with_gmp; PHP_GMP=$withval +else + + PHP_GMP=no + test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GMP in +shared,*) + PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_GMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GMP" != "no"; then + if test "$PHP_GMP" = "yes"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmpz_rootrem (); +int +main () +{ +return __gmpz_rootrem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmpz_rootrem=yes +else + ac_cv_lib_gmp___gmpz_rootrem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmpz_rootrem + + as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 + + +fi + + + + + case gmp in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + else + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + fi + ;; + esac + + + else + if test ! -f $PHP_GMP/include/gmp.h; then + as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_GMP/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmpz_rootrem (); +int +main () +{ +return __gmpz_rootrem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmpz_rootrem=yes +else + ac_cv_lib_gmp___gmpz_rootrem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmpz_rootrem + + as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 + + +fi + + + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + if test -n "$PHP_GMP/$PHP_LIBDIR"; then + + if test "$PHP_GMP/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GMP/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GMP/$PHP_LIBDIR" || echo "$PHP_GMP/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GMP/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_GMP/$PHP_LIBDIR"; then + + if test "$PHP_GMP/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GMP/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GMP/$PHP_LIBDIR" || echo "$PHP_GMP/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GMP/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_GMP/include" != "/usr/include"; then + + if test -z "$PHP_GMP/include" || echo "$PHP_GMP/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/include + else + + ep_dir=`echo $PHP_GMP/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + + for header_file in ext/gmp/php_gmp_int.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + ext_builddir=ext/gmp + ext_srcdir=$abs_srcdir/ext/gmp + ext_dir=ext/gmp + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GMP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_with_mhash=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 +$as_echo_n "checking for mhash support... " >&6; } + +# Check whether --with-mhash was given. +if test "${with_mhash+set}" = set; then : + withval=$with_mhash; PHP_MHASH=$withval +else + + PHP_MHASH=no + test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MHASH in +shared,*) + PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_MHASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MHASH" != "no"; then + if test "$PHP_HASH" = "no"; then + PHP_HASH="yes" + fi + + +$as_echo "#define PHP_MHASH_BC 1" >>confdefs.h + +fi + + +$as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h + + +if test $ac_cv_c_bigendian_php = yes; then + EXT_HASH_SHA3_SOURCES="hash_sha3.c" + +$as_echo "#define HAVE_SLOW_HASH3 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&5 +$as_echo "$as_me: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&2;} +else + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SHA3_DIR="sha3/generic32lc" + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SHA3_DIR="sha3/generic64lc" + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c" + +fi + EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c" + PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + + + $php_shtool mkdir -p ext/hash/$SHA3_DIR + + +fi + +EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c hash_fnv.c hash_joaat.c $EXT_HASH_SHA3_SOURCES" +EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ + php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h" + + + ext_builddir=ext/hash + ext_srcdir=$abs_srcdir/ext/hash + ext_dir=ext/hash + + ac_extra=`echo "$PHP_HASH_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "0" != "shared" && test "0" != "yes" && test "" != "cli"; then + PHP_HASH_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_HASH 1 +_ACEOF + + fi + fi + + if test "0" != "shared" && test "0" != "yes" && test "" = "cli"; then + PHP_HASH_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for iconv support... " >&6; } + +# Check whether --with-iconv was given. +if test "${with_iconv+set}" = set; then : + withval=$with_iconv; PHP_ICONV=$withval +else + + PHP_ICONV=yes + test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ICONV in +shared,*) + PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'` + ;; +shared) + PHP_ICONV=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ICONV" != "no"; then + + + found_iconv=no + unset ICONV_DIR + + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + iconv_avail="yes"; + +else + iconv_avail="no"; + + fi + + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break + fi + done + if test -z "$PHP_ICONV_PREFIX"; then + PHP_ICONV_PREFIX="/usr" + fi + else + PHP_ICONV_PREFIX="$ICONV_DIR" + fi + + CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" + LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" + + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" + else + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 +$as_echo_n "checking if iconv is glibc's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +gnu_get_libc_version(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="glibc" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 +$as_echo_n "checking if using GNU libiconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross-compiling" >&5 +$as_echo "no, cross-compiling" >&6; } + LDFLAGS="$php_iconv_old_ld" + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +int main() { + printf("%d", _libiconv_version); + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="gnu_libiconv" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 +$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +iconv_ccs_init(NULL, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="bsd" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 +$as_echo_n "checking if using IBM iconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +cstoccsid(""); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="ibm" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_ibm_iconv.h + + case "$iconv_impl_name" in + gnu_libiconv ) + + echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD" + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iconv in + c|c_r|pthread*) ;; + *) + LIBS="-liconv $LIBS" + ;; + esac + + + + + fi + + + ;; + + bsd ) + + echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h + + +$as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h + + ;; + + glibc ) + + echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h + + +$as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h + + ;; + ibm ) + + echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h + + +$as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h + + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 +$as_echo_n "checking if iconv supports errno... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd; + cd = iconv_open( "*blahblah*", "*blahblah*" ); + if (cd == (iconv_t)(-1)) { + if (errno == EINVAL) { + return 0; + } else { + return 1; + } + } + iconv_close( cd ); + return 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports //IGNORE" >&5 +$as_echo_n "checking if iconv supports //IGNORE... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd = iconv_open( "UTF-8//IGNORE", "UTF-8" ); + if(cd == (iconv_t)-1) { + return 1; + } + char *in_p = "\xC3\xC3\xC3\xB8"; + size_t in_left = 4, out_left = 4096; + char *out = malloc(out_left); + char *out_p = out; + size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left); + if(result == (size_t)-1) { + return 1; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 1" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 1" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5 +$as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define FOO <$PHP_ICONV_H_PATH> +#include FOO + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h + + +cat >>confdefs.h <<_ACEOF +#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH> +_ACEOF + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/iconv + ext_srcdir=$abs_srcdir/ext/iconv + ext_dir=ext/iconv + + ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\" -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ICONV_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ICONV 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ICONV_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for IMAP support... " >&6; } + +# Check whether --with-imap was given. +if test "${with_imap+set}" = set; then : + withval=$with_imap; PHP_IMAP=$withval +else + + PHP_IMAP=no + test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IMAP in +shared,*) + PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_IMAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 +$as_echo_n "checking for IMAP Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_imap_ssl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 +$as_echo_n "checking for IMAP SSL support... " >&6; } + +# Check whether --with-imap-ssl was given. +if test "${with_imap_ssl+set}" = set; then : + withval=$with_imap_ssl; PHP_IMAP_SSL=$withval +else + + PHP_IMAP_SSL=no + + +fi + + +ext_output=$PHP_IMAP_SSL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IMAP" != "no"; then + + PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD" + + + ext_builddir=ext/imap + ext_srcdir=$abs_srcdir/ext/imap + ext_dir=ext/imap + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_IMAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_IMAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_IMAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + for i in $PHP_IMAP /usr/local /usr; do + if test -r "$i/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i + break + elif test -r "$i/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i + break + + elif test -r "$i/include/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/c-client + break + elif test -r "$i/include/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/c-client + break + + elif test -r "$i/include/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/imap + break + elif test -r "$i/include/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/imap + break + + elif test -r "$i/include/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include + break + elif test -r "$i/include/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include + break + + elif test -r "$i/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/imap + break + elif test -r "$i/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/imap + break + + elif test -r "$i/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/c-client + break + elif test -r "$i/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/c-client + break + + fi + done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/mail.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2004 1" >>confdefs.h + + +fi +rm -f conftest* + + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 +$as_echo_n "checking for utf8_mime2text signature... " >&6; } +if ${ac_cv_utf8_mime2text+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + + SIZEDTEXT *src, *dst; + utf8_mime2text(src, dst); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_utf8_mime2text=old + +else + + ac_cv_utf8_mime2text=new + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 +$as_echo "$ac_cv_utf8_mime2text" >&6; } + if test "$ac_cv_utf8_mime2text" = "new"; then + +$as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h + + fi + CFLAGS=$old_CFLAGS + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 +$as_echo_n "checking for U8T_DECOMPOSE... " >&6; } +if ${ac_cv_u8t_decompose+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + + int i = U8T_CANONICAL; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_u8t_decompose=yes + +else + + ac_cv_u8t_decompose=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_decompose" >&5 +$as_echo "$ac_cv_u8t_decompose" >&6; } + CFLAGS=$old_CFLAGS + + if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then + as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then + as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$IMAP_INC_DIR + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "imap4r1.h" +#if defined(IMAPSSLPORT) + this_is_true +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "this_is_true" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2001 1" >>confdefs.h + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 +$as_echo_n "checking for pam_start in -lpam... " >&6; } +if ${ac_cv_lib_pam_pam_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpam $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pam_start (); +int +main () +{ +return pam_start (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pam_pam_start=yes +else + ac_cv_lib_pam_pam_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +$as_echo "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case pam in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD" + else + + + case pam in + c|c_r|pthread*) ;; + *) + LIBS="-lpam $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBPAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_pam_pam_start + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD" + else + + + case crypt in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypt_crypt + + +fi + + + + if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then + IMAP_DIR=$IMAP_DIR + else + + ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"` + fi + + + if test -z "$IMAP_DIR"; then + as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 + fi + + if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then + ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then + ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 + fi + + for lib in c-client4 c-client imap; do + IMAP_LIB=$lib + + str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2 + done + + + str="$IMAP_DIR/c-client/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2 + done + + done + + if test -z "$IMAP_LIBDIR"; then + as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 + fi + + + if test "$IMAP_INC_DIR" != "/usr/include"; then + + if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_INC_DIR + else + + ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD" + else + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + DLIBS="-l$IMAP_LIB $DLIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then + + if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_LIBDIR + else + + ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + if test "$PHP_KERBEROS" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 +$as_echo_n "checking for krb5-gssapi krb5... " >&6; } + +if test -n "$KERBEROS_CFLAGS"; then + pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$KERBEROS_LIBS"; then + pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + else + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$KERBEROS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (krb5-gssapi krb5) were not met: + +$KERBEROS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS + KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h + + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "auth_gss" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with Kerberos support. + + Add --with-kerberos to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + if test "$PHP_IMAP_SSL" != "no"; then + if test "$PHP_OPENSSL" = ""; then + PHP_OPENSSL='no' + fi + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL libraries not found. + + Check the path given to --with-openssl-dir and output in config.log) + " "$LINENO" 5 + + fi + + elif test -f "$IMAP_INC_DIR/linkage.c"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.c> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with SSL support. + + Add --with-imap-ssl to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD" + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char auth_gssapi_valid(); + int main() { + auth_gssapi_valid(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); } + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char utf8_to_mutf7_php(); + int main() { + utf8_to_mutf7_php(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 +$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; } + + old_LIBS=$LIBS + LIBS=" + $TST_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + void rfc822_output_address_list(void); + void (*f)(void); + char foobar () {f = rfc822_output_address_list;} + + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 +$as_echo_n "checking whether build with IMAP works... " >&6; } + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char mail_newbody(); + int main() { + mail_newbody(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi + + + + + +php_enable_intl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5 +$as_echo_n "checking whether to enable internationalization support... " >&6; } +# Check whether --enable-intl was given. +if test "${enable_intl+set}" = set; then : + enableval=$enable_intl; PHP_INTL=$enableval +else + + PHP_INTL=no + test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTL in +shared,*) + PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTL" != "no"; then + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc >= 50.1 icu-io icu-i18n" >&5 +$as_echo_n "checking for icu-uc >= 50.1 icu-io icu-i18n... " >&6; } + +if test -n "$ICU_CFLAGS"; then + pkg_cv_ICU_CFLAGS="$ICU_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ICU_LIBS"; then + pkg_cv_ICU_LIBS="$ICU_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>&1` + else + ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ICU_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met: + +$ICU_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ICU_CFLAGS +and ICU_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ICU_CFLAGS +and ICU_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ICU_CFLAGS=$pkg_cv_ICU_CFLAGS + ICU_LIBS=$pkg_cv_ICU_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ICU_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ICU_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + ICU_CFLAGS="$ICU_CFLAGS -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1" + ICU_CXXFLAGS="$ICU_CXXFLAGS -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit" + + if test "$PKG_CONFIG icu-io --atleast-version=60"; then + ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1" + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD" + + INTL_COMMON_FLAGS="$ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + ext_builddir=ext/intl + ext_srcdir=$abs_srcdir/ext/intl + ext_dir=ext/intl + + ac_extra=`echo "$INTL_COMMON_FLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_parse.c \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + uchar/uchar.c \ + idn/idn.c \ + spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_parse.c \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + uchar/uchar.c \ + idn/idn.c \ + spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + case stdc++ in + c|c_r|pthread*) ;; + *) + LIBS="-lstdc++ $LIBS" + ;; + esac + + + php_cxx_done=yes + fi + + + ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=truednl + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + ac_success=no + + for alternative in ${ax_cxx_compile_alternatives}; do + for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do + cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 +$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } +if eval \${$cachevar+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_CXX="$CXX" + CXX="$CXX $switch" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +// If the compiler admits that it is not ready for C++11, why torture it? +// Hopefully, this will speed up the test. + +#ifndef __cplusplus + +#error "This is not a C++ compiler" + +#elif __cplusplus < 201103L + +#error "This is not a C++11 compiler" + +#else + +namespace cxx11 +{ + + namespace test_static_assert + { + + template + struct check + { + static_assert(sizeof(int) <= sizeof(T), "not big enough"); + }; + + } + + namespace test_final_override + { + + struct Base + { + virtual void f() {} + }; + + struct Derived : public Base + { + virtual void f() override {} + }; + + } + + namespace test_double_right_angle_brackets + { + + template < typename T > + struct check {}; + + typedef check single_type; + typedef check> double_type; + typedef check>> triple_type; + typedef check>>> quadruple_type; + + } + + namespace test_decltype + { + + int + f() + { + int a = 1; + decltype(a) b = 2; + return a + b; + } + + } + + namespace test_type_deduction + { + + template < typename T1, typename T2 > + struct is_same + { + static const bool value = false; + }; + + template < typename T > + struct is_same + { + static const bool value = true; + }; + + template < typename T1, typename T2 > + auto + add(T1 a1, T2 a2) -> decltype(a1 + a2) + { + return a1 + a2; + } + + int + test(const int c, volatile int v) + { + static_assert(is_same::value == true, ""); + static_assert(is_same::value == false, ""); + static_assert(is_same::value == false, ""); + auto ac = c; + auto av = v; + auto sumi = ac + av + 'x'; + auto sumf = ac + av + 1.0; + static_assert(is_same::value == true, ""); + static_assert(is_same::value == true, ""); + static_assert(is_same::value == true, ""); + static_assert(is_same::value == false, ""); + static_assert(is_same::value == true, ""); + return (sumf > 0.0) ? sumi : add(c, v); + } + + } + + namespace test_noexcept + { + + int f() { return 0; } + int g() noexcept { return 0; } + + static_assert(noexcept(f()) == false, ""); + static_assert(noexcept(g()) == true, ""); + + } + + namespace test_constexpr + { + + template < typename CharT > + unsigned long constexpr + strlen_c_r(const CharT *const s, const unsigned long acc) noexcept + { + return *s ? strlen_c_r(s + 1, acc + 1) : acc; + } + + template < typename CharT > + unsigned long constexpr + strlen_c(const CharT *const s) noexcept + { + return strlen_c_r(s, 0UL); + } + + static_assert(strlen_c("") == 0UL, ""); + static_assert(strlen_c("1") == 1UL, ""); + static_assert(strlen_c("example") == 7UL, ""); + static_assert(strlen_c("another\0example") == 7UL, ""); + + } + + namespace test_rvalue_references + { + + template < int N > + struct answer + { + static constexpr int value = N; + }; + + answer<1> f(int&) { return answer<1>(); } + answer<2> f(const int&) { return answer<2>(); } + answer<3> f(int&&) { return answer<3>(); } + + void + test() + { + int i = 0; + const int c = 0; + static_assert(decltype(f(i))::value == 1, ""); + static_assert(decltype(f(c))::value == 2, ""); + static_assert(decltype(f(0))::value == 3, ""); + } + + } + + namespace test_uniform_initialization + { + + struct test + { + static const int zero {}; + static const int one {1}; + }; + + static_assert(test::zero == 0, ""); + static_assert(test::one == 1, ""); + + } + + namespace test_lambdas + { + + void + test1() + { + auto lambda1 = [](){}; + auto lambda2 = lambda1; + lambda1(); + lambda2(); + } + + int + test2() + { + auto a = [](int i, int j){ return i + j; }(1, 2); + auto b = []() -> int { return '0'; }(); + auto c = [=](){ return a + b; }(); + auto d = [&](){ return c; }(); + auto e = [a, &b](int x) mutable { + const auto identity = [](int y){ return y; }; + for (auto i = 0; i < a; ++i) + a += b--; + return x + identity(a + b); + }(0); + return a + b + c + d + e; + } + + int + test3() + { + const auto nullary = [](){ return 0; }; + const auto unary = [](int x){ return x; }; + using nullary_t = decltype(nullary); + using unary_t = decltype(unary); + const auto higher1st = [](nullary_t f){ return f(); }; + const auto higher2nd = [unary](nullary_t f1){ + return [unary, f1](unary_t f2){ return f2(unary(f1())); }; + }; + return higher1st(nullary) + higher2nd(nullary)(unary); + } + + } + + namespace test_variadic_templates + { + + template + struct sum; + + template + struct sum + { + static constexpr auto value = N0 + sum::value; + }; + + template <> + struct sum<> + { + static constexpr auto value = 0; + }; + + static_assert(sum<>::value == 0, ""); + static_assert(sum<1>::value == 1, ""); + static_assert(sum<23>::value == 23, ""); + static_assert(sum<1, 2>::value == 3, ""); + static_assert(sum<5, 5, 11>::value == 21, ""); + static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); + + } + + // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae + // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function + // because of this. + namespace test_template_alias_sfinae + { + + struct foo {}; + + template + using member = typename T::member_type; + + template + void func(...) {} + + template + void func(member*) {} + + void test(); + + void test() { func(0); } + + } + +} // namespace cxx11 + +#endif // __cplusplus >= 201103L + + + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval $cachevar=yes +else + eval $cachevar=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CXX="$ac_save_CXX" +fi +eval ac_res=\$$cachevar + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + if eval test x\$$cachevar = xyes; then + eval PHP_INTL_STDCXX="$switch" + ac_success=yes + break + fi + done + if test x$ac_success = xyes; then + break + fi + done + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + if test x$ax_cxx_compile_cxx11_required = xtrue; then + if test x$ac_success = xno; then + as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 + fi + fi + if test x$ac_success = xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 +$as_echo "$as_me: No compiler with C++11 support was found" >&6;} + fi + + + PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS" + if test "$ext_shared" = "no"; then + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_INTL_CXX_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; } +# Check whether --enable-json was given. +if test "${enable_json+set}" = set; then : + enableval=$enable_json; PHP_JSON=$enableval +else + + PHP_JSON=yes + test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_JSON in +shared,*) + PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'` + ;; +shared) + PHP_JSON=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_JSON" != "no"; then + +$as_echo "#define HAVE_JSON 1 " >>confdefs.h + + + + ext_builddir=ext/json + ext_srcdir=$abs_srcdir/ext/json + ext_dir=ext/json + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_JSON_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c \ + json_encoder.c \ + json_parser.tab.c \ + json_scanner.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_JSON 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_JSON_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c \ + json_encoder.c \ + json_parser.tab.c \ + json_scanner.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD" + +fi + + + + + + + +php_with_ldap=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 +$as_echo_n "checking for LDAP support... " >&6; } + +# Check whether --with-ldap was given. +if test "${with_ldap+set}" = set; then : + withval=$with_ldap; PHP_LDAP=$withval +else + + PHP_LDAP=no + test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LDAP in +shared,*) + PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_LDAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_ldap_sasl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP Cyrus SASL support" >&5 +$as_echo_n "checking whether to build with LDAP Cyrus SASL support... " >&6; } + +# Check whether --with-ldap-sasl was given. +if test "${with_ldap_sasl+set}" = set; then : + withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval +else + + PHP_LDAP_SASL=no + + +fi + + +ext_output=$PHP_LDAP_SASL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LDAP" != "no"; then + + + ext_builddir=ext/ldap + ext_srcdir=$abs_srcdir/ext/ldap + ext_dir=ext/ldap + + ac_extra=`echo "-DLDAP_DEPRECATED=1 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LDAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LDAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LDAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$i + elif test -f $i/sdk/include/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$i/sdk/include + LDAP_LIBDIR=$i + fi + fi + + done + else + + if test -f $PHP_LDAP/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/ldap/public/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/ldap/public + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$PHP_LDAP + elif test -f $PHP_LDAP/sdk/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/sdk/include + LDAP_LIBDIR=$PHP_LDAP + fi + fi + + fi + + if test -z "$LDAP_DIR"; then + as_fn_error $? "Cannot find ldap.h" "$LINENO" 5 + fi + + MACHINE_INCLUDES=$($CC -dumpmachine | $SED 's/-pc//') + + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case lber in + c|c_r|pthread*) ;; + *) + LIBS="-llber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + else + as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 + fi + + + if test "$LDAP_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_INCDIR + else + + ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD" + + +$as_echo "#define HAVE_LDAP 1" >>confdefs.h + + + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LIBS="$LIBS $LDAP_SHARED_LIBADD" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 +$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } +if ${ac_cv_3arg_setrebindproc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +ldap_set_rebind_proc(0,0,0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_3arg_setrebindproc=yes +else + ac_cv_3arg_setrebindproc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 +$as_echo "$ac_cv_3arg_setrebindproc" >&6; } + if test "$ac_cv_3arg_setrebindproc" = yes; then + +$as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h + + fi + + for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s ldap_control_find ldap_parse_extended_result ldap_extended_operation ldap_extended_operation_s ldap_passwd ldap_whoami_s ldap_refresh_s +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + if test "$PHP_LDAP_SASL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsasl2" >&5 +$as_echo_n "checking for libsasl2... " >&6; } + +if test -n "$SASL_CFLAGS"; then + pkg_cv_SASL_CFLAGS="$SASL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SASL_CFLAGS=`$PKG_CONFIG --cflags "libsasl2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SASL_LIBS"; then + pkg_cv_SASL_LIBS="$SASL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SASL_LIBS=`$PKG_CONFIG --libs "libsasl2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SASL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsasl2" 2>&1` + else + SASL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsasl2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SASL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsasl2) were not met: + +$SASL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SASL_CFLAGS +and SASL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SASL_CFLAGS +and SASL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SASL_CFLAGS=$pkg_cv_SASL_CFLAGS + SASL_LIBS=$pkg_cv_SASL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $SASL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SASL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="$LDAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="$LDAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h + + fi + + ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" +if test "x$ac_cv_func_ldap_bind_s" = xyes; then : + +else + + as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 + +fi + + + CPPFLAGS=$_SAVE_CPPFLAGS + LIBS=$_SAVE_LIBS +fi + + + + + + + + + + + + + + + + + + + + + + + + +php_enable_mbstring=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 +$as_echo_n "checking whether to enable multibyte string support... " >&6; } +# Check whether --enable-mbstring was given. +if test "${enable_mbstring+set}" = set; then : + enableval=$enable_mbstring; PHP_MBSTRING=$enableval +else + + PHP_MBSTRING=no + test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MBSTRING in +shared,*) + PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'` + ;; +shared) + PHP_MBSTRING=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support (requires oniguruma)" >&5 +$as_echo_n "checking whether to enable multibyte regex support (requires oniguruma)... " >&6; } +# Check whether --enable-mbregex was given. +if test "${enable_mbregex+set}" = set; then : + enableval=$enable_mbregex; PHP_MBREGEX=$enableval +else + + PHP_MBREGEX=yes + + +fi + + +ext_output=$PHP_MBREGEX +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MBSTRING" != "no"; then + +$as_echo "#define HAVE_MBSTRING 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c" + + + if test "$PHP_MBREGEX" != "no"; then + + if test "$PHP_MBREGEX" = "yes"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oniguruma" >&5 +$as_echo_n "checking for oniguruma... " >&6; } + +if test -n "$ONIG_CFLAGS"; then + pkg_cv_ONIG_CFLAGS="$ONIG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ONIG_CFLAGS=`$PKG_CONFIG --cflags "oniguruma" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ONIG_LIBS"; then + pkg_cv_ONIG_LIBS="$ONIG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ONIG_LIBS=`$PKG_CONFIG --libs "oniguruma" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ONIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "oniguruma" 2>&1` + else + ONIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "oniguruma" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ONIG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (oniguruma) were not met: + +$ONIG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ONIG_CFLAGS +and ONIG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ONIG_CFLAGS +and ONIG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ONIG_CFLAGS=$pkg_cv_ONIG_CFLAGS + ONIG_LIBS=$pkg_cv_ONIG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ONIG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="$MBSTRING_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="$MBSTRING_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ONIG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + save_old_LDFLAGS=$LDFLAGS + + for ac_i in $MBSTRING_SHARED_LIBADD; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 +$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +return (int)(ONIG_ENCODING_KOI8 + 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_old_LDFLAGS + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1" + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar" + + + +$as_echo "#define HAVE_MBREGEX 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h" + + fi + + fi + + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl" + + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + libmbfl/filters/html_entities.c + libmbfl/filters/mbfilter_7bit.c + libmbfl/filters/mbfilter_ascii.c + libmbfl/filters/mbfilter_base64.c + libmbfl/filters/mbfilter_big5.c + libmbfl/filters/mbfilter_byte2.c + libmbfl/filters/mbfilter_byte4.c + libmbfl/filters/mbfilter_cp1251.c + libmbfl/filters/mbfilter_cp1252.c + libmbfl/filters/mbfilter_cp1254.c + libmbfl/filters/mbfilter_cp5022x.c + libmbfl/filters/mbfilter_cp51932.c + libmbfl/filters/mbfilter_cp850.c + libmbfl/filters/mbfilter_cp866.c + libmbfl/filters/mbfilter_cp932.c + libmbfl/filters/mbfilter_cp936.c + libmbfl/filters/mbfilter_gb18030.c + libmbfl/filters/mbfilter_euc_cn.c + libmbfl/filters/mbfilter_euc_jp.c + libmbfl/filters/mbfilter_euc_jp_2004.c + libmbfl/filters/mbfilter_euc_jp_win.c + libmbfl/filters/mbfilter_euc_kr.c + libmbfl/filters/mbfilter_euc_tw.c + libmbfl/filters/mbfilter_htmlent.c + libmbfl/filters/mbfilter_hz.c + libmbfl/filters/mbfilter_iso2022_jp_ms.c + libmbfl/filters/mbfilter_iso2022jp_2004.c + libmbfl/filters/mbfilter_iso2022jp_mobile.c + libmbfl/filters/mbfilter_iso2022_kr.c + libmbfl/filters/mbfilter_iso8859_1.c + libmbfl/filters/mbfilter_iso8859_10.c + libmbfl/filters/mbfilter_iso8859_13.c + libmbfl/filters/mbfilter_iso8859_14.c + libmbfl/filters/mbfilter_iso8859_15.c + libmbfl/filters/mbfilter_iso8859_16.c + libmbfl/filters/mbfilter_iso8859_2.c + libmbfl/filters/mbfilter_iso8859_3.c + libmbfl/filters/mbfilter_iso8859_4.c + libmbfl/filters/mbfilter_iso8859_5.c + libmbfl/filters/mbfilter_iso8859_6.c + libmbfl/filters/mbfilter_iso8859_7.c + libmbfl/filters/mbfilter_iso8859_8.c + libmbfl/filters/mbfilter_iso8859_9.c + libmbfl/filters/mbfilter_jis.c + libmbfl/filters/mbfilter_koi8r.c + libmbfl/filters/mbfilter_armscii8.c + libmbfl/filters/mbfilter_qprint.c + libmbfl/filters/mbfilter_sjis.c + libmbfl/filters/mbfilter_sjis_open.c + libmbfl/filters/mbfilter_sjis_mobile.c + libmbfl/filters/mbfilter_sjis_mac.c + libmbfl/filters/mbfilter_sjis_2004.c + libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + libmbfl/filters/mbfilter_ucs2.c + libmbfl/filters/mbfilter_ucs4.c + libmbfl/filters/mbfilter_uhc.c + libmbfl/filters/mbfilter_utf16.c + libmbfl/filters/mbfilter_utf32.c + libmbfl/filters/mbfilter_utf7.c + libmbfl/filters/mbfilter_utf7imap.c + libmbfl/filters/mbfilter_utf8.c + libmbfl/filters/mbfilter_utf8_mobile.c + libmbfl/filters/mbfilter_uuencode.c + libmbfl/filters/mbfilter_koi8u.c + libmbfl/mbfl/mbfilter.c + libmbfl/mbfl/mbfilter_8bit.c + libmbfl/mbfl/mbfilter_pass.c + libmbfl/mbfl/mbfilter_wchar.c + libmbfl/mbfl/mbfl_convert.c + libmbfl/mbfl/mbfl_encoding.c + libmbfl/mbfl/mbfl_filter_output.c + libmbfl/mbfl/mbfl_ident.c + libmbfl/mbfl/mbfl_language.c + libmbfl/mbfl/mbfl_memory_device.c + libmbfl/mbfl/mbfl_string.c + libmbfl/mbfl/mbfl_allocators.c + libmbfl/nls/nls_de.c + libmbfl/nls/nls_en.c + libmbfl/nls/nls_ja.c + libmbfl/nls/nls_kr.c + libmbfl/nls/nls_neutral.c + libmbfl/nls/nls_ru.c + libmbfl/nls/nls_uni.c + libmbfl/nls/nls_zh.c + libmbfl/nls/nls_hy.c + libmbfl/nls/nls_tr.c + libmbfl/nls/nls_ua.c + " + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h" + + + + + ext_builddir=ext/mbstring + ext_srcdir=$abs_srcdir/ext/mbstring + ext_dir=ext/mbstring + + ac_extra=`echo "$PHP_MBSTRING_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MBSTRING_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MBSTRING 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MBSTRING_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_srcdir/$dir + else + + ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_builddir/$dir" != "/usr/include"; then + + if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then + ai_p=$ext_builddir/$dir + else + + ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + done + + out="php_config.h" + + if test "$ext_shared" != "no" && test -f "$ext_builddir/config.h.in"; then + out="$abs_builddir/config.h" + fi + + cat > $ext_builddir/libmbfl/config.h <&5 +$as_echo_n "checking for MySQLi support... " >&6; } + +# Check whether --with-mysqli was given. +if test "${with_mysqli+set}" = set; then : + withval=$with_mysqli; PHP_MYSQLI=$withval +else + + PHP_MYSQLI=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLI in +shared,*) + PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mysql_sock=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 +$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; } + +# Check whether --with-mysql-sock was given. +if test "${with_mysql_sock+set}" = set; then : + withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval +else + + PHP_MYSQL_SOCK=no + + +fi + + +ext_output=$PHP_MYSQL_SOCK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQLI" != "no"; then + + MYSQL_CONFIG=$PHP_MYSQLI + + MYSQL_LIB_NAME='mysqlclient' + if test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIB_CFG='--libs_r' + MYSQL_LIB_NAME='mysqlclient_r' + else + MYSQL_LIB_CFG='--libs' + fi + + if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then + MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"` + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5 +$as_echo "mysql_config not found" >&6; } + as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_server_option (); +int +main () +{ +return mysql_set_server_option (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $MYSQLI_INCLINE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $MYSQLI_LIBLINE; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$MYSQLI_LIBLINE" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_character_set (); +int +main () +{ +return mysql_set_character_set (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set + + as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 + + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option + + as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_stmt_next_result (); +int +main () +{ +return mysql_stmt_next_result (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result + + + +fi + +fi + +if test "$PHP_MYSQLI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ + mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \ + mysqli_exception.c mysqli_result_iterator.c" + + ext_builddir=ext/mysqli + ext_srcdir=$abs_srcdir/ext/mysqli + ext_dir=ext/mysqli + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + for header_file in ext/mysqli/mysqli_mysqlnd.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + else + + + for header_file in ext/mysqli/mysqli_libmysql.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi +fi + + + + +if test -z "$SED"; then + PHP_OCI8_SED="sed"; +else + PHP_OCI8_SED="$SED"; +fi + +PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null` +if test "$PHP_OCI8_TAIL1" = "a"; then + PHP_OCI8_TAIL1="tail -n1" +else + PHP_OCI8_TAIL1="tail -1" +fi + + + + + + + + + + +php_with_oci8=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 +$as_echo_n "checking for Oracle Database OCI8 support... " >&6; } + +# Check whether --with-oci8 was given. +if test "${with_oci8+set}" = set; then : + withval=$with_oci8; PHP_OCI8=$withval +else + + PHP_OCI8=no + test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OCI8 in +shared,*) + PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'` + ;; +shared) + PHP_OCI8=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OCI8" != "no"; then + + if test -z "$PHP_OCI8"; then + as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 +$as_echo_n "checking PHP version... " >&6; } + + tmp_version=$PHP_VERSION + if test -z "$tmp_version"; then + if test -z "$PHP_CONFIG"; then + as_fn_error $? "php-config not found" "$LINENO" 5 + fi + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + else + php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + fi + + if test -z "$php_version"; then + as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5 + fi + + ac_IFS=$IFS + IFS="." + set $php_version + IFS=$ac_IFS + oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3` + + if test "$oci8_php_version" -lt "5002000"; then + as_fn_error $? "You need at least PHP 5.2.0 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 +$as_echo "$php_version, ok" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 DTrace support" >&5 +$as_echo_n "checking OCI8 DTrace support... " >&6; } + oci8_do_dtrace="`echo $PHP_OCI8 | cut -d, -f3`" + if test "$PHP_DTRACE" = "yes" -o "$oci8_do_dtrace" = "dtrace" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + if test "$ext_shared" = "no"; then + as_fn_error $? "For DTrace support OCI8 must be configured as a shared extension" "$LINENO" 5 + else + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + ac_srcdir=$abs_srcdir/ext/oci8/ + ac_bdir=ext/oci8/ + + ac_provsrc=oci8_dtrace.d + + ac_hdrobj=oci8_dtrace_gen.h + + old_IFS=$IFS + for ac_src in oci8.c oci8_statement.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + OCI8_DTRACE_OBJS="$OCI8_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + for ac_lo in $OCI8_DTRACE_OBJS; do + dtrace_oci8_objs="$dtrace_oci8_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + + cat>>Makefile.objects< \$@ + +\$(OCI8_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(OCI8_DTRACE_OBJS:.lo=.o)' + for ac_lo in $OCI8_DTRACE_OBJS; do + dtrace_oci8_lib_objs="$dtrace_oci8_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $ac_srcdir$ac_provsrc $dtrace_oci8_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $ac_srcdir$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&2;} +cat>>Makefile.objects<>confdefs.h + + shared_objects_oci8="$shared_objects_oci8 ext/oci8/oci8_dtrace.d.lo" + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_OH_LIBDIR=lib32 + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_OH_LIBDIR=lib + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + + PHP_OCI8_INSTANT_CLIENT="no" + + if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} + PHP_OCI8=instantclient + fi + + if test "`echo $PHP_OCI8`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="yes" + elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + fi + + if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 +$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; } + + if test "$PHP_OCI8" = "yes"; then + OCI8_DIR=$ORACLE_HOME + else + OCI8_DIR=$PHP_OCI8 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 +$as_echo "$OCI8_DIR" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 +$as_echo_n "checking ORACLE_HOME library validity... " >&6; } + if test ! -d "$OCI8_DIR"; then + as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 + fi + if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib + elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib32 + elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR + else + if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then + as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 + else + as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 +$as_echo "$OCI8_LIB_DIR" >&6; } + + + if test -d "$OCI8_DIR/rdbms/public"; then + + if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/public + else + + ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" + fi + if test -d "$OCI8_DIR/rdbms/demo"; then + + if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/demo + else + + ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" + fi + if test -d "$OCI8_DIR/network/public"; then + + if test "$OCI8_DIR/network/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/network/public + else + + ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" + fi + if test -d "$OCI8_DIR/plsql/public"; then + + if test "$OCI8_DIR/plsql/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/plsql/public + else + + ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" + fi + + if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 +$as_echo_n "checking Oracle library version compatibility... " >&6; } + OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3 + elif test -f "$OCI8_LCS"; then + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $OCI8_LCS_BASE.9.0; then + OCI8_ORACLE_VERSION=9.0 + elif test -f $OCI8_LCS_BASE.8.0; then + OCI8_ORACLE_VERSION=8.1 + elif test -f $OCI8_LCS_BASE.1.0; then + OCI8_ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then + if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then + OCI8_ORACLE_VERSION=8.0 + else + OCI8_ORACLE_VERSION=8.1 + fi + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + case $OCI8_ORACLE_VERSION in + 7.3|8.0|8.1|9.0) + as_fn_error $? "Oracle client libraries < 10 are not supported" "$LINENO" 5 + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then + + if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/$OCI8_LIB_DIR + else + + ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + ext_dir=ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_DIR "$OCI8_DIR" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD" +_ACEOF + + + else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 +$as_echo_n "checking Oracle Instant Client directory... " >&6; } + + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then + as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 +$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; } + + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 +$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; } + + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include + + OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'` + + if test -f "$OCISDKRPMINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKRPMINC + elif test -f "$OCISDKZIPINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKZIPINC + elif test -f "$OCISDKMANINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKMANINC + else + as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5 + fi + + OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` + if test -f "$OCISYSLIBLIST"; then + + for ac_i in `cat $OCISYSLIBLIST`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 +$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; } + OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` + OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` + if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then + if test ! -f "$OCI8_LCS_BASE"; then + as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 + fi + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + else + as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then + + if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then + ai_p=$PHP_OCI8_INSTANT_CLIENT + else + + ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + +$as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h + + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + ext_dir=ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + fi +fi + + + + + + + + + + + + + + + + +php_with_odbcver=0x0350 + + + +# Check whether --with-odbcver was given. +if test "${with_odbcver+set}" = set; then : + withval=$with_odbcver; PHP_ODBCVER=$withval +else + + PHP_ODBCVER=0x0350 + test "$PHP_ENABLE_ALL" && PHP_ODBCVER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ODBCVER in +shared,*) + PHP_ODBCVER=`echo "$PHP_ODBCVER"|$SED 's/^shared,//'` + ;; +shared) + PHP_ODBCVER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test -z "$ODBC_TYPE"; then + +php_with_adabas=no + + + +# Check whether --with-adabas was given. +if test "${with_adabas+set}" = set; then : + withval=$with_adabas; PHP_ADABAS=$withval +else + + PHP_ADABAS=no + test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ADABAS in +shared,*) + PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'` + ;; +shared) + PHP_ADABAS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 +$as_echo_n "checking for Adabas support... " >&6; } + if test "$PHP_ADABAS" != "no"; then + if test "$PHP_ADABAS" = "yes"; then + PHP_ADABAS=/usr/local + fi + + if test "$PHP_ADABAS/incl" != "/usr/include"; then + + if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/incl + else + + ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a" + ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a" + $srcdir/build/shtool mkdir -f -p ext/odbc + rm -f "$ODBC_LIB" + cp "$ODBC_OBJS" "$ODBC_LIB" + + + case sqlptc in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlptc $LIBS" + ;; + esac + + + + + case sqlrte in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlrte $LIBS" + ;; + esac + + + + + if test -n "$abs_builddir/ext/odbc"; then + + if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then + + if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then + ai_p=$abs_builddir/ext/odbc + else + + ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case odbc_adabas in + c|c_r|pthread*) ;; + *) + LIBS="-lodbc_adabas $LIBS" + ;; + esac + + + + + ODBC_TYPE=adabas + ODBC_INCDIR=$PHP_ADABAS/incl + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_ADABAS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_sapdb=no + + + +# Check whether --with-sapdb was given. +if test "${with_sapdb+set}" = set; then : + withval=$with_sapdb; PHP_SAPDB=$withval +else + + PHP_SAPDB=no + test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SAPDB in +shared,*) + PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'` + ;; +shared) + PHP_SAPDB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 +$as_echo_n "checking for SAP DB support... " >&6; } + if test "$PHP_SAPDB" != "no"; then + if test "$PHP_SAPDB" = "yes"; then + PHP_SAPDB=/usr/local + fi + + if test "$PHP_SAPDB/incl" != "/usr/include"; then + + if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/incl + else + + ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case sqlod in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlod $LIBS" + ;; + esac + + + ODBC_TYPE=sapdb + +$as_echo "#define HAVE_SAPDB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_solid=no + + + +# Check whether --with-solid was given. +if test "${with_solid+set}" = set; then : + withval=$with_solid; PHP_SOLID=$withval +else + + PHP_SOLID=no + test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOLID in +shared,*) + PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOLID=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 +$as_echo_n "checking for Solid support... " >&6; } + if test "$PHP_SOLID" != "no"; then + if test "$PHP_SOLID" = "yes"; then + PHP_SOLID=/usr/local/solid + fi + ODBC_INCDIR=$PHP_SOLID/include + ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_TYPE=solid + if test -f $ODBC_LIBDIR/soc*35.a; then + +$as_echo "#define HAVE_SOLID_35 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*30.a; then + +$as_echo "#define HAVE_SOLID_30 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*23.a; then + +$as_echo "#define HAVE_SOLID 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 +$as_echo_n "checking Solid library file... " >&6; } + ac_solid_uname_r=`uname -r 2>/dev/null` + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only + HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10 + IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only + Linux) + if ldd -v /bin/sh | grep GLIBC > /dev/null; then + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=l2x + else + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=lux + fi;; + SunOS) + ac_solid_os=ssx;; # should we deal with SunOS 4? + FreeBSD) + if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fex + else + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fbx + fi;; + esac + + if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then + ac_solid_version=35 + ac_solid_prefix=soc + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then + ac_solid_version=30 + ac_solid_prefix=scl + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then + ac_solid_version=23 + ac_solid_prefix=scl + fi + +if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \ + ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then + echo "" + echo "*********************************************************************" + echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* Please correct this by creating the following links and reconfiguring:" + echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so" + echo "*********************************************************************" +else + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_ibm_db2=no + + + +# Check whether --with-ibm-db2 was given. +if test "${with_ibm_db2+set}" = set; then : + withval=$with_ibm_db2; PHP_IBM_DB2=$withval +else + + PHP_IBM_DB2=no + test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IBM_DB2 in +shared,*) + PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'` + ;; +shared) + PHP_IBM_DB2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 +$as_echo_n "checking for IBM DB2 support... " >&6; } + if test "$PHP_IBM_DB2" != "no"; then + if test "$PHP_IBM_DB2" = "yes"; then + ODBC_INCDIR=/home/db2inst1/sqllib/include + ODBC_LIBDIR=/home/db2inst1/sqllib/lib + else + ODBC_INCDIR=$PHP_IBM_DB2/include + ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR + fi + + +if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 +fi + + + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=ibm-db2 + ODBC_LIBS=-ldb2 + + + old_LIBS=$LIBS + LIBS=" + $ODBC_LFLAGS $ODBC_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char SQLExecute(); + int main() { + SQLExecute(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IBMDB2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? " +build test failed. Please check the config.log for details. +You need to source your DB2 environment before running PHP configure: +# . \$IBM_DB2/db2profile +" "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress=no + + + +# Check whether --with-empress was given. +if test "${with_empress+set}" = set; then : + withval=$with_empress; PHP_EMPRESS=$withval +else + + PHP_EMPRESS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS in +shared,*) + PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 +$as_echo_n "checking for Empress support... " >&6; } + if test "$PHP_EMPRESS" != "no"; then + if test "$PHP_EMPRESS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS/shlib + fi + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=empress + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 +$as_echo_n "checking Empress library file... " >&6; } + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + if test ! -f $ODBC_LIBS; then + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress_bcs=no + + + +# Check whether --with-empress-bcs was given. +if test "${with_empress_bcs+set}" = set; then : + withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval +else + + PHP_EMPRESS_BCS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS_BCS in +shared,*) + PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS_BCS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 +$as_echo_n "checking for Empress local access support... " >&6; } + if test "$PHP_EMPRESS_BCS" != "no"; then + if test "$PHP_EMPRESS_BCS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib + fi + CC="empocc -bcs";export CC; + LD="empocc -bcs";export LD; + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + LIST=`empocc -listlines -bcs -o a a.c` + + NEWLIST= + for I in $LIST + do + case $I in + $EMPRESSPATH/odbccl/lib/* | \ + $EMPRESSPATH/rdbms/lib/* | \ + $EMPRESSPATH/common/lib/*) + NEWLIST="$NEWLIST $I" + ;; + esac + done + ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" + ODBC_TYPE=empress-bcs + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 +$as_echo_n "checking Empress local access library file... " >&6; } + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + if test ! -f $ODBCBCS_LIBS; then + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_custom_odbc=no + + + +# Check whether --with-custom-odbc was given. +if test "${with_custom_odbc+set}" = set; then : + withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval +else + + PHP_CUSTOM_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CUSTOM_ODBC in +shared,*) + PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_CUSTOM_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 +$as_echo_n "checking for a custom ODBC support... " >&6; } + if test "$PHP_CUSTOM_ODBC" != "no"; then + if test "$PHP_CUSTOM_ODBC" = "yes"; then + PHP_CUSTOM_ODBC=/usr/local + fi + ODBC_INCDIR=$PHP_CUSTOM_ODBC/include + ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=$CUSTOM_ODBC_LIBS + ODBC_TYPE=custom-odbc + +$as_echo "#define HAVE_CODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_iodbc=no + + + +# Check whether --with-iodbc was given. +if test "${with_iodbc+set}" = set; then : + withval=$with_iodbc; PHP_IODBC=$withval +else + + PHP_IODBC=no + test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IODBC in +shared,*) + PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_IODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with iODBC support" >&5 +$as_echo_n "checking whether to build with iODBC support... " >&6; } + if test "$PHP_IODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiodbc" >&5 +$as_echo_n "checking for libiodbc... " >&6; } + +if test -n "$ODBC_CFLAGS"; then + pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "libiodbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ODBC_LIBS"; then + pkg_cv_ODBC_LIBS="$ODBC_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "libiodbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ODBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libiodbc" 2>&1` + else + ODBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libiodbc" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ODBC_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libiodbc) were not met: + +$ODBC_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS + ODBC_LIBS=$pkg_cv_ODBC_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ODBC_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + ODBC_TYPE=iodbc + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_esoob=no + + + +# Check whether --with-esoob was given. +if test "${with_esoob+set}" = set; then : + withval=$with_esoob; PHP_ESOOB=$withval +else + + PHP_ESOOB=no + test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ESOOB in +shared,*) + PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ESOOB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 +$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } + if test "$PHP_ESOOB" != "no"; then + if test "$PHP_ESOOB" = "yes"; then + PHP_ESOOB=/usr/local/easysoft/oob/client + fi + ODBC_INCDIR=$PHP_ESOOB/include + ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=-lesoobclient + ODBC_TYPE=esoob + +$as_echo "#define HAVE_ESOOB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_unixodbc=no + + + +# Check whether --with-unixODBC was given. +if test "${with_unixODBC+set}" = set; then : + withval=$with_unixODBC; PHP_UNIXODBC=$withval +else + + PHP_UNIXODBC=no + test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_UNIXODBC in +shared,*) + PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_UNIXODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with unixODBC support" >&5 +$as_echo_n "checking whether to build with unixODBC support... " >&6; } + if test "$PHP_UNIXODBC" != "no"; then + if test "$PHP_UNIXODBC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from pkgconfig" >&5 +$as_echo "yes from pkgconfig" >&6; } + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc" >&5 +$as_echo_n "checking for odbc... " >&6; } + +if test -n "$ODBC_CFLAGS"; then + pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "odbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ODBC_LIBS"; then + pkg_cv_ODBC_LIBS="$ODBC_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "odbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ODBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "odbc" 2>&1` + else + ODBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "odbc" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ODBC_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (odbc) were not met: + +$ODBC_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS + ODBC_LIBS=$pkg_cv_ODBC_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ODBC_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + else + ODBC_INCDIR=$PHP_UNIXODBC/include + ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes in $PHP_UNIXODBC" >&5 +$as_echo "yes in $PHP_UNIXODBC" >&6; } + fi + ODBC_TYPE=unixODBC + +$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_dbmaker=no + + + +# Check whether --with-dbmaker was given. +if test "${with_dbmaker+set}" = set; then : + withval=$with_dbmaker; PHP_DBMAKER=$withval +else + + PHP_DBMAKER=no + test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DBMAKER in +shared,*) + PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'` + ;; +shared) + PHP_DBMAKER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 +$as_echo_n "checking for DBMaker support... " >&6; } + if test "$PHP_DBMAKER" != "no"; then + if test "$PHP_DBMAKER" = "yes"; then + DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` + + DBMAKER_VERSION=5.0 + + while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do + DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'` + MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'` + MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'` + DBMAKER_VERSION=$MAJOR_V.$MINOR_V + done + + if test "$DBMAKER_VERSION" = "2.9"; then + PHP_DBMAKER=$DBMAKER_HOME + else + PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION + fi + fi + + ODBC_INCDIR=$PHP_DBMAKER/include + ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS="-ldmapic -lc" + ODBC_TYPE=dbmaker + + +$as_echo "#define HAVE_DBMAKER 1" >>confdefs.h + + + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 +$as_echo "yes (shared)" >&6; } + ODBC_LIBS="-ldmapic -lc -lm" + ODBC_SHARED="odbc.la" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 +$as_echo "yes (static)" >&6; } + + + if test -n "$ODBC_LIBDIR"; then + + if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then + + if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_LIBDIR + else + + ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dmapic in + c|c_r|pthread*) ;; + *) + LIBS="-ldmapic $LIBS" + ;; + esac + + + + + + if test "$ODBC_INCDIR" != "/usr/include"; then + + if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_INCDIR + else + + ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_STATIC="libphpext_odbc.la" + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test "no" != "$PHP_ODBCVER"; then + if test "$PHP_ODBCVER" != "0"; then + +cat >>confdefs.h <<_ACEOF +#define ODBCVER $PHP_ODBCVER +_ACEOF + + fi +else + +$as_echo "#define ODBCVER 0x0300" >>confdefs.h + +fi + +if test -n "$ODBC_TYPE"; then + if test "$ODBC_TYPE" != "dbmaker"; then + + for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + if test "$ODBC_TYPE" != "solid"; then + +$as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h + + fi + fi + + +$as_echo "#define HAVE_UODBC 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE" + + + + + + ext_builddir=ext/odbc + ext_srcdir=$abs_srcdir/ext/odbc + ext_dir=ext/odbc + + ac_extra=`echo "$ODBC_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ODBC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for any ODBC driver support... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_opcache=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend OPcache support" >&5 +$as_echo_n "checking whether to enable Zend OPcache support... " >&6; } +# Check whether --enable-opcache was given. +if test "${enable_opcache+set}" = set; then : + enableval=$enable_opcache; PHP_OPCACHE=$enableval +else + + PHP_OPCACHE=yes + test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPCACHE in +shared,*) + PHP_OPCACHE=`echo "$PHP_OPCACHE"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPCACHE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_huge_code_pages=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable copying PHP CODE pages into HUGE PAGES" >&5 +$as_echo_n "checking whether to enable copying PHP CODE pages into HUGE PAGES... " >&6; } +# Check whether --enable-huge-code-pages was given. +if test "${enable_huge_code_pages+set}" = set; then : + enableval=$enable_huge_code_pages; PHP_HUGE_CODE_PAGES=$enableval +else + + PHP_HUGE_CODE_PAGES=yes + + +fi + + +ext_output=$PHP_HUGE_CODE_PAGES +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPCACHE" != "no"; then + + ext_shared=yes + + if test "$PHP_HUGE_CODE_PAGES" = "yes"; then + +$as_echo "#define HAVE_HUGE_CODE_PAGES 1" >>confdefs.h + + fi + + for ac_func in mprotect +do : + ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" +if test "x$ac_cv_func_mprotect" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MPROTECT 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 +$as_echo_n "checking for sysvipc shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include + +int main() { + pid_t pid; + int status; + int ipc_id; + char *shm; + struct shmid_ds shmbuf; + + ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W)); + if (ipc_id == -1) { + return 1; + } + + shm = shmat(ipc_id, NULL, 0); + if (shm == (void *)-1) { + shmctl(ipc_id, IPC_RMID, NULL); + return 2; + } + + if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 3; + } + + shmbuf.shm_perm.uid = getuid(); + shmbuf.shm_perm.gid = getgid(); + shmbuf.shm_perm.mode = 0600; + + if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 4; + } + + shmctl(ipc_id, IPC_RMID, NULL); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 +$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + char *shm; + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + if (shm == MAP_FAILED) { + return 1; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + + + unset ac_cv_lib_rt_shm_open + unset ac_cv_lib_rt___shm_open + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 +$as_echo_n "checking for shm_open in -lrt... " >&6; } +if ${ac_cv_lib_rt_shm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shm_open (); +int +main () +{ +return shm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_shm_open=yes +else + ac_cv_lib_rt_shm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 +$as_echo "$ac_cv_lib_rt_shm_open" >&6; } +if test "x$ac_cv_lib_rt_shm_open" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lrt" >&5 +$as_echo_n "checking for __shm_open in -lrt... " >&6; } +if ${ac_cv_lib_rt___shm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __shm_open (); +int +main () +{ +return __shm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___shm_open=yes +else + ac_cv_lib_rt___shm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___shm_open" >&5 +$as_echo "$ac_cv_lib_rt___shm_open" >&6; } +if test "x$ac_cv_lib_rt___shm_open" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_shm_open=yes + else + + : + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 +$as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"/opcache.test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + shm_unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + shm_unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_unlink in -lrt" >&5 +$as_echo_n "checking for shm_unlink in -lrt... " >&6; } +if ${ac_cv_lib_rt_shm_unlink+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shm_unlink (); +int +main () +{ +return shm_unlink (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_shm_unlink=yes +else + ac_cv_lib_rt_shm_unlink=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_unlink" >&5 +$as_echo "$ac_cv_lib_rt_shm_unlink" >&6; } +if test "x$ac_cv_lib_rt_shm_unlink" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case rt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPCACHE_SHARED_LIBADD="$OPCACHE_SHARED_LIBADD -lrt" + else + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lrt" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_rt_shm_unlink + + +fi + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + ext_builddir=ext/opcache + ext_srcdir=$abs_srcdir/ext/opcache + ext_dir=ext/opcache + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "shared" != "shared" && test "shared" != "yes" && test "" != "cli"; then + PHP_OPCACHE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_file_cache.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c \ + Optimizer/pass1_5.c \ + Optimizer/pass2.c \ + Optimizer/pass3.c \ + Optimizer/optimize_func_calls.c \ + Optimizer/block_pass.c \ + Optimizer/optimize_temp_vars_5.c \ + Optimizer/nop_removal.c \ + Optimizer/compact_literals.c \ + Optimizer/zend_cfg.c \ + Optimizer/zend_dfg.c \ + Optimizer/dfa_pass.c \ + Optimizer/zend_ssa.c \ + Optimizer/zend_inference.c \ + Optimizer/zend_func_info.c \ + Optimizer/zend_call_graph.c \ + Optimizer/sccp.c \ + Optimizer/scdf.c \ + Optimizer/dce.c \ + Optimizer/escape_analysis.c \ + Optimizer/compact_vars.c \ + Optimizer/zend_dump.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPCACHE 1 +_ACEOF + + fi + fi + + if test "shared" != "shared" && test "shared" != "yes" && test "" = "cli"; then + PHP_OPCACHE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_file_cache.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c \ + Optimizer/pass1_5.c \ + Optimizer/pass2.c \ + Optimizer/pass3.c \ + Optimizer/optimize_func_calls.c \ + Optimizer/block_pass.c \ + Optimizer/optimize_temp_vars_5.c \ + Optimizer/nop_removal.c \ + Optimizer/compact_literals.c \ + Optimizer/zend_cfg.c \ + Optimizer/zend_dfg.c \ + Optimizer/dfa_pass.c \ + Optimizer/zend_ssa.c \ + Optimizer/zend_inference.c \ + Optimizer/zend_func_info.c \ + Optimizer/zend_call_graph.c \ + Optimizer/sccp.c \ + Optimizer/scdf.c \ + Optimizer/dce.c \ + Optimizer/escape_analysis.c \ + Optimizer/compact_vars.c \ + Optimizer/zend_dump.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable pcntl support... " >&6; } +# Check whether --enable-pcntl was given. +if test "${enable_pcntl+set}" = set; then : + enableval=$enable_pcntl; PHP_PCNTL=$enableval +else + + PHP_PCNTL=no + test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PCNTL in +shared,*) + PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PCNTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PCNTL" != "no"; then + for ac_func in fork +do : + ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" +if test "x$ac_cv_func_fork" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FORK 1 +_ACEOF + +else + as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in waitpid +do : + ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" +if test "x$ac_cv_func_waitpid" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITPID 1 +_ACEOF + +else + as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +else + as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 +$as_echo_n "checking for siginfo_t... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifdef HAVE_SIGINFO_H + #include + #endif + +int +main () +{ + + siginfo_t info; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/pcntl + ext_srcdir=$abs_srcdir/ext/pcntl + ext_dir=ext/pcntl + + ac_extra=`echo "$PCNTL_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_PCNTL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCNTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_PCNTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PDO support... " >&6; } +# Check whether --enable-pdo was given. +if test "${enable_pdo+set}" = set; then : + enableval=$enable_pdo; PHP_PDO=$enableval +else + + PHP_PDO=yes + test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO in +shared,*) + PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO" != "no"; then + + PHP_PDO=yes + + + ext_builddir=ext/pdo + ext_srcdir=$abs_srcdir/ext/pdo + ext_dir=ext/pdo + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_with_pdo_dblib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 +$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; } + +# Check whether --with-pdo-dblib was given. +if test "${with_pdo_dblib+set}" = set; then : + withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval +else + + PHP_PDO_DBLIB=no + test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_DBLIB in +shared,*) + PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_DBLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_DBLIB" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_DBLIB" = "yes"; then + + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include/freetds + break; + fi + done + + if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_PDO_DBLIB" != "no"; then + + if test -f $PHP_PDO_DBLIB/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include + elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds + else + as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test "x$PHP_LIBDIR" = "x" ; then + PHP_LIBDIR=lib + fi + + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD" + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\"" + + ext_builddir=ext/pdo_dblib + ext_srcdir=$abs_srcdir/ext/pdo_dblib + ext_dir=ext/pdo_dblib + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_DBLIB_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_DBLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_DBLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +fi + + +$as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD" + + + + am_i_shared=$PHP_PDO_DBLIB_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_dblib to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_dblib shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_dblib, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + +fi + + + + + +php_with_pdo_firebird=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 +$as_echo_n "checking for Firebird support for PDO... " >&6; } + +# Check whether --with-pdo-firebird was given. +if test "${with_pdo_firebird+set}" = set; then : + withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval +else + + PHP_PDO_FIREBIRD=no + test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_FIREBIRD in +shared,*) + PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_FIREBIRD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_FIREBIRD" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + # Extract the first word of "fb_config", so it can be a program name with args. +set dummy fb_config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_FB_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $FB_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_FB_CONFIG="$FB_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_FB_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_FB_CONFIG" && ac_cv_path_FB_CONFIG="no" + ;; +esac +fi +FB_CONFIG=$ac_cv_path_FB_CONFIG +if test -n "$FB_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5 +$as_echo "$FB_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5 +$as_echo_n "checking for libfbconfig... " >&6; } + FB_CFLAGS=`$FB_CONFIG --cflags` + FB_LIBDIR=`$FB_CONFIG --libs` + FB_VERSION=`$FB_CONFIG --version` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5 +$as_echo "version $FB_VERSION" >&6; } + + for ac_i in $FB_LIBDIR; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $FB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + else + if test "$PHP_PDO_FIREBIRD" = "yes"; then + FIREBIRD_INCDIR= + FIREBIRD_LIBDIR= + FIREBIRD_LIBDIR_FLAG= + else + FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include + FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR + FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD" + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $FIREBIRD_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$FIREBIRD_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$FIREBIRD_INCDIR" != "/usr/include"; then + + if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_INCDIR + else + + ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + +$as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h + + + ext_builddir=ext/pdo_firebird + ext_srcdir=$abs_srcdir/ext/pdo_firebird + ext_dir=ext/pdo_firebird + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_FIREBIRD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MySQL support for PDO... " >&6; } + +# Check whether --with-pdo-mysql was given. +if test "${with_pdo_mysql+set}" = set; then : + withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval +else + + PHP_PDO_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_MYSQL in +shared,*) + PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_PDO_MYSQL" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then + if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then + PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL + else + if test -d "$PHP_PDO_MYSQL" ; then + if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then + PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config" + else + PDO_MYSQL_DIR="$PHP_PDO_MYSQL" + fi + fi + fi + fi + + if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +$as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h + + else + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 +$as_echo_n "checking for mysql_config... " >&6; } + if test -n "$PDO_MYSQL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 +$as_echo "$PDO_MYSQL_CONFIG" >&6; } + if test "x$SED" = "x"; then + # Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SED in + [\\/]* | ?:[\\/]*) + ac_cv_path_SED="$SED" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test "$enable_maintainer_zts" = "yes"; then + PDO_MYSQL_LIBNAME=mysqlclient_r + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` + else + PDO_MYSQL_LIBNAME=mysqlclient + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` + fi + PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + elif test -n "$PDO_MYSQL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 +$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } + if test -r $PDO_MYSQL_DIR/include/mysql; then + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql + else + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include + fi + if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql + else + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR + fi + + if test -r "$PDO_MYSQL_LIB_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 +$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 +$as_echo "can not find it" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_MYSQL_INC_DIR + else + + ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $PDO_MYSQL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_query (); +int +main () +{ +return mysql_query (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz" + fi + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + if test -n "$PDO_MYSQL_CONFIG"; then + PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` + +cat >>confdefs.h <<_ACEOF +#define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET" +_ACEOF + + fi + + + ext_builddir=ext/pdo_mysql + ext_srcdir=$abs_srcdir/ext/pdo_mysql + ext_dir=ext/pdo_mysql + + ac_extra=`echo "-I$pdo_cv_inc_path -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_MYSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null` +if test "$PHP_PDO_OCI_TAIL1" = "a"; then + PHP_PDO_OCI_TAIL1="tail -n1" +else + PHP_PDO_OCI_TAIL1="tail -1" +fi + + + + + + +php_with_pdo_oci=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5 +$as_echo_n "checking Oracle OCI support for PDO... " >&6; } + +# Check whether --with-pdo-oci was given. +if test "${with_pdo_oci+set}" = set; then : + withval=$with_pdo_oci; PHP_PDO_OCI=$withval +else + + PHP_PDO_OCI=no + test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_OCI in +shared,*) + PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_OCI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_OCI" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 +$as_echo_n "checking Oracle Install-Dir... " >&6; } + if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then + PDO_OCI_DIR=$ORACLE_HOME + else + PDO_OCI_DIR=$PHP_PDO_OCI + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 +$as_echo "$PHP_PDO_OCI" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 +$as_echo_n "checking if that is sane... " >&6; } + if test -z "$PDO_OCI_DIR"; then + as_fn_error $? "You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME." "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + + if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PDO_OCI_CLIENT_DIR="client" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PDO_OCI_CLIENT_DIR="client64" + +fi + + PDO_OCI_LIB_DIR="`echo $PDO_OCI_DIR | cut -d, -f2`" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` + if test -f "$PDO_OCI_LCS"; then + PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $PDO_OCI_LCS_BASE.9.0; then + PDO_OCI_VERSION=9.0 + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 +$as_echo_n "checking for oci.h... " >&6; } + OCISDKRPMINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/oracle/\(.*\)/\('${PDO_OCI_CLIENT_DIR}'\)/lib/*$!\1/include/oracle/\2/\3!'` + + OCISDKMANINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/*$!\1/include!'` + + OCISDKZIPINC=$PDO_OCI_LIB_DIR/sdk/include + + + if test -f "$OCISDKRPMINC/oci.h" ; then + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + elif test -f "$OCISDKMANINC/oci.h" ; then + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + elif test -f "$OCISDKZIPINC/oci.h" ; then + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + else + as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 + fi + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 +$as_echo_n "checking OCI8 libraries dir... " >&6; } + if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR + else + as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 +$as_echo "$PDO_OCI_LIB_DIR" >&6; } + + + if test -d "$PDO_OCI_DIR/rdbms/public"; then + + if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/public + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public" + fi + if test -d "$PDO_OCI_DIR/rdbms/demo"; then + + if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/demo + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo" + fi + if test -d "$PDO_OCI_DIR/network/public"; then + + if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/network/public + else + + ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public" + fi + if test -d "$PDO_OCI_DIR/plsql/public"; then + + if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/plsql/public + else + + ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public" + fi + if test -d "$PDO_OCI_DIR/include"; then + + if test "$PDO_OCI_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/include + else + + ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include" + fi + + if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then + + for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then + + for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` + if test -f "$PDO_OCI_LCS"; then + PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $PDO_OCI_LCS_BASE.9.0; then + PDO_OCI_VERSION=9.0 + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + fi + + case $PDO_OCI_VERSION in + 7.3|8.0|8.1) + as_fn_error $? "Oracle client libraries < 9 are not supported" "$LINENO" 5 + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then + + if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_LIB_DIR + else + + ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvCreate (); +int +main () +{ +return OCIEnvCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvCreate=yes +else + ac_cv_lib_clntsh_OCIEnvCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 +$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIStmtFetch2 (); +int +main () +{ +return OCIStmtFetch2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIStmtFetch2=yes +else + ac_cv_lib_clntsh_OCIStmtFetch2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIStmtFetch2 + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + ext_builddir=ext/pdo_oci + ext_srcdir=$abs_srcdir/ext/pdo_oci + ext_dir=ext/pdo_oci + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_OCI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_OCI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_OCI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION" +_ACEOF + +fi + + + + + + + +php_with_pdo_odbc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 +$as_echo_n "checking for ODBC v3 support for PDO... " >&6; } + +# Check whether --with-pdo-odbc was given. +if test "${with_pdo_odbc+set}" = set; then : + withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval +else + + PHP_PDO_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_ODBC in +shared,*) + PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + +if test "$PHP_PDO_ODBC" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 +$as_echo_n "checking for selected PDO ODBC flavour... " >&6; } + + pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" + pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" + + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then + pdo_odbc_dir= + fi + + case $pdo_odbc_flavour in + ibm-db2) + pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib + pdo_odbc_def_incdir=/home/db2inst1/sqllib/include + pdo_odbc_def_lib=db2 + ;; + + iODBC|iodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=iodbc + ;; + + unixODBC|unixodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=odbc + ;; + + ODBCRouter|odbcrouter) + pdo_odbc_def_libdir=/usr/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/include + pdo_odbc_def_lib=odbcsdk + ;; + + generic) + pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`" + pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`" + pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`" + pdo_odbc_flavour="generic-$pdo_odbc_def_lib" + ;; + + *) + as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour + The include and lib dirs are looked for under 'dir'. The 'flavour' can be one + of: ibm-db2, iODBC, unixODBC, generic. If ',dir' part is omitted, default for + the flavour you have selected will be used. e.g.: --with-pdo-odbc=unixODBC + will check for unixODBC under /usr/local. You may attempt to use an otherwise + unsupported driver using the 'generic' flavour. The syntax for generic ODBC + support is: --with-pdo-odbc=generic,dir,libname,ldflags,cflags. When built as + 'shared' the extension filename is always pdo_odbc.so" "$LINENO" 5 + ;; + esac + + if test -n "$pdo_odbc_dir"; then + PDO_ODBC_INCDIR="$pdo_odbc_dir/include" + PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR" + else + PDO_ODBC_INCDIR="$pdo_odbc_def_incdir" + PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&5 +$as_echo "$pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&6; } + + if test ! -d "$PDO_ODBC_LIBDIR" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 +$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_IODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + if test "$php_pdo_have_header" != "yes"; then + as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 + fi + + PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" + PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib" + + + for ac_i in $PDO_ODBC_LDFLAGS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLBindCol (); +int +main () +{ +return SQLBindCol (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle + + as_fn_error $? " +Your ODBC library does not appear to be ODBC 3 compatible. +You should consider using iODBC or unixODBC instead, and loading your +libraries as a driver in that environment; it will emulate the +functions required for PDO support. +" "$LINENO" 5 + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol + + as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/pdo_odbc + ext_srcdir=$abs_srcdir/ext/pdo_odbc + ext_dir=ext/pdo_odbc + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_ODBC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support for PDO... " >&6; } + +# Check whether --with-pdo-pgsql was given. +if test "${with_pdo_pgsql+set}" = set; then : + withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval +else + + PHP_PDO_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_PGSQL in +shared,*) + PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_PGSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PDO_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h + + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + ext_builddir=ext/pdo_pgsql + ext_srcdir=$abs_srcdir/ext/pdo_pgsql + ext_dir=ext/pdo_pgsql + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_PGSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sqlite 3 support for PDO... " >&6; } + +# Check whether --with-pdo-sqlite was given. +if test "${with_pdo_sqlite+set}" = set; then : + withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval +else + + PHP_PDO_SQLITE=$PHP_PDO + test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_SQLITE in +shared,*) + PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_SQLITE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_SQLITE" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 > 3.7.4" >&5 +$as_echo_n "checking for sqlite3 > 3.7.4... " >&6; } + +if test -n "$SQLITE_CFLAGS"; then + pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SQLITE_LIBS"; then + pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + else + SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SQLITE_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (sqlite3 > 3.7.4) were not met: + +$SQLITE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS + SQLITE_LIBS=$pkg_cv_SQLITE_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_open_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_open_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_open_v2 (); +int +main () +{ +return sqlite3_open_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_open_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_open_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_open_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_open_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $SQLITE_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SQLITE_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="$PDO_SQLITE_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="$PDO_SQLITE_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_open_v2 + + as_fn_error $? "Please install SQLite 3.7.4 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_close_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_close_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_close_v2 (); +int +main () +{ +return sqlite3_close_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_close_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_close_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_close_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_close_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_close_v2 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_column_table_name (); +int +main () +{ +return sqlite3_column_table_name (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_column_table_name=yes +else + ac_cv_lib_sqlite3_sqlite3_column_table_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_COLUMN_TABLE_NAME 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_column_table_name + + +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD" + + + ext_builddir=ext/pdo_sqlite + ext_srcdir=$abs_srcdir/ext/pdo_sqlite + ext_dir=ext/pdo_sqlite + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SQLITE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_sqlite.c sqlite_driver.c sqlite_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_sqlite.c sqlite_driver.c sqlite_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support... " >&6; } + +# Check whether --with-pgsql was given. +if test "${with_pgsql+set}" = set; then : + withval=$with_pgsql; PHP_PGSQL=$withval +else + + PHP_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PGSQL in +shared,*) + PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PGSQL" != "no"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PGSQL 1" >>confdefs.h + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5 +$as_echo_n "checking for PQescapeString in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeString (); +int +main () +{ +return PQescapeString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeString=yes +else + ac_cv_lib_pq_PQescapeString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeString" >&6; } +if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5 +$as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQunescapeBytea (); +int +main () +{ +return PQunescapeBytea (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQunescapeBytea=yes +else + ac_cv_lib_pq_PQunescapeBytea=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5 +$as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; } +if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then : + +$as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5 +$as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetnonblocking (); +int +main () +{ +return PQsetnonblocking (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetnonblocking=yes +else + ac_cv_lib_pq_PQsetnonblocking=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5 +$as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; } +if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then : + +$as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5 +$as_echo_n "checking for PQcmdTuples in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQcmdTuples+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQcmdTuples (); +int +main () +{ +return PQcmdTuples (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQcmdTuples=yes +else + ac_cv_lib_pq_PQcmdTuples=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5 +$as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; } +if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then : + +$as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5 +$as_echo_n "checking for PQoidValue in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQoidValue+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQoidValue (); +int +main () +{ +return PQoidValue (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQoidValue=yes +else + ac_cv_lib_pq_PQoidValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5 +$as_echo "$ac_cv_lib_pq_PQoidValue" >&6; } +if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then : + +$as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5 +$as_echo_n "checking for PQclientEncoding in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQclientEncoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQclientEncoding (); +int +main () +{ +return PQclientEncoding (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQclientEncoding=yes +else + ac_cv_lib_pq_PQclientEncoding=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5 +$as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; } +if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then : + +$as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5 +$as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprotocolVersion (); +int +main () +{ +return PQprotocolVersion (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprotocolVersion=yes +else + ac_cv_lib_pq_PQprotocolVersion=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5 +$as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; } +if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then : + +$as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5 +$as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQtransactionStatus (); +int +main () +{ +return PQtransactionStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQtransactionStatus=yes +else + ac_cv_lib_pq_PQtransactionStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; } +if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then : + +$as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + +$as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 +$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecPrepared (); +int +main () +{ +return PQexecPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecPrepared=yes +else + ac_cv_lib_pq_PQexecPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : + +$as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5 +$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQresultErrorField+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQresultErrorField (); +int +main () +{ +return PQresultErrorField (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQresultErrorField=yes +else + ac_cv_lib_pq_PQresultErrorField=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5 +$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; } +if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then : + +$as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5 +$as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryParams (); +int +main () +{ +return PQsendQueryParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryParams=yes +else + ac_cv_lib_pq_PQsendQueryParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5 +$as_echo_n "checking for PQsendPrepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendPrepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendPrepare (); +int +main () +{ +return PQsendPrepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendPrepare=yes +else + ac_cv_lib_pq_PQsendPrepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5 +$as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; } +if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then : + +$as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 +$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryPrepared (); +int +main () +{ +return PQsendQueryPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryPrepared=yes +else + ac_cv_lib_pq_PQsendQueryPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5 +$as_echo_n "checking for PQputCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyData (); +int +main () +{ +return PQputCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyData=yes +else + ac_cv_lib_pq_PQputCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5 +$as_echo_n "checking for PQgetCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQgetCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQgetCopyData (); +int +main () +{ +return PQgetCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQgetCopyData=yes +else + ac_cv_lib_pq_PQgetCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then : + +$as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5 +$as_echo_n "checking for PQfreemem in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQfreemem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQfreemem (); +int +main () +{ +return PQfreemem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQfreemem=yes +else + ac_cv_lib_pq_PQfreemem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5 +$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; } +if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then : + +$as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5 +$as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetErrorVerbosity (); +int +main () +{ +return PQsetErrorVerbosity (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetErrorVerbosity=yes +else + ac_cv_lib_pq_PQsetErrorVerbosity=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5 +$as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; } +if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then : + +$as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5 +$as_echo_n "checking for PQftable in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQftable+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQftable (); +int +main () +{ +return PQftable (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQftable=yes +else + ac_cv_lib_pq_PQftable=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5 +$as_echo "$ac_cv_lib_pq_PQftable" >&6; } +if test "x$ac_cv_lib_pq_PQftable" = xyes; then : + +$as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5 +$as_echo_n "checking for lo_create in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_create (); +int +main () +{ +return lo_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_create=yes +else + ac_cv_lib_pq_lo_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5 +$as_echo "$ac_cv_lib_pq_lo_create" >&6; } +if test "x$ac_cv_lib_pq_lo_create" = xyes; then : + +$as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5 +$as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_import_with_oid (); +int +main () +{ +return lo_import_with_oid (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_import_with_oid=yes +else + ac_cv_lib_pq_lo_import_with_oid=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5 +$as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; } +if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then : + +$as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate in -lpq" >&5 +$as_echo_n "checking for lo_truncate in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_truncate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_truncate (); +int +main () +{ +return lo_truncate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_truncate=yes +else + ac_cv_lib_pq_lo_truncate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate" >&5 +$as_echo "$ac_cv_lib_pq_lo_truncate" >&6; } +if test "x$ac_cv_lib_pq_lo_truncate" = xyes; then : + +$as_echo "#define HAVE_PG_LO_TRUNCATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate64 in -lpq" >&5 +$as_echo_n "checking for lo_truncate64 in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_truncate64+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_truncate64 (); +int +main () +{ +return lo_truncate64 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_truncate64=yes +else + ac_cv_lib_pq_lo_truncate64=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate64" >&5 +$as_echo "$ac_cv_lib_pq_lo_truncate64" >&6; } +if test "x$ac_cv_lib_pq_lo_truncate64" = xyes; then : + +$as_echo "#define HAVE_PG_LO64 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5 +$as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeLiteral (); +int +main () +{ +return PQescapeLiteral (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeLiteral=yes +else + ac_cv_lib_pq_PQescapeLiteral=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; } +if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then : + +$as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h + +fi + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/pgsql + ext_srcdir=$abs_srcdir/ext/pgsql + ext_dir=ext/pgsql + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PGSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar archive support... " >&6; } +# Check whether --enable-phar was given. +if test "${enable_phar+set}" = set; then : + enableval=$enable_phar; PHP_PHAR=$enableval +else + + PHP_PHAR=yes + test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHAR in +shared,*) + PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHAR" != "no"; then + + ext_builddir=ext/phar + ext_srcdir=$abs_srcdir/ext/phar + ext_dir=ext/phar + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PHAR_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar openssl support... " >&6; } + if test "$PHP_OPENSSL_SHARED" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 +$as_echo "no (shared openssl)" >&6; } + else + if test "$PHP_OPENSSL" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_HASH_SHARED + is_it_enabled=$PHP_HASH + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension hash, which you've configured to build shared. +You either need to build phar shared or build hash statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension hash, +but you've either not enabled hash, or have disabled it. +" "$LINENO" 5 + fi + + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_SPL_SHARED + is_it_enabled=$PHP_SPL + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension spl, which you've configured to build shared. +You either need to build phar shared or build spl statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension spl, +but you've either not enabled spl, or have disabled it. +" "$LINENO" 5 + fi + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + + header_path=ext/phar + for header_file in php_phar.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1" + +fi + + + + + +php_enable_posix=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 +$as_echo_n "checking whether to enable POSIX-like functions... " >&6; } +# Check whether --enable-posix was given. +if test "${enable_posix+set}" = set; then : + enableval=$enable_posix; PHP_POSIX=$enableval +else + + PHP_POSIX=yes + test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_POSIX in +shared,*) + PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'` + ;; +shared) + PHP_POSIX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_POSIX" = "yes"; then + +$as_echo "#define HAVE_POSIX 1" >>confdefs.h + + + ext_builddir=ext/posix + ext_srcdir=$abs_srcdir/ext/posix + ext_dir=ext/posix + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_POSIX_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_POSIX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_POSIX_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + for ac_func in seteuid setegid setsid getsid getpgid ctermid mkfifo mknod setrlimit getrlimit getgroups makedev initgroups getgrgid_r +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 +$as_echo_n "checking for working ttyname_r() implementation... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + char buf[64]; + + return !ttyname_r(0, buf, 64); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 +$as_echo_n "checking for utsname.domainname... " >&6; } +if ${ac_cv_have_utsname_domainname+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #include + +int +main () +{ + + return sizeof(((struct utsname *)0)->domainname); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_have_utsname_domainname=yes + +else + + ac_cv_have_utsname_domainname=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 +$as_echo "$ac_cv_have_utsname_domainname" >&6; } + if test "$ac_cv_have_utsname_domainname" = yes; then + +$as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h + + fi +fi + + + + + +php_with_pspell=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 +$as_echo_n "checking for PSPELL support... " >&6; } + +# Check whether --with-pspell was given. +if test "${with_pspell+set}" = set; then : + withval=$with_pspell; PHP_PSPELL=$withval +else + + PHP_PSPELL=no + test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PSPELL in +shared,*) + PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PSPELL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PSPELL" != "no"; then + + ext_builddir=ext/pspell + ext_srcdir=$abs_srcdir/ext/pspell + ext_dir=ext/pspell + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PSPELL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PSPELL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PSPELL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pspell in + c|c_r|pthread*) ;; + *) + LIBS="-lpspell $LIBS" + ;; + esac + + + + + fi + + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PSPELL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 +$as_echo_n "checking for new_aspell_config in -laspell... " >&6; } +if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laspell $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char new_aspell_config (); +int +main () +{ +return new_aspell_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_aspell_new_aspell_config=yes +else + ac_cv_lib_aspell_new_aspell_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 +$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD" + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case aspell in + c|c_r|pthread*) ;; + *) + LIBS="-laspell $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_aspell_new_aspell_config + + +fi + + + + if test "$PSPELL_INCDIR" != "/usr/include"; then + + if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_INCDIR + else + + ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD" + + +$as_echo "#define HAVE_PSPELL 1" >>confdefs.h + +fi + + + + + +php_with_libedit=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 +$as_echo_n "checking for libedit readline replacement... " >&6; } + +# Check whether --with-libedit was given. +if test "${with_libedit+set}" = set; then : + withval=$with_libedit; PHP_LIBEDIT=$withval +else + + PHP_LIBEDIT=no + test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBEDIT in +shared,*) + PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBEDIT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBEDIT" = "no"; then + +php_with_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 +$as_echo_n "checking for readline support... " >&6; } + +# Check whether --with-readline was given. +if test "${with_readline+set}" = set; then : + withval=$with_readline; PHP_READLINE=$withval +else + + PHP_READLINE=no + test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_READLINE in +shared,*) + PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'` + ;; +shared) + PHP_READLINE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +else + php_with_readline=no +fi + +if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do + test -f $i/include/readline/readline.h && READLINE_DIR=$i && break + done + + if test -z "$READLINE_DIR"; then + as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$READLINE_DIR/include" != "/usr/include"; then + + if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/include + else + + ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_READLINE_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 +$as_echo_n "checking for readline in -lreadline... " >&6; } +if ${ac_cv_lib_readline_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_readline=yes +else + ac_cv_lib_readline_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 +$as_echo "$ac_cv_lib_readline_readline" >&6; } +if test "x$ac_cv_lib_readline_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD" + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case readline in + c|c_r|pthread*) ;; + *) + LIBS="-lreadline $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_readline + + as_fn_error $? "readline library not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 +$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_pending_input+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_pending_input (); +int +main () +{ +return rl_pending_input (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_pending_input=yes +else + ac_cv_lib_readline_rl_pending_input=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 +$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_pending_input + + as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_callback_read_char=yes +else + ac_cv_lib_readline_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -lreadline" >&5 +$as_echo_n "checking for rl_on_new_line in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_on_new_line=yes +else + ac_cv_lib_readline_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_readline_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_readline_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_on_new_line + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 +$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_completion_matches (); +int +main () +{ +return rl_completion_matches (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_completion_matches=yes +else + ac_cv_lib_readline_rl_completion_matches=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 +$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_completion_matches + + +fi + + + +$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h + + +elif test "$PHP_LIBEDIT" != "no"; then + if test "$PHP_LIBEDIT" != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libedit directory ignored, rely on pkg-config" >&5 +$as_echo "$as_me: WARNING: libedit directory ignored, rely on pkg-config" >&2;} + fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 +$as_echo_n "checking for libedit... " >&6; } + +if test -n "$EDIT_CFLAGS"; then + pkg_cv_EDIT_CFLAGS="$EDIT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EDIT_LIBS"; then + pkg_cv_EDIT_LIBS="$EDIT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` + else + EDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EDIT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libedit) were not met: + +$EDIT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EDIT_CFLAGS +and EDIT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EDIT_CFLAGS +and EDIT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EDIT_CFLAGS=$pkg_cv_EDIT_CFLAGS + EDIT_LIBS=$pkg_cv_EDIT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $EDIT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="$READLINE_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="$READLINE_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $EDIT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 +$as_echo_n "checking for readline in -ledit... " >&6; } +if ${ac_cv_lib_edit_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_readline=yes +else + ac_cv_lib_edit_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 +$as_echo "$ac_cv_lib_edit_readline" >&6; } +if test "x$ac_cv_lib_edit_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_readline + + as_fn_error $? "edit library required by readline not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 +$as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_callback_read_char=yes +else + ac_cv_lib_edit_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" >&5 +$as_echo_n "checking for rl_completion_matches in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_completion_matches+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_completion_matches (); +int +main () +{ +return rl_completion_matches (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_completion_matches=yes +else + ac_cv_lib_edit_rl_completion_matches=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_completion_matches" >&5 +$as_echo "$ac_cv_lib_edit_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_edit_rl_completion_matches" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_completion_matches + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -ledit" >&5 +$as_echo_n "checking for history_list in -ledit... " >&6; } +if ${ac_cv_lib_edit_history_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char history_list (); +int +main () +{ +return history_list (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_history_list=yes +else + ac_cv_lib_edit_history_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_list" >&5 +$as_echo "$ac_cv_lib_edit_history_list" >&6; } +if test "x$ac_cv_lib_edit_history_list" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_history_list + + +fi + + + +$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h + +fi + +if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then + + ext_builddir=ext/readline + ext_srcdir=$abs_srcdir/ext/readline + ext_dir=ext/readline + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_READLINE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_READLINE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_READLINE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_REFLECTION 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_REFLECTION_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PHP sessions... " >&6; } +# Check whether --enable-session was given. +if test "${enable_session+set}" = set; then : + enableval=$enable_session; PHP_SESSION=$enableval +else + + PHP_SESSION=yes + test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SESSION in +shared,*) + PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'` + ;; +shared) + PHP_SESSION=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 +$as_echo_n "checking for mm support... " >&6; } + +# Check whether --with-mm was given. +if test "${with_mm+set}" = set; then : + withval=$with_mm; PHP_MM=$withval +else + + PHP_MM=no + + +fi + + +ext_output=$PHP_MM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SESSION" != "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 +$as_echo_n "checking whether pwrite works... " >&6; } +if ${ac_cv_pwrite+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "no"; then + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pwrite(int, void *, size_t, off64_t); + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "yes"; then + ac_cv_pwrite=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 +$as_echo "$ac_cv_pwrite" >&6; } + + if test "$ac_cv_pwrite" != "no"; then + +$as_echo "#define HAVE_PWRITE 1" >>confdefs.h + + if test "$ac_cv_pwrite" = "64"; then + +$as_echo "#define PHP_PWRITE_64 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 +$as_echo_n "checking whether pread works... " >&6; } +if ${ac_cv_pread+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "no"; then + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pread(int, void *, size_t, off64_t); + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "yes"; then + ac_cv_pread=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 +$as_echo "$ac_cv_pread" >&6; } + + if test "$ac_cv_pread" != "no"; then + +$as_echo "#define HAVE_PREAD 1" >>confdefs.h + + if test "$ac_cv_pread" = "64"; then + +$as_echo "#define PHP_PREAD_64 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/session + ext_srcdir=$abs_srcdir/ext/session + ext_dir=ext/session + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SESSION_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SESSION 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SESSION_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + +if test "$PHP_MM" != "no"; then + for i in $PHP_MM /usr/local /usr; do + test -f "$i/include/mm.h" && MM_DIR=$i && break + done + + if test -z "$MM_DIR" ; then + as_fn_error $? "cannot find mm library" "$LINENO" 5 + fi + + if test "$enable_maintainer_zts" = "yes"; then + as_fn_error $? "--with-mm cannot be combined with --enable-maintainer-zts" "$LINENO" 5 + fi + + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD" + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mm in + c|c_r|pthread*) ;; + *) + LIBS="-lmm $LIBS" + ;; + esac + + + + + fi + + + + if test "$MM_DIR/include" != "/usr/include"; then + + if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/include + else + + ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + for header_file in ext/session/mod_mm.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + +$as_echo "#define HAVE_LIBMM 1" >>confdefs.h + +fi + + + + + +php_enable_shmop=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 +$as_echo_n "checking whether to enable shmop support... " >&6; } +# Check whether --enable-shmop was given. +if test "${enable_shmop+set}" = set; then : + enableval=$enable_shmop; PHP_SHMOP=$enableval +else + + PHP_SHMOP=no + test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SHMOP in +shared,*) + PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SHMOP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHMOP" != "no"; then + +$as_echo "#define HAVE_SHMOP 1" >>confdefs.h + + + ext_builddir=ext/shmop + ext_srcdir=$abs_srcdir/ext/shmop + ext_dir=ext/shmop + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SHMOP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SHMOP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SHMOP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SimpleXML support... " >&6; } +# Check whether --enable-simplexml was given. +if test "${enable_simplexml+set}" = set; then : + enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval +else + + PHP_SIMPLEXML=yes + test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SIMPLEXML in +shared,*) + PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_SIMPLEXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIMPLEXML" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SimpleXML extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h + + + ext_builddir=ext/simplexml + ext_srcdir=$abs_srcdir/ext/simplexml + ext_dir=ext/simplexml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SIMPLEXML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SIMPLEXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SIMPLEXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for SNMP support... " >&6; } + +# Check whether --with-snmp was given. +if test "${with_snmp+set}" = set; then : + withval=$with_snmp; PHP_SNMP=$withval +else + + PHP_SNMP=no + test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SNMP in +shared,*) + PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SNMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5 +$as_echo_n "checking OpenSSL dir for SNMP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SNMP" != "no"; then + + if test "$PHP_SNMP" = "yes"; then + # Extract the first word of "net-snmp-config", so it can be a program name with args. +set dummy net-snmp-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SNMP_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SNMP_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/local/bin:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG +if test -n "$SNMP_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 +$as_echo "$SNMP_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config" + fi + + if test -x "$SNMP_CONFIG"; then + SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs` + SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`" + SNMP_PREFIX=`$SNMP_CONFIG --prefix` + snmp_full_version=`$SNMP_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $snmp_full_version + IFS=$ac_IFS + SNMP_VERSION=`expr $1 \* 1000 + $2` + if test "$SNMP_VERSION" -ge "5003"; then + if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then + + if test "${SNMP_PREFIX}/include" != "/usr/include"; then + + if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then + ai_p=${SNMP_PREFIX}/include + else + + ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $SNMP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + SNMP_LIBNAME=netsnmp + else + as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 + fi + else + as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 + fi + else + as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char init_snmp (); +int +main () +{ +return init_snmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SNMP 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_init_snmp + + as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shutdown_snmp_logging (); +int +main () +{ +return shutdown_snmp_logging (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging + + +fi + + + + ext_builddir=ext/snmp + ext_srcdir=$abs_srcdir/ext/snmp + ext_dir=ext/snmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SNMP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SNMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SNMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SOAP support... " >&6; } +# Check whether --enable-soap was given. +if test "${enable_soap+set}" = set; then : + enableval=$enable_soap; PHP_SOAP=$enableval +else + + PHP_SOAP=no + test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOAP in +shared,*) + PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOAP" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SOAP extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_SOAP 1" >>confdefs.h + + + ext_builddir=ext/soap + ext_srcdir=$abs_srcdir/ext/soap + ext_dir=ext/soap + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable sockets support... " >&6; } +# Check whether --enable-sockets was given. +if test "${enable_sockets+set}" = set; then : + enableval=$enable_sockets; PHP_SOCKETS=$enableval +else + + PHP_SOCKETS=no + test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOCKETS in +shared,*) + PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOCKETS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOCKETS" != "no"; then + for ac_func in hstrerror if_nametoindex if_indextoname +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in netinet/tcp.h sys/un.h sys/sockio.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 +$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } +if ${ac_cv_ss_family+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ss_family=yes +else + ac_cv_ss_family=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 +$as_echo "$ac_cv_ss_family" >&6; } + + if test "$ac_cv_ss_family" = yes; then + +$as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 +$as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } +if ${ac_cv_gai_ai_v4mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_V4MAPPED; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_v4mapped=yes +else + ac_cv_gai_ai_v4mapped=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 +$as_echo "$ac_cv_gai_ai_v4mapped" >&6; } + + if test "$ac_cv_gai_ai_v4mapped" = yes; then + +$as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_ALL" >&5 +$as_echo_n "checking if getaddrinfo supports AI_ALL... " >&6; } +if ${ac_cv_gai_ai_all+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_ALL; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_all=yes +else + ac_cv_gai_ai_all=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_all" >&5 +$as_echo "$ac_cv_gai_ai_all" >&6; } + + if test "$ac_cv_gai_ai_all" = yes; then + +$as_echo "#define HAVE_AI_ALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_IDN" >&5 +$as_echo_n "checking if getaddrinfo supports AI_IDN... " >&6; } +if ${ac_cv_gai_ai_idn+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_IDN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_idn=yes +else + ac_cv_gai_ai_idn=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_idn" >&5 +$as_echo "$ac_cv_gai_ai_idn" >&6; } + + if test "$ac_cv_gai_ai_idn" = yes; then + +$as_echo "#define HAVE_AI_IDN 1" >>confdefs.h + + fi + + PHP_SOCKETS_CFLAGS=-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 + case $host_alias in + *darwin*) PHP_SOCKETS_CFLAGS="$PHP_SOCKETS_CFLAGS -D__APPLE_USE_RFC_3542" + esac + + ext_builddir=ext/sockets + ext_srcdir=$abs_srcdir/ext/sockets + ext_dir=ext/sockets + + ac_extra=`echo "$PHP_SOCKETS_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOCKETS_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOCKETS 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOCKETS_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sodium support... " >&6; } + +# Check whether --with-sodium was given. +if test "${with_sodium+set}" = set; then : + withval=$with_sodium; PHP_SODIUM=$withval +else + + PHP_SODIUM=no + test "$PHP_ENABLE_ALL" && PHP_SODIUM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SODIUM in +shared,*) + PHP_SODIUM=`echo "$PHP_SODIUM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SODIUM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SODIUM" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsodium >= 1.0.8" >&5 +$as_echo_n "checking for libsodium >= 1.0.8... " >&6; } + +if test -n "$LIBSODIUM_CFLAGS"; then + pkg_cv_LIBSODIUM_CFLAGS="$LIBSODIUM_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBSODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium >= 1.0.8" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBSODIUM_LIBS"; then + pkg_cv_LIBSODIUM_LIBS="$LIBSODIUM_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBSODIUM_LIBS=`$PKG_CONFIG --libs "libsodium >= 1.0.8" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium >= 1.0.8" 2>&1` + else + LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsodium >= 1.0.8" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBSODIUM_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsodium >= 1.0.8) were not met: + +$LIBSODIUM_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBSODIUM_CFLAGS +and LIBSODIUM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBSODIUM_CFLAGS +and LIBSODIUM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBSODIUM_CFLAGS=$pkg_cv_LIBSODIUM_CFLAGS + LIBSODIUM_LIBS=$pkg_cv_LIBSODIUM_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBSODIUM_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBSODIUM_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="-L$ai_p $SODIUM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SODIUM_SHARED_LIBADD="$ld_runpath_switch$ai_p $SODIUM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBSODIUMLIB 1" >>confdefs.h + + + + ext_builddir=ext/sodium + ext_srcdir=$abs_srcdir/ext/sodium + ext_dir=ext/sodium + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SODIUM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libsodium.c sodium_pwhash.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SODIUM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SODIUM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libsodium.c sodium_pwhash.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SPL 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_SPL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } +if ${ac_cv_flush_io+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_flush_io=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char **argv) +{ + char *filename = tmpnam(NULL); + char buffer[64]; + int result = 0; + + FILE *fp = fopen(filename, "wb"); + if (NULL == fp) + return 0; + fputs("line 1\n", fp); + fputs("line 2\n", fp); + fclose(fp); + + fp = fopen(filename, "rb+"); + if (NULL == fp) + return 0; + fgets(buffer, sizeof(buffer), fp); + fputs("line 3\n", fp); + rewind(fp); + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 1\n")) + result = 1; + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 3\n")) + result = 1; + fclose(fp); + unlink(filename); + + exit(result); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_flush_io=no + +else + + ac_cv_flush_io=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 +$as_echo "$ac_cv_flush_io" >&6; } +if test "$ac_cv_flush_io" = "yes"; then + +$as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h + +fi + +if test "$ac_cv_func_crypt" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LIBS="-lcrypt $LIBS -lcrypt" + +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h + + +fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +$as_echo_n "checking for standard DES crypt... " >&6; } +if ${ac_cv_crypt_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_des=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char *encrypted = crypt("rasmuslerdorf","rl"); + exit(!encrypted || strcmp(encrypted,"rl.3StKT.4T8M")); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_des=yes + +else + + ac_cv_crypt_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +$as_echo "$ac_cv_crypt_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +$as_echo_n "checking for extended DES crypt... " >&6; } +if ${ac_cv_crypt_ext_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_ext_des=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char *encrypted = crypt("rasmuslerdorf","_J9..rasm"); + exit(!encrypted || strcmp(encrypted,"_J9..rasmBYk8r9AiWNc")); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_ext_des=yes + +else + + ac_cv_crypt_ext_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 +$as_echo "$ac_cv_crypt_ext_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 +$as_echo_n "checking for MD5 crypt... " >&6; } +if ${ac_cv_crypt_md5+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_md5=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[15], answer[40]; + char *encrypted; + + salt[0]='$'; salt[1]='1'; salt[2]='$'; + salt[3]='r'; salt[4]='a'; salt[5]='s'; + salt[6]='m'; salt[7]='u'; salt[8]='s'; + salt[9]='l'; salt[10]='e'; salt[11]='$'; + salt[12]='\0'; + strcpy(answer,salt); + strcat(answer,"rISCgZzpwk3UhDidwXvin0"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_md5=yes + +else + + ac_cv_crypt_md5=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 +$as_echo "$ac_cv_crypt_md5" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 +$as_echo_n "checking for Blowfish crypt... " >&6; } +if ${ac_cv_crypt_blowfish+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_blowfish=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[30], answer[70]; + char *encrypted; + + salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; + strcat(salt,"rasmuslerd............"); + strcpy(answer,salt); + strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_blowfish=yes + +else + + ac_cv_crypt_blowfish=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 +$as_echo "$ac_cv_crypt_blowfish" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 +$as_echo_n "checking for SHA512 crypt... " >&6; } +if ${ac_cv_crypt_sha512+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_sha512=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[21], answer[21+86]; + char *encrypted; + + strcpy(salt,"\$6\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_sha512=yes + +else + + ac_cv_crypt_sha512=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha512" >&5 +$as_echo "$ac_cv_crypt_sha512" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 +$as_echo_n "checking for SHA256 crypt... " >&6; } +if ${ac_cv_crypt_sha256+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_sha256=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[21], answer[21+43]; + char *encrypted; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_sha256=yes + +else + + ac_cv_crypt_sha256=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha256" >&5 +$as_echo "$ac_cv_crypt_sha256" >&6; } + + +if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "$ac_cv_crypt_md5" = "no" || test "$ac_cv_crypt_sha512" = "no" || test "$ac_cv_crypt_sha256" = "no" || test "x$php_crypt_r" = "x0"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 +$as_echo_n "checking whether the compiler supports __alignof__... " >&6; } +if ${ac_cv_alignof_exists+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + int align = __alignof__(int); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_alignof_exists=yes + +else + + ac_cv_alignof_exists=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 +$as_echo "$ac_cv_alignof_exists" >&6; } + if test "$ac_cv_alignof_exists" = "yes"; then + +$as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h + + fi + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 1 +_ACEOF + + + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 0 +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 +$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } +if ${ac_cv_attribute_aligned+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_attribute_aligned=yes + +else + + ac_cv_attribute_aligned=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 +$as_echo "$ac_cv_attribute_aligned" >&6; } +if test "$ac_cv_attribute_aligned" = "yes"; then + +$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h + +fi + +for ac_func in asinh acosh atanh log1p hypot +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 +$as_echo_n "checking for working POSIX fnmatch... " >&6; } +if ${ac_cv_func_fnmatch_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Some versions of Solaris, SCO, and the GNU C Library + # have a broken or incompatible fnmatch. + # So we run a test program. If we are cross-compiling, take no chance. + # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. + if test "$cross_compiling" = yes; then : + ac_cv_func_fnmatch_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +# define y(a, b, c) (fnmatch (a, b, c) == 0) +# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) + +int +main () +{ +return + (!(y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && 1)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fnmatch_works=yes +else + ac_cv_func_fnmatch_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 +$as_echo "$ac_cv_func_fnmatch_works" >&6; } +if test $ac_cv_func_fnmatch_works = yes; then : + +$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h + +fi + + + +for ac_func in fork CreateProcess +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + + php_can_support_proc_open=yes + break + +else + + php_can_support_proc_open=no + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 +$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; } +if test "$php_can_support_proc_open" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +PHP_ENABLE_CHROOT_FUNC=no +case "$PHP_SAPI" in + embed) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + none) + for PROG in $PHP_BINARIES; do + case "$PROG" in + cgi|cli|phpdbg) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + *) + PHP_ENABLE_CHROOT_FUNC=no + break + ;; + esac + done + ;; +esac + +if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then + +$as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h + +fi + + + unset ac_cv_func_res_nsearch + unset ac_cv_func___res_nsearch + unset found + + ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" +if test "x$ac_cv_func_res_nsearch" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" +if test "x$ac_cv_func___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_nsearch + unset ac_cv_lib_resolv___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 +$as_echo_n "checking for res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_nsearch=yes +else + ac_cv_lib_resolv_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 +$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_nsearch=yes +else + ac_cv_lib_resolv___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_bind_res_nsearch + unset ac_cv_lib_bind___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 +$as_echo_n "checking for res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_nsearch=yes +else + ac_cv_lib_bind_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } +if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 +$as_echo_n "checking for __res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_nsearch=yes +else + ac_cv_lib_bind___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } +if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_socket_res_nsearch + unset ac_cv_lib_socket___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 +$as_echo_n "checking for res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_nsearch=yes +else + ac_cv_lib_socket_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } +if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 +$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_nsearch=yes +else + ac_cv_lib_socket___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } +if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_res_ndestroy + unset ac_cv_func___res_ndestroy + unset found + + ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" +if test "x$ac_cv_func_res_ndestroy" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_ndestroy" "ac_cv_func___res_ndestroy" +if test "x$ac_cv_func___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_ndestroy + unset ac_cv_lib_resolv___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lresolv" >&5 +$as_echo_n "checking for res_ndestroy in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_ndestroy=yes +else + ac_cv_lib_resolv_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_resolv_res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lresolv" >&5 +$as_echo_n "checking for __res_ndestroy in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_ndestroy=yes +else + ac_cv_lib_resolv___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_resolv___res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + + unset ac_cv_lib_bind_res_ndestroy + unset ac_cv_lib_bind___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lbind" >&5 +$as_echo_n "checking for res_ndestroy in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_ndestroy=yes +else + ac_cv_lib_bind_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_bind_res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lbind" >&5 +$as_echo_n "checking for __res_ndestroy in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_ndestroy=yes +else + ac_cv_lib_bind___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_bind___res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + + unset ac_cv_lib_socket_res_ndestroy + unset ac_cv_lib_socket___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lsocket" >&5 +$as_echo_n "checking for res_ndestroy in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_ndestroy=yes +else + ac_cv_lib_socket_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_socket_res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lsocket" >&5 +$as_echo_n "checking for __res_ndestroy in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_ndestroy=yes +else + ac_cv_lib_socket___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_socket___res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dns_search + unset ac_cv_func___dns_search + unset found + + ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" +if test "x$ac_cv_func_dns_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" +if test "x$ac_cv_func___dns_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + ac_cv_func_dns_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_dns_search + unset ac_cv_lib_resolv___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 +$as_echo_n "checking for dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dns_search=yes +else + ac_cv_lib_resolv_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 +$as_echo "$ac_cv_lib_resolv_dns_search" >&6; } +if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 +$as_echo_n "checking for __dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dns_search=yes +else + ac_cv_lib_resolv___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 +$as_echo "$ac_cv_lib_resolv___dns_search" >&6; } +if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_bind_dns_search + unset ac_cv_lib_bind___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 +$as_echo_n "checking for dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dns_search=yes +else + ac_cv_lib_bind_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 +$as_echo "$ac_cv_lib_bind_dns_search" >&6; } +if test "x$ac_cv_lib_bind_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 +$as_echo_n "checking for __dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dns_search=yes +else + ac_cv_lib_bind___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 +$as_echo "$ac_cv_lib_bind___dns_search" >&6; } +if test "x$ac_cv_lib_bind___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_socket_dns_search + unset ac_cv_lib_socket___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 +$as_echo_n "checking for dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dns_search=yes +else + ac_cv_lib_socket_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 +$as_echo "$ac_cv_lib_socket_dns_search" >&6; } +if test "x$ac_cv_lib_socket_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 +$as_echo_n "checking for __dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dns_search=yes +else + ac_cv_lib_socket___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 +$as_echo "$ac_cv_lib_socket___dns_search" >&6; } +if test "x$ac_cv_lib_socket___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_expand + unset ac_cv_func___dn_expand + unset found + + ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" +if test "x$ac_cv_func_dn_expand" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" +if test "x$ac_cv_func___dn_expand" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_expand + unset ac_cv_lib_resolv___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 +$as_echo_n "checking for dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_expand=yes +else + ac_cv_lib_resolv_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } +if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 +$as_echo_n "checking for __dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_expand=yes +else + ac_cv_lib_resolv___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } +if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_bind_dn_expand + unset ac_cv_lib_bind___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 +$as_echo_n "checking for dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_expand=yes +else + ac_cv_lib_bind_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 +$as_echo "$ac_cv_lib_bind_dn_expand" >&6; } +if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 +$as_echo_n "checking for __dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_expand=yes +else + ac_cv_lib_bind___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 +$as_echo "$ac_cv_lib_bind___dn_expand" >&6; } +if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_socket_dn_expand + unset ac_cv_lib_socket___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 +$as_echo_n "checking for dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_expand=yes +else + ac_cv_lib_socket_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 +$as_echo "$ac_cv_lib_socket_dn_expand" >&6; } +if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 +$as_echo_n "checking for __dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_expand=yes +else + ac_cv_lib_socket___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 +$as_echo "$ac_cv_lib_socket___dn_expand" >&6; } +if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_skipname + unset ac_cv_func___dn_skipname + unset found + + ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" +if test "x$ac_cv_func_dn_skipname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" +if test "x$ac_cv_func___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_skipname + unset ac_cv_lib_resolv___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 +$as_echo_n "checking for dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_skipname=yes +else + ac_cv_lib_resolv_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 +$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_skipname=yes +else + ac_cv_lib_resolv___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_bind_dn_skipname + unset ac_cv_lib_bind___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 +$as_echo_n "checking for dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_skipname=yes +else + ac_cv_lib_bind_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } +if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 +$as_echo_n "checking for __dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_skipname=yes +else + ac_cv_lib_bind___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } +if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_socket_dn_skipname + unset ac_cv_lib_socket___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 +$as_echo_n "checking for dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_skipname=yes +else + ac_cv_lib_socket_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } +if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 +$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_skipname=yes +else + ac_cv_lib_socket___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } +if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + + + unset ac_cv_func_res_search + unset ac_cv_func___res_search + unset found + + ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" +if test "x$ac_cv_func_res_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" +if test "x$ac_cv_func___res_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + ac_cv_func_res_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_search + unset ac_cv_lib_resolv___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 +$as_echo_n "checking for res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_search=yes +else + ac_cv_lib_resolv_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 +$as_echo "$ac_cv_lib_resolv_res_search" >&6; } +if test "x$ac_cv_lib_resolv_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 +$as_echo_n "checking for __res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_search=yes +else + ac_cv_lib_resolv___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 +$as_echo "$ac_cv_lib_resolv___res_search" >&6; } +if test "x$ac_cv_lib_resolv___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_bind_res_search + unset ac_cv_lib_bind___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 +$as_echo_n "checking for res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_search=yes +else + ac_cv_lib_bind_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 +$as_echo "$ac_cv_lib_bind_res_search" >&6; } +if test "x$ac_cv_lib_bind_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 +$as_echo_n "checking for __res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_search=yes +else + ac_cv_lib_bind___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 +$as_echo "$ac_cv_lib_bind___res_search" >&6; } +if test "x$ac_cv_lib_bind___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_socket_res_search + unset ac_cv_lib_socket___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 +$as_echo_n "checking for res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_search=yes +else + ac_cv_lib_socket_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 +$as_echo "$ac_cv_lib_socket_res_search" >&6; } +if test "x$ac_cv_lib_socket_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 +$as_echo_n "checking for __res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_search=yes +else + ac_cv_lib_socket___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 +$as_echo "$ac_cv_lib_socket___res_search" >&6; } +if test "x$ac_cv_lib_socket___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 +$as_echo_n "checking whether strptime() declaration fails... " >&6; } +if ${ac_cv_strptime_decl_fails+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#ifndef HAVE_STRPTIME +#error no strptime() on this platform +#else +/* use invalid strptime() declaration to see if it fails to compile */ +int strptime(const char *s, const char *format, struct tm *tm); +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_strptime_decl_fails=no + +else + + ac_cv_strptime_decl_fails=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 +$as_echo "$ac_cv_strptime_decl_fails" >&6; } +if test "$ac_cv_strptime_decl_fails" = "yes"; then + +$as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h + +fi + +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + +fi + +done + +for ac_func in mblen +do : + ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" +if test "x$ac_cv_func_mblen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MBLEN 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if ${ac_cv_type_mbstate_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_WCHAR_H +# include +#endif + +int +main () +{ + +mbstate_t a; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_mbstate_t=yes + +else + + ac_cv_type_mbstate_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } +if test "$ac_cv_type_mbstate_t" = "yes"; then + +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + +fi + +for ac_header in atomic.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" +if test "x$ac_cv_header_atomic_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ATOMIC_H 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" +if test "x$ac_cv_have_decl_arc4random_buf" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl +_ACEOF + + + +php_with_password_argon2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 support" >&5 +$as_echo_n "checking for Argon2 support... " >&6; } + +# Check whether --with-password-argon2 was given. +if test "${with_password_argon2+set}" = set; then : + withval=$with_password_argon2; PHP_PASSWORD_ARGON2=$withval +else + + PHP_PASSWORD_ARGON2=no + test "$PHP_ENABLE_ALL" && PHP_PASSWORD_ARGON2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PASSWORD_ARGON2 in +shared,*) + PHP_PASSWORD_ARGON2=`echo "$PHP_PASSWORD_ARGON2"|$SED 's/^shared,//'` + ;; +shared) + PHP_PASSWORD_ARGON2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PASSWORD_ARGON2" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 library" >&5 +$as_echo_n "checking for Argon2 library... " >&6; } + for i in $PHP_PASSWORD_ARGON2 /usr /usr/local ; do + if test -r $i/include/argon2.h; then + ARGON2_DIR=$i; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + + if test -z "$ARGON2_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please ensure the argon2 header and library are installed" "$LINENO" 5 + fi + + + + if test -n "$ARGON2_DIR/$PHP_LIBDIR"; then + + if test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ARGON2_DIR/$PHP_LIBDIR" || echo "$ARGON2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ARGON2_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ARGON2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ARGON2_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case argon2 in + c|c_r|pthread*) ;; + *) + LIBS="-largon2 $LIBS" + ;; + esac + + + + + + if test "$ARGON2_DIR/include" != "/usr/include"; then + + if test -z "$ARGON2_DIR/include" || echo "$ARGON2_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ARGON2_DIR/include + else + + ep_dir=`echo $ARGON2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ARGON2_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argon2id_hash_raw in -largon2" >&5 +$as_echo_n "checking for argon2id_hash_raw in -largon2... " >&6; } +if ${ac_cv_lib_argon2_argon2id_hash_raw+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-largon2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char argon2id_hash_raw (); +int +main () +{ +return argon2id_hash_raw (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_argon2_argon2id_hash_raw=yes +else + ac_cv_lib_argon2_argon2id_hash_raw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2id_hash_raw" >&5 +$as_echo "$ac_cv_lib_argon2_argon2id_hash_raw" >&6; } +if test "x$ac_cv_lib_argon2_argon2id_hash_raw" = xyes; then : + + LIBS="$LIBS -largon2" + +$as_echo "#define HAVE_ARGON2LIB 1" >>confdefs.h + + +else + + as_fn_error $? "Problem with libargon2.(a|so). Please verify that Argon2 header and libraries >= 20161029 are installed" "$LINENO" 5 + +fi + +fi + +for ac_header in net/if.h +do : + ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " + #ifdef HAVE_SYS_SOCKET_H + #include + #endif + #include + +" +if test "x$ac_cv_header_net_if_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NET_IF_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable getifaddrs" >&5 +$as_echo_n "checking for usable getifaddrs... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + struct ifaddrs *interfaces; + if (!getifaddrs(&interfaces)) { + freeifaddrs(interfaces); + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_have_getifaddrs=yes +else + ac_have_getifaddrs=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test "$ac_have_getifaddrs" = "yes" ; then + +$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + ext_builddir=ext/standard + ext_srcdir=$abs_srcdir/ext/standard + ext_dir=ext/standard + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "" != "shared" && test "" != "yes" && test "" != "cli"; then + PHP_STANDARD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c \ + random.c net.c hrtime.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_STANDARD 1 +_ACEOF + + fi + fi + + if test "" != "shared" && test "" != "yes" && test "" = "cli"; then + PHP_STANDARD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c \ + random.c net.c hrtime.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + + for header_file in ext/standard/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + + +php_enable_sysvmsg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 +$as_echo_n "checking whether to enable System V IPC support... " >&6; } +# Check whether --enable-sysvmsg was given. +if test "${enable_sysvmsg+set}" = set; then : + enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval +else + + PHP_SYSVMSG=no + test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVMSG in +shared,*) + PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVMSG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVMSG" != "no"; then + ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_msg_h" = xyes; then : + +else + as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + +fi + + + + +$as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h + + + ext_builddir=ext/sysvmsg + ext_srcdir=$abs_srcdir/ext/sysvmsg + ext_dir=ext/sysvmsg + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVMSG_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVMSG 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVMSG_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable System V semaphore support... " >&6; } +# Check whether --enable-sysvsem was given. +if test "${enable_sysvsem+set}" = set; then : + enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval +else + + PHP_SYSVSEM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSEM in +shared,*) + PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSEM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSEM" != "no"; then + + ext_builddir=ext/sysvsem + ext_srcdir=$abs_srcdir/ext/sysvsem + ext_dir=ext/sysvsem + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSEM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSEM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSEM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 +$as_echo_n "checking for union semun... " >&6; } +if ${php_cv_semun+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +union semun x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + php_cv_semun=yes + +else + + php_cv_semun=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 +$as_echo "$php_cv_semun" >&6; } + if test "$php_cv_semun" = "yes"; then + +$as_echo "#define HAVE_SEMUN 1" >>confdefs.h + + else + +$as_echo "#define HAVE_SEMUN 0" >>confdefs.h + + fi +fi + + + + + +php_enable_sysvshm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 +$as_echo_n "checking whether to enable System V shared memory support... " >&6; } +# Check whether --enable-sysvshm was given. +if test "${enable_sysvshm+set}" = set; then : + enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval +else + + PHP_SYSVSHM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSHM in +shared,*) + PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSHM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSHM" != "no"; then + +$as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h + + + ext_builddir=ext/sysvshm + ext_srcdir=$abs_srcdir/ext/sysvshm + ext_dir=ext/sysvshm + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSHM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSHM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSHM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for TIDY support... " >&6; } + +# Check whether --with-tidy was given. +if test "${with_tidy+set}" = set; then : + withval=$with_tidy; PHP_TIDY=$withval +else + + PHP_TIDY=no + test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TIDY in +shared,*) + PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'` + ;; +shared) + PHP_TIDY=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TIDY" != "no"; then + + if test "$PHP_TIDY" != "yes"; then + TIDY_SEARCH_DIRS=$PHP_TIDY + else + TIDY_SEARCH_DIRS="/usr/local /usr" + fi + + for i in $TIDY_SEARCH_DIRS; do + for j in tidy tidyp; do + if test -f $i/include/$j/$j.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include/$j + TIDY_LIB_NAME=$j + break + elif test -f $i/include/$j.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include + TIDY_LIB_NAME=$j + break + fi + done + done + + if test -z "$TIDY_DIR"; then + as_fn_error $? "Cannot find libtidy" "$LINENO" 5 + else + if test -f "$TIDY_INCDIR/tidybuffio.h"; then + +$as_echo "#define HAVE_TIDYBUFFIO_H 1" >>confdefs.h + + fi + fi + + TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR + if test "$TIDY_LIB_NAME" == 'tidyp'; then + +$as_echo "#define HAVE_TIDYP_H 1" >>confdefs.h + + else + +$as_echo "#define HAVE_TIDY_H 1" >>confdefs.h + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyOptGetDoc" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -l$TIDY_LIB_NAME" >&5 +$as_echo_n "checking for tidyOptGetDoc in -l$TIDY_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$TIDY_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$TIDY_LIB_NAME_tidyOptGetDoc + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy5" >&5 +$as_echo_n "checking for tidyOptGetDoc in -ltidy5... " >&6; } +if ${ac_cv_lib_tidy5_tidyOptGetDoc+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltidy5 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tidy5_tidyOptGetDoc=yes +else + ac_cv_lib_tidy5_tidyOptGetDoc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy5_tidyOptGetDoc" >&5 +$as_echo "$ac_cv_lib_tidy5_tidyOptGetDoc" >&6; } +if test "x$ac_cv_lib_tidy5_tidyOptGetDoc" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + TIDY_LIB_NAME=tidy5 + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tidy5_tidyOptGetDoc + + +fi + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyReleaseDate" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyReleaseDate in -l$TIDY_LIB_NAME" >&5 +$as_echo_n "checking for tidyReleaseDate in -l$TIDY_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$TIDY_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyReleaseDate (); +int +main () +{ +return tidyReleaseDate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYRELEASEDATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$TIDY_LIB_NAME_tidyReleaseDate + + +fi + + + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-l$TIDY_LIB_NAME $TIDY_SHARED_LIBADD" + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD" + test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $TIDY_LIB_NAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$TIDY_LIB_NAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$TIDY_INCDIR" != "/usr/include"; then + + if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_INCDIR + else + + ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + ext_builddir=ext/tidy + ext_srcdir=$abs_srcdir/ext/tidy + ext_dir=ext/tidy + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TIDY_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TIDY 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TIDY_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_enable_tokenizer=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 +$as_echo_n "checking whether to enable tokenizer support... " >&6; } +# Check whether --enable-tokenizer was given. +if test "${enable_tokenizer+set}" = set; then : + enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval +else + + PHP_TOKENIZER=yes + test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TOKENIZER in +shared,*) + PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'` + ;; +shared) + PHP_TOKENIZER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TOKENIZER" != "no"; then + + ext_builddir=ext/tokenizer + ext_srcdir=$abs_srcdir/ext/tokenizer + ext_dir=ext/tokenizer + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TOKENIZER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TOKENIZER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TOKENIZER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_enable_xml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5 +$as_echo_n "checking whether to enable XML support... " >&6; } +# Check whether --enable-xml was given. +if test "${enable_xml+set}" = set; then : + enableval=$enable_xml; PHP_XML=$enableval +else + + PHP_XML=yes + test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XML in +shared,*) + PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'` + ;; +shared) + PHP_XML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_expat=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 +$as_echo_n "checking whether to build with expat support... " >&6; } + +# Check whether --with-expat was given. +if test "${with_expat+set}" = set; then : + withval=$with_expat; PHP_EXPAT=$withval +else + + PHP_EXPAT=no + + +fi + + +ext_output=$PHP_EXPAT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XML" != "no"; then + + if test "$PHP_EXPAT" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + xml_extra_sources="compat.c" + + am_i_shared=$PHP_XML_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xml to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xml shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xml, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + + else + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5 +$as_echo_n "checking for expat... " >&6; } + +if test -n "$EXPAT_CFLAGS"; then + pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXPAT_LIBS"; then + pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` + else + EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXPAT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (expat) were not met: + +$EXPAT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS + EXPAT_LIBS=$pkg_cv_EXPAT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $EXPAT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXPAT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + fi + + + ext_builddir=ext/xml + ext_srcdir=$abs_srcdir/ext/xml + ext_dir=ext/xml + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_enable_xmlreader=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 +$as_echo_n "checking whether to enable XMLReader support... " >&6; } +# Check whether --enable-xmlreader was given. +if test "${enable_xmlreader+set}" = set; then : + enableval=$enable_xmlreader; PHP_XMLREADER=$enableval +else + + PHP_XMLREADER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLREADER in +shared,*) + PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLREADER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLREADER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLReader extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_XMLREADER 1" >>confdefs.h + + + ext_builddir=ext/xmlreader + ext_srcdir=$abs_srcdir/ext/xmlreader + ext_dir=ext/xmlreader + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLREADER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLREADER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLREADER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with XMLRPC-EPI support... " >&6; } + +# Check whether --with-xmlrpc was given. +if test "${with_xmlrpc+set}" = set; then : + withval=$with_xmlrpc; PHP_XMLRPC=$withval +else + + PHP_XMLRPC=no + test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLRPC in +shared,*) + PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLRPC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_expat=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 +$as_echo_n "checking whether to build with expat support... " >&6; } + +# Check whether --with-expat was given. +if test "${with_expat+set}" = set; then : + withval=$with_expat; PHP_EXPAT=$withval +else + + PHP_EXPAT=no + + +fi + + +ext_output=$PHP_EXPAT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_iconv_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5 +$as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-iconv-dir was given. +if test "${with_iconv_dir+set}" = set; then : + withval=$with_iconv_dir; PHP_ICONV_DIR=$withval +else + + PHP_ICONV_DIR=no + + +fi + + +ext_output=$PHP_ICONV_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLRPC" != "no"; then + + + am_i_shared=$PHP_XMLRPC_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xmlrpc to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xmlrpc shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xmlrpc, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD" + + +$as_echo "#define HAVE_XMLRPC 1" >>confdefs.h + + + if test "$PHP_EXPAT" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML-RPC extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for expat... " >&6; } + +if test -n "$EXPAT_CFLAGS"; then + pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXPAT_LIBS"; then + pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` + else + EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXPAT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (expat) were not met: + +$EXPAT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS + EXPAT_LIBS=$pkg_cv_EXPAT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $EXPAT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXPAT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + fi + + if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then + + if test "$PHP_ICONV_DIR" != "no"; then + PHP_ICONV=$PHP_ICONV_DIR + fi + + if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi + + + found_iconv=no + unset ICONV_DIR + + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + +else + as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 + + fi + + fi +fi + +if test "$PHP_XMLRPC" = "yes"; then + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + ext_dir=ext/xmlrpc + + ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +elif test "$PHP_XMLRPC" != "no"; then + + if test -r $PHP_XMLRPC/include/xmlrpc.h; then + XMLRPC_DIR=$PHP_XMLRPC/include + elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then + XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5 +$as_echo_n "checking for XMLRPC-EPI in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/xmlrpc.h; then + XMLRPC_DIR=$i/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$XMLRPC_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 + fi + + + if test "$XMLRPC_DIR" != "/usr/include"; then + + if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR + else + + ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD" + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case xmlrpc in + c|c_r|pthread*) ;; + *) + LIBS="-lxmlrpc $LIBS" + ;; + esac + + + + + fi + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + ext_dir=ext/xmlrpc + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XMLWriter support... " >&6; } +# Check whether --enable-xmlwriter was given. +if test "${enable_xmlwriter+set}" = set; then : + enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval +else + + PHP_XMLWRITER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLWRITER in +shared,*) + PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLWRITER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLWRITER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLWriter extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h + + + ext_builddir=ext/xmlwriter + ext_srcdir=$abs_srcdir/ext/xmlwriter + ext_dir=ext/xmlwriter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLWRITER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLWRITER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLWRITER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with XSL support... " >&6; } + +# Check whether --with-xsl was given. +if test "${with_xsl+set}" = set; then : + withval=$with_xsl; PHP_XSL=$withval +else + + PHP_XSL=no + test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XSL in +shared,*) + PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_XSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XSL" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XSL extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + if test "$PHP_DOM" = "no"; then + as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 + fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.0" >&5 +$as_echo_n "checking for libxslt >= 1.1.0... " >&6; } + +if test -n "$XSL_CFLAGS"; then + pkg_cv_XSL_CFLAGS="$XSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XSL_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$XSL_LIBS"; then + pkg_cv_XSL_LIBS="$XSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XSL_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + XSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= 1.1.0" 2>&1` + else + XSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= 1.1.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$XSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxslt >= 1.1.0) were not met: + +$XSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables XSL_CFLAGS +and XSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables XSL_CFLAGS +and XSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XSL_CFLAGS=$pkg_cv_XSL_CFLAGS + XSL_LIBS=$pkg_cv_XSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $XSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $XSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexslt" >&5 +$as_echo_n "checking for libexslt... " >&6; } + +if test -n "$EXSLT_CFLAGS"; then + pkg_cv_EXSLT_CFLAGS="$EXSLT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXSLT_CFLAGS=`$PKG_CONFIG --cflags "libexslt" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXSLT_LIBS"; then + pkg_cv_EXSLT_LIBS="$EXSLT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXSLT_LIBS=`$PKG_CONFIG --libs "libexslt" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexslt" 2>&1` + else + EXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexslt" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXSLT_PKG_ERRORS" >&5 + + +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + EXSLT_CFLAGS=$pkg_cv_EXSLT_CFLAGS + EXSLT_LIBS=$pkg_cv_EXSLT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + + for ac_i in $EXSLT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXSLT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_XSL 1" >>confdefs.h + + + ext_builddir=ext/xsl + ext_srcdir=$abs_srcdir/ext/xsl + ext_dir=ext/xsl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XSL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable zend-test extension... " >&6; } +# Check whether --enable-zend-test was given. +if test "${enable_zend_test+set}" = set; then : + enableval=$enable_zend_test; PHP_ZEND_TEST=$enableval +else + + PHP_ZEND_TEST=no + test "$PHP_ENABLE_ALL" && PHP_ZEND_TEST=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZEND_TEST in +shared,*) + PHP_ZEND_TEST=`echo "$PHP_ZEND_TEST"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZEND_TEST=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZEND_TEST" != "no"; then + + ext_builddir=ext/zend_test + ext_srcdir=$abs_srcdir/ext/zend_test + ext_dir=ext/zend_test + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZEND_TEST_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in test.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZEND_TEST 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZEND_TEST_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in test.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for zip archive read/write support... " >&6; } + +# Check whether --with-zip was given. +if test "${with_zip+set}" = set; then : + withval=$with_zip; PHP_ZIP=$withval +else + + PHP_ZIP=no + test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZIP in +shared,*) + PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZIP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZIP" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzip >= 0.11" >&5 +$as_echo_n "checking for libzip >= 0.11... " >&6; } + +if test -n "$LIBZIP_CFLAGS"; then + pkg_cv_LIBZIP_CFLAGS="$LIBZIP_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzip >= 0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBZIP_LIBS"; then + pkg_cv_LIBZIP_LIBS="$LIBZIP_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzip >= 0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 0.11" 2>&1` + else + LIBZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 0.11" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBZIP_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libzip >= 0.11) were not met: + +$LIBZIP_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBZIP_CFLAGS +and LIBZIP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBZIP_CFLAGS +and LIBZIP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBZIP_CFLAGS=$pkg_cv_LIBZIP_CFLAGS + LIBZIP_LIBS=$pkg_cv_LIBZIP_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBZIP_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBZIP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="$ZIP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="$ZIP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LIBZIP_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_encryption in -lzip" >&5 +$as_echo_n "checking for zip_file_set_encryption in -lzip... " >&6; } +if ${ac_cv_lib_zip_zip_file_set_encryption+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lzip $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char zip_file_set_encryption (); +int +main () +{ +return zip_file_set_encryption (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_zip_zip_file_set_encryption=yes +else + ac_cv_lib_zip_zip_file_set_encryption=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_encryption" >&5 +$as_echo "$ac_cv_lib_zip_zip_file_set_encryption" >&6; } +if test "x$ac_cv_lib_zip_zip_file_set_encryption" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCRYPTION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_zip_zip_file_set_encryption + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.2.0 needed for encryption support" >&5 +$as_echo "$as_me: WARNING: Libzip >= 1.2.0 needed for encryption support" >&2;} + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LIBZIP_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_libzip_version in -lzip" >&5 +$as_echo_n "checking for zip_libzip_version in -lzip... " >&6; } +if ${ac_cv_lib_zip_zip_libzip_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lzip $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char zip_libzip_version (); +int +main () +{ +return zip_libzip_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_zip_zip_libzip_version=yes +else + ac_cv_lib_zip_zip_libzip_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_libzip_version" >&5 +$as_echo "$ac_cv_lib_zip_zip_libzip_version" >&6; } +if test "x$ac_cv_lib_zip_zip_libzip_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBZIP_VERSION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_zip_zip_libzip_version + + + +fi + + + +$as_echo "#define HAVE_ZIP 1" >>confdefs.h + + + PHP_ZIP_SOURCES="php_zip.c zip_stream.c" + + ext_builddir=ext/zip + ext_srcdir=$abs_srcdir/ext/zip + ext_dir=ext/zip + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZIP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZIP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZIP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_enable_mysqlnd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 +$as_echo_n "checking whether to enable mysqlnd... " >&6; } +# Check whether --enable-mysqlnd was given. +if test "${enable_mysqlnd+set}" = set; then : + enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval +else + + PHP_MYSQLND=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLND in +shared,*) + PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLND=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mysqlnd_compression_support=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 +$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; } +# Check whether --enable-mysqlnd_compression_support was given. +if test "${enable_mysqlnd_compression_support+set}" = set; then : + enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval +else + + PHP_MYSQLND_COMPRESSION_SUPPORT=yes + + +fi + + +ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then + mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c" + mysqlnd_base_sources="mysqlnd_connection.c mysqlnd_alloc.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ + mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_vio.c mysqlnd_protocol_frame_codec.c \ + mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \ + mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c mysqlnd_commands.c \ + mysqlnd_block_alloc.c mysqlnd_read_buffer.c mysqlnd_plugin.c php_mysqlnd.c" + + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + +$as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h + + fi + + +$as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h + + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h + + + fi + + fi + + mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" + + ext_builddir=ext/mysqlnd + ext_srcdir=$abs_srcdir/ext/mysqlnd + ext_dir=ext/mysqlnd + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLND_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLND 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLND_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 +$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; } + + +if test -z "$with_pear" && test "$enable_pear" = "no"; then + with_pear=no +fi + +if test "$PHP_CLI" = "no"; then + with_pear=no +fi + + +php_with_pear=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 +$as_echo_n "checking whether to install PEAR... " >&6; } + +# Check whether --with-pear was given. +if test "${with_pear+set}" = set; then : + withval=$with_pear; PHP_PEAR=$withval +else + + PHP_PEAR=no + test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PEAR in +shared,*) + PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PEAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PEAR" != "no"; then + + if test "$PHP_XML" = "no"; then + pear_error_msg="$pear_error_msg + PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)" + fi + + if test "$pear_error_msg"; then + as_fn_error $? "$pear_error_msg" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-pear option is deprecated" >&5 +$as_echo "$as_me: WARNING: The --with-pear option is deprecated" >&2;} + + install_pear="install-pear" + PEAR_INSTALLDIR=$PHP_PEAR + + if test "$PHP_PEAR" = "yes"; then + case $PHP_LAYOUT in + GNU) PEAR_INSTALLDIR=$datadir/pear;; + *) PEAR_INSTALLDIR=$libdir/php;; + esac + fi + + + src=$abs_srcdir/pear/Makefile.frag + ac_srcdir=$abs_srcdir/pear + ac_builddir=pear + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 +$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; } + + + + + +for ac_header in cpuid.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" +if test "x$ac_cv_header_cpuid_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CPUID_H 1 +_ACEOF + +fi + +done + + + + +for ac_func in getpid kill finite sigsetjmp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include +" +if test "x$ac_cv_have_decl_isfinite" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISFINITE $ac_have_decl +_ACEOF +ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include +" +if test "x$ac_cv_have_decl_isnan" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISNAN $ac_have_decl +_ACEOF +ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include +" +if test "x$ac_cv_have_decl_isinf" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISINF $ac_have_decl +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 +$as_echo_n "checking for usable _FPU_SETCW... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fpu_control_t fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _FPU_GETCW(fpu_oldcw); + fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE; + _FPU_SETCW(fpu_cw); + result = a / b; + _FPU_SETCW(fpu_oldcw); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__fpu_setcw=yes +else + ac_cfp_have__fpu_setcw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__fpu_setcw" = "yes" ; then + +$as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 +$as_echo_n "checking for usable fpsetprec... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fp_prec_t fpu_oldprec; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldprec = fpgetprec(); + fpsetprec(FP_PD); + result = a / b; + fpsetprec(fpu_oldprec); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpsetprec=yes +else + ac_cfp_have_fpsetprec=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpsetprec" = "yes" ; then + +$as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 +$as_echo_n "checking for usable _controlfp... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldcw = _controlfp(0, 0); + _controlfp(_PC_53, _MCW_PC); + result = a / b; + _controlfp(fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp=yes +else + ac_cfp_have__controlfp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 +$as_echo_n "checking for usable _controlfp_s... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _controlfp_s(&fpu_cw, 0, 0); + fpu_oldcw = fpu_cw; + _controlfp_s(&fpu_cw, _PC_53, _MCW_PC); + result = a / b; + _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp_s=yes +else + ac_cfp_have__controlfp_s=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp_s" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 +$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* nothing */ + +int +main () +{ + + unsigned int oldcw, cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw)); + cw = (oldcw & ~0x0 & ~0x300) | 0x200; + __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw)); + + result = a / b; + + __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw)); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpu_inline_asm_x86=yes +else + ac_cfp_have_fpu_inline_asm_x86=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then + +$as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5 +$as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main() +{ + if (sizeof(long) == 4) { + double d = (double) LONG_MIN * LONG_MIN + 2e9; + + if ((long) d == 2e9 && (long) -d == -2e9) { + exit(0); + } + } else if (sizeof(long) == 8) { + double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */ + + if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */ + exit(0); + } + } + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 +$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } +if test "$cross_compiling" = yes; then : + +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + x$lt_dlneed_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h + + ;; + x$lt_dlunknown|x*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + else : + # compilation failed + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi +fi +rm -fr conftest* + + + + +# Check whether --enable-maintainer-zts was given. +if test "${enable_maintainer_zts+set}" = set; then : + enableval=$enable_maintainer_zts; ZEND_MAINTAINER_ZTS=$enableval +else + ZEND_MAINTAINER_ZTS=no +fi + + +# Check whether --enable-inline-optimization was given. +if test "${enable_inline_optimization+set}" = set; then : + enableval=$enable_inline_optimization; ZEND_INLINE_OPTIMIZATION=$enableval +else + ZEND_INLINE_OPTIMIZATION=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 +$as_echo_n "checking whether to enable thread-safety... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5 +$as_echo "$ZEND_MAINTAINER_ZTS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5 +$as_echo_n "checking whether to enable inline optimization for GCC... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5 +$as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 +$as_echo_n "checking whether to enable Zend debugging... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 +$as_echo "$ZEND_DEBUG" >&6; } + +if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define ZEND_DEBUG 1" >>confdefs.h + + echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + if test "$CFLAGS" = "-g -O2"; then + CFLAGS=-g + fi +else + +$as_echo "#define ZEND_DEBUG 0" >>confdefs.h + +fi + +test -n "$GCC" && CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing" +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZTS" +fi + + +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then + INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` +else + INLINE_CFLAGS="$CFLAGS" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 +$as_echo_n "checking target system is Darwin... " >&6; } +if echo "$target" | grep "darwin" > /dev/null; then + +$as_echo "#define DARWIN 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 +$as_echo_n "checking for MM alignment and log values... " >&6; } + +if test "$cross_compiling" = yes; then : + + LIBZEND_MM_ALIGN=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +typedef union _mm_align_test { + void *ptr; + double dbl; + long lng; +} mm_align_test; + +#if (defined (__GNUC__) && __GNUC__ >= 2) +#define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test)) +#else +#define ZEND_MM_ALIGNMENT (sizeof(mm_align_test)) +#endif + +int main() +{ + int i = ZEND_MM_ALIGNMENT; + int zeros = 0; + FILE *fp; + + while (i & ~0x1) { + zeros++; + i = i >> 1; + } + + fp = fopen("conftest.zend", "w"); + fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros); + fclose(fp); + + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1` + LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2` + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2 +_ACEOF + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + +for ac_func in mremap +do : + ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" +if test "x$ac_cv_func_mremap" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MREMAP 1 +_ACEOF + +fi +done + + +# Check whether --enable-zend-signals was given. +if test "${enable_zend_signals+set}" = set; then : + enableval=$enable_zend_signals; ZEND_SIGNALS=$enableval +else + ZEND_SIGNALS=yes +fi + + +for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +else + + ZEND_SIGNALS=no + +fi +done + +if test "$ZEND_SIGNALS" = "yes"; then + +$as_echo "#define ZEND_SIGNALS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZEND_SIGNALS" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 +$as_echo_n "checking whether to enable zend signal handling... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 +$as_echo "$ZEND_SIGNALS" >&6; } + + + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + PHP_THREAD_SAFETY=yes +else + PHP_THREAD_SAFETY=no +fi + +INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" +INCLUDES="$INCLUDES -I\$(top_builddir)/Zend" + +if test "$abs_srcdir" != "$abs_builddir"; then + INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend" + INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/" +fi + +ZEND_EXTRA_LIBS="$LIBS" +unset LIBS LDFLAGS + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 +$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; } + +if test "$PHP_THREAD_SAFETY" = "yes"; then + + +# Check whether --with-tsrm-pth was given. +if test "${with_tsrm_pth+set}" = set; then : + withval=$with_tsrm_pth; TSRM_PTH=$withval +else + TSRM_PTH=no +fi + + + +# Check whether --with-tsrm-st was given. +if test "${with_tsrm_st+set}" = set; then : + withval=$with_tsrm_st; TSRM_ST=$withval +else + TSRM_ST=no +fi + + + +# Check whether --with-tsrm-pthreads was given. +if test "${with_tsrm_pthreads+set}" = set; then : + withval=$with_tsrm_pthreads; TSRM_PTHREADS=$withval +else + TSRM_PTHREADS=yes +fi + + +test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config + +if test "$TSRM_PTH" != "no"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5 +$as_echo_n "checking for GNU Pth... " >&6; } +PTH_PREFIX="`$TSRM_PTH --prefix`" +if test -z "$PTH_PREFIX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5 +$as_echo "Please check your Pth installation" >&6; } +fi + +CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`" +LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`" +LIBS="$LIBS `$TSRM_PTH --libs`" + + +$as_echo "#define GNUPTH 1" >>confdefs.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5 +$as_echo "yes - installed in $PTH_PREFIX" >&6; } + +elif test "$TSRM_ST" != "no"; then + + if test -r "$TSRM_ST/include/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include" + LDFLAGS="$LDFLAGS -L$TSRM_ST/lib" + elif test -r "$TSRM_ST/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST" + LDFLAGS="$LDFLAGS -L$TSRM_ST" + fi + for ac_header in st.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default" +if test "x$ac_cv_header_st_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ST_H 1 +_ACEOF + +else + + as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 + +fi + +done + + LIBS="$LIBS -lst" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5 +$as_echo_n "checking for SGI's State Threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define TSRM_ST 1" >>confdefs.h + + +elif test "$TSRM_PTHREADS" != "no"; then + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_cflags= +if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then + pthreads_working="yes" +fi + + +if test "$pthreads_working" != "yes"; then + as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5 +fi + + +$as_echo "#define PTHREADS 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 +$as_echo_n "checking for POSIX threads... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + +fi + +case $host_alias in + i[3456]86-*-linux-* | x86_64-*-linux-*) + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152" + ;; +esac + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS" +EXTRA_LIBS="$EXTRA_LIBS $LIBS" +unset LIBS LDFLAGS + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + + +test "$prefix" = "NONE" && prefix=/usr/local +test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' +test "$program_prefix" = "NONE" && program_prefix= +test "$program_suffix" = "NONE" && program_suffix= + +case $libdir in + '${exec_prefix}/lib') + libdir=$libdir/php + ;; +esac +case `eval echo $datadir` in + '${prefix}/share') + datadir=$datadir/php + ;; +esac + +phplibdir=`pwd`/modules +$php_shtool mkdir -p $phplibdir +phptempdir=`pwd`/libs + +old_exec_prefix=$exec_prefix +old_libdir=$libdir +old_datadir=$datadir +exec_prefix=`eval echo $exec_prefix` +libdir=`eval echo $libdir` +datadir=`eval eval echo $datadir` + +ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|"${SED}" 's/#define ZEND_MODULE_API_NO //'` + +if test -z "$EXTENSION_DIR"; then + extbasedir=$ZEND_MODULE_API_NO + if test "$oldstyleextdir" = "yes"; then + if test "$PHP_DEBUG" = "1"; then + part1=debug + else + part1=no-debug + fi + if test "$enable_maintainer_zts" = "yes"; then + part2=zts + else + part2=non-zts + fi + extbasedir=$part1-$part2-$extbasedir + EXTENSION_DIR=$libdir/extensions/$extbasedir + else + if test "$enable_maintainer_zts" = "yes"; then + extbasedir=$extbasedir-zts + fi + + if test "$PHP_DEBUG" = "1"; then + extbasedir=$extbasedir-debug + fi + EXTENSION_DIR=$libdir/$extbasedir + fi +fi + +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + +EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` +EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` +EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir` +EXPANDED_BINDIR=`eval echo $bindir` +EXPANDED_SBINDIR=`eval echo $sbindir` +EXPANDED_MANDIR=`eval echo $mandir` +EXPANDED_LIBDIR=$libdir +EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` +EXPANDED_DATADIR=$datadir +EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR + +exec_prefix=$old_exec_prefix +libdir=$old_libdir +datadir=$old_datadir + + + + + + + + + + + + + + +if test -n "$php_ldflags_add_usr_lib"; then + PHP_RPATHS="$PHP_RPATHS /usr/lib" +fi + + + OLD_RPATHS=$PHP_RPATHS + unset PHP_RPATHS + + for i in $OLD_RPATHS; do + PHP_LDFLAGS="$PHP_LDFLAGS -L$i" + PHP_RPATHS="$PHP_RPATHS -R $i" + NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i" + done + + if test "$PHP_RPATH" = "no"; then + unset PHP_RPATHS + unset NATIVE_RPATHS + fi + + +if test -z "$php_ldflags_add_usr_lib"; then + + unset ac_new_flags + for i in $PHP_LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + PHP_LDFLAGS=$ac_new_flags + + + unset ac_new_flags + for i in $LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + LDFLAGS=$ac_new_flags + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" + +PHP_BUILD_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d 2>/dev/null` +if test $? -ne 0 ; then +PHP_BUILD_DATE=`date -u +%Y-%m-%d` +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_BUILD_DATE "$PHP_BUILD_DATE" +_ACEOF + + +PHP_UNAME=`uname -a | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + +PHP_OS=`uname | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FASTCGI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST bindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST includedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST libdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST mandir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datadir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CC" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXX" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS" + + +old_CC=$CC + +if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then + CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" + INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" + CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags" +fi + +if test "$PHP_WERROR" = "yes"; then + CFLAGS="$CFLAGS -Werror" + CPPFLAGS="$CPPFLAGS -Werror" +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 +$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; } + + +AR_FLAGS=cr + + + +# Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${lt_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + +fi + +SED=$lt_cv_path_SED +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 +$as_echo_n "checking for BSD-compatible nm... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +NM="$lt_cv_path_NM" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +#AC_ARG_ENABLE([libtool-lock], +#[ --disable-libtool-lock avoid locking (might break parallel builds)]) +#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 84180 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + + +esac + +need_locks="$enable_libtool_lock" + + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + lt_cv_ld_exported_symbols_list=yes + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +lt_cv_ld_exported_symbols_list=no + rm -rf conftest* +fi +rm -f conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[0123]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac + + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:85736: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:85740: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:86034: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:86038: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:86138: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:86142: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# Report which library types will actually be built +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + compiler_lib_search_dirs \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + fix_srcfile_path \ + exclude_expsyms \ + include_expsyms; do + + case $var in + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: +creating $ofile" >&5 +$as_echo " +creating $ofile" >&6; } + + cat <<__EOF__ >> "$cfgfile" +#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags was given. +if test "${with_tags+set}" = set; then : + withval=$with_tags; tagnames="$withval" +fi + + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5 + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5 + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= +compiler_lib_search_dirs_CXX= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12].*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + ld_shlibs_CXX=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +compiler_lib_search_dirs_CXX= +if test -n "$compiler_lib_search_path_CXX"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc*) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc*) + # Intel C++, used to be incompatible with GCC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:90621: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:90625: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:90725: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:90729: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + compiler_lib_search_dirs_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + fix_srcfile_path_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + *) + as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5 + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5 + fi +fi + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Prevent multiple expansion + + + + + + + + + + + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' + else + LIBTOOL="$LIBTOOL --silent" + fi + + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps' + else + LIBTOOL="$LIBTOOL --preserve-dup-deps" + fi + + +test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' +test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<' +SHARED_LIBTOOL='$(LIBTOOL)' + +CC=$old_CC + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 +$as_echo "${T_MD}Generating files${T_ME}" >&6; } + + +CXXFLAGS_CLEAN=$CXXFLAGS +CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)" +CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" +INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" +CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)" + +if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then + pharcmd=pharcmd + pharcmd_install=install-pharcmd +else + pharcmd= + pharcmd_install= +fi; + +all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" +install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets" + + + + + for header_file in Zend/ TSRM/ include/ main/ main/streams/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + case TSRM in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in TSRM.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + src=$abs_srcdir/Zend/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + $php_shtool mkdir -p $BUILD_DIR + + + cat >Makefile <> Makefile + done + + cat $abs_srcdir/build/Makefile.global Makefile.fragments Makefile.objects >> Makefile + + + +$as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h + + +$php_shtool mkdir -p pear +$php_shtool mkdir -p scripts +$php_shtool mkdir -p scripts/man1 + +ALL_OUTPUT_FILES="main/build-defs.h \ +scripts/phpize scripts/man1/phpize.1 \ +scripts/php-config scripts/man1/php-config.1 \ +$PHP_OUTPUT_FILES" + +ac_config_files="$ac_config_files $ALL_OUTPUT_FILES" + + + + +ac_config_commands="$ac_config_commands default" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: patching main/php_config.h.in" >&5 +$as_echo "$as_me: patching main/php_config.h.in" >&6;} + + $SED -e 's/^#undef PACKAGE_[^ ]*/\/\* & \*\//g' < $srcdir/main/php_config.h.in \ + > $srcdir/main/php_config.h.in.tmp && mv $srcdir/main/php_config.h.in.tmp $srcdir/main/php_config.h.in + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by PHP $as_me 7.4.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +PHP home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +PHP config.status 7.4.0 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# + + +if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then + REDO_ALL=yes +fi + +test -d Zend || $php_shtool mkdir Zend + +cat >Zend/zend_config.h < +FEO + +if test -n "\$REDO_ALL"; then + echo "creating main/internal_functions.c" + AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_STATIC" > main/internal_functions.c + + echo "creating main/internal_functions_cli.c" + AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_CLI_STATIC" > main/internal_functions_cli.c + + if test "$PHP_SAPI" = "apache2handler"; then + if test "$APACHE_VERSION" -ge 2004001; then + if test -z "$APACHE_THREADED_MPM"; then +cat < processes when using a local Oracle | +| database, set the value BEQUEATH_DETACH=YES in Oracle Net's | +| sqlnet.ora file on the PHP host, or set the environment variable | +| BEQUEATH_DETACH to YES before starting Apache. If the problem | +| still occurs, then recompile PHP and specify --enable-sigchild | +| when configuring. | +X + fi + fi + fi + +fi + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;; + "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;; + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "default":C) +cat </dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/tests/fixtures/config.yaml b/tests/fixtures/config.yaml new file mode 100644 index 000000000..f7dcf20a0 --- /dev/null +++ b/tests/fixtures/config.yaml @@ -0,0 +1,3 @@ +--- +key1: "value1" +key2: "value2" diff --git a/tests/fixtures/ext/APCu/config.m4 b/tests/fixtures/ext/APCu/config.m4 new file mode 100644 index 000000000..583802a68 --- /dev/null +++ b/tests/fixtures/ext/APCu/config.m4 @@ -0,0 +1,325 @@ +dnl +dnl $Id: config.m4 327593 2012-09-10 11:50:58Z pajoye $ +dnl +PHP_ARG_ENABLE(apcu, whether to enable APCu support, +[ --enable-apcu Enable APCu support]) + +PHP_APC_BC=yes +AC_MSG_CHECKING(if APCu should provide APC full compatibility support) +AC_ARG_ENABLE(apc-bc, +[ --enable-apc-bc Enable APC full compatibility support], +[ if test "x$enableval" = "xno"; then + PHP_APC_BC=no + else + PHP_APC_BC=yes + fi +]) +AC_MSG_RESULT($PHP_APC_BC) + +AC_MSG_CHECKING(if APCu should be allowed to use rwlocks) +AC_ARG_ENABLE(apcu-rwlocks, +[ --disable-apcu-rwlocks Disable rwlocks in APCu], +[ + PHP_APCU_RWLOCKS=no + AC_MSG_RESULT(no) +], +[ + PHP_APCU_RWLOCKS=yes + AC_MSG_RESULT(yes) +]) + +AC_MSG_CHECKING(if APCu should be built in debug mode) +AC_ARG_ENABLE(apcu-debug, +[ --enable-apcu-debug Enable APCu debugging], +[ + PHP_APCU_DEBUG=$enableval +], +[ + PHP_APCU_DEBUG=no +]) +AC_MSG_RESULT($PHP_APCU_DEBUG) + +AC_MSG_CHECKING(if APCu should clear on SIGUSR1) +AC_ARG_ENABLE(apcu-clear-signal, +[ --enable-apcu-clear-signal Enable SIGUSR1 clearing handler], +[ + AC_DEFINE(APC_CLEAR_SIGNAL, 1, [ ]) + AC_MSG_RESULT(yes) +], +[ + AC_MSG_RESULT(no) +]) + +AC_MSG_CHECKING(if APCu will use mmap or shm) +AC_ARG_ENABLE(apcu-mmap, +[ --disable-apcu-mmap Disable mmap, falls back on shm], +[ + PHP_APCU_MMAP=no + AC_MSG_RESULT(shm) +], [ + PHP_APCU_MMAP=yes + AC_MSG_RESULT(mmap) +]) + +PHP_APCU_SPINLOCK=no +AC_MSG_CHECKING(if APCu should utilize spinlocks before flocks) +AC_ARG_ENABLE(apcu-spinlocks, +[ --enable-apcu-spinlocks Use spinlocks before flocks], +[ if test "x$enableval" = "xno"; then + PHP_APCU_SPINLOCK=no + else + PHP_APCU_SPINLOCK=yes + fi +]) +AC_MSG_RESULT($PHP_APCU_SPINLOCK) + +if test "$PHP_APCU" != "no"; then + if test "$PHP_APC_BC" != "no"; then + AC_DEFINE(APC_FULL_BC, 1, [APC full compatibility support]) + fi + if test "$PHP_APCU_DEBUG" != "no"; then + AC_DEFINE(APC_DEBUG, 1, [ ]) + fi + + if test "$PHP_APCU_MMAP" != "no"; then + AC_DEFINE(APC_MMAP, 1, [ ]) + fi + + if test "$PHP_APCU_RWLOCKS" != "no"; then + orig_LIBS="$LIBS" + LIBS="$LIBS -lpthread" + AC_TRY_RUN( + [ + #include + #include + main() { + pthread_rwlock_t rwlock; + pthread_rwlockattr_t attr; + + if(pthread_rwlockattr_init(&attr)) { + puts("Unable to initialize pthread attributes (pthread_rwlockattr_init)."); + return -1; + } + if(pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) { + puts("Unable to set PTHREAD_PROCESS_SHARED (pthread_rwlockattr_setpshared), your system may not support shared rwlock's."); + return -1; + } + if(pthread_rwlock_init(&rwlock, &attr)) { + puts("Unable to initialize the rwlock (pthread_rwlock_init)."); + return -1; + } + if(pthread_rwlockattr_destroy(&attr)) { + puts("Unable to destroy rwlock attributes (pthread_rwlockattr_destroy)."); + return -1; + } + if(pthread_rwlock_destroy(&rwlock)) { + puts("Unable to destroy rwlock (pthread_rwlock_destroy)."); + return -1; + } + + return 0; + } + ], + [ dnl -Success- + APCU_CFLAGS="-D_GNU_SOURCE" + PHP_ADD_LIBRARY(pthread) + PHP_LDFLAGS="$PHP_LDFLAGS -lpthread" + AC_DEFINE(APC_NATIVE_RWLOCK, 1, [ ]) + AC_MSG_WARN([APCu has access to native rwlocks]) + ], + [ dnl -Failure- + AC_MSG_WARN([It doesn't appear that pthread rwlocks are supported on your system]) + PHP_APCU_RWLOCKS=no + ], + [ + APCU_CFLAGS="-D_GNU_SOURCE" + PHP_ADD_LIBRARY(pthread) + PHP_LDFLAGS="$PHP_LDFLAGS -lpthread" + ] + ) + LIBS="$orig_LIBS" + fi + + if test "$PHP_APCU_RWLOCKS" == "no"; then + orig_LIBS="$LIBS" + LIBS="$LIBS -lpthread" + AC_TRY_RUN( + [ + #include + #include + main() { + pthread_mutex_t mutex; + pthread_mutexattr_t attr; + + if(pthread_mutexattr_init(&attr)) { + puts("Unable to initialize pthread attributes (pthread_mutexattr_init)."); + return -1; + } + if(pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) { + puts("Unable to set PTHREAD_PROCESS_SHARED (pthread_mutexattr_setpshared), your system may not support shared mutex's."); + return -1; + } + if(pthread_mutex_init(&mutex, &attr)) { + puts("Unable to initialize the mutex (pthread_mutex_init)."); + return -1; + } + if(pthread_mutexattr_destroy(&attr)) { + puts("Unable to destroy mutex attributes (pthread_mutexattr_destroy)."); + return -1; + } + if(pthread_mutex_destroy(&mutex)) { + puts("Unable to destroy mutex (pthread_mutex_destroy)."); + return -1; + } + return 0; + } + ], + [ dnl -Success- + APCU_CFLAGS="-D_GNU_SOURCE" + PHP_ADD_LIBRARY(pthread) + PHP_LDFLAGS="$PHP_LDFLAGS -lpthread" + AC_MSG_WARN([APCu has access to mutexes]) + ], + [ dnl -Failure- + AC_MSG_WARN([It doesn't appear that pthread mutexes are supported on your system]) + PHP_APCU_MUTEX=no + ], + [ + APCU_CFLAGS="-D_GNU_SOURCE" + PHP_ADD_LIBRARY(pthread) + PHP_LDFLAGS="$PHP_LDFLAGS -lpthread" + ] + ) + LIBS="$orig_LIBS" + fi + + if test "$PHP_APCU_RWLOCKS" == "no"; then + if test "$PHP_APCU_MUTEX" == "no"; then + if test "$PHP_APCU_SPINLOCK" != "no"; then + AC_DEFINE(APC_SPIN_LOCK, 1, [ ]) + AC_MSG_WARN([APCu spin locking enabled]) + else + AC_DEFINE(APC_FCNTL_LOCK, 1, [ ]) + AC_MSG_WARN([APCu file locking enabled]) + fi + fi + fi + + AC_CHECK_FUNCS(sigaction) + AC_CACHE_CHECK(for union semun, php_cv_semun, + [ + AC_TRY_COMPILE([ +#include +#include +#include + ], [union semun x; x.val=1], [ + php_cv_semun=yes + ],[ + php_cv_semun=no + ]) + ]) + if test "$php_cv_semun" = "yes"; then + AC_DEFINE(HAVE_SEMUN, 1, [ ]) + else + AC_DEFINE(HAVE_SEMUN, 0, [ ]) + fi + + AC_ARG_ENABLE(valgrind-checks, + [ --disable-valgrind-checks + Disable valgrind based memory checks], + [ + PHP_APCU_VALGRIND=no + ], [ + PHP_APCU_VALGRIND=yes + AC_CHECK_HEADER(valgrind/memcheck.h, + [AC_DEFINE([HAVE_VALGRIND_MEMCHECK_H],1, [enable valgrind memchecks])]) + ]) + + apc_sources="apc.c apc_lock.c php_apc.c \ + apc_cache.c \ + apc_mmap.c \ + apc_shm.c \ + apc_sma.c \ + apc_stack.c \ + apc_rfc1867.c \ + apc_signal.c \ + apc_pool.c \ + apc_iterator.c \ + apc_bin.c " + + PHP_CHECK_LIBRARY(rt, shm_open, [PHP_ADD_LIBRARY(rt,,APCU_SHARED_LIBADD)]) + PHP_NEW_EXTENSION(apcu, $apc_sources, $ext_shared,, \\$(APCU_CFLAGS)) + PHP_SUBST(APCU_SHARED_LIBADD) + PHP_SUBST(APCU_CFLAGS) + PHP_SUBST(PHP_LDFLAGS) + PHP_INSTALL_HEADERS(ext/apcu, [apc.h apc_api.h apc_cache_api.h apc_lock_api.h apc_pool_api.h apc_sma_api.h apc_bin_api.h apc_serializer.h]) + AC_DEFINE(HAVE_APCU, 1, [ ]) +fi + +PHP_ARG_ENABLE(coverage, whether to include code coverage symbols, +[ --enable-coverage DEVELOPERS ONLY!!], no, no) + +if test "$PHP_COVERAGE" = "yes"; then + + if test "$GCC" != "yes"; then + AC_MSG_ERROR([GCC is required for --enable-coverage]) + fi + + dnl Check if ccache is being used + case `$php_shtool path $CC` in + *ccache*[)] gcc_ccache=yes;; + *[)] gcc_ccache=no;; + esac + + if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then + AC_MSG_ERROR([ccache must be disabled when --enable-coverage option is used. You can disable ccache by setting environment variable +CCACHE_DISABLE=1.]) + fi + + lcov_version_list="1.5 1.6 1.7 1.9" + + AC_CHECK_PROG(LCOV, lcov, lcov) + AC_CHECK_PROG(GENHTML, genhtml, genhtml) + PHP_SUBST(LCOV) + PHP_SUBST(GENHTML) + + if test "$LCOV"; then + AC_CACHE_CHECK([for lcov version], php_cv_lcov_version, [ + php_cv_lcov_version=invalid + lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'` #' + for lcov_check_version in $lcov_version_list; do + if test "$lcov_version" = "$lcov_check_version"; then + php_cv_lcov_version="$lcov_check_version (ok)" + fi + done + ]) + else + lcov_msg="To enable code coverage reporting you must have one of the following LCOV versions installed: $lcov_version_list" + AC_MSG_ERROR([$lcov_msg]) + fi + + case $php_cv_lcov_version in + ""|invalid[)] + lcov_msg="You must have one of the following versions of LCOV: $lcov_version_list (found: $lcov_version)." + AC_MSG_ERROR([$lcov_msg]) + LCOV="exit 0;" + ;; + esac + + if test -z "$GENHTML"; then + AC_MSG_ERROR([Could not find genhtml from the LCOV package]) + fi + + PHP_ADD_MAKEFILE_FRAGMENT + + dnl Remove all optimization flags from CFLAGS + changequote({,}) + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + changequote([,]) + + dnl Add the special gcc flags + CFLAGS="$CFLAGS -O0 -ggdb -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -ggdb -O0 -fprofile-arcs -ftest-coverage" +fi +dnl vim: set ts=2 diff --git a/tests/fixtures/ext/APCu/package.xml b/tests/fixtures/ext/APCu/package.xml new file mode 100644 index 000000000..7b7e15120 --- /dev/null +++ b/tests/fixtures/ext/APCu/package.xml @@ -0,0 +1,211 @@ + + + apcu + pecl.php.net + APCu - APC User Cache + APC User Caching + + Joe Watkins + krakjoe + krakjoe@php.net + yes + + + Anatol Belski + ab + ab@php.net + yes + + 2014-10-11 + + + 4.0.7 + 4.0.7 + + + beta + beta + + PHP License + +- fix inconsistent member names for entries in userland + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.3.0 + + + 1.4.0b1 + + + + apcu + + + + + + + 2014-01-27 + + + 4.0.3 + 4.0.3 + + + beta + beta + + PHP License + +- Fix various compatibility problems +- Fix a few lingering faults +- Remove experimental eval serializer +- Fix iterator for compatibility + + + + 2013-09-14 + + + 4.0.2 + 4.0.2 + + + beta + beta + + PHP License + +- Fixed bug #15 APC compatibility option broken (Anatol) +- Changes to m4/w32, various (Anatol) +- Fix build is always in debug mode, Related to #15 (Anatol) +- Fix apc_clear_cache compatibility issues, Issue #18 (Joe) +- Fix APCIterator compatibility issues, Issue #20 (Anatol) +- Assert cache clear only when 'user' was passed #18 (Anatol) +- fix type casts time_t vs ulong (Anatol) +- Fixed the gc routine (Anatol) +- Restore APC hook for register serializer, Issue #24, #25 (Remi Collet) +- Compiler warnings avoided, various (Remi Collet) +- Don't segfault if mmap() failed, Issue #27 (Anatol) +- Fix variable typo in config.m4 for php_cv_semun (Kevin Abel) +- Revert horribleness related to APC_ALIGN (Joe) +- Fix call to stream open wrapper (Joe) +- php_apcu.dll does not load anymore under X64, Issue #29 (Anatol) +- Fix external api functionality (Joe) +- Bring back fcntl support for FreeBSD, Issue #36 (Joe) +- Bring back spinlocks, various issues (Joe) +- Fixed symbol clashing, windows debug mode, again (Anatol) +- apcu_key_info / apc_cache_stat functions (Joe) + + + + 2013-03-27 + + + 4.0.0 + 4.0.0 + + + beta + beta + + PHP License + +All opcode caching abilities removed +The default locking is now rwlocks +APCu API installed in build environment +Please see TECHNOTES/README.md + + + + diff --git a/tests/fixtures/ext/SPL_Types/config.m4 b/tests/fixtures/ext/SPL_Types/config.m4 new file mode 100755 index 000000000..4c836fa9f --- /dev/null +++ b/tests/fixtures/ext/SPL_Types/config.m4 @@ -0,0 +1,11 @@ +dnl $Id: config.m4 250039 2008-01-06 20:40:26Z helly $ +dnl config.m4 for extension SPL Types + +PHP_ARG_ENABLE(spl-types, enable SPL Types suppport, +[ --disable-spl-types Disable SPL Types], yes) + +if test "$PHP_SPL_TYPES" != "no"; then + AC_DEFINE(HAVE_SPL_TYPES, 1, [Whether you want SPL Types support]) + PHP_NEW_EXTENSION(spl_types, php_spl_types.c spl_type.c, $ext_shared) + PHP_ADD_EXTENSION_DEP(spl_types, spl) +fi diff --git a/tests/fixtures/ext/SPL_Types/package.xml b/tests/fixtures/ext/SPL_Types/package.xml new file mode 100644 index 000000000..818466205 --- /dev/null +++ b/tests/fixtures/ext/SPL_Types/package.xml @@ -0,0 +1,113 @@ + + + SPL_Types + pecl.php.net + Standard PHP Library, Types Addon + SPL Types is a collection of special typehandling classes. + + Marcus Boerger + helly + helly@php.net + yes + + + David Coallier + davidc + davidc@php.net + yes + + 2012-06-12 + + + 0.4.0 + 1.0 + + + stable + stable + + PHP + +- Support for PHP 5.4+ +- Fixed memory leak when assigning an object +- Fixed crash when using SplBool::getConstList() on PHP 5.3+ + + + + + + + + + + + + + + + + + + + + + + 5.1.0 + + + 1.4.0 + + + + SPL_Types + + + + + 0.3.0 + 1.0 + + + stable + stable + + 2008-01-13 + PHP + +- Support for 5.3 +- Added new type (SplFloat) +- Support for OSX + + + + + 0.2 + 1.0 + + + stable + stable + + 2006-05-25 + PHP + +- Initial version + + + + + 0.1 + 1.0 + + + stable + stable + + 2006-05-25 + PHP + +- Initial version + + + + diff --git a/tests/fixtures/ext/bcmath/config.m4 b/tests/fixtures/ext/bcmath/config.m4 new file mode 100644 index 000000000..3a4ad8c3b --- /dev/null +++ b/tests/fixtures/ext/bcmath/config.m4 @@ -0,0 +1,17 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(bcmath, whether to enable bc style precision math functions, +[ --enable-bcmath Enable bc style precision math functions]) + +if test "$PHP_BCMATH" != "no"; then + PHP_NEW_EXTENSION(bcmath, bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c, + $ext_shared,,-I@ext_srcdir@/libbcmath/src) + PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src) + AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath]) +fi diff --git a/tests/fixtures/ext/bcmath/package.xml b/tests/fixtures/ext/bcmath/package.xml new file mode 100644 index 000000000..3ef9773fe --- /dev/null +++ b/tests/fixtures/ext/bcmath/package.xml @@ -0,0 +1,94 @@ + + + + bcmath + Arbitrary Precision Mathematics Functions + + + andi + Andi Gutmans + andi@php.net + lead + + + +For arbitrary precision mathematics PHP offers the Binary Calculator +which supports numbers of any size and precision, represented as strings. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/bz2/config.m4 b/tests/fixtures/ext/bz2/config.m4 new file mode 100644 index 000000000..55917c07f --- /dev/null +++ b/tests/fixtures/ext/bz2/config.m4 @@ -0,0 +1,40 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(bz2, for BZip2 support, +[ --with-bz2[=DIR] Include BZip2 support]) + +if test "$PHP_BZ2" != "no"; then + if test -r $PHP_BZ2/include/bzlib.h; then + BZIP_DIR=$PHP_BZ2 + else + AC_MSG_CHECKING(for BZip2 in default path) + for i in /usr/local /usr; do + if test -r $i/include/bzlib.h; then + BZIP_DIR=$i + AC_MSG_RESULT(found in $i) + break + fi + done + fi + + if test -z "$BZIP_DIR"; then + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Please reinstall the BZip2 distribution) + fi + + PHP_CHECK_LIBRARY(bz2, BZ2_bzerror, + [ + PHP_ADD_INCLUDE($BZIP_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(bz2, $BZIP_DIR/$PHP_LIBDIR, BZ2_SHARED_LIBADD) + AC_DEFINE(HAVE_BZ2,1,[ ]) + ], [ + AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0) + ], [ + -L$BZIP_DIR/$PHP_LIBDIR + ]) + + PHP_NEW_EXTENSION(bz2, bz2.c bz2_filter.c, $ext_shared) + PHP_SUBST(BZ2_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/bz2/package.xml b/tests/fixtures/ext/bz2/package.xml new file mode 100644 index 000000000..107f21886 --- /dev/null +++ b/tests/fixtures/ext/bz2/package.xml @@ -0,0 +1,38 @@ + + + + bz2 + A Bzip2 management extension + +Bz2 is an extension to create and parse bzip2 compressed data. + + PHP License + + + sterling + Sterling Hughes + sterling@php.net + + + + 1.0 + 2003-05-17 + stable + + Initial Release in PECL + + + + + + + + CREDITS + config.m4 + php_bz2.h + bz2.c + bz2.dsp + + + diff --git a/tests/fixtures/ext/calendar/config.m4 b/tests/fixtures/ext/calendar/config.m4 new file mode 100644 index 000000000..a80101adb --- /dev/null +++ b/tests/fixtures/ext/calendar/config.m4 @@ -0,0 +1,11 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(calendar,whether to enable calendar conversion support, +[ --enable-calendar Enable support for calendar conversion]) + +if test "$PHP_CALENDAR" = "yes"; then + AC_DEFINE(HAVE_CALENDAR,1,[ ]) + PHP_NEW_EXTENSION(calendar, calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/calendar/package.xml b/tests/fixtures/ext/calendar/package.xml new file mode 100644 index 000000000..82d067529 --- /dev/null +++ b/tests/fixtures/ext/calendar/package.xml @@ -0,0 +1,73 @@ + + + + calendar + Date conversion between different calendar formats + + + hholzgra + Hartmut Holzgraefe + hartmut@php.net + lead + + + shane + Shane Caraveo + developer + shane@caraveo.com + + + colin + Colin Viebrock + developer + colin@easydns.com + + + wez + Wez Furlong + developer + wez@php.net + + + +The calendar extension presents a series of functions to simplify +converting between different calendar formats. The intermediary or +standard it is based on is the Julian Day Count. The Julian Day Count +is a count of days starting from January 1st, 4713 B.C. To convert +between calendar systems, you must first convert to Julian Day Count, +then to the calendar system of your choice. Julian Day Count is very +different from the Julian Calendar! + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/com_dotnet/package.xml b/tests/fixtures/ext/com_dotnet/package.xml new file mode 100644 index 000000000..2839447bb --- /dev/null +++ b/tests/fixtures/ext/com_dotnet/package.xml @@ -0,0 +1,52 @@ + + + + com_dotnet + Com and .NET support functions for Windows + + + wez + Wez Furlong + wez@php.net + lead + + + +... + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/ctype/config.m4 b/tests/fixtures/ext/ctype/config.m4 new file mode 100644 index 000000000..7d575a3ad --- /dev/null +++ b/tests/fixtures/ext/ctype/config.m4 @@ -0,0 +1,11 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(ctype, whether to enable ctype functions, +[ --disable-ctype Disable ctype functions], yes) + +if test "$PHP_CTYPE" != "no"; then + AC_DEFINE(HAVE_CTYPE, 1, [ ]) + PHP_NEW_EXTENSION(ctype, ctype.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/ctype/package.xml b/tests/fixtures/ext/ctype/package.xml new file mode 100644 index 000000000..71c9cd990 --- /dev/null +++ b/tests/fixtures/ext/ctype/package.xml @@ -0,0 +1,46 @@ + + + + ctype + Character type detection + + + hholzgra + Hartmut Holzgraefe + hartmut@php.net + lead + + + +The functions provided by this extension check whether a +character or string falls into a certain character class +according to the current locale. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/curl/config.m4 b/tests/fixtures/ext/curl/config.m4 new file mode 100644 index 000000000..2f82c3485 --- /dev/null +++ b/tests/fixtures/ext/curl/config.m4 @@ -0,0 +1,146 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(curl, for cURL support, +[ --with-curl[=DIR] Include cURL support]) + +if test "$PHP_CURL" != "no"; then + if test -r $PHP_CURL/include/curl/easy.h; then + CURL_DIR=$PHP_CURL + else + AC_MSG_CHECKING(for cURL in default path) + for i in /usr/local /usr; do + if test -r $i/include/curl/easy.h; then + CURL_DIR=$i + AC_MSG_RESULT(found in $i) + break + fi + done + fi + + if test -z "$CURL_DIR"; then + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Please reinstall the libcurl distribution - + easy.h should be in /include/curl/) + fi + + CURL_CONFIG="curl-config" + AC_MSG_CHECKING(for cURL 7.10.5 or greater) + + if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/bin/curl-config + else + if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/curl-config + fi + fi + + curl_version_full=`$CURL_CONFIG --version` + curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test "$curl_version" -ge 7010005; then + AC_MSG_RESULT($curl_version_full) + CURL_LIBS=`$CURL_CONFIG --libs` + else + AC_MSG_ERROR(cURL version 7.10.5 or later is required to compile php with cURL support) + fi + + PHP_ADD_INCLUDE($CURL_DIR/include) + PHP_EVAL_LIBLINE($CURL_LIBS, CURL_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, CURL_SHARED_LIBADD) + + AC_MSG_CHECKING([for SSL support in libcurl]) + CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL` + if test "$CURL_SSL" = "SSL"; then + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_CURL_SSL], [1], [Have cURL with SSL support]) + + save_CFLAGS="$CFLAGS" + CFLAGS="`$CURL_CONFIG --cflags`" + + AC_PROG_CPP + AC_MSG_CHECKING([for openssl support in libcurl]) + AC_TRY_RUN([ +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1); + } + return 1; +} + ],[ + AC_MSG_RESULT([yes]) + AC_CHECK_HEADERS([openssl/crypto.h], [ + AC_DEFINE([HAVE_CURL_OPENSSL], [1], [Have cURL with OpenSSL support]) + ]) + ], [ + AC_MSG_RESULT([no]) + ], [ + AC_MSG_RESULT([no]) + ]) + + AC_MSG_CHECKING([for gnutls support in libcurl]) + AC_TRY_RUN([ +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1); + } + return 1; +} +], [ + AC_MSG_RESULT([yes]) + AC_CHECK_HEADER([gcrypt.h], [ + AC_DEFINE([HAVE_CURL_GNUTLS], [1], [Have cURL with GnuTLS support]) + ]) + ], [ + AC_MSG_RESULT([no]) + ], [ + AC_MSG_RESULT([no]) + ]) + + CFLAGS="$save_CFLAGS" + else + AC_MSG_RESULT([no]) + fi + + PHP_CHECK_LIBRARY(curl,curl_easy_perform, + [ + AC_DEFINE(HAVE_CURL,1,[ ]) + ],[ + AC_MSG_ERROR(There is something wrong. Please check config.log for more information.) + ],[ + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + ]) + + PHP_CHECK_LIBRARY(curl,curl_easy_strerror, + [ + AC_DEFINE(HAVE_CURL_EASY_STRERROR,1,[ ]) + ],[],[ + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + ]) + + PHP_CHECK_LIBRARY(curl,curl_multi_strerror, + [ + AC_DEFINE(HAVE_CURL_MULTI_STRERROR,1,[ ]) + ],[],[ + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + ]) + + PHP_NEW_EXTENSION(curl, interface.c multi.c share.c curl_file.c, $ext_shared) + PHP_SUBST(CURL_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/curl/package.xml b/tests/fixtures/ext/curl/package.xml new file mode 100644 index 000000000..c14321738 --- /dev/null +++ b/tests/fixtures/ext/curl/package.xml @@ -0,0 +1,53 @@ + + + + curl + Clib PDF functions + + + sterling + Sterling Hughes + sterling@php.net + lead + + + +PHP supports libcurl, a library created by Daniel Stenberg, +that allows you to connect and communicate to many different +types of servers with many different types of protocols. +libcurl currently supports the http, https, ftp, gopher, +telnet, dict, file, and ldap protocols. libcurl also supports +HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this +can also be done with PHP's ftp extension), HTTP form based +upload, proxies, cookies, and user+password authentication. + + PHP + + beta + 5.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/date/config0.m4 b/tests/fixtures/ext/date/config0.m4 new file mode 100644 index 000000000..f403104a8 --- /dev/null +++ b/tests/fixtures/ext/date/config0.m4 @@ -0,0 +1,25 @@ +dnl $Id$ +dnl config.m4 for date extension + +sinclude(ext/date/lib/timelib.m4) +sinclude(lib/timelib.m4) + +PHP_DATE_CFLAGS="-I@ext_builddir@/lib" +timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c + lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" + +PHP_NEW_EXTENSION(date, php_date.c $timelib_sources, no,, $PHP_DATE_CFLAGS) + +PHP_ADD_BUILD_DIR([$ext_builddir/lib], 1) +PHP_ADD_INCLUDE([$ext_builddir/lib]) +PHP_ADD_INCLUDE([$ext_srcdir/lib]) + +PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h]) + +cat > $ext_builddir/lib/timelib_config.h < +#endif +EOF diff --git a/tests/fixtures/ext/dba/config.m4 b/tests/fixtures/ext/dba/config.m4 new file mode 100644 index 000000000..5442bb141 --- /dev/null +++ b/tests/fixtures/ext/dba/config.m4 @@ -0,0 +1,635 @@ +dnl +dnl $Id$ +dnl + +dnl Suppose we need FlatFile if no support or only CDB is used. + +AC_DEFUN([PHP_DBA_STD_BEGIN],[ + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT +]) + +AC_DEFUN([PHP_TEMP_LDFLAGS],[ + old_LDFLAGS=$LDFLAGS + LDFLAGS="$1 $LDFLAGS" + old_LIBS=$LIBS + LIBS="$2 $LIBS" + $3 + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS +]) + +dnl Assign INCLUDE/LFLAGS from PREFIX +AC_DEFUN([PHP_DBA_STD_ASSIGN],[ + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi +]) + +dnl Standard check +AC_DEFUN([PHP_DBA_STD_CHECK],[ + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + AC_MSG_ERROR([DBA: Could not find necessary header file(s).]) + fi + if test -z "$THIS_LIBS"; then + AC_MSG_ERROR([DBA: Could not find necessary library.]) + fi +]) + +dnl Attach THIS_x to DBA_x +AC_DEFUN([PHP_DBA_STD_ATTACH],[ + PHP_ADD_LIBRARY_WITH_PATH($THIS_LIBS, $THIS_LFLAGS, DBA_SHARED_LIBADD) + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX +]) + +dnl Print the result message +dnl parameters(name [, full name [, empty or error message]]) +AC_DEFUN([PHP_DBA_STD_RESULT],[ + THIS_NAME=[]translit($1,a-z0-9-,A-Z0-9_) + if test -n "$2"; then + THIS_FULL_NAME="$2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + AC_MSG_CHECKING([for $THIS_FULL_NAME support]) + if test -n "$3"; then + AC_MSG_ERROR($3) + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + AC_MSG_RESULT([$THIS_RESULT]) + else + AC_MSG_RESULT(no) + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME +]) + +dnl +dnl Options +dnl + +PHP_ARG_ENABLE(dba,, +[ --enable-dba Build DBA with bundled modules. To build shared DBA + extension use --enable-dba=shared]) + +PHP_ARG_WITH(qdbm,, +[ --with-qdbm[=DIR] DBA: QDBM support], no, no) + +PHP_ARG_WITH(gdbm,, +[ --with-gdbm[=DIR] DBA: GDBM support], no, no) + +PHP_ARG_WITH(ndbm,, +[ --with-ndbm[=DIR] DBA: NDBM support], no, no) + +PHP_ARG_WITH(db4,, +[ --with-db4[=DIR] DBA: Oracle Berkeley DB 4.x or 5.x support], no, no) + +PHP_ARG_WITH(db3,, +[ --with-db3[=DIR] DBA: Oracle Berkeley DB 3.x support], no, no) + +PHP_ARG_WITH(db2,, +[ --with-db2[=DIR] DBA: Oracle Berkeley DB 2.x support], no, no) + +PHP_ARG_WITH(db1,, +[ --with-db1[=DIR] DBA: Oracle Berkeley DB 1.x support/emulation], no, no) + +PHP_ARG_WITH(dbm,, +[ --with-dbm[=DIR] DBA: DBM support], no, no) + +PHP_ARG_WITH(tcadb,, +[ --with-tcadb[=DIR] DBA: Tokyo Cabinet abstract DB support], no, no) + + +dnl +dnl Library checks +dnl + +# QDBM +if test "$PHP_QDBM" != "no"; then + PHP_DBA_STD_BEGIN + for i in $PHP_QDBM /usr/local /usr; do + if test -f "$i/include/depot.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/depot.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in qdbm; do + PHP_CHECK_LIBRARY($LIB, dpopen, [ + AC_DEFINE_UNQUOTED(QDBM_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_QDBM, 1, [ ]) + THIS_LIBS=$LIB + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(qdbm) + +# GDBM +if test "$PHP_GDBM" != "no"; then + PHP_DBA_STD_BEGIN + if test "$HAVE_QDBM" = "1"; then + PHP_DBA_STD_RESULT(gdbm, gdbm, [You cannot combine --with-gdbm with --with-qdbm]) + fi + for i in $PHP_GDBM /usr/local /usr; do + if test -f "$i/include/gdbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + PHP_CHECK_LIBRARY(gdbm, gdbm_open, [ + AC_DEFINE_UNQUOTED(GDBM_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_GDBM, 1, [ ]) + THIS_LIBS=gdbm + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(gdbm) + +# NDBM +if test "$PHP_NDBM" != "no"; then + PHP_DBA_STD_BEGIN + for i in $PHP_NDBM /usr/local /usr; do + if test -f "$i/include/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/ndbm.h + break + elif test -f "$i/include/db1/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/ndbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in ndbm db1 c; do + PHP_CHECK_LIBRARY($LIB, dbm_open, [ + AC_DEFINE_UNQUOTED(NDBM_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_NDBM, 1, [ ]) + THIS_LIBS=$LIB + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(ndbm) + +dnl TCADB +if test "$PHP_TCADB" != "no"; then + PHP_DBA_STD_BEGIN + for i in $PHP_TCADB /usr/local /usr; do + if test -f "$i/include/tcadb.h"; then + THIS_PREFIX=$i + PHP_ADD_INCLUDE($THIS_PREFIX/include) + THIS_INCLUDE=$i/include/tcadb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in tokyocabinet; do + PHP_CHECK_LIBRARY($LIB, tcadbopen, [ + AC_DEFINE_UNQUOTED(TCADB_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_TCADB, 1, [ ]) + THIS_LIBS=$LIB + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(tcadb) + +dnl Berkeley specific (library and version test) +dnl parameters(version, library list, function) +AC_DEFUN([PHP_DBA_DB_CHECK],[ + if test -z "$THIS_INCLUDE"; then + AC_MSG_ERROR([DBA: Could not find necessary header file(s).]) + fi + for LIB in $2; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/$PHP_LIBDIR, -l$LIB,[ + AC_TRY_LINK([ +#include "$THIS_INCLUDE" + ],[ + $3; + ],[ + AC_EGREP_CPP(yes,[ +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == $1 || ($1 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + ],[ + THIS_LIBS=$LIB + lib_found=1 + ]) + ]) + ]) + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + AC_MSG_CHECKING([for DB$1 major version]) + AC_MSG_ERROR([Header contains different version]) + fi + if test "$1" = "4"; then + AC_MSG_CHECKING([for DB4 minor version and patch level]) + AC_EGREP_CPP(yes,[ +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + ],[ + AC_MSG_RESULT(ok) + ],[ + AC_MSG_ERROR([Version 4.1 requires patch level 25]) + ]) + fi + if test "$ext_shared" = "yes"; then + AC_MSG_CHECKING([if dba can be used as shared extension]) + AC_EGREP_CPP(yes,[ +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + ],[ + AC_MSG_RESULT(yes) + ],[ + AC_MSG_ERROR([At least version 3.3 is required]) + ]) + fi + if test -n "$THIS_LIBS"; then + AC_DEFINE(DBA_DB$1, 1, [ ]) + if test -n "$THIS_INCLUDE"; then + AC_DEFINE_UNQUOTED(DB$1_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + fi + else + AC_MSG_ERROR([DBA: Could not find necessary library.]) + fi + THIS_RESULT=yes + DB$1_LIBS=$THIS_LIBS + DB$1_PREFIX=$THIS_PREFIX + DB$1_INCLUDE=$THIS_INCLUDE + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_ATTACH +]) + +# DB4 +if test "$PHP_DB4" != "no"; then + PHP_DBA_STD_BEGIN + dbdp4="/usr/local/BerkeleyDB.4." + dbdp5="/usr/local/BerkeleyDB.5." + for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do + if test -f "$i/db5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db5/db.h + break + elif test -f "$i/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h + break + elif test -f "$i/include/db5.0/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.0/db.h + break + elif test -f "$i/include/db4.8/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.8/db.h + break + elif test -f "$i/include/db4.7/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.7/db.h + break + elif test -f "$i/include/db4.6/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.6/db.h + break + elif test -f "$i/include/db4.5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.5/db.h + break + elif test -f "$i/include/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4/db.h + break + elif test -f "$i/include/db/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db4.h + break + elif test -f "$i/include/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) +fi +PHP_DBA_STD_RESULT(db4,Berkeley DB4) + +# DB3 +if test "$PHP_DB3" != "no"; then + PHP_DBA_STD_BEGIN + if test "$HAVE_DB4" = "1"; then + PHP_DBA_STD_RESULT(db3, Berkeley DB3, [You cannot combine --with-db3 with --with-db4]) + fi + for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db3.h + break + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + PHP_DBA_DB_CHECK(3, db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) +fi +PHP_DBA_STD_RESULT(db3,Berkeley DB3) + +# DB2 +if test "$PHP_DB2" != "no"; then + PHP_DBA_STD_BEGIN + if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then + PHP_DBA_STD_RESULT(db2, Berkeley DB2, [You cannot combine --with-db2 with --with-db3 or --with-db4]) + fi + for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do + if test -f "$i/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db2/db.h + break + elif test -f "$i/include/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2/db.h + break + elif test -f "$i/include/db/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db2.h + break + elif test -f "$i/include/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + PHP_DBA_DB_CHECK(2, db-2 db2 db, [(void)db_appinit("", NULL, (DB_ENV*)0, 0)]) +fi +PHP_DBA_STD_RESULT(db2, Berkeley DB2) + +# DB1 +if test "$PHP_DB1" != "no"; then + PHP_DBA_STD_BEGIN + AC_MSG_CHECKING([for DB1 in library]) + if test "$HAVE_DB4" = "1"; then + THIS_VERSION=4 + THIS_LIBS=$DB4_LIBS + THIS_PREFIX=$DB4_PREFIX + elif test "$HAVE_DB3" = "1"; then + THIS_LIBS=$DB3_LIBS + THIS_PREFIX=$DB3_PREFIX + elif test "$HAVE_DB2" = "1"; then + THIS_VERSION=2 + THIS_LIBS=$DB2_LIBS + THIS_PREFIX=$DB2_PREFIX + fi + if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then + AC_DEFINE_UNQUOTED(DB1_VERSION, "Berkeley DB 1.85 emulation in DB$THIS_VERSION", [ ]) + for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do + if test -f "$THIS_PREFIX/$i"; then + THIS_INCLUDE=$THIS_PREFIX/$i + break + fi + done + else + AC_DEFINE_UNQUOTED(DB1_VERSION, "Unknown DB1", [ ]) + for i in $PHP_DB1 /usr/local /usr; do + if test -f "$i/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db1/db.h + break + elif test -f "$i/include/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/db.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + THIS_LIBS=db + fi + AC_MSG_RESULT([$THIS_LIBS]) + AC_MSG_CHECKING([for DB1 in header]) + AC_MSG_RESULT([$THIS_INCLUDE]) + if test -n "$THIS_INCLUDE"; then + PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/$PHP_LIBDIR, -l$THIS_LIBS,[ + AC_TRY_LINK([ +#include "$THIS_INCLUDE" + ],[ + DB * dbp = dbopen("", 0, 0, DB_HASH, 0); + ],[ + AC_DEFINE_UNQUOTED(DB1_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_DB1, 1, [ ]) + THIS_RESULT=yes + ],[ + THIS_RESULT=no + ]) + ]) + fi + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(db1, DB1) + +# DBM +if test "$PHP_DBM" != "no"; then + PHP_DBA_STD_BEGIN + if test "$HAVE_QDBM" = "1"; then + PHP_DBA_STD_RESULT(dbm, dbm, [You cannot combine --with-dbm with --with-qdbm]) + fi + for i in $PHP_DBM /usr/local /usr; do + if test -f "$i/include/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/dbm.h + break + elif test -f "$i/include/gdbm/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm/dbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in dbm c gdbm; do + PHP_CHECK_LIBRARY($LIB, dbminit, [ + AC_MSG_CHECKING(for DBM using GDBM) + AC_DEFINE_UNQUOTED(DBM_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + if test "$LIB" = "gdbm"; then + AC_DEFINE_UNQUOTED(DBM_VERSION, "GDBM", [ ]) + AC_MSG_RESULT(yes) + else + AC_DEFINE_UNQUOTED(DBM_VERSION, "DBM", [ ]) + AC_MSG_RESULT(no) + fi + AC_DEFINE(DBA_DBM, 1, [ ]) + THIS_LIBS=$LIB + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(dbm) + +dnl +dnl Bundled modules that should be enabled by default if any other option is enabled +dnl +if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then + php_dba_enable=yes +else + php_dba_enable=no +fi + +PHP_ARG_WITH(cdb,, +[ --without-cdb[=DIR] DBA: CDB support (bundled)], $php_dba_enable, no) + +PHP_ARG_ENABLE(inifile,, +[ --disable-inifile DBA: INI support (bundled)], $php_dba_enable, no) + +PHP_ARG_ENABLE(flatfile,, +[ --disable-flatfile DBA: FlatFile support (bundled)], $php_dba_enable, no) + +# CDB +if test "$PHP_CDB" = "yes"; then + AC_DEFINE(DBA_CDB_BUILTIN, 1, [ ]) + AC_DEFINE(DBA_CDB_MAKE, 1, [ ]) + AC_DEFINE(DBA_CDB, 1, [ ]) + cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" + THIS_RESULT="builtin" +elif test "$PHP_CDB" != "no"; then + PHP_DBA_STD_BEGIN + for i in $PHP_CDB /usr/local /usr; do + if test -f "$i/include/cdb.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/cdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in cdb c; do + PHP_CHECK_LIBRARY($LIB, cdb_read, [ + AC_DEFINE_UNQUOTED(CDB_INCLUDE_FILE, "$THIS_INCLUDE", [ ]) + AC_DEFINE(DBA_CDB, 1, [ ]) + THIS_LIBS=$LIB + ], [], [-L$THIS_PREFIX/$PHP_LIBDIR]) + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + PHP_DBA_STD_ASSIGN + PHP_DBA_STD_CHECK + PHP_DBA_STD_ATTACH +fi +PHP_DBA_STD_RESULT(cdb) + +# INIFILE +if test "$PHP_INIFILE" != "no"; then + AC_DEFINE(DBA_INIFILE, 1, [ ]) + ini_sources="libinifile/inifile.c" + THIS_RESULT="builtin" +fi +PHP_DBA_STD_RESULT(inifile, [INI File]) + +# FLATFILE +if test "$PHP_FLATFILE" != "no"; then + AC_DEFINE(DBA_FLATFILE, 1, [ ]) + flat_sources="libflatfile/flatfile.c" + THIS_RESULT="builtin" +fi +PHP_DBA_STD_RESULT(FlatFile, FlatFile) + +dnl +dnl Extension setup +dnl +AC_MSG_CHECKING([whether to enable DBA interface]) +if test "$HAVE_DBA" = "1"; then + if test "$ext_shared" = "yes"; then + AC_MSG_RESULT([yes, shared]) + else + AC_MSG_RESULT([yes]) + fi + AC_DEFINE(HAVE_DBA, 1, [ ]) + PHP_NEW_EXTENSION(dba, dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources, $ext_shared) + PHP_ADD_BUILD_DIR($ext_builddir/libinifile) + PHP_ADD_BUILD_DIR($ext_builddir/libcdb) + PHP_ADD_BUILD_DIR($ext_builddir/libflatfile) + PHP_SUBST(DBA_SHARED_LIBADD) +else + AC_MSG_RESULT(no) +fi diff --git a/tests/fixtures/ext/dom/config.m4 b/tests/fixtures/ext/dom/config.m4 new file mode 100644 index 000000000..7882483b3 --- /dev/null +++ b/tests/fixtures/ext/dom/config.m4 @@ -0,0 +1,38 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(dom, whether to enable DOM support, +[ --disable-dom Disable DOM support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir[=DIR] DOM: libxml2 install prefix], no, no) +fi + +if test "$PHP_DOM" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([DOM extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [ + AC_DEFINE(HAVE_DOM,1,[ ]) + PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c], + $ext_shared) + PHP_SUBST(DOM_SHARED_LIBADD) + PHP_INSTALL_HEADERS([ext/dom/xml_common.h]) + PHP_ADD_EXTENSION_DEP(dom, libxml) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) +fi diff --git a/tests/fixtures/ext/enchant/config.m4 b/tests/fixtures/ext/enchant/config.m4 new file mode 100755 index 000000000..db8a69c5d --- /dev/null +++ b/tests/fixtures/ext/enchant/config.m4 @@ -0,0 +1,42 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(enchant,for ENCHANT support, +[ --with-enchant[=DIR] Include enchant support. + GNU Aspell version 1.1.3 or higher required.]) + +if test "$PHP_ENCHANT" != "no"; then + PHP_NEW_EXTENSION(enchant, enchant.c, $ext_shared) + if test "$PHP_ENCHANT" != "yes"; then + ENCHANT_SEARCH_DIRS=$PHP_ENCHANT + else + ENCHANT_SEARCH_DIRS="/usr/local /usr" + fi + for i in $ENCHANT_SEARCH_DIRS; do + if test -f $i/include/enchant/enchant.h; then + ENCHANT_DIR=$i + ENCHANT_INCDIR=$i/include/enchant + elif test -f $i/include/enchant.h; then + ENCHANT_DIR=$i + ENCHANT_INCDIR=$i/include + fi + done + + if test -z "$ENCHANT_DIR"; then + AC_MSG_ERROR(Cannot find enchant) + fi + + ENCHANT_LIBDIR=$ENCHANT_DIR/lib + + AC_DEFINE(HAVE_ENCHANT,1,[ ]) + PHP_SUBST(ENCHANT_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(enchant, $ENCHANT_LIBDIR, ENCHANT_SHARED_LIBADD) + PHP_ADD_INCLUDE($ENCHANT_INCDIR) + PHP_CHECK_LIBRARY(enchant, enchant_broker_set_param, + [ + AC_DEFINE(HAVE_ENCHANT_BROKER_SET_PARAM, 1, [ ]) + AC_DEFINE(ENCHANT_VERSION_STRING, "1.5.x", [ ]) + ], [], [ -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD]) + +fi diff --git a/tests/fixtures/ext/enchant/package.xml b/tests/fixtures/ext/enchant/package.xml new file mode 100755 index 000000000..101283938 --- /dev/null +++ b/tests/fixtures/ext/enchant/package.xml @@ -0,0 +1,162 @@ + + + enchant + pecl.php.net + libenchant binder, support near all spelling tools + Enchant is a binder for libenchant. Libenchant provides a common +API for many spell libraries: +- aspell/pspell (intended to replace ispell) +- hspell (hebrew) +- ispell +- myspell/hunspell (OpenOffice project, mozilla) +- uspell (primarily Yiddish, Hebrew, and Eastern European languages) +A plugin system allows to add custom spell support. +see www.abisource.com/enchant/ + + + Pierre-Alain Joye + pajoye + paj@pearfr.org + yes + + + Ilia Alshanetsky + iliaa + ilia@php.net + yes + + 2008-04-16 + + 1.0.2 + 1.1.0 + + + stable + stable + + PHP + - #13181, Leaving a context frees the dictionnary resources +- Fix protos descriptions in the sources + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + 1.4.0b1 + + + + enchant + + + + + + 2006-03-21 + + 1.0.1 + 1.1.0 + + + stable + stable + + PHP + - add enchant_broker_list_dicts to get a list of available dictionaries +- fix compilation warnings +- add examples +- add tests + + + 2004-08-11 + + 1.0 + 1.0 + + + stable + stable + + PHP + - Fixed leak inside MINFO function. +- Fixed crash inside enchant_dict_suggest() when there are no suggestions. +- Added missing safe_mode/open_basedir check inside enchant_broker_request_pwl_dict(). +- Fixed various function prototypes. +- Fixed possible leak in suggestions result. + + + + + 0.2.1 + 0.2.1 + + + beta + beta + + 2004-03-11 + PHP + - Fix possible leak in suggestions result +- Move to beta status + + + + + 0.2.0 + 0.2.0 + + + alpha + alpha + + 2006-03-21 + PHP + - Add Ilia Alshanetsky as maintainer +- Cleanup sources codes (ilia) +- Add enchant_dict_quick_check (ilia) + + + + + 0.1 + 0.1 + + + alpha + alpha + + 2003-03-08 + PHP + Initial release + + + + diff --git a/tests/fixtures/ext/ereg/config0.m4 b/tests/fixtures/ext/ereg/config0.m4 new file mode 100644 index 000000000..caec39d28 --- /dev/null +++ b/tests/fixtures/ext/ereg/config0.m4 @@ -0,0 +1,56 @@ +dnl $Id$ +dnl config.m4 for extension ereg + +dnl +dnl Check for regex library type +dnl +PHP_ARG_WITH(regex,, +[ --with-regex=TYPE Regex library type: system, php. [TYPE=php] + WARNING: Do NOT use unless you know what you are doing!], php, no) + +case $PHP_REGEX in + system) + if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then + REGEX_TYPE=php + else + REGEX_TYPE=system + fi + ;; + yes | php) + REGEX_TYPE=php + ;; + *) + REGEX_TYPE=php + AC_MSG_WARN([Invalid regex library type selected. Using default value: php]) + ;; +esac + +AC_MSG_CHECKING([which regex library to use]) +AC_MSG_RESULT([$REGEX_TYPE]) + +if test "$REGEX_TYPE" = "php"; then + ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c" + ereg_regex_headers="regex/" + PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp" +fi + +PHP_NEW_EXTENSION(ereg, ereg.c $ereg_regex_sources, no,,$PHP_EREG_CFLAGS) +PHP_INSTALL_HEADERS([ext/ereg], [php_ereg.h php_regex.h $ereg_regex_headers]) + +if test "$REGEX_TYPE" = "php"; then + AC_DEFINE(HAVE_REGEX_T_RE_MAGIC, 1, [ ]) + AC_DEFINE(HSREGEX,1,[ ]) + AC_DEFINE(REGEX,1,[ ]) + PHP_ADD_BUILD_DIR([$ext_builddir/regex], 1) + PHP_ADD_INCLUDE([$ext_srcdir/regex]) +elif test "$REGEX_TYPE" = "system"; then + AC_DEFINE(REGEX,0,[ ]) + dnl Check if field re_magic exists in struct regex_t + AC_CACHE_CHECK([whether field re_magic exists in struct regex_t], ac_cv_regex_t_re_magic, [ + AC_TRY_COMPILE([#include +#include ], [regex_t rt; rt.re_magic;], + [ac_cv_regex_t_re_magic=yes], [ac_cv_regex_t_re_magic=no])]) + if test "$ac_cv_regex_t_re_magic" = "yes"; then + AC_DEFINE([HAVE_REGEX_T_RE_MAGIC], [ ], 1) + fi +fi diff --git a/tests/fixtures/ext/exif/config.m4 b/tests/fixtures/ext/exif/config.m4 new file mode 100644 index 000000000..a3ba9240d --- /dev/null +++ b/tests/fixtures/ext/exif/config.m4 @@ -0,0 +1,11 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(exif, whether to enable EXIF (metadata from images) support, +[ --enable-exif Enable EXIF (metadata from images) support]) + +if test "$PHP_EXIF" != "no"; then + AC_DEFINE(HAVE_EXIF, 1, [Whether you want EXIF (metadata from images) support]) + PHP_NEW_EXTENSION(exif, exif.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/exif/package.xml b/tests/fixtures/ext/exif/package.xml new file mode 100644 index 000000000..6bdb08961 --- /dev/null +++ b/tests/fixtures/ext/exif/package.xml @@ -0,0 +1,62 @@ + + + + exif + Read header information from JPEG and DIFF headers + + + rasmus + Rasmus Lerdorf + helly@php.net + lead + + + helly + Markus Boerger + helly@php.net + lead + + + +The EXIF functions provide access to information stored in headers +of JPEG and TIFF images. This way you can read meta data generated +by digital cameras and certain image processing applications. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/fileinfo/config.m4 b/tests/fixtures/ext/fileinfo/config.m4 new file mode 100644 index 000000000..4f3404125 --- /dev/null +++ b/tests/fixtures/ext/fileinfo/config.m4 @@ -0,0 +1,22 @@ +dnl $Id$ +dnl config.m4 for extension fileinfo + +PHP_ARG_ENABLE(fileinfo, for fileinfo support, +[ --disable-fileinfo Disable fileinfo support], yes) + +if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ + libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \ + libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \ + libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \ + libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c" + + PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic) + PHP_ADD_BUILD_DIR($ext_builddir/libmagic) + + AC_CHECK_FUNCS([utimes strndup]) + + PHP_ADD_MAKEFILE_FRAGMENT +fi diff --git a/tests/fixtures/ext/fileinfo/package.xml b/tests/fixtures/ext/fileinfo/package.xml new file mode 100644 index 000000000..a274e4716 --- /dev/null +++ b/tests/fixtures/ext/fileinfo/package.xml @@ -0,0 +1,44 @@ + + + + Fileinfo + libmagic bindings + + + iliaa + Ilia Alshanetsky + ilia@php.net + lead + + + +This extension allows retrieval of information regarding vast majority of file. +This information may include dimensions, quality, length etc... + +Additionally it can also be used to retrieve the mime type for a particular +file and for text files proper language encoding. + + PHP + + stable + 1.0.4 + 2006-11-07 + + 1) Fixed detection of magic files + 2) Fixed build problems with older version of libmagic + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/filter/config.m4 b/tests/fixtures/ext/filter/config.m4 new file mode 100644 index 000000000..676f5d99e --- /dev/null +++ b/tests/fixtures/ext/filter/config.m4 @@ -0,0 +1,47 @@ +dnl $Id$ +dnl config.m4 for input filtering extension + +PHP_ARG_ENABLE(filter, whether to enable input filter support, +[ --disable-filter Disable input filter support], yes) + +PHP_ARG_WITH(pcre-dir, pcre install prefix, +[ --with-pcre-dir FILTER: pcre install prefix], no, no) + +if test "$PHP_FILTER" != "no"; then + + dnl Check if configure is the PHP core configure + if test -n "$PHP_VERSION"; then + dnl This extension can not be build as shared when in PHP core + ext_shared=no + else + dnl This is PECL build, check if bundled PCRE library is used + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=yes + ],[ + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=pecl + ],[ + PHP_PCRE_REGEX=no + ]) + ]) + CPPFLAGS=$old_CPPFLAGS + fi + + PHP_NEW_EXTENSION(filter, filter.c sanitizing_filters.c logical_filters.c callback_filter.c, $ext_shared) + PHP_SUBST(FILTER_SHARED_LIBADD) + + PHP_INSTALL_HEADERS([ext/filter/php_filter.h]) + PHP_ADD_EXTENSION_DEP(filter, pcre) +fi diff --git a/tests/fixtures/ext/ftp/config.m4 b/tests/fixtures/ext/ftp/config.m4 new file mode 100644 index 000000000..2df7f7b44 --- /dev/null +++ b/tests/fixtures/ext/ftp/config.m4 @@ -0,0 +1,22 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(ftp,whether to enable FTP support, +[ --enable-ftp Enable FTP support]) + +PHP_ARG_WITH(openssl-dir,OpenSSL dir for FTP, +[ --with-openssl-dir[=DIR] FTP: openssl install prefix], no, no) + +if test "$PHP_FTP" = "yes"; then + AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support]) + PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared) + + dnl Empty variable means 'no' + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD) + PHP_SUBST(FTP_SHARED_LIBADD) + fi +fi diff --git a/tests/fixtures/ext/ftp/package.xml b/tests/fixtures/ext/ftp/package.xml new file mode 100644 index 000000000..ecb2637ee --- /dev/null +++ b/tests/fixtures/ext/ftp/package.xml @@ -0,0 +1,56 @@ + + + + ftp + File Transfer Protocol functions + + + ??? + Andrew Skalski + askalski@chek.com + lead + + + sesser + Stefan Esser + sesser@php.net + lead + + + +The functions in this extension implement client access to file +servers speaking the File Transfer Protocol (FTP) as defined in +http://www.faqs.org/rfcs/rfc959. This extension is meant for +detailed access to an FTP server providing a wide range of +control to the executing script. If you only wish to read from +or write to a file on an FTP server, consider using the ftp:// +wrapper with the filesystem functions which provide a simpler +and more intuitive interface. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/gd/config.m4 b/tests/fixtures/ext/gd/config.m4 new file mode 100644 index 000000000..446c2425a --- /dev/null +++ b/tests/fixtures/ext/gd/config.m4 @@ -0,0 +1,399 @@ +dnl +dnl $Id$ +dnl + +dnl +dnl Configure options +dnl + +PHP_ARG_WITH(gd, for GD support, +[ --with-gd[=DIR] Include GD support. DIR is the GD library base + install directory [BUNDLED]]) +if test -z "$PHP_VPX_DIR"; then + PHP_ARG_WITH(vpx-dir, for the location of libvpx, + [ --with-vpx-dir[=DIR] GD: Set the path to libvpx install prefix], no, no) +fi + +if test -z "$PHP_JPEG_DIR"; then + PHP_ARG_WITH(jpeg-dir, for the location of libjpeg, + [ --with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix], no, no) +fi + +if test -z "$PHP_PNG_DIR"; then + PHP_ARG_WITH(png-dir, for the location of libpng, + [ --with-png-dir[=DIR] GD: Set the path to libpng install prefix], no, no) +fi + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] GD: Set the path to libz install prefix], no, no) +fi + +PHP_ARG_WITH(xpm-dir, for the location of libXpm, +[ --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix], no, no) + +PHP_ARG_WITH(freetype-dir, for FreeType 2, +[ --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix], no, no) + +PHP_ARG_WITH(t1lib, for T1lib support, +[ --with-t1lib[=DIR] GD: Include T1lib support. T1lib version >= 5.0.0 required], no, no) + +PHP_ARG_ENABLE(gd-native-ttf, whether to enable truetype string function in GD, +[ --enable-gd-native-ttf GD: Enable TrueType string function], no, no) + +PHP_ARG_ENABLE(gd-jis-conv, whether to enable JIS-mapped Japanese font support in GD, +[ --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support], no, no) + +dnl +dnl Checks for the configure options +dnl + +AC_DEFUN([PHP_GD_ZLIB],[ + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + AC_MSG_ERROR([Can't find zlib headers under "$PHP_ZLIB_DIR"]) + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi +]) + +AC_DEFUN([PHP_GD_VPX],[ + if test "$PHP_VPX_DIR" != "no"; then + + for i in $PHP_VPX_DIR /usr/local /usr; do + test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break + done + + if test -z "$GD_VPX_DIR"; then + AC_MSG_ERROR([vpx_codec.h not found.]) + fi + + PHP_CHECK_LIBRARY(vpx,vpx_codec_destroy, + [ + PHP_ADD_INCLUDE($GD_VPX_DIR/include) + PHP_ADD_LIBRARY(pthread) + PHP_ADD_LIBRARY_WITH_PATH(vpx, $GD_VPX_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libvpx.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_VPX_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-vpx-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_JPEG],[ + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + AC_MSG_ERROR([jpeglib.h not found.]) + fi + + PHP_CHECK_LIBRARY(jpeg,jpeg_read_header, + [ + PHP_ADD_INCLUDE($GD_JPEG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(jpeg, $GD_JPEG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libjpeg.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_JPEG_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-jpeg-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_PNG],[ + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + AC_MSG_ERROR([png.h not found.]) + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=]) + fi + + PHP_CHECK_LIBRARY(png,png_write_image, + [ + PHP_ADD_INCLUDE($GD_PNG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(png, $GD_PNG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.]) + ],[ + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + ]) + + else + AC_MSG_RESULT([If configure fails try --with-png-dir= and --with-zlib-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_XPM],[ + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + AC_MSG_ERROR([xpm.h not found.]) + fi + + PHP_CHECK_LIBRARY(Xpm,XpmFreeXpmImage, + [ + PHP_ADD_INCLUDE($GD_XPM_INC) + PHP_ADD_LIBRARY_WITH_PATH(Xpm, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(X11, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + ]) + else + AC_MSG_RESULT(If configure fails try --with-xpm-dir=) + fi +]) + +AC_DEFUN([PHP_GD_FREETYPE2],[ + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + AC_MSG_ERROR([freetype-config not found.]) + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + PHP_EVAL_INCLINE($FREETYPE2_CFLAGS) + PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD) + AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ]) + AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) + AC_DEFINE(ENABLE_GD_TTF,1,[ ]) + else + AC_MSG_RESULT([If configure fails try --with-freetype-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_T1LIB],[ + if test "$PHP_T1LIB" != "no"; then + + for i in $PHP_T1LIB /usr/local /usr; do + test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break + done + + if test -z "$GD_T1_DIR"; then + AC_MSG_ERROR([Your t1lib distribution is not installed correctly. Please reinstall it.]) + fi + + PHP_CHECK_LIBRARY(t1, T1_StrError, + [ + AC_DEFINE(HAVE_LIBT1,1,[ ]) + PHP_ADD_INCLUDE($GD_T1_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(t1, $GD_T1_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libt1.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_T1_DIR/$PHP_LIBDIR + ]) + fi +]) + +AC_DEFUN([PHP_GD_TTSTR],[ + if test "$PHP_GD_NATIVE_TTF" = "yes"; then + AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ]) + fi +]) + +AC_DEFUN([PHP_GD_JISX0208],[ + if test "$PHP_GD_JIS_CONV" = "yes"; then + USE_GD_JIS_CONV=1 + fi +]) + +AC_DEFUN([PHP_GD_CHECK_VERSION],[ + PHP_CHECK_LIBRARY(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromWebp, [AC_DEFINE(HAVE_GD_WEBP, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromJpeg, [AC_DEFINE(HAVE_GD_JPG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromXpm, [AC_DEFINE(HAVE_GD_XPM, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageStringFT, [AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) +]) + +dnl +dnl Main GD configure +dnl + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + +dnl PNG is required by GD library + test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_TTSTR + PHP_GD_VPX + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + PHP_GD_T1LIB + PHP_GD_JISX0208 +fi + +if test "$PHP_GD" = "yes"; then + GD_MODULE_TYPE=builtin + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c" + +dnl check for fabsf and floorf which are available since C99 + AC_CHECK_FUNCS(fabsf floorf) + +dnl These are always available with bundled library + AC_DEFINE(HAVE_GD_BUNDLED, 1, [ ]) + AC_DEFINE(HAVE_GD_PNG, 1, [ ]) + AC_DEFINE(HAVE_GD_CACHE_CREATE, 1, [ ]) + +dnl Make sure the libgd/ is first in the include path + GDLIB_CFLAGS="-DHAVE_LIBPNG" + +dnl Depending which libraries were included to PHP configure, +dnl enable the support in bundled GD library + + if test -n "$GD_VPX_DIR"; then + AC_DEFINE(HAVE_GD_WEBP, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX" + fi + + if test -n "$GD_JPEG_DIR"; then + AC_DEFINE(HAVE_GD_JPG, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG" + fi + + if test -n "$GD_XPM_DIR"; then + AC_DEFINE(HAVE_GD_XPM, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM" + fi + + if test -n "$FREETYPE2_DIR"; then + AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ]) + AC_DEFINE(ENABLE_GD_TTF, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF" + fi + + if test -n "$USE_GD_JIS_CONV"; then + AC_DEFINE(USE_GD_JISX0208, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" + fi + +else + + if test "$PHP_GD" != "no"; then + GD_MODULE_TYPE=external + extra_sources="gd_compat.c" + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_TTSTR + PHP_GD_VPX + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + PHP_GD_T1LIB + +dnl Header path + for i in include/gd include gd ""; do + test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i" + done + + if test -z "$GD_INCLUDE"; then + AC_MSG_ERROR([Unable to find gd.h anywhere under $PHP_GD]) + fi + +dnl Library path + + PHP_CHECK_LIBRARY(gd, gdSetErrorMethod, + [ + PHP_ADD_LIBRARY_WITH_PATH(gd, $PHP_GD/$PHP_LIBDIR, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBGD, 1, [ ]) + ],[ + AC_MSG_ERROR([Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD]) + ],[ + -L$PHP_GD/$PHP_LIBDIR + ]) + PHP_GD_CHECK_VERSION + + PHP_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE) + fi +fi + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS)) + + if test "$GD_MODULE_TYPE" = "builtin"; then + PHP_ADD_BUILD_DIR($ext_builddir/libgd) + GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS" + GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/" + + PHP_TEST_BUILD(foobar, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ], [char foobar () {}]) + else + GD_HEADER_DIRS="ext/gd/" + GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" + PHP_ADD_INCLUDE($GD_INCLUDE) + PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ]) + fi + + PHP_INSTALL_HEADERS([$GD_HEADER_DIRS]) + PHP_SUBST(GDLIB_CFLAGS) + PHP_SUBST(GD_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/gettext/config.m4 b/tests/fixtures/ext/gettext/config.m4 new file mode 100644 index 000000000..24dddd3a4 --- /dev/null +++ b/tests/fixtures/ext/gettext/config.m4 @@ -0,0 +1,50 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(gettext,for GNU gettext support, +[ --with-gettext[=DIR] Include GNU gettext support]) + +if test "$PHP_GETTEXT" != "no"; then + for i in $PHP_GETTEXT /usr/local /usr; do + test -r $i/include/libintl.h && GETTEXT_DIR=$i && break + done + + if test -z "$GETTEXT_DIR"; then + AC_MSG_ERROR(Cannot locate header file libintl.h) + fi + + GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR + GETTEXT_INCDIR=$GETTEXT_DIR/include + + O_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" + AC_CHECK_LIB(intl, bindtextdomain, [ + GETTEXT_LIBS=intl + GETTEXT_CHECK_IN_LIB=intl + ], + AC_CHECK_LIB(c, bindtextdomain, [ + GETTEXT_LIBS= + GETTEXT_CHECK_IN_LIB=c + ],[ + AC_MSG_ERROR(Unable to find required gettext library) + ]) + ) + LDFLAGS=$O_LDFLAGS + + AC_DEFINE(HAVE_LIBINTL,1,[ ]) + PHP_NEW_EXTENSION(gettext, gettext.c, $ext_shared) + PHP_SUBST(GETTEXT_SHARED_LIBADD) + + if test -n "$GETTEXT_LIBS"; then + PHP_ADD_LIBRARY_WITH_PATH($GETTEXT_LIBS, $GETTEXT_LIBDIR, GETTEXT_SHARED_LIBADD) + fi + + PHP_ADD_INCLUDE($GETTEXT_INCDIR) + + AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, ngettext, [AC_DEFINE(HAVE_NGETTEXT, 1, [ ])]) + AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, dngettext, [AC_DEFINE(HAVE_DNGETTEXT, 1, [ ])]) + AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, dcngettext, [AC_DEFINE(HAVE_DCNGETTEXT, 1, [ ])]) + AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, bind_textdomain_codeset, [AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET, 1, [ ])]) + +fi diff --git a/tests/fixtures/ext/gmp/config.m4 b/tests/fixtures/ext/gmp/config.m4 new file mode 100644 index 000000000..2140aaf70 --- /dev/null +++ b/tests/fixtures/ext/gmp/config.m4 @@ -0,0 +1,36 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(gmp, for GNU MP support, +[ --with-gmp[=DIR] Include GNU MP support]) + +if test "$PHP_GMP" != "no"; then + + for i in $PHP_GMP /usr/local /usr; do + test -f $i/include/gmp.h && GMP_DIR=$i && break + done + + if test -z "$GMP_DIR"; then + AC_MSG_ERROR(Unable to locate gmp.h) + fi + + PHP_CHECK_LIBRARY(gmp, __gmp_randinit_lc_2exp_size, + [],[ + PHP_CHECK_LIBRARY(gmp, gmp_randinit_lc_2exp_size, + [],[ + AC_MSG_ERROR([GNU MP Library version 4.1.2 or greater required.]) + ],[ + -L$GMP_DIR/$PHP_LIBDIR + ]) + ],[ + -L$GMP_DIR/$PHP_LIBDIR + ]) + + PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/$PHP_LIBDIR, GMP_SHARED_LIBADD) + PHP_ADD_INCLUDE($GMP_DIR/include) + + PHP_NEW_EXTENSION(gmp, gmp.c, $ext_shared) + PHP_SUBST(GMP_SHARED_LIBADD) + AC_DEFINE(HAVE_GMP, 1, [ ]) +fi diff --git a/tests/fixtures/ext/hash/config.m4 b/tests/fixtures/ext/hash/config.m4 new file mode 100644 index 000000000..44c6d267b --- /dev/null +++ b/tests/fixtures/ext/hash/config.m4 @@ -0,0 +1,40 @@ +dnl $Id$ +dnl config.m4 for extension hash + +PHP_ARG_WITH(mhash, for mhash support, +[ --with-mhash[=DIR] Include mhash support]) + +PHP_ARG_ENABLE(hash, whether to enable hash support, +[ --disable-hash Disable hash support], yes) + +if test "$PHP_MHASH" != "no"; then + if test "$PHP_HASH" = "no"; then + PHP_HASH="yes" + fi + + AC_DEFINE(PHP_MHASH_BC, 1, [ ]) +fi + +if test "$PHP_HASH" != "no"; then + AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension]) + + PHP_C_BIGENDIAN + + AC_CHECK_SIZEOF(short, 2) + AC_CHECK_SIZEOF(int, 4) + AC_CHECK_SIZEOF(long, 4) + AC_CHECK_SIZEOF(long long, 8) + + EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c hash_fnv.c hash_joaat.c" + EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ + php_hash_fnv.h php_hash_joaat.h php_hash_types.h" + + PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared) + ifdef([PHP_INSTALL_HEADERS], [ + PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS) + ]) +fi diff --git a/tests/fixtures/ext/hash/package.xml b/tests/fixtures/ext/hash/package.xml new file mode 100644 index 000000000..119cdd673 --- /dev/null +++ b/tests/fixtures/ext/hash/package.xml @@ -0,0 +1,95 @@ + + hash + pHASH Message Digest Framework + + Native implementations of common message digest algorithms using a generic factory method + + PHP + + + pollita + Sara Golemon + pollita@php.net + lead + + + mike + Michael Wallner + mike@php.net + lead + + + + + 1.1 + stable + 2005-12-00 + +Fixed PECL bug #6183 - haval source file entries missing in package.xml + +Supported Algorithms: + * md4, md5 + * sha1, sha256, sha384, sha512 + * ripemd128, ripemd160 + * tiger128, tiger160, tiger192 (3 and 4 passes) + * haval128, haval160, haval192, haval224, haval256 (3, 4 and 5 passes) + * crc32, crc32b, adler32, gost, snefru, whirlpool + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/iconv/config.m4 b/tests/fixtures/ext/iconv/config.m4 new file mode 100644 index 000000000..10d21ccc6 --- /dev/null +++ b/tests/fixtures/ext/iconv/config.m4 @@ -0,0 +1,180 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(iconv, for iconv support, +[ --without-iconv[=DIR] Exclude iconv support], yes) + +if test "$PHP_ICONV" != "no"; then + + PHP_SETUP_ICONV(ICONV_SHARED_LIBADD, [ + iconv_avail="yes"; + ],[ + iconv_avail="no"; + ]) + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break + fi + done + if test -z "$PHP_ICONV_PREFIX"; then + PHP_ICONV_PREFIX="/usr" + fi + else + PHP_ICONV_PREFIX="$ICONV_DIR" + fi + + CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" + LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" + + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" + else + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" + fi + + AC_MSG_CHECKING([if iconv is glibc's]) + AC_TRY_LINK([#include ],[gnu_get_libc_version();], + [ + AC_MSG_RESULT(yes) + iconv_impl_name="glibc" + ],[ + AC_MSG_RESULT(no) + ]) + + if test -z "$iconv_impl_name"; then + AC_MSG_CHECKING([if using GNU libiconv]) + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + AC_TRY_RUN([ +#include <$PHP_ICONV_H_PATH> +int main() { + printf("%d", _libiconv_version); + return 0; +} + ],[ + AC_MSG_RESULT(yes) + iconv_impl_name="gnu_libiconv" + ],[ + AC_MSG_RESULT(no) + LDFLAGS="$php_iconv_old_ld" + ],[ + AC_MSG_RESULT(no, cross-compiling) + LDFLAGS="$php_iconv_old_ld" + ]) + fi + + if test -z "$iconv_impl_name"; then + AC_MSG_CHECKING([if iconv is Konstantin Chuguev's]) + AC_TRY_LINK([#include ],[iconv_ccs_init(NULL, NULL);], + [ + AC_MSG_RESULT(yes) + iconv_impl_name="bsd" + ],[ + AC_MSG_RESULT(no) + ]) + fi + + if test -z "$iconv_impl_name"; then + AC_MSG_CHECKING([if using IBM iconv]) + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + AC_TRY_LINK([#include ],[cstoccsid("");], + [ + AC_MSG_RESULT(yes) + iconv_impl_name="ibm" + ],[ + AC_MSG_RESULT(no) + LDFLAGS="$php_iconv_old_ld" + ]) + fi + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_ibm_iconv.h + + case "$iconv_impl_name" in + gnu_libiconv [)] + PHP_DEFINE([PHP_ICONV_IMPL],[\"libiconv\"],[ext/iconv]) + AC_DEFINE([PHP_ICONV_IMPL],["libiconv"],[Which iconv implementation to use]) + PHP_DEFINE([HAVE_LIBICONV],1,[ext/iconv]) + PHP_ADD_LIBRARY_WITH_PATH(iconv, "$PHP_ICONV_PREFIX/$PHP_LIBDIR", ICONV_SHARED_LIBADD) + ;; + + bsd [)] + PHP_DEFINE([HAVE_BSD_ICONV],1,[ext/iconv]) + AC_DEFINE([HAVE_BSD_ICONV],1,[Konstantin Chuguev's iconv implementation]) + PHP_DEFINE([PHP_ICONV_IMPL],[\"BSD iconv\"],[ext/iconv]) + AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use]) + ;; + + glibc [)] + PHP_DEFINE([HAVE_GLIBC_ICONV],1,[ext/iconv]) + AC_DEFINE([HAVE_GLIBC_ICONV],1,[glibc's iconv implementation]) + PHP_DEFINE([PHP_ICONV_IMPL],[\"glibc\"],[ext/iconv]) + AC_DEFINE([PHP_ICONV_IMPL],["glibc"],[Which iconv implementation to use]) + ;; + ibm [)] + PHP_DEFINE([HAVE_IBM_ICONV],1,[ext/iconv]) + AC_DEFINE([HAVE_IBM_ICONV],1,[IBM iconv implementation]) + PHP_DEFINE([PHP_ICONV_IMPL],[\"IBM iconv\"],[ext/iconv]) + AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use]) + ;; + esac + + AC_MSG_CHECKING([if iconv supports errno]) + AC_TRY_RUN([ +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd; + cd = iconv_open( "*blahblah*", "*blahblah*" ); + if (cd == (iconv_t)(-1)) { + if (errno == EINVAL) { + return 0; + } else { + return 1; + } + } + iconv_close( cd ); + return 2; +} + ],[ + AC_MSG_RESULT(yes) + PHP_DEFINE([ICONV_SUPPORTS_ERRNO],1,[ext/iconv]) + AC_DEFINE([ICONV_SUPPORTS_ERRNO],1,[Whether iconv supports error no or not]) + ],[ + AC_MSG_RESULT(no) + PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv]) + AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not]) + ],[ + AC_MSG_RESULT(no, cross-compiling) + PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv]) + AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not]) + ]) + + AC_MSG_CHECKING([if your cpp allows macro usage in include lines]) + AC_TRY_COMPILE([ +#define FOO <$PHP_ICONV_H_PATH> +#include FOO + ], [], [ + AC_MSG_RESULT([yes]) + PHP_DEFINE([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>],[ext/iconv]) + AC_DEFINE_UNQUOTED([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>], [Path to iconv.h]) + ], [ + AC_MSG_RESULT([no]) + ]) + + PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared,, [-I\"$PHP_ICONV_PREFIX/include\"]) + PHP_SUBST(ICONV_SHARED_LIBADD) + PHP_INSTALL_HEADERS([ext/iconv/]) + else + AC_MSG_ERROR(Please reinstall the iconv library.) + fi +fi diff --git a/tests/fixtures/ext/imap/config.m4 b/tests/fixtures/ext/imap/config.m4 new file mode 100644 index 000000000..d664215e6 --- /dev/null +++ b/tests/fixtures/ext/imap/config.m4 @@ -0,0 +1,278 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([IMAP_INC_CHK],[if test -r "$i$1/c-client.h"; then + AC_DEFINE(HAVE_IMAP2000, 1, [ ]) + IMAP_DIR=$i + IMAP_INC_DIR=$i$1 + break + elif test -r "$i$1/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i$1 + break +]) + +AC_DEFUN([IMAP_LIB_CHK],[ + str="$IMAP_DIR/$1/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/$1 && break 2 + done +]) + +dnl PHP_IMAP_TEST_BUILD(function, action-if-ok, action-if-not-ok, extra-libs) +AC_DEFUN([PHP_IMAP_TEST_BUILD], [ + PHP_TEST_BUILD([$1], [$2], [$3], [$4], + [ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + ]) +]) + +AC_DEFUN([PHP_IMAP_KRB_CHK], [ + if test "$PHP_KERBEROS" != "no"; then + PHP_SETUP_KERBEROS(IMAP_SHARED_LIBADD, + [ + AC_DEFINE(HAVE_IMAP_KRB,1,[ ]) + ], [ + AC_MSG_ERROR([Kerberos libraries not found. + + Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) + ]) + ]) + else + AC_EGREP_HEADER(auth_gss, $IMAP_INC_DIR/linkage.h, [ + AC_MSG_ERROR([This c-client library is built with Kerberos support. + + Add --with-kerberos to your configure line. Check config.log for details. + ]) + ]) + fi +]) + +AC_DEFUN([PHP_IMAP_SSL_CHK], [ + if test "$PHP_IMAP_SSL" != "no"; then + if test "$PHP_OPENSSL" = ""; then + PHP_OPENSSL='no' + fi + PHP_SETUP_OPENSSL(IMAP_SHARED_LIBADD, + [ + AC_DEFINE(HAVE_IMAP_SSL,1,[ ]) + ], [ + AC_MSG_ERROR([OpenSSL libraries not found. + + Check the path given to --with-openssl-dir and output in config.log) + ]) + ]) + elif test -f "$IMAP_INC_DIR/linkage.c"; then + AC_EGREP_HEADER(ssl_onceonlyinit, $IMAP_INC_DIR/linkage.c, [ + AC_MSG_ERROR([This c-client library is built with SSL support. + + Add --with-imap-ssl to your configure line. Check config.log for details. + ]) + ]) + fi +]) + + +PHP_ARG_WITH(imap,for IMAP support, +[ --with-imap[=DIR] Include IMAP support. DIR is the c-client install prefix]) + +PHP_ARG_WITH(kerberos,for IMAP Kerberos support, +[ --with-kerberos[=DIR] IMAP: Include Kerberos support. DIR is the Kerberos install prefix], no, no) + +PHP_ARG_WITH(imap-ssl,for IMAP SSL support, +[ --with-imap-ssl[=DIR] IMAP: Include SSL support. DIR is the OpenSSL install prefix], no, no) + + +if test "$PHP_IMAP" != "no"; then + PHP_SUBST(IMAP_SHARED_LIBADD) + PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared) + AC_DEFINE(HAVE_IMAP,1,[ ]) + + for i in $PHP_IMAP /usr/local /usr; do + IMAP_INC_CHK() + el[]IMAP_INC_CHK(/include/c-client) + el[]IMAP_INC_CHK(/include/imap) + el[]IMAP_INC_CHK(/include) + el[]IMAP_INC_CHK(/imap) + el[]IMAP_INC_CHK(/c-client) + fi + done + + dnl Check for c-client version 2004 + AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [ + AC_DEFINE(HAVE_IMAP2004,1,[ ]) + ]) + + dnl Check for new version of the utf8_mime2text() function + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + AC_CACHE_CHECK(for utf8_mime2text signature, ac_cv_utf8_mime2text, + AC_TRY_COMPILE([ +#include +#include + ],[ + SIZEDTEXT *src, *dst; + utf8_mime2text(src, dst); + ],[ + ac_cv_utf8_mime2text=old + ],[ + ac_cv_utf8_mime2text=new + ]) + ) + if test "$ac_cv_utf8_mime2text" = "new"; then + AC_DEFINE(HAVE_NEW_MIME2TEXT, 1, [Whether utf8_mime2text() has new signature]) + fi + CFLAGS=$old_CFLAGS + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + AC_CACHE_CHECK(for U8T_DECOMPOSE, ac_cv_u8t_canonical, + AC_TRY_COMPILE([ +#include + ],[ + int i = U8T_CANONICAL; + ],[ + ac_cv_u8t_decompose=yes + ],[ + ac_cv_u8t_decompose=no + ]) + ) + CFLAGS=$old_CFLAGS + + if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then + AC_MSG_ERROR([utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.]) + fi + if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then + AC_MSG_ERROR([utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information.]) + fi + + dnl Check for c-client version 2001 + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$IMAP_INC_DIR + AC_EGREP_CPP(this_is_true, [ +#include "imap4r1.h" +#if defined(IMAPSSLPORT) + this_is_true +#endif + ],[ + AC_DEFINE(HAVE_IMAP2001, 1, [ ]) + ],[]) + CPPFLAGS=$old_CPPFLAGS + + PHP_CHECK_LIBRARY(pam, pam_start, + [ + PHP_ADD_LIBRARY(pam,, IMAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBPAM,1,[ ]) + ]) + + PHP_CHECK_LIBRARY(crypt, crypt, + [ + PHP_ADD_LIBRARY(crypt,, IMAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBCRYPT,1,[ ]) + ]) + + PHP_EXPAND_PATH($IMAP_DIR, IMAP_DIR) + + if test -z "$IMAP_DIR"; then + AC_MSG_ERROR(Cannot find rfc822.h. Please check your c-client installation.) + fi + + if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then + ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then + ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 + fi + + for lib in c-client4 c-client imap; do + IMAP_LIB=$lib + IMAP_LIB_CHK($PHP_LIBDIR) + IMAP_LIB_CHK(c-client) + done + + if test -z "$IMAP_LIBDIR"; then + AC_MSG_ERROR(Cannot find imap library (libc-client.a). Please check your c-client installation.) + fi + + PHP_ADD_INCLUDE($IMAP_INC_DIR) + PHP_ADD_LIBRARY_DEFER($IMAP_LIB,, IMAP_SHARED_LIBADD) + PHP_ADD_LIBPATH($IMAP_LIBDIR, IMAP_SHARED_LIBADD) + PHP_IMAP_KRB_CHK + PHP_IMAP_SSL_CHK + + dnl Test the build in the end + TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD" + + dnl Check if auth_gss exists + PHP_IMAP_TEST_BUILD(auth_gssapi_valid, [ + AC_DEFINE(HAVE_IMAP_AUTH_GSS, 1, [ ]) + ], [], $TST_LIBS) + + dnl Check if utf8_to_mutf7 exists + PHP_IMAP_TEST_BUILD(utf8_to_mutf7, [ + AC_DEFINE(HAVE_IMAP_MUTF7, 1, [ ]) + ], [], $TST_LIBS) + + AC_MSG_CHECKING(whether rfc822_output_address_list function present) + PHP_TEST_BUILD(foobar, [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_RFC822_OUTPUT_ADDRESS_LIST, 1, [ ]) + ], [ + AC_MSG_RESULT(no) + ], [ + $TST_LIBS + ], [ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + void rfc822_output_address_list(void); + void (*f)(void); + char foobar () {f = rfc822_output_address_list;} + ]) + + AC_MSG_CHECKING(whether build with IMAP works) + PHP_IMAP_TEST_BUILD(mail_newbody, [ + AC_MSG_RESULT(yes) + ], [ + AC_MSG_RESULT(no) + AC_MSG_ERROR([build test failed. Please check the config.log for details.]) + ], $TST_LIBS) +fi diff --git a/tests/fixtures/ext/interbase/config.m4 b/tests/fixtures/ext/interbase/config.m4 new file mode 100644 index 000000000..6aa1b368c --- /dev/null +++ b/tests/fixtures/ext/interbase/config.m4 @@ -0,0 +1,42 @@ +PHP_ARG_WITH(interbase,for InterBase support, +[ --with-interbase[=DIR] Include InterBase support. DIR is the InterBase base + install directory [/usr/interbase]]) + +if test "$PHP_INTERBASE" != "no"; then + if test "$PHP_INTERBASE" = "yes"; then + IBASE_INCDIR=/usr/interbase/include + IBASE_LIBDIR=/usr/interbase/lib + else + IBASE_INCDIR=$PHP_INTERBASE/include + IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR + fi + + PHP_CHECK_LIBRARY(fbclient, isc_detach_database, + [ + IBASE_LIBNAME=fbclient + ], [ + PHP_CHECK_LIBRARY(gds, isc_detach_database, + [ + IBASE_LIBNAME=gds + ], [ + PHP_CHECK_LIBRARY(ib_util, isc_detach_database, + [ + IBASE_LIBNAME=ib_util + ], [ + AC_MSG_ERROR([libgds, libib_util or libfbclient not found! Check config.log for more information.]) + ], [ + -L$IBASE_LIBDIR + ]) + ], [ + -L$IBASE_LIBDIR + ]) + ], [ + -L$IBASE_LIBDIR + ]) + + PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD) + PHP_ADD_INCLUDE($IBASE_INCDIR) + AC_DEFINE(HAVE_IBASE,1,[ ]) + PHP_NEW_EXTENSION(interbase, interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c, $ext_shared) + PHP_SUBST(INTERBASE_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/intl/config.m4 b/tests/fixtures/ext/intl/config.m4 new file mode 100644 index 000000000..4630a302e --- /dev/null +++ b/tests/fixtures/ext/intl/config.m4 @@ -0,0 +1,105 @@ +dnl config.m4 for extension intl + +dnl ########################################################################## +dnl Initialize the extension +PHP_ARG_ENABLE(intl, whether to enable internationalization support, +[ --enable-intl Enable internationalization support]) + +if test "$PHP_INTL" != "no"; then + PHP_SETUP_ICU(INTL_SHARED_LIBADD) + PHP_SUBST(INTL_SHARED_LIBADD) + PHP_REQUIRE_CXX() + if test "$icu_version" -ge "4002"; then + icu_spoof_src=" spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c" + else + icu_spoof_src="" + fi + PHP_NEW_EXTENSION(intl, php_intl.c \ + intl_error.c \ + intl_convert.c \ + intl_convertcpp.cpp \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + common/common_enum.cpp \ + common/common_date.cpp \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_format_object.cpp \ + dateformat/dateformat_parse.c \ + dateformat/dateformat_create.cpp \ + dateformat/dateformat_attrcpp.cpp \ + dateformat/dateformat_helpers.cpp \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_helpers.cpp \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + timezone/timezone_class.cpp \ + timezone/timezone_methods.cpp \ + calendar/calendar_class.cpp \ + calendar/calendar_methods.cpp \ + calendar/gregoriancalendar_methods.cpp \ + breakiterator/breakiterator_class.cpp \ + breakiterator/breakiterator_iterators.cpp \ + breakiterator/breakiterator_methods.cpp \ + breakiterator/rulebasedbreakiterator_methods.cpp \ + breakiterator/codepointiterator_internal.cpp \ + breakiterator/codepointiterator_methods.cpp \ + idn/idn.c \ + $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings) + PHP_ADD_BUILD_DIR($ext_builddir/collator) + PHP_ADD_BUILD_DIR($ext_builddir/converter) + PHP_ADD_BUILD_DIR($ext_builddir/common) + PHP_ADD_BUILD_DIR($ext_builddir/formatter) + PHP_ADD_BUILD_DIR($ext_builddir/normalizer) + PHP_ADD_BUILD_DIR($ext_builddir/dateformat) + PHP_ADD_BUILD_DIR($ext_builddir/locale) + PHP_ADD_BUILD_DIR($ext_builddir/msgformat) + PHP_ADD_BUILD_DIR($ext_builddir/grapheme) + PHP_ADD_BUILD_DIR($ext_builddir/resourcebundle) + PHP_ADD_BUILD_DIR($ext_builddir/transliterator) + PHP_ADD_BUILD_DIR($ext_builddir/timezone) + PHP_ADD_BUILD_DIR($ext_builddir/calendar) + PHP_ADD_BUILD_DIR($ext_builddir/idn) + PHP_ADD_BUILD_DIR($ext_builddir/spoofchecker) + PHP_ADD_BUILD_DIR($ext_builddir/breakiterator) +fi diff --git a/tests/fixtures/ext/json/config.m4 b/tests/fixtures/ext/json/config.m4 new file mode 100644 index 000000000..26c43a0e3 --- /dev/null +++ b/tests/fixtures/ext/json/config.m4 @@ -0,0 +1,15 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(json, whether to enable JavaScript Object Serialization support, +[ --disable-json Disable JavaScript Object Serialization support], yes) + +if test "$PHP_JSON" != "no"; then + AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support]) + AC_HEADER_STDC + + PHP_NEW_EXTENSION(json, json.c utf8_decode.c JSON_parser.c, $ext_shared) + PHP_INSTALL_HEADERS([ext/json], [php_json.h]) + PHP_SUBST(JSON_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/json/package.xml b/tests/fixtures/ext/json/package.xml new file mode 100644 index 000000000..0651de736 --- /dev/null +++ b/tests/fixtures/ext/json/package.xml @@ -0,0 +1,152 @@ + + + + + json + JavaScript Object Notation + + + omar + Omar Kilani + omar@php.net + lead + + + + Support for JSON (JavaScript Object Notation) serialization. + + PHP 3.01 + + stable + 1.2.1 + 2006-03-18 + + Fix PECL bug #7147 - rework handling of comma insertion while encoding. + Add tests to package.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + stable + 1.0.0 + 2005-04-01 + + Initial release. + + + + stable + 1.0.1 + 2005-06-10 + + Fixed non-linear and mixed type array index issues, fixed issues with escaping \\, forked json-c and added Unicode support. + + + + stable + 1.0.2 + 2005-06-11 + + Fixed issues with object reference counts under PHP4. + + + + stable + 1.0.3 + 2005-06-15 + + Fixed json-c string corruption issues under Mac OS X and FreeBSD. + + + + stable + 1.0.4 + 2005-06-15 + + Changes in 1.0.4 released with 1.0.5. + + + + stable + 1.0.5 + 2005-06-16 + + Changed spacing in json-c encoding, added optional assoc (boolean) parameter to json_decode to decode as associative array instead of object, fixed issues with escaping /. + + + + stable + 1.0.6 + 2005-08-05 + + Fixed issues with exporting private and protected class members. + + + + stable + 1.0.7 + 2005-09-07 + + Fixed issues with negative array keys, modified json-c to return an error on unquoted object key names instead of going into an infinite loop. + + + + stable + 1.0.8 + 2005-12-01 + + Changed license to LGPL, modified build system to allow static compilation into PHP, added strndup check for json-c. + + + + stable + 1.1.0 + 2005-12-04 + + Port to Win32. + + + + stable + 1.1.1 + 2006-01-12 + + Cleanup and TSRM performance fixes by rasmus. + + + + stable + 1.2.0 + 2006-03-15 + + Complete rewrite using JSON_checker as the base for the parser. Implements the JSON specification. 3-8x faster on encodes and 1.2x-4x faster on decodes. + + + + + diff --git a/tests/fixtures/ext/jsonc/package.xml b/tests/fixtures/ext/jsonc/package.xml new file mode 100644 index 000000000..e6d59c1f3 --- /dev/null +++ b/tests/fixtures/ext/jsonc/package.xml @@ -0,0 +1,420 @@ + + + jsonc + pecl.php.net + JavaScript Object Notation + Support for JSON (JavaScript Object Notation) serialization. +This is a drop-in alternative to PHP standard json extension. + + Remi Collet + remi + remi@php.net + yes + + 2014-04-10 + + + 1.3.5 + 1.3.0 + + + stable + stable + + PHP 3.01 + +- libjson-c CVE-2013-6371: hash collision denial of service +- libjson-c CVE-2013-6370: buffer overflow if size_t is larger than int + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.4.0 + + + 1.9.0 + + + + json + + + + + 1.0.0 + 1.0.0 + + + stable + stable + + 2005-04-01 + PHP 3.01 + +Initial release. + + + + + 1.0.1 + 1.0.1 + + + stable + stable + + 2005-06-10 + PHP 3.01 + +Fixed non-linear and mixed type array index issues, fixed issues with escaping \\, forked json-c and added Unicode support. + + + + + 1.0.2 + 1.0.2 + + + stable + stable + + 2005-06-11 + PHP 3.01 + +Fixed issues with object reference counts under PHP4. + + + + + 1.0.3 + 1.0.3 + + + stable + stable + + 2005-06-15 + PHP 3.01 + +Fixed json-c string corruption issues under Mac OS X and FreeBSD. + + + + + 1.0.4 + 1.0.4 + + + stable + stable + + 2005-06-15 + PHP 3.01 + +Changes in 1.0.4 released with 1.0.5. + + + + + 1.0.5 + 1.0.5 + + + stable + stable + + 2005-06-16 + PHP 3.01 + +Changed spacing in json-c encoding, added optional assoc (boolean) parameter to json_decode to decode as associative array instead of object, fixed issues with escaping /. + + + + + 1.0.6 + 1.0.6 + + + stable + stable + + 2005-08-05 + PHP 3.01 + +Fixed issues with exporting private and protected class members. + + + + + 1.0.7 + 1.0.7 + + + stable + stable + + 2005-09-07 + PHP 3.01 + +Fixed issues with negative array keys, modified json-c to return an error on unquoted object key names instead of going into an infinite loop. + + + + + 1.0.8 + 1.0.8 + + + stable + stable + + 2005-12-01 + PHP 3.01 + +Changed license to LGPL, modified build system to allow static compilation into PHP, added strndup check for json-c. + + + + + 1.1.0 + 1.1.0 + + + stable + stable + + 2005-12-04 + PHP 3.01 + +Port to Win32. + + + + + 1.1.1 + 1.1.1 + + + stable + stable + + 2006-01-12 + PHP 3.01 + +Cleanup and TSRM performance fixes by rasmus. + + + + + 1.2.0 + 1.2.0 + + + stable + stable + + 2006-03-15 + PHP 3.01 + +Complete rewrite using JSON_checker as the base for the parser. Implements the JSON specification. 3-8x faster on encodes and 1.2x-4x faster on decodes. + + + + + 1.2.1 + 1.2.1 + + + stable + stable + + 2006-03-18 + PHP 3.01 + +Fix PECL bug #7147 - rework handling of comma insertion while encoding. +Add tests to package.xml + + + + + 1.3.0 + 1.3.0 + + + beta + stable + + 2013-06-04 + PHP 3.01 + +Version 1.3.0 is Major rewrite which use the use json-c library 0.11: +- json_decode use json-c parser +- add JsonIncrementalParser class +- temporarily rename as jsonc + + + + + 1.3.1 + 1.3.0 + + + beta + stable + + 2013-06-12 + PHP 3.01 + +- windows build support (thanks to weltling) +- build as json.so or jsonc.so (--with-jsonc option) +- rename LIBJSON_VERSION to HAVE_LIBJSON (internal only) +- parse 64 bits integer as float, or string, on 32 bits build + + + + + 1.3.2 + 1.3.0 + + + stable + stable + + 2013-09-09 + PHP 3.01 + +- number must not have leading zeroes (json-c library pr #90, merged) +- string must be double-quoted (json-c library PR #94, merged) +- comment are not allowed (json-c library PR #94, merged) +- trailing char after data not allowed (json-c library PR #94, merged) +- add JSON_C_BUNDLED and JSON_C_VERSION constants + + + + + 1.3.3 + 1.3.0 + + + stable + stable + + 2013-12-12 + PHP 3.01 + +- properly decode string value with null-byte +- allow to build in php tree +- drop confusing warning about JSON_BIGINT_AS_STRING +- add E_NOTICE "integer overflow detected" + + + + + 1.3.4 + 1.3.0 + + + stable + stable + + 2014-02-22 + PHP 3.01 + +- Fixed bug #65753 JsonSerializeable couldn't implement on module extension + + + + diff --git a/tests/fixtures/ext/ldap/config.m4 b/tests/fixtures/ext/ldap/config.m4 new file mode 100644 index 000000000..2804cd596 --- /dev/null +++ b/tests/fixtures/ext/ldap/config.m4 @@ -0,0 +1,226 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([PHP_LDAP_CHECKS], [ + if test -f $1/include/ldap.h; then + LDAP_DIR=$1 + LDAP_INCDIR=$1/include + LDAP_LIBDIR=$1/$PHP_LIBDIR + elif test -f $1/include/umich-ldap/ldap.h; then + LDAP_DIR=$1 + LDAP_INCDIR=$1/include/umich-ldap + LDAP_LIBDIR=$1/$PHP_LIBDIR + elif test -f $1/ldap/public/ldap.h; then + LDAP_DIR=$1 + LDAP_INCDIR=$1/ldap/public + LDAP_LIBDIR=$1/$PHP_LIBDIR + else + + dnl Find Oracle Instant Client RPM header location corresponding to the given lib path e.g. for --with-ldap=/usr/lib/oracle/12.1/client64/lib + AC_CHECK_SIZEOF(long int, 4) + if test "$ac_cv_sizeof_long_int" = "4"; then + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + OCISDKRPMINC=`echo "$1" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib[/]*$!/usr/include/oracle/\1/client\2!'` + + dnl Check for Oracle Instant Client RPM install + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$1 + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$1 + dnl Check for Oracle Instant Client ZIP install + elif test -f $1/sdk/include/ldap.h; then + LDAP_DIR=$1 + LDAP_INCDIR=$1/sdk/include + LDAP_LIBDIR=$1 + fi + fi +]) + +AC_DEFUN([PHP_LDAP_SASL_CHECKS], [ + if test "$1" = "yes"; then + SEARCH_DIRS="/usr/local /usr" + else + SEARCH_DIRS=$1 + fi + + for i in $SEARCH_DIRS; do + if test -f $i/include/sasl/sasl.h; then + LDAP_SASL_DIR=$i + AC_DEFINE(HAVE_LDAP_SASL_SASL_H,1,[ ]) + break + elif test -f $i/include/sasl.h; then + LDAP_SASL_DIR=$i + AC_DEFINE(HAVE_LDAP_SASL_H,1,[ ]) + break + fi + done + + if test "$LDAP_SASL_DIR"; then + LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include + LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR + else + AC_MSG_ERROR([sasl.h not found!]) + fi + + if test "$PHP_LDAP_SASL" = "yes"; then + SASL_LIB="-lsasl2" + else + SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2" + fi + + PHP_CHECK_LIBRARY(sasl2, sasl_version, + [ + PHP_ADD_INCLUDE($LDAP_SASL_INCDIR) + PHP_ADD_LIBRARY_WITH_PATH(sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LDAP_SASL, 1, [LDAP SASL support]) + ], [ + AC_MSG_ERROR([LDAP SASL check failed. Please check config.log for more information.]) + ], [ + $LDAP_SHARED_LIBADD $SASL_LIB + ]) +]) + +PHP_ARG_WITH(ldap,for LDAP support, +[ --with-ldap[=DIR] Include LDAP support]) + +PHP_ARG_WITH(ldap-sasl,for LDAP Cyrus SASL support, +[ --with-ldap-sasl[=DIR] LDAP: Include Cyrus SASL support], no, no) + +if test "$PHP_LDAP" != "no"; then + + PHP_NEW_EXTENSION(ldap, ldap.c, $ext_shared,,-DLDAP_DEPRECATED=1) + + if test "$PHP_LDAP" = "yes"; then + for i in /usr/local /usr; do + PHP_LDAP_CHECKS($i) + done + else + PHP_LDAP_CHECKS($PHP_LDAP) + fi + + if test -z "$LDAP_DIR"; then + AC_MSG_ERROR(Cannot find ldap.h) + fi + + dnl The Linux version of the SDK need -lpthread + dnl I have tested Solaris, and it doesn't, but others may. Add + dnl these here if necessary. -RL + dnl Is this really necessary? -Troels Arvin + + if test `uname` = "Linux"; then + LDAP_PTHREAD=pthread + else + LDAP_PTHREAD= + fi + + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then + PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + + elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then + PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + + elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + PHP_ADD_LIBRARY($LDAP_PTHREAD) + fi + PHP_ADD_LIBRARY_WITH_PATH(nspr4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(plc4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(plds4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ssldap50, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ldap50, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(prldap50, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ssl3, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_NSLDAP,1,[ ]) + + elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + PHP_ADD_LIBRARY($LDAP_PTHREAD) + fi + PHP_ADD_LIBRARY_WITH_PATH(nspr3, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(plc3, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(plds3, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ldapssl41, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_NSLDAP,1,[ ]) + + elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + PHP_ADD_LIBRARY($LDAP_PTHREAD) + fi + PHP_ADD_LIBRARY_WITH_PATH(ldapssl30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_NSLDAP,1,[ ]) + + elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + PHP_ADD_LIBRARY($LDAP_PTHREAD) + fi + PHP_ADD_LIBRARY_WITH_PATH(ldap30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_NSLDAP,1,[ ]) + + elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then + PHP_ADD_LIBRARY_WITH_PATH(umich_lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(umich_ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then + PHP_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_ORALDAP,1,[ ]) + AC_DEFINE(HAVE_ORALDAP_12,1,[ ]) + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + PHP_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_ORALDAP,1,[ ]) + AC_DEFINE(HAVE_ORALDAP_11,1,[ ]) + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then + PHP_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_ORALDAP,1,[ ]) + AC_DEFINE(HAVE_ORALDAP_10,1,[ ]) + + else + AC_MSG_ERROR(Cannot find ldap libraries in $LDAP_LIBDIR.) + fi + + PHP_ADD_INCLUDE($LDAP_INCDIR) + PHP_SUBST(LDAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LDAP,1,[ ]) + + dnl Save original values + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LIBS="$LIBS $LDAP_SHARED_LIBADD" + + dnl Check for 3 arg ldap_set_rebind_proc + AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc, + [AC_TRY_COMPILE([#include ], [ldap_set_rebind_proc(0,0,0)], + ac_cv_3arg_setrebindproc=yes, ac_cv_3arg_setrebindproc=no)]) + if test "$ac_cv_3arg_setrebindproc" = yes; then + AC_DEFINE(HAVE_3ARG_SETREBINDPROC,1,[Whether 3 arg set_rebind_proc()]) + fi + + dnl Solaris 2.8 claims to be 2004 API, but doesn't have + dnl ldap_parse_reference() nor ldap_start_tls_s() + AC_CHECK_FUNCS([ldap_parse_result ldap_parse_reference ldap_start_tls_s]) + + dnl + dnl SASL check + dnl + if test "$PHP_LDAP_SASL" != "no"; then + PHP_LDAP_SASL_CHECKS([$PHP_LDAP_SASL]) + fi + + dnl + dnl Sanity check + dnl + AC_CHECK_FUNC(ldap_bind_s, [], [ + AC_MSG_ERROR([LDAP build check failed. Please check config.log for more information.]) + ]) + + dnl Restore original values + CPPFLAGS=$_SAVE_CPPFLAGS + LIBS=$_SAVE_LIBS +fi diff --git a/tests/fixtures/ext/libevent/config.m4 b/tests/fixtures/ext/libevent/config.m4 new file mode 100644 index 000000000..dd95661b4 --- /dev/null +++ b/tests/fixtures/ext/libevent/config.m4 @@ -0,0 +1,52 @@ +dnl $Id$ + +PHP_ARG_WITH(libevent, for libevent support, +[ --with-libevent Include libevent support]) + +if test "$PHP_LIBEVENT" != "no"; then + SEARCH_PATH="/usr /usr/local" + SEARCH_FOR="/include/event.h" + + if test "$PHP_LIBEVENT" = "yes"; then + AC_MSG_CHECKING([for libevent headers in default path]) + for i in $SEARCH_PATH ; do + if test -r $i/$SEARCH_FOR; then + LIBEVENT_DIR=$i + AC_MSG_RESULT(found in $i) + fi + done + else + AC_MSG_CHECKING([for libevent headers in $PHP_LIBEVENT]) + if test -r $PHP_LIBEVENT/$SEARCH_FOR; then + LIBEVENT_DIR=$PHP_LIBEVENT + AC_MSG_RESULT([found]) + fi + fi + + if test -z "$LIBEVENT_DIR"; then + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Cannot find libevent headers]) + fi + + PHP_ADD_INCLUDE($LIBEVENT_DIR/include) + + LIBNAME=event + LIBSYMBOL=event_base_new + + if test "x$PHP_LIBDIR" = "x"; then + PHP_LIBDIR=lib + fi + + PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, + [ + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $LIBEVENT_DIR/$PHP_LIBDIR, LIBEVENT_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([wrong libevent version {1.4.+ is required} or lib not found]) + ],[ + -L$LIBEVENT_DIR/$PHP_LIBDIR + ]) + + PHP_ADD_EXTENSION_DEP(libevent, sockets, true) + PHP_SUBST(LIBEVENT_SHARED_LIBADD) + PHP_NEW_EXTENSION(libevent, libevent.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/libevent/package.xml b/tests/fixtures/ext/libevent/package.xml new file mode 100644 index 000000000..65cfbdb33 --- /dev/null +++ b/tests/fixtures/ext/libevent/package.xml @@ -0,0 +1,131 @@ + + + libevent + pecl.php.net + Libevent - event notification + This extension is a wrapper for libevent - event notification library. + + Antony Dovgal + tony2001 + tony2001@php.net + yes + + + Arnaud Le Blanc + lbarnaud + lbarnaud@php.net + yes + + 2013-05-22 + + + 0.1.0 + 0.1.0 + + + beta + beta + + PHP + +- Added event_base_reinit(). (Ivan Shalganov, Andy Skelton) +- Added config.w32. (bruno at chalopin dot fr) +- Fixed windows compilation with libevent 2.x. (Anatol Belski) +- Fixed bug #61673 (callback function args are wrong for signal handler). +- Fixed bug #61653 (Segfault on event_free()). + + + + + + + + + + + + + + 5.3.0 + 6.0.0 + 6.0.0 + + + 1.4.0b1 + + + + libevent + + + + + + 2012-04-02 + + + 0.0.5 + 0.0.5 + + + beta + beta + + PHP + +- Fixed build with museum PHP versions. +- Fixed PECL bug #22705 (event_set() resets event base to NULL). +- Changed event_set(), event_buffer_new() and event_buffer_set_fd() to +accept numerical file descriptors. +- Added event_priority_set() (patch by Ruslan Osmanov). +- Fixed build with 5_4. + + + + 2010-06-23 + + + 0.0.4 + 0.0.4 + + + beta + beta + + PHP + +- Added signal support to event_set(). +- Added add event_buffer_set_callback(). +- Fixed possible segfault in event_del(). + + + + + beta + beta + + + 0.0.3 + 0.0.3 + + 2009-08-29 + +- Added support for sockets created with socket_create() (requires PHP 5.3.1+). + + + + + beta + beta + + + 0.0.2 + 0.0.2 + + 2009-08-29 + +Initial release (after a long testing period). + + + + diff --git a/tests/fixtures/ext/libxml/config0.m4 b/tests/fixtures/ext/libxml/config0.m4 new file mode 100644 index 000000000..14f586849 --- /dev/null +++ b/tests/fixtures/ext/libxml/config0.m4 @@ -0,0 +1,25 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(libxml, whether to enable LIBXML support, +[ --disable-libxml Disable LIBXML support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir[=DIR] LIBXML: libxml2 install prefix], no, no) +fi + +if test "$PHP_LIBXML" != "no"; then + + dnl This extension can not be build as shared + ext_shared=no + + PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [ + AC_DEFINE(HAVE_LIBXML,1,[ ]) + PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared) + PHP_INSTALL_HEADERS([ext/libxml/php_libxml.h]) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) +fi diff --git a/tests/fixtures/ext/mbstring/config.m4 b/tests/fixtures/ext/mbstring/config.m4 new file mode 100644 index 000000000..25bf23876 --- /dev/null +++ b/tests/fixtures/ext/mbstring/config.m4 @@ -0,0 +1,375 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([PHP_MBSTRING_ADD_SOURCES], [ + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_BASE_SOURCES], [ + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_BUILD_DIR], [ + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_INCLUDE], [ + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_CONFIG_HEADER], [ + PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_CFLAG], [ + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS $1" +]) + +AC_DEFUN([PHP_MBSTRING_ADD_INSTALL_HEADERS], [ + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS $1" +]) + +AC_DEFUN([PHP_MBSTRING_EXTENSION], [ + PHP_NEW_EXTENSION(mbstring, $PHP_MBSTRING_SOURCES, $ext_shared,, $PHP_MBSTRING_CFLAGS) + PHP_SUBST(MBSTRING_SHARED_LIBADD) + + for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do + PHP_ADD_BUILD_DIR([$ext_builddir/$dir], 1) + done + + for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do + PHP_ADD_INCLUDE([$ext_srcdir/$dir]) + PHP_ADD_INCLUDE([$ext_builddir/$dir]) + done + + if test "$ext_shared" = "no"; then + PHP_ADD_SOURCES(PHP_EXT_DIR(mbstring), $PHP_MBSTRING_BASE_SOURCES) + out="php_config.h" + else + PHP_ADD_SOURCES_X(PHP_EXT_DIR(mbstring),$PHP_MBSTRING_BASE_SOURCES,,shared_objects_mbstring,yes) + if test -f "$ext_builddir/config.h.in"; then + out="$abs_builddir/config.h" + else + out="php_config.h" + fi + fi + + for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do + cat > $ext_builddir/$cfg < +int foo(int x, ...) { + va_list va; + va_start(va, x); + va_arg(va, int); + va_arg(va, char *); + va_arg(va, double); + return 0; +} +int main() { return foo(10, "", 3.14); } + ], [php_cv_mbstring_stdarg=yes], [php_cv_mbstring_stdarg=no], [ + dnl cross-compile needs something here + case $host_alias in + *netware*) + php_cv_mbstring_stdarg=yes + ;; + *) + php_cv_mbstring_stdarg=no + ;; + esac + ]) + ]) + + AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h]) + AC_CHECK_SIZEOF(int, 4) + AC_CHECK_SIZEOF(short, 2) + AC_CHECK_SIZEOF(long, 4) + AC_C_CONST + AC_HEADER_TIME + AC_FUNC_ALLOCA + AC_FUNC_MEMCMP + AC_CHECK_HEADER([stdarg.h], [ + AC_DEFINE([HAVE_STDARG_PROTOTYPES], [1], [Define to 1 if you have the header file.]) + ], []) + AC_DEFINE([PHP_ONIG_BUNDLED], [1], [Define to 1 if the bundled oniguruma is used]) + AC_DEFINE([HAVE_ONIG], [1], [Define to 1 if the oniguruma library is available]) + PHP_MBSTRING_ADD_CFLAG([-DNOT_RUBY]) + PHP_MBSTRING_ADD_BUILD_DIR([oniguruma]) + PHP_MBSTRING_ADD_BUILD_DIR([oniguruma/enc]) + PHP_MBSTRING_ADD_INCLUDE([oniguruma]) + PHP_MBSTRING_ADD_CONFIG_HEADER([oniguruma/config.h]) + PHP_MBSTRING_ADD_SOURCES([ + oniguruma/regcomp.c + oniguruma/regerror.c + oniguruma/regexec.c + oniguruma/reggnu.c + oniguruma/regparse.c + oniguruma/regenc.c + oniguruma/regext.c + oniguruma/regsyntax.c + oniguruma/regtrav.c + oniguruma/regversion.c + oniguruma/st.c + oniguruma/enc/unicode.c + oniguruma/enc/ascii.c + oniguruma/enc/utf8.c + oniguruma/enc/euc_jp.c + oniguruma/enc/euc_tw.c + oniguruma/enc/euc_kr.c + oniguruma/enc/sjis.c + oniguruma/enc/iso8859_1.c + oniguruma/enc/iso8859_2.c + oniguruma/enc/iso8859_3.c + oniguruma/enc/iso8859_4.c + oniguruma/enc/iso8859_5.c + oniguruma/enc/iso8859_6.c + oniguruma/enc/iso8859_7.c + oniguruma/enc/iso8859_8.c + oniguruma/enc/iso8859_9.c + oniguruma/enc/iso8859_10.c + oniguruma/enc/iso8859_11.c + oniguruma/enc/iso8859_13.c + oniguruma/enc/iso8859_14.c + oniguruma/enc/iso8859_15.c + oniguruma/enc/iso8859_16.c + oniguruma/enc/koi8.c + oniguruma/enc/koi8_r.c + oniguruma/enc/big5.c + oniguruma/enc/utf16_be.c + oniguruma/enc/utf16_le.c + oniguruma/enc/utf32_be.c + oniguruma/enc/utf32_le.c + ]) + PHP_MBSTRING_ADD_INSTALL_HEADERS([oniguruma/oniguruma.h]) + else + dnl + dnl External oniguruma + dnl + if test ! -f "$PHP_ONIG/include/oniguruma.h"; then + AC_MSG_ERROR([oniguruma.h not found in $PHP_ONIG/include]) + fi + PHP_ADD_INCLUDE([$PHP_ONIG/include]) + + PHP_CHECK_LIBRARY(onig, onig_init, [ + PHP_ADD_LIBRARY_WITH_PATH(onig, $PHP_ONIG/$PHP_LIBDIR, MBSTRING_SHARED_LIBADD) + AC_DEFINE([HAVE_ONIG], [1], [Define to 1 if the oniguruma library is available]) + ],[ + AC_MSG_ERROR([Problem with oniguruma. Please check config.log for more information.]) + ], [ + -L$PHP_ONIG/$PHP_LIBDIR + ]) + + save_old_LDFLAGS=$LDFLAGS + PHP_EVAL_LIBLINE([$MBSTRING_SHARED_LIBADD], LDFLAGS) + AC_MSG_CHECKING([if oniguruma has an invalid entry for KOI8 encoding]) + AC_TRY_LINK([ +#include + ], [ +return (int)(ONIG_ENCODING_KOI8 + 1); + ], [ + AC_MSG_RESULT([no]) + ], [ + AC_MSG_RESULT([yes]) + AC_DEFINE([PHP_ONIG_BAD_KOI8_ENTRY], [1], [define to 1 if oniguruma has an invalid entry for KOI8 encoding]) + ]) + LDFLAGS=$save_old_LDFLAGS + fi + + PHP_MBSTRING_ADD_CFLAG([-DONIG_ESCAPE_UCHAR_COLLISION=1]) + PHP_MBSTRING_ADD_CFLAG([-DUChar=OnigUChar]) + + AC_DEFINE([HAVE_MBREGEX], 1, [whether to have multibyte regex support]) + + PHP_MBSTRING_ADD_BASE_SOURCES([php_mbregex.c]) + PHP_MBSTRING_ADD_INSTALL_HEADERS([php_mbregex.h php_onig_compat.h]) + fi +]) + +AC_DEFUN([PHP_MBSTRING_SETUP_LIBMBFL], [ + dnl libmbfl is required and can not be disabled + if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then + dnl + dnl Bundled libmbfl + dnl + PHP_MBSTRING_ADD_BUILD_DIR([libmbfl]) + PHP_MBSTRING_ADD_BUILD_DIR([libmbfl/mbfl]) + PHP_MBSTRING_ADD_BUILD_DIR([libmbfl/filters]) + PHP_MBSTRING_ADD_BUILD_DIR([libmbfl/nls]) + PHP_MBSTRING_ADD_INCLUDE([libmbfl]) + PHP_MBSTRING_ADD_INCLUDE([libmbfl/mbfl]) + PHP_MBSTRING_ADD_CONFIG_HEADER([libmbfl/config.h]) + + PHP_MBSTRING_ADD_SOURCES([ + libmbfl/filters/html_entities.c + libmbfl/filters/mbfilter_7bit.c + libmbfl/filters/mbfilter_ascii.c + libmbfl/filters/mbfilter_base64.c + libmbfl/filters/mbfilter_big5.c + libmbfl/filters/mbfilter_byte2.c + libmbfl/filters/mbfilter_byte4.c + libmbfl/filters/mbfilter_cp1251.c + libmbfl/filters/mbfilter_cp1252.c + libmbfl/filters/mbfilter_cp1254.c + libmbfl/filters/mbfilter_cp5022x.c + libmbfl/filters/mbfilter_cp51932.c + libmbfl/filters/mbfilter_cp850.c + libmbfl/filters/mbfilter_cp866.c + libmbfl/filters/mbfilter_cp932.c + libmbfl/filters/mbfilter_cp936.c + libmbfl/filters/mbfilter_gb18030.c + libmbfl/filters/mbfilter_euc_cn.c + libmbfl/filters/mbfilter_euc_jp.c + libmbfl/filters/mbfilter_euc_jp_2004.c + libmbfl/filters/mbfilter_euc_jp_win.c + libmbfl/filters/mbfilter_euc_kr.c + libmbfl/filters/mbfilter_euc_tw.c + libmbfl/filters/mbfilter_htmlent.c + libmbfl/filters/mbfilter_hz.c + libmbfl/filters/mbfilter_iso2022_jp_ms.c + libmbfl/filters/mbfilter_iso2022jp_2004.c + libmbfl/filters/mbfilter_iso2022jp_mobile.c + libmbfl/filters/mbfilter_iso2022_kr.c + libmbfl/filters/mbfilter_iso8859_1.c + libmbfl/filters/mbfilter_iso8859_10.c + libmbfl/filters/mbfilter_iso8859_13.c + libmbfl/filters/mbfilter_iso8859_14.c + libmbfl/filters/mbfilter_iso8859_15.c + libmbfl/filters/mbfilter_iso8859_16.c + libmbfl/filters/mbfilter_iso8859_2.c + libmbfl/filters/mbfilter_iso8859_3.c + libmbfl/filters/mbfilter_iso8859_4.c + libmbfl/filters/mbfilter_iso8859_5.c + libmbfl/filters/mbfilter_iso8859_6.c + libmbfl/filters/mbfilter_iso8859_7.c + libmbfl/filters/mbfilter_iso8859_8.c + libmbfl/filters/mbfilter_iso8859_9.c + libmbfl/filters/mbfilter_jis.c + libmbfl/filters/mbfilter_koi8r.c + libmbfl/filters/mbfilter_armscii8.c + libmbfl/filters/mbfilter_qprint.c + libmbfl/filters/mbfilter_sjis.c + libmbfl/filters/mbfilter_sjis_open.c + libmbfl/filters/mbfilter_sjis_mobile.c + libmbfl/filters/mbfilter_sjis_mac.c + libmbfl/filters/mbfilter_sjis_2004.c + libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + libmbfl/filters/mbfilter_ucs2.c + libmbfl/filters/mbfilter_ucs4.c + libmbfl/filters/mbfilter_uhc.c + libmbfl/filters/mbfilter_utf16.c + libmbfl/filters/mbfilter_utf32.c + libmbfl/filters/mbfilter_utf7.c + libmbfl/filters/mbfilter_utf7imap.c + libmbfl/filters/mbfilter_utf8.c + libmbfl/filters/mbfilter_utf8_mobile.c + libmbfl/filters/mbfilter_uuencode.c + libmbfl/filters/mbfilter_koi8u.c + libmbfl/mbfl/mbfilter.c + libmbfl/mbfl/mbfilter_8bit.c + libmbfl/mbfl/mbfilter_pass.c + libmbfl/mbfl/mbfilter_wchar.c + libmbfl/mbfl/mbfl_convert.c + libmbfl/mbfl/mbfl_encoding.c + libmbfl/mbfl/mbfl_filter_output.c + libmbfl/mbfl/mbfl_ident.c + libmbfl/mbfl/mbfl_language.c + libmbfl/mbfl/mbfl_memory_device.c + libmbfl/mbfl/mbfl_string.c + libmbfl/mbfl/mbfl_allocators.c + libmbfl/nls/nls_de.c + libmbfl/nls/nls_en.c + libmbfl/nls/nls_ja.c + libmbfl/nls/nls_kr.c + libmbfl/nls/nls_neutral.c + libmbfl/nls/nls_ru.c + libmbfl/nls/nls_uni.c + libmbfl/nls/nls_zh.c + libmbfl/nls/nls_hy.c + libmbfl/nls/nls_tr.c + libmbfl/nls/nls_ua.c + ]) + PHP_MBSTRING_ADD_CFLAG([-DHAVE_CONFIG_H]) + PHP_MBSTRING_ADD_INSTALL_HEADERS([libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h]) + else + dnl + dnl External libmfl + dnl + for inc in include include/mbfl-1.0 include/mbfl; do + if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then + PHP_LIBMBFL_INCLUDE="$inc" + break + fi + done + + if test -z "$PHP_LIBMBFL_INCLUDE"; then + AC_MSG_ERROR([mbfilter.h not found. Please reinstall libmbfl library.]) + else + PHP_ADD_INCLUDE([$PHP_LIBMBFL_INCLUDE]) + fi + + PHP_CHECK_LIBRARY(mbfl, mbfl_buffer_converter_new, [ + PHP_ADD_LIBRARY_WITH_PATH(mbfl, $PHP_LIBMBFL/$PHP_LIBDIR, MBSTRING_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libmbfl. Please check config.log for more information.]) + ], [ + -L$PHP_LIBMBFL/$PHP_LIBDIR + ]) + fi +]) + +dnl +dnl Main config +dnl + +PHP_ARG_ENABLE(mbstring, whether to enable multibyte string support, +[ --enable-mbstring Enable multibyte string support]) + +PHP_ARG_ENABLE([mbregex], [whether to enable multibyte regex support], +[ --disable-mbregex MBSTRING: Disable multibyte regex support], yes, no) + +PHP_ARG_ENABLE([mbregex_backtrack], [whether to check multibyte regex backtrack], +[ --disable-mbregex-backtrack + MBSTRING: Disable multibyte regex backtrack check], yes, no) + +PHP_ARG_WITH(libmbfl, [for external libmbfl], +[ --with-libmbfl[=DIR] MBSTRING: Use external libmbfl. DIR is the libmbfl base + install directory [BUNDLED]], no, no) + +PHP_ARG_WITH(onig, [for external oniguruma], +[ --with-onig[=DIR] MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. + If DIR is not set, the bundled oniguruma will be used], no, no) + +if test "$PHP_MBSTRING" != "no"; then + AC_DEFINE([HAVE_MBSTRING],1,[whether to have multibyte string support]) + + PHP_MBSTRING_ADD_BASE_SOURCES([mbstring.c php_unicode.c mb_gpc.c]) + + if test "$PHP_MBREGEX" != "no"; then + PHP_MBSTRING_SETUP_MBREGEX + fi + + dnl libmbfl is required + PHP_MBSTRING_SETUP_LIBMBFL + PHP_MBSTRING_EXTENSION +fi + +# vim600: sts=2 sw=2 et diff --git a/tests/fixtures/ext/mcrypt/config.m4 b/tests/fixtures/ext/mcrypt/config.m4 new file mode 100644 index 000000000..ab954e649 --- /dev/null +++ b/tests/fixtures/ext/mcrypt/config.m4 @@ -0,0 +1,59 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([PHP_MCRYPT_CHECK_VERSION],[ + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$MCRYPT_DIR/include + AC_MSG_CHECKING(for libmcrypt version) + AC_EGREP_CPP(yes,[ +#include +#if MCRYPT_API_VERSION >= 20021217 + yes +#endif + ],[ + AC_MSG_RESULT(>= 2.5.6) + ],[ + AC_MSG_ERROR(libmcrypt version 2.5.6 or greater required.) + ]) + CPPFLAGS=$old_CPPFLAGS +]) + + +PHP_ARG_WITH(mcrypt, for mcrypt support, +[ --with-mcrypt[=DIR] Include mcrypt support]) + +if test "$PHP_MCRYPT" != "no"; then + for i in $PHP_MCRYPT /usr/local /usr; do + test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break + done + + if test -z "$MCRYPT_DIR"; then + AC_MSG_ERROR(mcrypt.h not found. Please reinstall libmcrypt.) + fi + + PHP_MCRYPT_CHECK_VERSION + + PHP_CHECK_LIBRARY(mcrypt, mcrypt_module_open, + [ + PHP_ADD_LIBRARY(ltdl,, MCRYPT_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBMCRYPT,1,[ ]) + ],[ + PHP_CHECK_LIBRARY(mcrypt, mcrypt_module_open, + [ + AC_DEFINE(HAVE_LIBMCRYPT,1,[ ]) + ],[ + AC_MSG_ERROR([Sorry, I was not able to diagnose which libmcrypt version you have installed.]) + ],[ + -L$MCRYPT_DIR/$PHP_LIBDIR + ]) + ],[ + -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl + ]) + + PHP_ADD_LIBRARY_WITH_PATH(mcrypt, $MCRYPT_DIR/$PHP_LIBDIR, MCRYPT_SHARED_LIBADD) + PHP_ADD_INCLUDE($MCRYPT_DIR/include) + + PHP_SUBST(MCRYPT_SHARED_LIBADD) + PHP_NEW_EXTENSION(mcrypt, mcrypt.c mcrypt_filter.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/memcache/config.m4 b/tests/fixtures/ext/memcache/config.m4 new file mode 100644 index 000000000..bf0372ef5 --- /dev/null +++ b/tests/fixtures/ext/memcache/config.m4 @@ -0,0 +1,4 @@ +dnl $Id: config.m4 223414 2006-11-15 21:05:03Z tony2001 $ +dnl this file is required by phpize + +sinclude(config9.m4) diff --git a/tests/fixtures/ext/memcache/config9.m4 b/tests/fixtures/ext/memcache/config9.m4 new file mode 100644 index 000000000..149ba335f --- /dev/null +++ b/tests/fixtures/ext/memcache/config9.m4 @@ -0,0 +1,112 @@ +dnl +dnl $Id: config9.m4 245380 2007-11-01 14:30:16Z mikl $ +dnl + +PHP_ARG_ENABLE(memcache, whether to enable memcache support, +[ --enable-memcache Enable memcache support]) + +PHP_ARG_ENABLE(memcache-session, whether to enable memcache session handler support, +[ --disable-memcache-session Disable memcache session handler support], yes, no) + +if test -z "$PHP_ZLIB_DIR"; then +PHP_ARG_WITH(zlib-dir, for the location of ZLIB, +[ --with-zlib-dir[=DIR] memcache: Set the path to ZLIB install prefix.], no, no) +fi + +if test -z "$PHP_DEBUG"; then + AC_ARG_ENABLE(debug, + [ --enable-debug compile with debugging symbols],[ + PHP_DEBUG=$enableval + ],[ + PHP_DEBUG=no + ]) +fi + +if test "$PHP_MEMCACHE" != "no"; then + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + AC_MSG_ERROR([Can't find ZLIB headers under "$PHP_ZLIB_DIR"]) + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + dnl # zlib + AC_MSG_CHECKING([for the location of zlib]) + if test "$PHP_ZLIB_DIR" = "no"; then + AC_MSG_ERROR([memcache support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located]) + else + AC_MSG_RESULT([$PHP_ZLIB_DIR]) + if test "z$PHP_LIBDIR" != "z"; then + dnl PHP5+ + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, MEMCACHE_SHARED_LIBADD) + else + dnl PHP4 + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, MEMCACHE_SHARED_LIBADD) + fi + PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR) + fi + + if test "$PHP_MEMCACHE_SESSION" != "no"; then + AC_MSG_CHECKING([for session includes]) + session_inc_path="" + + if test -f "$abs_srcdir/include/php/ext/session/php_session.h"; then + session_inc_path="$abs_srcdir/include/php" + elif test -f "$abs_srcdir/ext/session/php_session.h"; then + session_inc_path="$abs_srcdir" + elif test -f "$phpincludedir/ext/session/php_session.h"; then + session_inc_path="$phpincludedir" + else + for i in php php4 php5 php6; do + if test -f "$prefix/include/$i/ext/session/php_session.h"; then + session_inc_path="$prefix/include/$i" + fi + done + fi + + if test "$session_inc_path" = ""; then + AC_MSG_ERROR([Cannot find php_session.h]) + else + AC_MSG_RESULT([$session_inc_path]) + fi + fi + + AC_MSG_CHECKING([for memcache session support]) + if test "$PHP_MEMCACHE_SESSION" != "no"; then + AC_MSG_RESULT([enabled]) + AC_DEFINE(HAVE_MEMCACHE_SESSION,1,[Whether memcache session handler is enabled]) + AC_DEFINE(HAVE_MEMCACHE,1,[Whether you want memcache support]) + PHP_NEW_EXTENSION(memcache, memcache.c memcache_queue.c memcache_standard_hash.c memcache_consistent_hash.c memcache_session.c, $ext_shared,,-I$session_inc_path) + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(memcache, session) + ]) + else + AC_MSG_RESULT([disabled]) + AC_DEFINE(HAVE_MEMCACHE,1,[Whether you want memcache support]) + PHP_NEW_EXTENSION(memcache, memcache.c memcache_queue.c memcache_standard_hash.c memcache_consistent_hash.c, $ext_shared) + fi + +dnl this is needed to build the extension with phpize and -Wall + + if test "$PHP_DEBUG" = "yes"; then + CFLAGS="$CFLAGS -Wall" + fi + +fi diff --git a/tests/fixtures/ext/memcache/package.xml b/tests/fixtures/ext/memcache/package.xml new file mode 100644 index 000000000..c683b649c --- /dev/null +++ b/tests/fixtures/ext/memcache/package.xml @@ -0,0 +1,514 @@ + + + memcache + pecl.php.net + memcached extension + Memcached is a caching daemon designed especially for + dynamic web applications to decrease database load by + storing objects in memory. + This extension allows you to work with memcached through + handy OO and procedural interfaces. + + Antony Dovgal + tony2001 + tony@daylessday.org + no + + + Mikael Johansson + mikl + mikael@synd.info + yes + + + Herman Radtke + hradtke + hradtke@php.net + yes + + 2012-09-23 + + + 2.2.7 + 2.2.7 + + + stable + stable + + PHP License + +- PHP 5.4 compatibility +- Fixed return value error get_host_port_from_server(). +- Fixed PECL Bug #16672 (memcache.php doesn't support unix socket) +- Fixed pecl bug #19374 (memcache.php throws Notice: Undefined index: VALUE when viewing expired items) + + + + + + + + + + + + + + + + + + + + + + + + 4.3.11 + + + 1.4.0b1 + + + + memcache + + + + + + 2010-10-03 + + 2.2.6 + 2.2.6 + + + stable + stable + + PHP License + +- Fixed pecl bug #16536 (Weight of 0 causes SegFault on memcache_add_server) +- Fixed pecl bug #17130 (Uninitialized tv.tv_usec causing PHP to loop endlessly) +- Fixed pecl bug #13623 (Memcache-client makes php segfault in semi-related code) + + + + 2009-02-27 + + 2.2.5 + 2.2.5 + + + stable + stable + + PHP License + +- Improved performance of consistent hash strategy +- Fixed PECL request #13758 (Failed to extract 'connection' variable from object) + + + + 2008-09-11 + + 2.2.4 + 2.2.4 + + + stable + stable + + PHP License + +- Added memcached stats script from Harun Yayli (http://livebookmark.net/memcachephp) +- Fixed server weight not being used in the session handler +- Fixed PECL bug #13343 (compilation breaks with CodeWarrior compiler) +- Fixed PECL bug #13546 (Session handler through unix socket) +- Fixed PECL bug #14239 (Memcache::set() modifies value parameter) +- Fixed PECL request #13725 (unnecessary allocations in mmc_consistent_add_server) +- Changed behaviour when unserialize/uncompress fail to return false instead of failing the server + + + + 2008-02-05 + + 2.2.3 + 2.2.3 + + + stable + stable + + PHP License + +- Fixed PECL bug #12883 (Breaks UTF-8 in keys) +- Fixed PECL bug #13060 (make problems, due to role="doc" instead of role="src") +- Added package version to phpinfo() + + + + 2008-01-10 + + 2.2.2 + 2.2.2 + + + stable + stable + + PHP License + +- Fixed PECL bug 12494 (Segmentation fault when Exception thrown in the callback function) +- Fixed PECL bug #12834 (segfault when getting duplicate array values on 64-bit system) +- Changed behaviour of close() to actually remove all servers from pool (PECL bug #12555) +- Added configure option for PEAR installer to disable session handler support + + + + 2007-11-01 + + 2.2.1 + 2.2.1 + + + stable + stable + + PHP License + +- Added argument to Memcache::get() that receives the flags for retrieved value(s) +- Fixed PECL bug 11369 ("nested" get calls in __wakeup() functions breaks) +- Fixed problem with keys being modified in-place and empty keys (PECL Bug #11236) +- Fixed incompatibility with standard hash strategy in previous versions + + + + 2007-09-21 + + 2.2.0 + 2.2.0 + + + stable + stable + + PHP License + +- Added support for consistent hash strategy +- New INI directives + "memcache.hash_strategy" = {standard, consistent} + "memcache.hash_function" = {crc32, fnv} +- PHP6 support +- Fixed PECL bug #11221 (Double free when returning cached object with __sleep) +- Fixed PECL bug #10607 (Segfault on array key retrieval when array key is not IS_STRING) +- Don't failover on "object to large" errors +- Use $phpincludedir for finding php_session.h + + + + 2007-03-27 + + 2.1.2 + 2.1.2 + + + stable + stable + + PHP License + +- Added missing files to the package. + + + + 2007-03-27 + + 2.1.1 + 2.1.1 + + + stable + stable + + PHP License + +- Added experimental session storage support. You can use memcached as session storage. +- Fixed PECL bug #9486 (empty keys should not be allowed in memcache_set/add()) +- Fixed PECL bug #9854 (get() changes the datatype of variable of given as key) + + + + 2006-10-09 + + 2.1.0 + 2.1.0 + + + stable + stable + + PHP License + +- Servers may be flagged up/down and the user may specify a error callback +- Individual server params and up/down status may be changed at runtime +- New methods: setServerParams(), getServerStatus() +- Statistics methods support fetching other kinds of stats (slabs, items, cachedump, ...) +- Fixed PECL bugs #7631, #8117 (erroneous line feeds in config.m4) +- Added memcache.max_failover_attempts ini directive, which can be used to configure max number of + servers to try when setting and getting data. + + + + + 2.0.4 + 2.0.4 + + + stable + stable + + 2006-05-16 + PHP License + +- Redefined retry_interval as long to fix no-automatic-reconnect behaviour + - Fixed PECL bugs #7635, #7637 (OnUpdateInt: referenced symbol not found) + + + + + 2.0.3 + 2.0.3 + + + stable + stable + + 2006-05-15 + PHP License + +- Display ini entries in phpinfo() output + - Fixed Zend2 compat + + + + + 2.0.2 + 2.0.2 + + + stable + stable + + 2006-05-14 + PHP License + +- Added "memcache.default_port" ini directive (default 11211) +- Added "memcache.allow_failover" ini directive (default On) +- Added "memcache.chunk_size" ini directive (default 8192 bytes) +- Setting retry_interval parameter to -1 disables automatic reconnect +- Fixed PECL bug #7331 (NULL pointer freeing causes memcache to segfault) + + + + + 2.0.1 + 2.0.1 + + + stable + stable + + 2006-02-01 + PHP License + +- Fixed PECL bug #6595 (segfault in addServer()) +- Fixed PECL bug #6512 (buffer overrun in getVersion()) +- Fixed PECL bug #6460 (lacking include of php_smart_str_public.h) +- Fixed PECL bug #6370 (incorrect failover on out-of-memory server errors) +- Improved zlib detection + + + + + 2.0.0 + 2.0.0 + + + stable + stable + + 2005-12-21 + PHP License + +- Multiple servers with loadbalancing and failover +- Automatic compress threshold setting +- New methods: addServer(), getExtendedStats(), setCompressThreshold() + + + + + 1.6 + 1.6 + + + stable + stable + + 2005-10-12 + PHP License + +- Fixed minor leak appeared when connect fails. +- Fixed PECL bug #5626 (segfault when trying to use previously closed connection). + + + + + 1.5 + 1.5 + + + stable + stable + + 2005-08-05 + PHP License + +1) Fixed minor leak. +2) Class Memcache made inheritable. + + + + + 1.4 + 1.4 + + + stable + stable + + 2004-12-02 + PHP License + +1) Added multi get support (i.e. you're now able to get multiple items with one get() call, +just pass array of keys to get() and it will return associative array of found items). + + + + + 1.3 + 1.3 + + + stable + stable + + 2004-08-29 + PHP License + +1) Fixed potential problem with empty datasets (yet another patch from Andrey Nigmatulin [anight at monamour dot ru]). +2) Fixed bug #2167 (thanks to [pbnadeau at gmail dot com] for noticing, testing and patching). + + + + + 1.2 + 1.2 + + + stable + stable + + 2004-07-20 + PHP License + +1) Fixed typo, preventing to use set() with flags and expire in the same time (thanks to Troy Hakala [troy at recipezaar dot com] for noticing). +2) Added possibility to store objects and arrays compressed. +3) Hopefully fixed all possible problems with persistent connections (thanks to [anight at monamour dot ru]). +4) Some uncritical impovements. + + + + + 1.1 + 1.1 + + + stable + stable + + 2004-06-08 + PHP License + +1) Fixed couple of possible segfaults and one error (many thanks to Anight). +2) Minor improvements. + + + + + 1.0 + 1.0 + + + beta + beta + + 2004-05-21 + PHP License + +1) Ifdef'ed debug routines, so they are available only in debug mode. +This should add more speed to extension. +2) Minor code decorations. + + + + + 0.4 + 0.4 + + + beta + beta + + 2004-xx-xx + PHP License + +1) Added on-the-fly data (de)compression support. +2) Added procedural API. +3) Extension was fairly refactored and accelerated. + + + + + 0.2 + 0.2 + + + beta + beta + + 2004-02-26 + PHP License + +New methods: getStats(), increment(), decrement(). +Extension should be rather stable. + + + + + 0.1 + 0.1 + + + alpha + alpha + + 2004-02-08 + PHP License + +Initial release in PECL + + + + diff --git a/tests/fixtures/ext/mssql/config.m4 b/tests/fixtures/ext/mssql/config.m4 new file mode 100644 index 000000000..2a298af73 --- /dev/null +++ b/tests/fixtures/ext/mssql/config.m4 @@ -0,0 +1,56 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(mssql,for MSSQL support via FreeTDS, +[ --with-mssql[=DIR] Include MSSQL-DB support. DIR is the FreeTDS home + directory [/usr/local/freetds]]) + +if test "$PHP_MSSQL" != "no"; then + + if test "$PHP_MSSQL" = "yes"; then + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include/freetds + break + fi + done + + if test -z "$FREETDS_INSTALLATION_DIR"; then + AC_MSG_ERROR(Cannot find FreeTDS in known installation directories) + fi + + elif test "$PHP_MSSQL" != "no"; then + + if test -f $PHP_MSSQL/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include + elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds + else + AC_MSG_ERROR(Directory $PHP_MSSQL is not a FreeTDS installation directory) + fi + fi + + if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so]) + fi + + PHP_ADD_INCLUDE($FREETDS_INCLUDE_DIR) + PHP_ADD_LIBRARY_WITH_PATH(sybdb, $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR, MSSQL_SHARED_LIBADD) + + PHP_NEW_EXTENSION(mssql, php_mssql.c, $ext_shared) + AC_CHECK_LIB(dnet_stub, dnet_addr, + [ PHP_ADD_LIBRARY_WITH_PATH(dnet_stub,,MSSQL_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBDNET_STUB,1,[ ]) + ]) + AC_DEFINE(HAVE_MSSQL,1,[ ]) + AC_DEFINE(HAVE_FREETDS,1,[ ]) + PHP_SUBST(MSSQL_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/mysql/config.m4 b/tests/fixtures/ext/mysql/config.m4 new file mode 100644 index 000000000..fd7f52ef3 --- /dev/null +++ b/tests/fixtures/ext/mysql/config.m4 @@ -0,0 +1,168 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([MYSQL_LIB_CHK], [ + str="$MYSQL_DIR/$1/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/$1 + break 2 + fi + done +]) + +AC_DEFUN([PHP_MYSQL_SOCKET_SEARCH], [ + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + AC_DEFINE_UNQUOTED(PHP_MYSQL_UNIX_SOCK_ADDR, "$MYSQL_SOCK", [ ]) + AC_MSG_RESULT([$MYSQL_SOCK]) + else + AC_MSG_RESULT([no]) + fi +]) + + +PHP_ARG_WITH(mysql, for MySQL support, +[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base + directory, if no DIR is passed or the value is + mysqlnd the MySQL native driver will be used]) + +PHP_ARG_WITH(mysql-sock, for specified location of the MySQL UNIX socket, +[ --with-mysql-sock[=SOCKPATH] + MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. + If unspecified, the default locations are searched], no, no) + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] MySQL: Set the path to libz install prefix], no, no) +fi + +if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then + dnl enables build of mysqnd library + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQL" != "no"; then + MYSQL_DIR= + MYSQL_INC_DIR= + + if test -r $PHP_MYSQL/include/mysql/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include/mysql + break + elif test -r $PHP_MYSQL/include/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include + break + fi + + if test -z "$MYSQL_DIR"; then + AC_MSG_ERROR([Cannot find MySQL header files under $PHP_MYSQL. +Note that the MySQL client library is not bundled anymore!]) + fi + + if test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIBNAME=mysqlclient_r + else + MYSQL_LIBNAME=mysqlclient + fi + case $host_alias in + *netware*[)] + MYSQL_LIBNAME=mysql + ;; + esac + + dnl for compat with PHP 4 build system + if test -z "$PHP_LIBDIR"; then + PHP_LIBDIR=lib + fi + + for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do + MYSQL_LIB_CHK($i) + done + + if test -z "$MYSQL_LIB_DIR"; then + MYSQL_LIB_CHK(lib/x86_64-linux-gnu) + fi + if test -z "$MYSQL_LIB_DIR"; then + MYSQL_LIB_CHK(lib/i386-linux-gnu) + fi + + if test -z "$MYSQL_LIB_DIR"; then + AC_MSG_ERROR([Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. +Note that the MySQL client library is not bundled anymore!]) + fi + + PHP_CHECK_LIBRARY($MYSQL_LIBNAME, mysql_close, [ ], + [ + if test "$PHP_ZLIB_DIR" != "no"; then + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR, MYSQL_SHARED_LIBADD) + PHP_CHECK_LIBRARY($MYSQL_LIBNAME, mysql_error, [], [ + AC_MSG_ERROR([mysql configure failed. Please check config.log for more information.]) + ], [ + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR + ]) + MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + PHP_ADD_LIBRARY(z,, MYSQL_SHARED_LIBADD) + PHP_CHECK_LIBRARY($MYSQL_LIBNAME, mysql_errno, [], [ + AC_MSG_ERROR([Try adding --with-zlib-dir=. Please check config.log for more information.]) + ], [ + -L$MYSQL_LIB_DIR + ]) + MYSQL_LIBS="-lz" + fi + ], [ + -L$MYSQL_LIB_DIR + ]) + + PHP_ADD_LIBRARY_WITH_PATH($MYSQL_LIBNAME, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD) + PHP_ADD_INCLUDE($MYSQL_INC_DIR) + + MYSQL_MODULE_TYPE=external + MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS" + MYSQL_INCLUDE=-I$MYSQL_INC_DIR + + PHP_SUBST_OLD(MYSQL_MODULE_TYPE) + PHP_SUBST_OLD(MYSQL_LIBS) + PHP_SUBST_OLD(MYSQL_INCLUDE) +fi + +dnl Enable extension +if test "$PHP_MYSQL" != "no"; then + AC_MSG_CHECKING([for MySQL UNIX socket location]) + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + AC_DEFINE_UNQUOTED(PHP_MYSQL_UNIX_SOCK_ADDR, "$MYSQL_SOCK", [ ]) + AC_MSG_RESULT([$MYSQL_SOCK]) + elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then + PHP_MYSQL_SOCKET_SEARCH + else + AC_MSG_RESULT([no]) + fi + + AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL]) + PHP_NEW_EXTENSION(mysql, php_mysql.c, $ext_shared) + PHP_SUBST(MYSQL_SHARED_LIBADD) + + if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then + PHP_ADD_EXTENSION_DEP(mysql, mysqlnd) + AC_DEFINE([MYSQL_USE_MYSQLND], 1, [Whether mysqlnd is enabled]) + fi +fi diff --git a/tests/fixtures/ext/mysql/package.xml b/tests/fixtures/ext/mysql/package.xml new file mode 100644 index 000000000..79fd6ba90 --- /dev/null +++ b/tests/fixtures/ext/mysql/package.xml @@ -0,0 +1,64 @@ + + + + mysql + MySQL database access functions + + + georg + Georg Richter + georg@php.net + lead + + + zak + Zak Greant + zak@php.net + developer + + + zeev + Zeev Suraski + zeev@php.net + developer + + + +These functions allow you to access MySQL database servers. + + PHP + + stable + 1.0 + 2005-09-04 + +This is the MySQL driver, taken from the PHP 5.1 release. +It can also be built against PHP 4. + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/mysqli/config.m4 b/tests/fixtures/ext/mysqli/config.m4 new file mode 100644 index 000000000..f6c86e762 --- /dev/null +++ b/tests/fixtures/ext/mysqli/config.m4 @@ -0,0 +1,89 @@ +dnl +dnl $Id$ +dnl config.m4 for extension mysqli + +PHP_ARG_WITH(mysqli, for MySQLi support, +[ --with-mysqli[=FILE] Include MySQLi support. FILE is the path + to mysql_config. If no value or mysqlnd is passed + as FILE, the MySQL native driver will be used]) + +PHP_ARG_ENABLE(embedded_mysqli, whether to enable embedded MySQLi support, +[ --enable-embedded-mysqli + MYSQLi: Enable embedded support + Note: Does not work with MySQL native driver!], no, no) + +if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + dnl This needs to be set in any extension which wishes to use mysqlnd + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQLI" != "no"; then + + MYSQL_CONFIG=$PHP_MYSQLI + + MYSQL_LIB_NAME='mysqlclient' + if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then + AC_DEFINE(HAVE_EMBEDDED_MYSQLI, 1, [embedded MySQL support enabled]) + MYSQL_LIB_CFG='--libmysqld-libs' + dnl mysqlnd doesn't support embedded, so we have to add some extra stuff + mysqli_extra_sources="mysqli_embedded.c" + elif test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIB_CFG='--libs_r' + MYSQL_LIB_NAME='mysqlclient_r' + else + MYSQL_LIB_CFG='--libs' + fi + + if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then + MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"` + else + AC_MSG_RESULT([mysql_config not found]) + AC_MSG_ERROR([Please reinstall the mysql distribution]) + fi + + dnl + dnl Check the library + dnl + PHP_CHECK_LIBRARY($MYSQL_LIB_NAME, mysql_set_server_option, + [ + PHP_EVAL_INCLINE($MYSQLI_INCLINE) + PHP_EVAL_LIBLINE($MYSQLI_LIBLINE, MYSQLI_SHARED_LIBADD) + AC_DEFINE(HAVE_MYSQLILIB, 1, [ ]) + PHP_CHECK_LIBRARY($MYSQL_LIB_NAME, mysql_set_character_set, + [ ],[ + AC_MSG_ERROR([MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries.]) + ],[$MYSQLI_LIBLINE]) + ],[ + AC_MSG_ERROR([wrong mysql library version or lib not found. Check config.log for more information.]) + ],[ + $MYSQLI_LIBLINE + ]) + dnl + dnl Check the library for mysql_stmt_next_result + dnl + PHP_CHECK_LIBRARY($MYSQL_LIB_NAME, mysql_stmt_next_result, + [ + AC_DEFINE(HAVE_STMT_NEXT_RESULT, 1, [ ]) + ],[ + ],[ + $MYSQLI_LIBLINE + ]) +fi + +dnl Build extension +if test "$PHP_MYSQLI" != "no"; then + mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ + mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \ + mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources" + PHP_NEW_EXTENSION(mysqli, $mysqli_sources, $ext_shared) + PHP_SUBST(MYSQLI_SHARED_LIBADD) + PHP_INSTALL_HEADERS([ext/mysqli/php_mysqli_structs.h]) + + if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + PHP_ADD_EXTENSION_DEP(mysqli, mysqlnd) + AC_DEFINE([MYSQLI_USE_MYSQLND], 1, [Whether mysqlnd is enabled]) + PHP_INSTALL_HEADERS([ext/mysqli/mysqli_mysqlnd.h]) + else + PHP_INSTALL_HEADERS([ext/mysqli/mysqli_libmysql.h]) + fi +fi diff --git a/tests/fixtures/ext/mysqli/package.xml b/tests/fixtures/ext/mysqli/package.xml new file mode 100644 index 000000000..c27316a05 --- /dev/null +++ b/tests/fixtures/ext/mysqli/package.xml @@ -0,0 +1,117 @@ + + + + mysqli + MySQLi - new MySQL interface for PHP 5 and MySQL 4.1+ + + + georg + Georg Richter + georg@php.net + lead + + + zak + Zak Greant + zak@php.net + lead + + + +MySQLi is a rewrite of the original MySQL extension ... + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/mysqlnd/config9.m4 b/tests/fixtures/ext/mysqlnd/config9.m4 new file mode 100644 index 000000000..deda4414c --- /dev/null +++ b/tests/fixtures/ext/mysqlnd/config9.m4 @@ -0,0 +1,89 @@ +dnl +dnl $Id$ +dnl config.m4 for mysqlnd driver + +PHP_ARG_ENABLE(mysqlnd, whether to enable mysqlnd, + [ --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions], no, yes) + +PHP_ARG_ENABLE(mysqlnd_compression_support, whether to disable compressed protocol support in mysqlnd, +[ --disable-mysqlnd-compression-support + Disable support for the MySQL compressed protocol in mysqlnd], yes, no) + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] mysqlnd: Set the path to libz install prefix], no, no) +fi + +dnl If some extension uses mysqlnd it will get compiled in PHP core +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then + mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c" + mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ + mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \ + mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \ + mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\ + mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c" + + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + AC_DEFINE([MYSQLND_COMPRESSION_WANTED], 1, [Enable compressed protocol support]) + fi + + AC_DEFINE([MYSQLND_SSL_SUPPORTED], 1, [Enable core mysqlnd SSL code]) + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + + PHP_SETUP_OPENSSL(MYSQLND_SHARED_LIBADD, [AC_DEFINE(MYSQLND_HAVE_SSL,1,[Enable mysqlnd code that uses OpenSSL directly])]) + fi + + mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" + PHP_NEW_EXTENSION(mysqlnd, $mysqlnd_sources, $ext_shared) + PHP_ADD_BUILD_DIR([ext/mysqlnd], 1) + PHP_INSTALL_HEADERS([ext/mysqlnd/]) +fi + +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then + PHP_ADD_BUILD_DIR([ext/mysqlnd], 1) + + dnl This creates a file so it has to be after above macros + PHP_CHECK_TYPES([int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t], [ + ext/mysqlnd/php_mysqlnd_config.h + ],[ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDINT_H +#include +#endif + ]) +fi + +dnl +dnl Check if the compiler supports Decimal32/64/128 types from the IEEE-754 2008 version +dnl References: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1657.pdf +dnl http://speleotrove.com/decimal/ +dnl +AC_CACHE_CHECK([whether whether compiler supports Decimal32/64/128 types], ac_cv_decimal_fp_supported,[ +AC_TRY_RUN( [ +#include + +int main(int argc, char **argv) { + typedef float dec32 __attribute__((mode(SD))); + dec32 k = 99.49f; + double d2 = (double)k; + return 0; +} +],[ + ac_cv_decimal_fp_supported=yes +],[ + ac_cv_decimal_fp_supported=no +],[ + ac_cv_decimal_fp_supported=no +])]) +if test "$ac_cv_decimal_fp_supported" = "yes"; then + AC_DEFINE(HAVE_DECIMAL_FP_SUPPORT, 1, [Define if the compiler supports Decimal32/64/128 types.]) +fi diff --git a/tests/fixtures/ext/oci8/config.m4 b/tests/fixtures/ext/oci8/config.m4 new file mode 100644 index 000000000..39c037548 --- /dev/null +++ b/tests/fixtures/ext/oci8/config.m4 @@ -0,0 +1,344 @@ +dnl +dnl $Id$ +dnl + +if test -z "$SED"; then + PHP_OCI8_SED="sed"; +else + PHP_OCI8_SED="$SED"; +fi + +PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null` +if test "$PHP_OCI8_TAIL1" = "a"; then + PHP_OCI8_TAIL1="tail -n1" +else + PHP_OCI8_TAIL1="tail -1" +fi + +AC_DEFUN([PHP_OCI_IF_DEFINED],[ + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$3 + AC_EGREP_CPP(yes,[ +#include +#if defined($1) + yes +#endif + ],[ + CPPFLAGS=$old_CPPFLAGS + $2 + ],[ + CPPFLAGS=$old_CPPFLAGS + ]) +]) + +AC_DEFUN([AC_OCI8_CHECK_LIB_DIR],[ + AC_MSG_CHECKING([ORACLE_HOME library validity]) + if test ! -d "$OCI8_DIR"; then + AC_MSG_ERROR([${OCI8_DIR} is not a directory]) + fi + if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib + elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib32 + elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR + else + dnl This isn't an ORACLE_HOME. Try heuristic examination of the dir to help the user + if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then + AC_MSG_ERROR([Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}]) + else + AC_MSG_ERROR([Oracle library directory not found in ${OCI8_DIR}]) + fi + fi + AC_MSG_RESULT($OCI8_LIB_DIR) +]) + +AC_DEFUN([AC_OCI8IC_VERSION],[ + AC_MSG_CHECKING([Oracle Instant Client library version compatibility]) + OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` + if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then + if test ! -f "$OCI8_LCS_BASE"; then + AC_MSG_ERROR([Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found]) + fi + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + else + AC_MSG_ERROR([Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found]) + fi + AC_MSG_RESULT([$OCI8_ORACLE_VERSION]) +]) + +AC_DEFUN([AC_OCI8_ORACLE_VERSION],[ + AC_MSG_CHECKING([Oracle library version compatibility]) + OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3 + elif test -f "$OCI8_LCS"; then + dnl Oracle 10g, 11g etc. The x.2 version libraries are named x.1 for drop in compatibility + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $OCI8_LCS_BASE.9.0; then + dnl There is no case for Oracle 9.2. Oracle 9.2 libraries have a 9.0 suffix for drop-in compatibility with Oracle 9.0 + OCI8_ORACLE_VERSION=9.0 + elif test -f $OCI8_LCS_BASE.8.0; then + OCI8_ORACLE_VERSION=8.1 + elif test -f $OCI8_LCS_BASE.1.0; then + OCI8_ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then + if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then + OCI8_ORACLE_VERSION=8.0 + else + OCI8_ORACLE_VERSION=8.1 + fi + else + AC_MSG_ERROR(Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found) + fi + AC_MSG_RESULT($OCI8_ORACLE_VERSION) +]) + + +dnl --with-oci8=shared,instantclient,/path/to/client/dir/lib +dnl or +dnl --with-oci8=shared,/path/to/oracle/home +PHP_ARG_WITH(oci8, for Oracle Database OCI8 support, +[ --with-oci8[=DIR] Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME. + Use --with-oci8=instantclient,/path/to/instant/client/lib + to use an Oracle Instant Client installation]) + +if test "$PHP_OCI8" != "no"; then + + if test -z "$PHP_OCI8"; then + dnl --with-oci8=$ORACLE_HOME where ORACLE_HOME isn't set (or is mistyped) will match this case + AC_MSG_ERROR([Empty parameter value passed to --with-oci8]) + fi + + dnl Check PHP version is compatible with this extension + + AC_MSG_CHECKING([PHP version]) + + tmp_version=$PHP_VERSION + if test -z "$tmp_version"; then + if test -z "$PHP_CONFIG"; then + AC_MSG_ERROR([php-config not found]) + fi + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + else + php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + fi + + if test -z "$php_version"; then + AC_MSG_ERROR([failed to detect PHP version, please report]) + fi + + ac_IFS=$IFS + IFS="." + set $php_version + IFS=$ac_IFS + oci8_php_version=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` + + if test "$oci8_php_version" -lt "4003009"; then + AC_MSG_ERROR([You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found]) + elif test "$oci8_php_version" -ge "6000000"; then + AC_MSG_ERROR([This version of OCI8 is not compatible with PHP 6 or higher]) + else + AC_MSG_RESULT([$php_version, ok]) + fi + + dnl Set some port specific directory components for use later + + AC_CHECK_SIZEOF(long int, 4) + AC_MSG_CHECKING([checking if we're on a 64-bit platform]) + if test "$ac_cv_sizeof_long_int" = "4"; then + AC_MSG_RESULT([no]) + PHP_OCI8_OH_LIBDIR=lib32 + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + AC_MSG_RESULT([yes]) + PHP_OCI8_OH_LIBDIR=lib + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + + dnl Determine if the user wants to use Oracle Instant Client libraries + + PHP_OCI8_INSTANT_CLIENT="no" + + dnl PECL Bug 14268 (Allow "pecl install oci8" command to "autodetect" + dnl an Instant Client RPM install). This also has a benefit for non + dnl "pecl install" builds: if the user does --with-oci8 or + dnl --with-oci8=shared but the ORACLE_HOME environment variable is not + dnl actually set, the install tries to locate the Instant Client RPM + if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then + AC_MSG_WARN([OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead]) + PHP_OCI8=instantclient + fi + + if test "`echo $PHP_OCI8`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="yes" + elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + fi + + if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then + dnl *************************************** + dnl Branch for using an ORACLE_HOME install + dnl *************************************** + + AC_MSG_CHECKING([Oracle ORACLE_HOME install directory]) + + if test "$PHP_OCI8" = "yes"; then + OCI8_DIR=$ORACLE_HOME + else + OCI8_DIR=$PHP_OCI8 + fi + AC_MSG_RESULT($OCI8_DIR) + + AC_OCI8_CHECK_LIB_DIR($OCI8_DIR) + + if test -d "$OCI8_DIR/rdbms/public"; then + PHP_ADD_INCLUDE($OCI8_DIR/rdbms/public) + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" + fi + if test -d "$OCI8_DIR/rdbms/demo"; then + PHP_ADD_INCLUDE($OCI8_DIR/rdbms/demo) + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" + fi + if test -d "$OCI8_DIR/network/public"; then + PHP_ADD_INCLUDE($OCI8_DIR/network/public) + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" + fi + if test -d "$OCI8_DIR/plsql/public"; then + PHP_ADD_INCLUDE($OCI8_DIR/plsql/public) + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" + fi + + if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then + PHP_EVAL_LIBLINE(`cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`, OCI8_SYSLIB) + elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then + PHP_EVAL_LIBLINE(`cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`, OCI8_SYSLIB) + fi + + AC_OCI8_ORACLE_VERSION($OCI8_DIR) + + case $OCI8_ORACLE_VERSION in + 7.3|8.0|8.1) + AC_MSG_ERROR([Oracle client libraries < 9.2 are not supported]) + ;; + + 9.0) + PHP_CHECK_LIBRARY(clntsh, OCIEnvNlsCreate, + [ + OCI8_ORACLE_VERSION=9.2 + ], + [ + AC_MSG_ERROR([Oracle client libraries < 9.2 are not supported]) + ], [ + -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD + ]) + ;; + + *) + AC_DEFINE(HAVE_OCI_LOB_READ2,1,[ ]) + ;; + esac + + PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) + PHP_ADD_LIBPATH($OCI8_DIR/$OCI8_LIB_DIR, OCI8_SHARED_LIBADD) + PHP_NEW_EXTENSION(oci8, oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c, $ext_shared) + AC_DEFINE(HAVE_OCI8,1,[ ]) + + PHP_SUBST_OLD(OCI8_SHARED_LIBADD) + PHP_SUBST_OLD(OCI8_DIR) + PHP_SUBST_OLD(OCI8_ORACLE_VERSION) + + dnl Fix Bug #46623 + AC_DEFINE_UNQUOTED(PHP_OCI8_DEF_DIR, "$OCI8_DIR", [ ]) + AC_DEFINE_UNQUOTED(PHP_OCI8_DEF_SHARED_LIBADD, "$OCI8_SHARED_LIBADD", [ ]) + + else + dnl *************************************************** + dnl Branch for using an Oracle Instant Client directory + dnl *************************************************** + + AC_MSG_CHECKING([Oracle Instant Client directory]) + + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then + dnl Find the directory if user specified "instantclient" but did not + dnl give a dir. Generally the Instant Client can be anywhere so the + dnl user must pass in the library directory. But on Linux we default + dnl to the most recent version in /usr/lib which is where the Oracle + dnl Instant Client RPM gets installed. + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then + AC_MSG_ERROR([Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR]) + fi + fi + AC_MSG_RESULT($PHP_OCI8_INSTANT_CLIENT) + + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT + + AC_MSG_CHECKING([Oracle Instant Client SDK header directory]) + + dnl Header directory for Instant Client SDK RPM install + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib[/]*$!/usr/include/oracle/\1/client\2!'` + + dnl Header directory for Instant Client SDK zip file install + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include + + dnl Header directory for manual installation + OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib[/]*$!\1/include!'` + + if test -f "$OCISDKRPMINC/oci.h"; then + AC_MSG_RESULT($OCISDKRPMINC) + PHP_ADD_INCLUDE($OCISDKRPMINC) + OCI8INCDIR=$OCISDKRPMINC + elif test -f "$OCISDKZIPINC/oci.h"; then + AC_MSG_RESULT($OCISDKZIPINC) + PHP_ADD_INCLUDE($OCISDKZIPINC) + OCI8INCDIR=$OCISDKZIPINC + elif test -f "$OCISDKMANINC/oci.h"; then + AC_MSG_RESULT($OCISDKMANINC) + PHP_ADD_INCLUDE($OCISDKMANINC) + OCI8INCDIR=$OCISDKMANINC + else + AC_MSG_ERROR([Oracle Instant Client SDK header files not found]) + fi + + OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` + if test -f "$OCISYSLIBLIST"; then + PHP_EVAL_LIBLINE(`cat $OCISYSLIBLIST`, OCI8_SYSLIB) + fi + + AC_OCI8IC_VERSION($PHP_OCI8_INSTANT_CLIENT) + PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) + PHP_ADD_LIBPATH($PHP_OCI8_INSTANT_CLIENT, OCI8_SHARED_LIBADD) + + AC_DEFINE(HAVE_OCI_INSTANT_CLIENT,1,[ ]) + AC_DEFINE(HAVE_OCI_LOB_READ2,1,[ ]) + + PHP_NEW_EXTENSION(oci8, oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c, $ext_shared) + AC_DEFINE(HAVE_OCI8,1,[ ]) + + PHP_SUBST_OLD(OCI8_SHARED_LIBADD) + PHP_SUBST_OLD(OCI8_DIR) + PHP_SUBST_OLD(OCI8_ORACLE_VERSION) + + fi +fi diff --git a/tests/fixtures/ext/oci8/package.xml b/tests/fixtures/ext/oci8/package.xml new file mode 100644 index 000000000..feadf1907 --- /dev/null +++ b/tests/fixtures/ext/oci8/package.xml @@ -0,0 +1,907 @@ + + + oci8 + pecl.php.net + Extension for Oracle Database + This extension allows you to access Oracle databases. It can be built with PHP 4.3.9 to 5.x. It can be linked with Oracle 9.2, 10, 11, or 12.1 client libraries. + + + Christopher Jones + sixd + sixd@php.net + yes + + + Antony Dovgal + tony2001 + tony2001@php.net + yes + + + Wez Furlong + wez + wez@php.net + no + + + Andi Gutmans + andi + andi@zend.com + no + + + 2013-07-08 + + + + 1.4.10 + 1.4.10 + + + stable + stable + + PHP + + Bump PECL package info version check to allow PECL installs with PHP 5.5+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4.3.9 + 6.0.0 + + + 1.4.0b1 + + + + oci8 + + + + + + + + 1.4.9 + 1.4.9 + + + stable + stable + + PHP + + Re-fixed bug #60901 (Improve "tail" syntax for AIX installation) + + + + + + 1.4.8 + 1.4.8 + + + stable + stable + + PHP + + Fixed bug #63307 (Unused variable in oci8.c) + Fixed bug #63265 (Add ORA-00028 to the PHP_OCI_HANDLE_ERROR macro) + Fixed bug #60901 (Improve "tail" syntax for AIX installation) + + + + + + 1.4.7 + 1.4.7 + + + stable + stable + + PHP + + Fixed bug #59985 (show normal warning text for OCI_NO_DATA) + Fixed OCI8 part of bug #55748 (CVE-2011-4153: multiple NULL pointer dereferences with zend_strndup) + Fixed OCI8 part of bug #55301 (multiple null pointer dereferences with calloc) + Increased maximum Oracle error message buffer length for new Oracle 11.2.0.3 size + Improve internal initalization failure error messages + + + + + + 1.4.6 + 1.4.6 + + + stable + stable + + PHP + + Added oci_client_version() returning the runtime Oracle client library version + Made OCI8 extension buildable with PHP 5.4-development code + + + + + + 1.4.5 + 1.4.5 + + + stable + stable + + PHP + + Protect against null bytes in LOB filenames (http://news.php.net/php.internals/50202) + + + + + + 1.4.4 + 1.4.4 + + + stable + stable + + PHP + + Fixed bug #53284 (Valgrind warnings in oci_set_* functions) + Enhancement - improve startup failure error messages + + + + + + 1.4.3 + 1.4.3 + + + stable + stable + + PHP + + Fixed bug #51610 (Using oci_connect causes PHP to take a long time to exit). Requires Oracle 11.2.0.2 client libraries (or Oracle bug fix 9891199) for this patch to have an effect. + + + + + + 1.4.2 + 1.4.2 + + + stable + stable + + PHP + + Fixed bug #52186 (phpinfo() shows 10.1 or 11.1 when installed with ORACLE_HOME 10.2 or 11.2) + Fixed bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings) + Fixed bug #51577 (Uninitialized memory reference with oci_bind_array_by_name) + Fixed bug #51291 (oci_error doesn't report last error when called two times) + + OCI8 1.4.2 is included in PHP 5.3.3 + + + + + + 1.4.1 + 1.4.1 + + + stable + stable + + PHP + + Fixed bug #49560 (Using LOBs causes slow PHP shutdown) + Fixed bug #47281 ($php_errormsg is limited in size of characters) + + + + + + 1.4.0 + 1.4.0 + + + alpha + alpha + + PHP + + 1. Introduce connection attribute functions: + + oci_set_module_name + oci_set_action + oci_set_client_info + oci_set_client_identifier + + These set values that are visible/used by the database. They + are useful for tracing, authentication and auditing. + + 2. Introduce connection attribute function: + + oci_set_edition + + Oracle 11g R2 "editions" allow multiple versions of DB objects + to exist at one time. By setting different editions, two + different versions of an application can run concurrently, + making upgrading easier and faster. + + 3. Set the DRIVER_NAME attribute of Oracle Database 11gR2 + connections to aid application tracing. The value used is to + "PHP OCI8" followed by the OCI8 version number. Note the + version number may get truncated in DB views such as + v$session_connect_info. + + 4. Allow the oci_set_prefetch value to be 0. This is important in + some cases using REF CURSORS in Oracle 11gR2. + + 5. Introduce OCI_NO_AUTO_COMMIT as an alias for the OCI_DEFAULT + constant (which is not the default value) used by oci_execute(). + + 6. Generate an error if an invalid resource type is used in + oci_bind_by_name + + 7. Bug fixes: + PECL bug #16842 (oci_error returns false when NO_DATA_FOUND is raised) + + + + + + 1.3.5 + 1.3.4 + + + stable + stable + + PHP + +Fixed bug #47243 (Crash at end of request shutdown on Windows) +Fixed bug #46994 (CLOB size does not update when using CLOB IN OUT param in stored procedure) +Fixed bug #46623 (phpinfo doesn't show compile time ORACLE_HOME with phpize) +Fixed bug #45458 (Numeric keys for associative arrays are not handled properly) Note: not fixed when building with PHP 4 due to lack of PHP internal helper. +Fixed PECL bug #16035 (oci_connect without ORACLE_HOME defined causes segfault) +Fixed PECL bug #15988 (sqlnet.ora isn't read with older Oracle libraries) +Fixed PECL bug #14268 (Allow "pecl install oci8" command to "autodetect" an Instant Client RPM install) + + + + + + 1.3.4 + 1.3.4 + + + stable + stable + + PHP + +Enhancement - Allow External Authentication (not supported on Windows) +Enhancement - Reflection will show function and method arguments with PHP 5.x +Increase default oci8.default_prefetch from 10 to 100 +Correctly define SQLT_BDOUBLE and SQLT_BFLOAT constants with Oracle 10g ORACLE_HOME builds + + + + + + 1.3.3 + 1.3.3 + + + stable + stable + + PHP + +Changed OCI NLS initialization for consistency and technical correctness +Removed obsolete macros + + + + + + 1.3.2 + 1.3.2 + + + beta + beta + + PHP + +Refine DRCP connection pooling functionality +Do scope-end release for oci_pconnect (oci8.old_oci_close_semantics=1 gives old behavior) +Fixed bug #44372 (compilation with Oracle 10gR1 libraries) +Fixed PECL bug #12431 (PEAR install using x86_64 RPM builds) +Allow builds with PHP 4.3.9 onwards + + + + + + 1.3.1 + 1.3.1 + + + beta + beta + + PHP + Fixed bug #44113 (New collection creation can fail with OCI-22303) +Fixed bug #42841 (Crash with REF CURSORS when statement caching enabled) +Fixed bug #42496 (Cursor leak selecting LOBs +Fixed bug #43497 (Temporary LOB leak) +Fixed PECL bug #12431 (ping functionality is broken) +Allow compilation with 64bit Instant Client RPMs +Allow -with-oci8=instantclient with no directory specified look for RPM install +Refine DRCP functionality + + + + + + 1.3.0 + 1.3.0 + + + beta + beta + + PHP + Added DRCP and FAN support. + + + + + + 1.2.5 + 1.2.5 + + + stable + stable + + PHP + +This release is based on the OCI8 included in PHP 5.2.6, with the addition of the fix for http://pecl.php.net/bugs/bug.php?id=13523. +-------- +Fixed bug #42496 (cursor leak selecting LOBs http://bugs.php.net/bug.php?id=42496 +Fixed bug #42841 (crash with REF CURSORS when statement caching enabled) http://bugs.php.net/bug.php?id=42841 +Fixed bug #43497 (Temporary LOB leak) http://bugs.php.net/bug.php?id=43497 +Fixed bug #44206 (OCI8 selecting ref cursors leads to ORA-1000 maximum open cursors reached). +Fixed bug #44008 (OCI8 incorrect usage of OCI-Lob->close crashes PHP). +Fixed bug #44113 (new collection creation can fail with OCI-22303) http://bugs.php.net/bug.php?id=44113 +Enhancement - make -with-oci8=instantclient with no directory specified look for RPM install +Enhancement - compile with 64bit Instant Client RPMs (bug http://bugs.php.net/bug.php?id=41941, http://pecl.php.net/bugs/bug.php?id=13523) + + + + + + 1.2.4 + 1.2.4 + + + stable + stable + + PHP + Fixed PECL bug #10194 (crash in Oracle client when memory limit reached in the callback) +Fixed bug #42173 (oci_field_type fixes for INTERVAL and TIMESTAMP types) +Fixed bug #42134 (oci_error() returns false after oci_new_collection() fails) +Fixed bug #41917 (oci_field_precision and oci_field_scale datatypes fixed) +Fixed bug #41711 (Null temporary lobs not supported) +Fixed bug #41594 (Statement cache is flushed too frequently) +Fixed bug #40415 (oci_fetch_all and nested cursors, allocate descriptors dynamically) +Fixed segfault on rebinding and re-executing a statement with LOBs. +Fixed compile failure in ZTS mode when collections support is missing. +Allowed statement cache size to be set for non-persistent connections. +Improved oci_password_change() to close persistent connections on shutdown (to update hashed connection details) +Changed oci_pconnect() to behave like oci_connect() when SYSDBA and SYSOPER privileges are used. +Various minor improvements. + + + + + + 1.2.3 + 1.2.3 + + + stable + stable + + 2007-01-25 + PHP + Fixed possible segfault in ZTS mode when statements containing sub-statements are destroyed in wrong order. +Fixed bug #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name()). +Fixed bug #39988 (type argument of oci_define_by_name() is ignored). +Fixed bug #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit). +Fixed PECL bug #8816 (issue in php_oci_statement_fetch with more than one piecewise column). +Various minor improvements. + + + + + + 1.2.2 + 1.2.2 + + + stable + stable + + 2006-08-24 + PHP + Reimplemented oci_lob_read() utilities using patch from Massimo Squillace (msquillace at sogei dot it), which should fix Unicode LOB problems. +Fixed bug #38161 (oci_bind_by_name() returns garbage when Oracle didn't set the variable) +Fixed bug #38173 (Freeing nested cursors causes OCI8 to segfault) +Fixed bug #37886 (oci_connect may crash when charset parameter is given) +Fixed bug #37931 (possible crash after database restart when using persistent connections) +Fixed bug #37531 (oci8 persistent connection corruption) +Fixed bug #37487 (oci_fetch_array() array-type should always default to OCI_BOTH) +Fixed bug #37392 (Unnecessary call to OCITransRollback() at the end of request) +Fixed bug #35973 (Error ORA-24806 occurs when trying to fetch a NCLOB field) +Fixed bug #34005 (oci_password_change() fails). Patch by pholdaway at technocom-wireless dot com. +Fixed PECL bug #8112 (Persistent connections misbehave when Apache process times out) + + + + + + 1.2.1 + 1.2.1 + + + stable + stable + + 2006-05-02 + PHP + Added support for BINARY_DOUBLE and BINARY_FLOAT (see #36764) +Changed oci_field_type() to return VARCHAR2 instead of VARCHAR (according to feature request #36800) +Fixed bug #37059 (oci_bind_by_name() doesn't support RAW and LONG RAW fields) +Fixed bug #37055 (incorrect reference counting for persistent OCI8 connections) +Fixed bug #36934 (OCILob->read() doesn't move internal pointer when reading 0's) +Fixed bug #36851 (Documentation and code discrepancies for NULL data) +Fixed bug #36820 (Privileged connection with an Oracle password file fails) + + + + + + 1.2.0 + 1.2.0 + + + stable + stable + + 2006-03-16 + PHP + Changed OCI8 code to use OCIServerVersion() instead of OCIPing(), which may crash Oracle server of version < 10.2 +Fixed bug #36235 (ocicolumnname returns false before a successfull fetch) +Fixed bug #36096 (oci_result() returns garbage after oci_fetch() failed) +Fixed bug #36055 (possible OCI8 crash in multithreaded environment) +Fixed bug #36010 (Segfault when re-creating and re-executing statements with bound parameters) +Fixed PECL bug #5571 (oci_new_connect() not closed by oci_close()) +Fixed bug #33383 (crash when retrieving empty BLOBs) + + + + + + 1.1.1 + 1.1.1 + + + beta + beta + + 2005-09-22 + PHP + Fixed segfault when binding empty values. +Fixed problem with oci_error() without arguments. + + + + + + 1.1 + 1.1 + + + beta + beta + + 2005-09-07 + PHP + This release fixes a huge amount of bugs and adds support of +statement caching, external credentials etc. +See official announce for details. + + + + + + 1.0 + 1.0 + + + beta + beta + + 2004-03-19 + PHP + package.xml added to support installation using pear installer + + + + + diff --git a/tests/fixtures/ext/odbc/config.m4 b/tests/fixtures/ext/odbc/config.m4 new file mode 100644 index 000000000..eaed212cd --- /dev/null +++ b/tests/fixtures/ext/odbc/config.m4 @@ -0,0 +1,514 @@ +dnl +dnl $Id$ +dnl + +AC_DEFUN([PHP_ODBC_CHECK_HEADER],[ +if ! test -f "$ODBC_INCDIR/$1"; then + AC_MSG_ERROR([ODBC header file '$ODBC_INCDIR/$1' not found!]) +fi +]) + +dnl +dnl Figure out which library file to link with for the Solid support. +dnl +AC_DEFUN([PHP_ODBC_FIND_SOLID_LIBS],[ + AC_MSG_CHECKING([Solid library file]) + ac_solid_uname_r=`uname -r 2>/dev/null` + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only + HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10 + IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only + Linux) + if ldd -v /bin/sh | grep GLIBC > /dev/null; then + AC_DEFINE(SS_LINUX,1,[Needed in sqlunix.h ]) + ac_solid_os=l2x + else + AC_DEFINE(SS_LINUX,1,[Needed in sqlunix.h ]) + ac_solid_os=lux + fi;; + SunOS) + ac_solid_os=ssx;; # should we deal with SunOS 4? + FreeBSD) + if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then + AC_DEFINE(SS_FBX,1,[Needed in sqlunix.h for wchar defs ]) + ac_solid_os=fex + else + AC_DEFINE(SS_FBX,1,[Needed in sqlunix.h for wchar defs ]) + ac_solid_os=fbx + fi;; + esac + + if test -f $1/soc${ac_solid_os}35.a; then + ac_solid_version=35 + ac_solid_prefix=soc + elif test -f $1/scl${ac_solid_os}30.a; then + ac_solid_version=30 + ac_solid_prefix=scl + elif test -f $1/scl${ac_solid_os}23.a; then + ac_solid_version=23 + ac_solid_prefix=scl + fi + +# +# Check for the library files, and setup the ODBC_LIBS path... +# +if test ! -f $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \ + ! -f $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then + # + # we have an error and should bail out, as we can't find the libs! + # + echo "" + echo "*********************************************************************" + echo "* Unable to locate $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* Please correct this by creating the following links and reconfiguring:" + echo "* $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* $1/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $1/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so" + echo "*********************************************************************" +else + ODBC_LFLAGS=-L$1 + ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} +fi + + AC_MSG_RESULT(`echo $ODBC_LIBS | sed -e 's!.*/!!'`) +]) + + +dnl +dnl Figure out which library file to link with for the Empress support. +dnl + +AC_DEFUN([PHP_ODBC_FIND_EMPRESS_LIBS],[ + AC_MSG_CHECKING([Empress library file]) + ODBC_LIBS=`echo $1/libempodbccl.so | cut -d' ' -f1` + if test ! -f $ODBC_LIBS; then + ODBC_LIBS=`echo $1/libempodbccl.so | cut -d' ' -f1` + fi + AC_MSG_RESULT(`echo $ODBC_LIBS | sed -e 's!.*/!!'`) +]) + +AC_DEFUN([PHP_ODBC_FIND_EMPRESS_BCS_LIBS],[ + AC_MSG_CHECKING([Empress local access library file]) + ODBCBCS_LIBS=`echo $1/libempodbcbcs.a | cut -d' ' -f1` + if test ! -f $ODBCBCS_LIBS; then + ODBCBCS_LIBS=`echo $1/libempodbcbcs.a | cut -d' ' -f1` + fi + AC_MSG_RESULT(`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'`) +]) + +dnl +dnl configure options +dnl +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(adabas,, +[ --with-adabas[=DIR] Include Adabas D support [/usr/local]]) + + if test "$PHP_ADABAS" != "no"; then + AC_MSG_CHECKING([for Adabas support]) + if test "$PHP_ADABAS" = "yes"; then + PHP_ADABAS=/usr/local + fi + PHP_ADD_INCLUDE($PHP_ADABAS/incl) + PHP_ADD_LIBPATH($PHP_ADABAS/$PHP_LIBDIR) + ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a" + ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a" + $srcdir/build/shtool mkdir -f -p ext/odbc + rm -f "$ODBC_LIB" + cp "$ODBC_OBJS" "$ODBC_LIB" + PHP_ADD_LIBRARY(sqlptc) + PHP_ADD_LIBRARY(sqlrte) + PHP_ADD_LIBRARY_WITH_PATH(odbc_adabas, $abs_builddir/ext/odbc) + ODBC_TYPE=adabas + ODBC_INCDIR=$PHP_ADABAS/incl + PHP_ODBC_CHECK_HEADER(sqlext.h) + AC_DEFINE(HAVE_ADABAS,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(sapdb,, +[ --with-sapdb[=DIR] Include SAP DB support [/usr/local]]) + + if test "$PHP_SAPDB" != "no"; then + AC_MSG_CHECKING([for SAP DB support]) + if test "$PHP_SAPDB" = "yes"; then + PHP_SAPDB=/usr/local + fi + PHP_ADD_INCLUDE($PHP_SAPDB/incl) + PHP_ADD_LIBPATH($PHP_SAPDB/$PHP_LIBDIR) + PHP_ADD_LIBRARY(sqlod) + ODBC_TYPE=sapdb + AC_DEFINE(HAVE_SAPDB,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(solid,, +[ --with-solid[=DIR] Include Solid support [/usr/local/solid]]) + + if test "$PHP_SOLID" != "no"; then + AC_MSG_CHECKING(for Solid support) + if test "$PHP_SOLID" = "yes"; then + PHP_SOLID=/usr/local/solid + fi + ODBC_INCDIR=$PHP_SOLID/include + ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=solid + if test -f $ODBC_LIBDIR/soc*35.a; then + AC_DEFINE(HAVE_SOLID_35,1,[ ]) + elif test -f $ODBC_LIBDIR/scl*30.a; then + AC_DEFINE(HAVE_SOLID_30,1,[ ]) + elif test -f $ODBC_LIBDIR/scl*23.a; then + AC_DEFINE(HAVE_SOLID,1,[ ]) + fi + AC_MSG_RESULT([$ext_output]) + PHP_ODBC_FIND_SOLID_LIBS($ODBC_LIBDIR) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(ibm-db2,, +[ --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib]]) + + if test "$PHP_IBM_DB2" != "no"; then + AC_MSG_CHECKING(for IBM DB2 support) + if test "$PHP_IBM_DB2" = "yes"; then + ODBC_INCDIR=/home/db2inst1/sqllib/include + ODBC_LIBDIR=/home/db2inst1/sqllib/lib + else + ODBC_INCDIR=$PHP_IBM_DB2/include + ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR + fi + + PHP_ODBC_CHECK_HEADER(sqlcli1.h) + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=ibm-db2 + ODBC_LIBS=-ldb2 + + PHP_TEST_BUILD(SQLExecute, [ + AC_DEFINE(HAVE_IBMDB2,1,[ ]) + AC_MSG_RESULT([$ext_output]) + ], [ + AC_MSG_RESULT(no) + AC_MSG_ERROR([ +build test failed. Please check the config.log for details. +You need to source your DB2 environment before running PHP configure: +# . \$IBM_DB2/db2profile +]) + ], [ + $ODBC_LFLAGS $ODBC_LIBS + ]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(ODBCRouter,, +[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]]) + + if test "$PHP_ODBCROUTER" != "no"; then + AC_MSG_CHECKING(for ODBCRouter.com support) + if test "$PHP_ODBCROUTER" = "yes"; then + PHP_ODBCROUTER=/usr + fi + ODBC_INCDIR=$PHP_ODBCROUTER/include + ODBC_LIBDIR=$PHP_ODBCROUTER/lib + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbcsdk + ODBC_TYPE=ODBCRouter + AC_DEFINE(HAVE_ODBC_ROUTER,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(empress,, +[ --with-empress[=DIR] Include Empress support [\$EMPRESSPATH] + (Empress Version >= 8.60 required)]) + + if test "$PHP_EMPRESS" != "no"; then + AC_MSG_CHECKING(for Empress support) + if test "$PHP_EMPRESS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS/shlib + fi + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=empress + AC_DEFINE(HAVE_EMPRESS,1,[ ]) + AC_MSG_RESULT([$ext_output]) + PHP_ODBC_FIND_EMPRESS_LIBS($ODBC_LIBDIR) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(empress-bcs,, +[ --with-empress-bcs[=DIR] + Include Empress Local Access support [\$EMPRESSPATH] + (Empress Version >= 8.60 required)]) + + if test "$PHP_EMPRESS_BCS" != "no"; then + AC_MSG_CHECKING(for Empress local access support) + if test "$PHP_EMPRESS_BCS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib + fi + CC="empocc -bcs";export CC; + LD="empocc -bcs";export LD; + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + LIST=`empocc -listlines -bcs -o a a.c` + + NEWLIST= + for I in $LIST + do + case $I in + $EMPRESSPATH/odbccl/lib/* | \ + $EMPRESSPATH/rdbms/lib/* | \ + $EMPRESSPATH/common/lib/*) + NEWLIST="$NEWLIST $I" + ;; + esac + done + ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" + ODBC_TYPE=empress-bcs + AC_DEFINE(HAVE_EMPRESS,1,[ ]) + AC_MSG_RESULT([$ext_output]) + PHP_ODBC_FIND_EMPRESS_BCS_LIBS($ODBC_LIBDIR) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(birdstep,, +[ --with-birdstep[=DIR] Include Birdstep support [/usr/local/birdstep]]) + + if test "$PHP_BIRDSTEP" != "no"; then + AC_MSG_CHECKING(for Birdstep support) + if test "$PHP_BIRDSTEP" = "yes"; then + ODBC_INCDIR=/usr/local/birdstep/include + ODBC_LIBDIR=/usr/local/birdstep/lib + else + ODBC_INCDIR=$PHP_BIRDSTEP/include + ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR + fi + + case $host_alias in + *aix*[)] + AC_DEFINE(AIX,1,[ ]);; + *hpux*[)] + AC_DEFINE(HPUX,1,[ ]);; + *linux*[)] + AC_DEFINE(LINUX,1,[ ]);; + *qnx*[)] + AC_DEFINE(NEUTRINO,1,[ ]);; + i?86-*-solaris*[)] + AC_DEFINE(ISOLARIS,1,[ ]);; + sparc-*-solaris*[)] + AC_DEFINE(SOLARIS,1,[ ]);; + *unixware*[)] + AC_DEFINE(UNIXWARE,1,[ ]);; + esac + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=birdstep + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil" + + if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil" + elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil" + fi + + AC_DEFINE(HAVE_BIRDSTEP,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(custom-odbc,, +[ --with-custom-odbc[=DIR] Include user defined ODBC support. DIR is ODBC install base + directory [/usr/local]. Make sure to define CUSTOM_ODBC_LIBS and + have some odbc.h in your include dirs. f.e. you should define + following for Sybase SQL Anywhere 5.5.00 on QNX, prior to + running this configure script: + CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\" + LDFLAGS=-lunix + CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"]) + + if test "$PHP_CUSTOM_ODBC" != "no"; then + AC_MSG_CHECKING(for a custom ODBC support) + if test "$PHP_CUSTOM_ODBC" = "yes"; then + PHP_CUSTOM_ODBC=/usr/local + fi + ODBC_INCDIR=$PHP_CUSTOM_ODBC/include + ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=$CUSTOM_ODBC_LIBS + ODBC_TYPE=custom-odbc + AC_DEFINE(HAVE_CODBC,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(iodbc,, +[ --with-iodbc[=DIR] Include iODBC support [/usr/local]]) + + if test "$PHP_IODBC" != "no"; then + AC_MSG_CHECKING(for iODBC support) + if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + fi + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then + PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR) + ODBC_TYPE=iodbc + ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc` + ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc` + ODBC_LIBS=`$PKG_CONFIG --libs-only-l libiodbc` + PHP_EVAL_INCLINE($ODBC_INCLUDE) + AC_DEFINE(HAVE_IODBC,1,[ ]) + AC_DEFINE(HAVE_ODBC2,1,[ ]) + AC_MSG_RESULT([$ext_output]) + else + if test "$PHP_IODBC" = "yes"; then + PHP_IODBC=/usr/local + fi + PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR) + PHP_ADD_INCLUDE($PHP_IODBC/include, 1) + ODBC_TYPE=iodbc + ODBC_INCLUDE=-I$PHP_IODBC/include + ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR + ODBC_LIBS=-liodbc + AC_DEFINE(HAVE_IODBC,1,[ ]) + AC_DEFINE(HAVE_ODBC2,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(esoob,, +[ --with-esoob[=DIR] Include Easysoft OOB support [/usr/local/easysoft/oob/client]]) + + if test "$PHP_ESOOB" != "no"; then + AC_MSG_CHECKING(for Easysoft ODBC-ODBC Bridge support) + if test "$PHP_ESOOB" = "yes"; then + PHP_ESOOB=/usr/local/easysoft/oob/client + fi + ODBC_INCDIR=$PHP_ESOOB/include + ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lesoobclient + ODBC_TYPE=esoob + AC_DEFINE(HAVE_ESOOB,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(unixODBC,, +[ --with-unixODBC[=DIR] Include unixODBC support [/usr/local]]) + + if test "$PHP_UNIXODBC" != "no"; then + AC_MSG_CHECKING(for unixODBC support) + if test "$PHP_UNIXODBC" = "yes"; then + PHP_UNIXODBC=/usr/local + fi + ODBC_INCDIR=$PHP_UNIXODBC/include + ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + ODBC_TYPE=unixODBC + PHP_ODBC_CHECK_HEADER(sqlext.h) + AC_DEFINE(HAVE_UNIXODBC,1,[ ]) + AC_MSG_RESULT([$ext_output]) + fi +fi + +if test -z "$ODBC_TYPE"; then +PHP_ARG_WITH(dbmaker,, +[ --with-dbmaker[=DIR] Include DBMaker support]) + + if test "$PHP_DBMAKER" != "no"; then + AC_MSG_CHECKING(for DBMaker support) + if test "$PHP_DBMAKER" = "yes"; then + # find dbmaker's home directory + DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` + + # check DBMaker version (from 5.0 to 2.0) + DBMAKER_VERSION=5.0 + + while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do + DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'` + MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'` + MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'` + DBMAKER_VERSION=$MAJOR_V.$MINOR_V + done + + if test "$DBMAKER_VERSION" = "2.9"; then + PHP_DBMAKER=$DBMAKER_HOME + else + PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION + fi + fi + + ODBC_INCDIR=$PHP_DBMAKER/include + ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS="-ldmapic -lc" + ODBC_TYPE=dbmaker + + AC_DEFINE(HAVE_DBMAKER,1,[Whether you want DBMaker]) + + if test "$ext_shared" = "yes"; then + AC_MSG_RESULT([yes (shared)]) + ODBC_LIBS="-ldmapic -lc -lm" + ODBC_SHARED="odbc.la" + else + AC_MSG_RESULT([yes (static)]) + PHP_ADD_LIBRARY_WITH_PATH(dmapic, $ODBC_LIBDIR) + PHP_ADD_INCLUDE($ODBC_INCDIR) + ODBC_STATIC="libphpext_odbc.la" + fi + fi +fi + +dnl +dnl Extension setup +dnl +if test -n "$ODBC_TYPE"; then + if test "$ODBC_TYPE" != "dbmaker"; then + PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], ODBC_SHARED_LIBADD) + if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then + AC_DEFINE(HAVE_SQLDATASOURCES,1,[ ]) + fi + fi + + AC_DEFINE(HAVE_UODBC,1,[ ]) + PHP_SUBST(ODBC_SHARED_LIBADD) + PHP_SUBST(ODBC_INCDIR) + PHP_SUBST(ODBC_LIBDIR) + PHP_SUBST_OLD(ODBC_INCLUDE) + PHP_SUBST_OLD(ODBC_LIBS) + PHP_SUBST_OLD(ODBC_LFLAGS) + PHP_SUBST_OLD(ODBC_TYPE) + + PHP_NEW_EXTENSION(odbc, php_odbc.c, $ext_shared,, $ODBC_INCLUDE) +fi diff --git a/tests/fixtures/ext/opcache/config.m4 b/tests/fixtures/ext/opcache/config.m4 new file mode 100644 index 000000000..60edeed96 --- /dev/null +++ b/tests/fixtures/ext/opcache/config.m4 @@ -0,0 +1,383 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(opcache, whether to enable Zend OPcache support, +[ --enable-opcache Enable Zend OPcache support], yes) + +if test "$PHP_OPCACHE" != "no"; then + + AC_CHECK_FUNC(mprotect,[ + AC_DEFINE(HAVE_MPROTECT, 1, [Define if you have mprotect() function]) + ]) + + AC_MSG_CHECKING(for sysvipc shared memory support) + AC_TRY_RUN([ +#include +#include +#include +#include +#include +#include + +int main() { + pid_t pid; + int status; + int ipc_id; + char *shm; + struct shmid_ds shmbuf; + + ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W)); + if (ipc_id == -1) { + return 1; + } + + shm = shmat(ipc_id, NULL, 0); + if (shm == (void *)-1) { + shmctl(ipc_id, IPC_RMID, NULL); + return 2; + } + + if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 3; + } + + shmbuf.shm_perm.uid = getuid(); + shmbuf.shm_perm.gid = getgid(); + shmbuf.shm_perm.mode = 0600; + + if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 4; + } + + shmctl(ipc_id, IPC_RMID, NULL); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} +],dnl + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + msg=yes,msg=no,msg=no) + AC_MSG_RESULT([$msg]) + + AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) + AC_TRY_RUN([ +#include +#include +#include +#include +#include + +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + char *shm; + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + if (shm == MAP_FAILED) { + return 1; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} +],dnl + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + msg=yes,msg=no,msg=no) + AC_MSG_RESULT([$msg]) + + AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support) + AC_TRY_RUN([ +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + + fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 1; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 2; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} +],dnl + AC_DEFINE(HAVE_SHM_MMAP_ZERO, 1, [Define if you have mmap("/dev/zero") SHM support]) + msg=yes,msg=no,msg=no) + AC_MSG_RESULT([$msg]) + + AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) + AC_TRY_RUN([ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + shm_unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + shm_unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} +],dnl + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + msg=yes,msg=no,msg=no) + AC_MSG_RESULT([$msg]) + + AC_MSG_CHECKING(for mmap() using regular file shared memory support) + AC_TRY_RUN([ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} +],dnl + AC_DEFINE(HAVE_SHM_MMAP_FILE, 1, [Define if you have mmap() SHM support]) + msg=yes,msg=no,msg=no) + AC_MSG_RESULT([$msg]) + +flock_type=unknown +AC_MSG_CHECKING("whether flock struct is linux ordered") +AC_TRY_RUN([ + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) { + return 0; + } + return 1; + } +], [ + flock_type=linux + AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) + AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +AC_MSG_CHECKING("whether flock struct is BSD ordered") +AC_TRY_RUN([ + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) { + return 0; + } + return 1; + } +], [ + flock_type=bsd + AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type]) + AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +if test "$flock_type" == "unknown"; then + AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no]) +fi + + PHP_NEW_EXTENSION(opcache, + ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c, + shared,,,,yes) + + PHP_ADD_BUILD_DIR([$ext_builddir/Optimizer], 1) +fi diff --git a/tests/fixtures/ext/openssl/config.m4 b/tests/fixtures/ext/openssl/config.m4 new file mode 100644 index 000000000..a97114f80 --- /dev/null +++ b/tests/fixtures/ext/openssl/config.m4 @@ -0,0 +1,28 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(openssl, for OpenSSL support, +[ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)]) + +PHP_ARG_WITH(kerberos, for Kerberos support, +[ --with-kerberos[=DIR] OPENSSL: Include Kerberos support], no, no) + +if test "$PHP_OPENSSL" != "no"; then + PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared) + PHP_SUBST(OPENSSL_SHARED_LIBADD) + + if test "$PHP_KERBEROS" != "no"; then + PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD) + fi + + AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + + PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, + [ + AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) + ], [ + AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.]) + ]) +fi diff --git a/tests/fixtures/ext/openssl/config0.m4 b/tests/fixtures/ext/openssl/config0.m4 new file mode 100644 index 000000000..a97114f80 --- /dev/null +++ b/tests/fixtures/ext/openssl/config0.m4 @@ -0,0 +1,28 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(openssl, for OpenSSL support, +[ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)]) + +PHP_ARG_WITH(kerberos, for Kerberos support, +[ --with-kerberos[=DIR] OPENSSL: Include Kerberos support], no, no) + +if test "$PHP_OPENSSL" != "no"; then + PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared) + PHP_SUBST(OPENSSL_SHARED_LIBADD) + + if test "$PHP_KERBEROS" != "no"; then + PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD) + fi + + AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + + PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, + [ + AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) + ], [ + AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.]) + ]) +fi diff --git a/tests/fixtures/ext/pcntl/config.m4 b/tests/fixtures/ext/pcntl/config.m4 new file mode 100644 index 000000000..2ef07f140 --- /dev/null +++ b/tests/fixtures/ext/pcntl/config.m4 @@ -0,0 +1,14 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(pcntl, whether to enable pcntl support, +[ --enable-pcntl Enable pcntl support (CLI/CGI only)]) + +if test "$PHP_PCNTL" != "no"; then + AC_CHECK_FUNCS(fork, [ AC_DEFINE(HAVE_FORK,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork() not supported by this platform) ]) + AC_CHECK_FUNCS(waitpid, [ AC_DEFINE(HAVE_WAITPID,1,[ ]) ], [ AC_MSG_ERROR(pcntl: waitpid() not supported by this platform) ]) + AC_CHECK_FUNCS(sigaction, [ AC_DEFINE(HAVE_SIGACTION,1,[ ]) ], [ AC_MSG_ERROR(pcntl: sigaction() not supported by this platform) ]) + AC_CHECK_FUNCS([getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait]) + PHP_NEW_EXTENSION(pcntl, pcntl.c php_signal.c, $ext_shared, cli) +fi diff --git a/tests/fixtures/ext/pcntl/package.xml b/tests/fixtures/ext/pcntl/package.xml new file mode 100644 index 000000000..b9127395c --- /dev/null +++ b/tests/fixtures/ext/pcntl/package.xml @@ -0,0 +1,46 @@ + + + + posix + POSIX functions + + + ??? + Kristian Khntopp + kris@koehntopp.de + lead + + + +This module contains an interface to those functions defined +in the IEEE 1003.1 (POSIX.1) standards document which are not +accessible through other means. POSIX.1 for example defined the +open(), read(), write() and close() functions, too, which +traditionally have been part of PHP for a long time. Some more +system specific functions have not been available before, though, +and this module tries to remedy this by providing easy access +to these functions. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/pcre/config0.m4 b/tests/fixtures/ext/pcre/config0.m4 new file mode 100644 index 000000000..4f8af76e6 --- /dev/null +++ b/tests/fixtures/ext/pcre/config0.m4 @@ -0,0 +1,67 @@ +dnl +dnl $Id$ +dnl + +dnl By default we'll compile and link against the bundled PCRE library +dnl if DIR is supplied, we'll use that for linking + +PHP_ARG_WITH(pcre-regex,, +[ --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support. + DIR is the PCRE install prefix [BUNDLED]], yes, no) + + if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then + AC_MSG_CHECKING([for PCRE headers location]) + for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do + test -f $i/pcre.h && PCRE_INCDIR=$i + done + + if test -z "$PCRE_INCDIR"; then + AC_MSG_ERROR([Could not find pcre.h in $PHP_PCRE_REGEX]) + fi + AC_MSG_RESULT([$PCRE_INCDIR]) + + AC_MSG_CHECKING([for PCRE library location]) + for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do + test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j + done + + if test -z "$PCRE_LIBDIR" ; then + AC_MSG_ERROR([Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX]) + fi + AC_MSG_RESULT([$PCRE_LIBDIR]) + + changequote({,}) + pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + changequote([,]) + pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/[^0-9]//g'` + if test "$pcre_minor_length" -eq 2 ; then + pcre_minor="$pcre_minor"0 + fi + pcre_version=$pcre_major$pcre_minor + if test "$pcre_version" -lt 660; then + AC_MSG_ERROR([The PCRE extension requires PCRE library version >= 6.6]) + fi + + PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR) + + AC_DEFINE(HAVE_PCRE, 1, [ ]) + PHP_ADD_INCLUDE($PCRE_INCDIR) + PHP_NEW_EXTENSION(pcre, php_pcre.c, no) + PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h]) + else + AC_MSG_CHECKING([for PCRE library to use]) + AC_MSG_RESULT([bundled]) + pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \ + pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \ + pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \ + pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \ + pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \ + pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \ + pcrelib/pcre_version.c pcrelib/pcre_xclass.c" + PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib" + PHP_NEW_EXTENSION(pcre, $pcrelib_sources php_pcre.c, no,,$PHP_PCRE_CFLAGS) + PHP_ADD_BUILD_DIR($ext_builddir/pcrelib) + PHP_INSTALL_HEADERS([ext/pcre], [php_pcre.h pcrelib/]) + AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ]) + fi diff --git a/tests/fixtures/ext/pdo/config.m4 b/tests/fixtures/ext/pdo/config.m4 new file mode 100755 index 000000000..f8515ddb1 --- /dev/null +++ b/tests/fixtures/ext/pdo/config.m4 @@ -0,0 +1,69 @@ +dnl $Id$ +dnl config.m4 for extension pdo +dnl vim:se ts=2 sw=2 et: + +AC_DEFUN([PHP_PDO_PEAR_CHECK],[ + pdo_running_under_pear=0 + case `pwd` in + /var/tmp/pear-build-*) + pdo_running_under_pear=1 + ;; + esac + + if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then + # we're running in an environment that smells like pear, + # and the PHP_PEAR_VERSION env var is not set. That implies + # that we're running under a slightly broken pear installer + AC_MSG_ERROR([ +PDO requires that you upgrade your PEAR installer tools. Please +do so now by running: + + % sudo pear upgrade pear + +or by manually downloading and installing PEAR version 1.3.5 or higher. + +Once you've upgraded, please re-try your PDO install. + ]) + fi +]) + +PHP_ARG_ENABLE(pdo, whether to enable PDO support, +[ --disable-pdo Disable PHP Data Objects support], yes) + +if test "$PHP_PDO" != "no"; then + + dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :) + PHP_PDO=yes + + PHP_PDO_PEAR_CHECK + + if test "$ext_shared" = "yes" ; then + case $host_alias in + *darwin*) + AC_MSG_ERROR([ +Due to the way that loadable modules work on OSX/Darwin, you need to +compile the PDO package statically into the PHP core. + +Please follow the instructions at: http://netevil.org/node.php?nid=202 +for more detail on this issue. + ]) + ext_shared=no + ;; + esac + fi + PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared) + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo, spl, true) + ]) + + ifdef([PHP_INSTALL_HEADERS], + [ + dnl Sadly, this is a complete NOP for pecl extensions + PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h]) + ]) + + dnl so we always include the known-good working hack. + PHP_ADD_MAKEFILE_FRAGMENT +fi + diff --git a/tests/fixtures/ext/pdo_dblib/config.m4 b/tests/fixtures/ext/pdo_dblib/config.m4 new file mode 100644 index 000000000..ba8244c72 --- /dev/null +++ b/tests/fixtures/ext/pdo_dblib/config.m4 @@ -0,0 +1,87 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(pdo-dblib, for PDO_DBLIB support via FreeTDS, +[ --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home directory]) + +if test "$PHP_PDO_DBLIB" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + if test "$PHP_PDO_DBLIB" = "yes"; then + + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include/freetds + break; + fi + done + + if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then + AC_MSG_ERROR(Cannot find FreeTDS in known installation directories) + fi + + elif test "$PHP_PDO_DBLIB" != "no"; then + + if test -f $PHP_PDO_DBLIB/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include + elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds + else + AC_MSG_ERROR(Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory) + fi + fi + + if test "x$PHP_LIBDIR" = "x" ; then + PHP_LIBDIR=lib + fi + + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + AC_MSG_ERROR(Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so]) + fi + + PHP_ADD_INCLUDE($PDO_FREETDS_INCLUDE_DIR) + PHP_ADD_LIBRARY_WITH_PATH(sybdb, $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR, PDO_DBLIB_SHARED_LIBADD) + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\"" + PHP_NEW_EXTENSION(pdo_dblib, pdo_dblib.c dblib_driver.c dblib_stmt.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_DBLIB_DEFS) + AC_CHECK_LIB(dnet_stub, dnet_addr, + [ PHP_ADD_LIBRARY_WITH_PATH(dnet_stub,,PDO_DBLIB_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBDNET_STUB,1,[ ]) + ]) + AC_DEFINE(HAVE_PDO_DBLIB,1,[ ]) + AC_DEFINE(HAVE_FREETDS,1,[ ]) + PHP_SUBST(PDO_DBLIB_SHARED_LIBADD) + + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_dblib, pdo) + ]) +fi diff --git a/tests/fixtures/ext/pdo_firebird/config.m4 b/tests/fixtures/ext/pdo_firebird/config.m4 new file mode 100644 index 000000000..f9188a09b --- /dev/null +++ b/tests/fixtures/ext/pdo_firebird/config.m4 @@ -0,0 +1,52 @@ +PHP_ARG_WITH(pdo-firebird,for Firebird support for PDO, +[ --with-pdo-firebird[=DIR] PDO: Firebird support. DIR is the Firebird base + install directory [/opt/firebird]]) + +if test "$PHP_PDO_FIREBIRD" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + if test "$PHP_PDO_FIREBIRD" = "yes"; then + FIREBIRD_INCDIR= + FIREBIRD_LIBDIR= + FIREBIRD_LIBDIR_FLAG= + else + FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include + FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR + FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR + fi + + PHP_CHECK_LIBRARY(fbclient, isc_detach_database, + [ + FIREBIRD_LIBNAME=fbclient + ], [ + PHP_CHECK_LIBRARY(gds, isc_detach_database, + [ + FIREBIRD_LIBNAME=gds + ], [ + PHP_CHECK_LIBRARY(ib_util, isc_detach_database, + [ + FIREBIRD_LIBNAME=ib_util + ], [ + AC_MSG_ERROR([libfbclient, libgds or libib_util not found! Check config.log for more information.]) + ], [ + $FIREBIRD_LIBDIR_FLAG + ]) + ], [ + $FIREBIRD_LIBDIR_FLAG + ]) + ], [ + $FIREBIRD_LIBDIR_FLAG + ]) + + PHP_CHECK_PDO_INCLUDES + + PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD) + PHP_ADD_INCLUDE($FIREBIRD_INCDIR) + AC_DEFINE(HAVE_PDO_FIREBIRD,1,[ ]) + PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_cv_inc_path) + PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD) + PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo) +fi diff --git a/tests/fixtures/ext/pdo_mysql/config.m4 b/tests/fixtures/ext/pdo_mysql/config.m4 new file mode 100755 index 000000000..f237f413b --- /dev/null +++ b/tests/fixtures/ext/pdo_mysql/config.m4 @@ -0,0 +1,159 @@ +dnl $Id$ +dnl config.m4 for extension pdo_mysql +dnl vim: se ts=2 sw=2 et: + +PHP_ARG_WITH(pdo-mysql, for MySQL support for PDO, +[ --with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directory + If no value or mysqlnd is passed as DIR, the + MySQL native driver will be used]) + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] PDO_MySQL: Set the path to libz install prefix], no, no) +fi + +if test "$PHP_PDO_MYSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + AC_DEFUN([PDO_MYSQL_LIB_CHK], [ + str="$PDO_MYSQL_DIR/$1/libmysqlclient*" + for j in `echo $str`; do + if test -r $j; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$1 + break 2 + fi + done + ]) + + if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then + if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then + PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL + else + if test -d "$PHP_PDO_MYSQL" ; then + if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then + PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config" + else + PDO_MYSQL_DIR="$PHP_PDO_MYSQL" + fi + fi + fi + fi + + if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then + dnl enables build of mysqnd library + PHP_MYSQLND_ENABLED=yes + AC_DEFINE([PDO_USE_MYSQLND], 1, [Whether pdo_mysql uses mysqlnd]) + else + AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL]) + + AC_MSG_CHECKING([for mysql_config]) + if test -n "$PDO_MYSQL_CONFIG"; then + AC_MSG_RESULT($PDO_MYSQL_CONFIG) + if test "x$SED" = "x"; then + AC_PATH_PROG(SED, sed) + fi + if test "$enable_maintainer_zts" = "yes"; then + PDO_MYSQL_LIBNAME=mysqlclient_r + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` + else + PDO_MYSQL_LIBNAME=mysqlclient + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` + fi + PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + elif test -n "$PDO_MYSQL_DIR"; then + AC_MSG_RESULT([not found]) + AC_MSG_CHECKING([for mysql install under $PDO_MYSQL_DIR]) + if test -r $PDO_MYSQL_DIR/include/mysql; then + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql + else + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include + fi + if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql + else + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR + fi + + if test -r "$PDO_MYSQL_LIB_DIR"; then + AC_MSG_RESULT([libs under $PDO_MYSQL_LIB_DIR; seems promising]) + else + AC_MSG_RESULT([can not find it]) + AC_MSG_ERROR([Unable to find your mysql installation]) + fi + + PHP_ADD_INCLUDE($PDO_MYSQL_INC_DIR) + PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR + else + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Unable to find your mysql installation]) + fi + + PHP_CHECK_LIBRARY($PDO_MYSQL_LIBNAME, mysql_commit, + [ + PHP_EVAL_INCLINE($PDO_MYSQL_INCLUDE) + PHP_EVAL_LIBLINE($PDO_MYSQL_LIBS, PDO_MYSQL_SHARED_LIBADD) + ],[ + if test "$PHP_ZLIB_DIR" != "no"; then + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR, PDO_MYSQL_SHARED_LIBADD) + PHP_CHECK_LIBRARY($PDO_MYSQL_LIBNAME, mysql_commit, [], [ + AC_MSG_ERROR([PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.]) + ], [ + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR + ]) + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + PHP_ADD_LIBRARY(z,, PDO_MYSQL_SHARED_LIBADD) + PHP_CHECK_LIBRARY($PDO_MYSQL_LIBNAME, mysql_query, [], [ + AC_MSG_ERROR([Try adding --with-zlib-dir=. Please check config.log for more information.]) + ], [ + -L$PDO_MYSQL_LIB_DIR + ]) + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz" + fi + + PHP_EVAL_INCLINE($PDO_MYSQL_INCLUDE) + PHP_EVAL_LIBLINE($PDO_MYSQL_LIBS, PDO_MYSQL_SHARED_LIBADD) + ],[ + $PDO_MYSQL_LIBS + ]) + fi + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + if test -n "$PDO_MYSQL_CONFIG"; then + PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` + AC_DEFINE_UNQUOTED(PDO_MYSQL_UNIX_ADDR, "$PDO_MYSQL_SOCKET", [ ]) + fi + + dnl fix after renaming to pdo_mysql + PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-I$pdo_cv_inc_path -I) + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo) + if test "$PHP_MYSQL" = "mysqlnd"; then + PHP_ADD_EXTENSION_DEP(pdo_mysql, mysqlnd) + fi + ]) + PDO_MYSQL_MODULE_TYPE=external + + PHP_SUBST(PDO_MYSQL_SHARED_LIBADD) + PHP_SUBST_OLD(PDO_MYSQL_MODULE_TYPE) +fi diff --git a/tests/fixtures/ext/pdo_oci/config.m4 b/tests/fixtures/ext/pdo_oci/config.m4 new file mode 100755 index 000000000..e3795db0e --- /dev/null +++ b/tests/fixtures/ext/pdo_oci/config.m4 @@ -0,0 +1,241 @@ +dnl $Id$ +dnl config.m4 for extension pdo_oci +dnl vim:et:sw=2:ts=2: + +SUPPORTED_LIB_VERS="9.0 10.1 11.1 12.1" # The lib vers are not bumped when the DB version is bumped +AC_DEFUN([AC_PDO_OCI_VERSION],[ + AC_MSG_CHECKING([Oracle version]) + for OCI_VER in $SUPPORTED_LIB_VERS; do + if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then + PDO_OCI_VERSION="$OCI_VER" + fi + done + if test -z "$PDO_OCI_VERSION"; then + AC_MSG_ERROR([Oracle required OCI8 libraries not found under $PDO_OCI_DIR]) + fi + AC_MSG_RESULT($PDO_OCI_VERSION) +]) + +AC_DEFUN([AC_PDO_OCI_CHECK_LIB_DIR],[ + AC_CHECK_SIZEOF(long int, 4) + AC_MSG_CHECKING([if we're on a 64-bit platform]) + if test "$ac_cv_sizeof_long_int" = "4" ; then + AC_MSG_RESULT([no]) + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + else + AC_MSG_RESULT([yes]) + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + fi + + AC_MSG_CHECKING([OCI8 libraries dir]) + if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR + else + AC_MSG_ERROR([Oracle required OCI8 libraries not found]) + fi + AC_MSG_RESULT($PDO_OCI_LIB_DIR) +]) + +PHP_ARG_WITH(pdo-oci, Oracle OCI support for PDO, +[ --with-pdo-oci[=DIR] PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME. + Use --with-pdo-oci=instantclient,prefix,version + for an Oracle Instant Client SDK. + For example on Linux with 11.2 RPMs use: + --with-pdo-oci=instantclient,/usr,11.2 + With 10.2 RPMs use: + --with-pdo-oci=instantclient,/usr,10.2.0.4]) + +if test "$PHP_PDO_OCI" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + AC_MSG_CHECKING([Oracle Install-Dir]) + if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then + PDO_OCI_DIR=$ORACLE_HOME + else + PDO_OCI_DIR=$PHP_PDO_OCI + fi + AC_MSG_RESULT($PHP_PDO_OCI) + + AC_MSG_CHECKING([if that is sane]) + if test -z "$PDO_OCI_DIR"; then + AC_MSG_ERROR([ +You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME. +]) + else + AC_MSG_RESULT([yes]) + fi + + if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then + AC_CHECK_SIZEOF(long int, 4) + if test "$ac_cv_sizeof_long_int" = "4" ; then + PDO_OCI_CLIENT_DIR="client" + else + PDO_OCI_CLIENT_DIR="client64" + fi + PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`" + PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`" + if test -n "$PDO_OCI_IC_VERS"; then + PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`" + if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then + # From 11.1.0.7 the RPM path only has an X.Y component + PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + fi + fi + AC_MSG_CHECKING([for oci.h]) + if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then + PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR) + AC_MSG_RESULT($PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR) + elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include) + AC_MSG_RESULT($PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include) + elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then + PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/sdk/include) + AC_MSG_RESULT($PDO_OCI_IC_PREFIX/sdk/include) + elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include) + AC_MSG_RESULT($PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include) + else + AC_MSG_ERROR([I'm too dumb to figure out where the include dir is in your Instant Client install]) + fi + if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX" + else + AC_MSG_ERROR([I'm too dumb to figure out where the libraries are in your Instant Client install]) + fi + PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + else + AC_PDO_OCI_CHECK_LIB_DIR($PDO_OCI_DIR) + + if test -d "$PDO_OCI_DIR/rdbms/public"; then + PHP_ADD_INCLUDE($PDO_OCI_DIR/rdbms/public) + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public" + fi + if test -d "$PDO_OCI_DIR/rdbms/demo"; then + PHP_ADD_INCLUDE($PDO_OCI_DIR/rdbms/demo) + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo" + fi + if test -d "$PDO_OCI_DIR/network/public"; then + PHP_ADD_INCLUDE($PDO_OCI_DIR/network/public) + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public" + fi + if test -d "$PDO_OCI_DIR/plsql/public"; then + PHP_ADD_INCLUDE($PDO_OCI_DIR/plsql/public) + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public" + fi + if test -d "$PDO_OCI_DIR/include"; then + PHP_ADD_INCLUDE($PDO_OCI_DIR/include) + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include" + fi + + if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then + PHP_EVAL_LIBLINE(`cat $PDO_OCI_LIB_DIR/sysliblist`, PDO_OCI_SYSLIB) + elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then + PHP_EVAL_LIBLINE(`cat $PDO_OCI_DIR/rdbms/lib/sysliblist`, PDO_OCI_SYSLIB) + fi + AC_PDO_OCI_VERSION($PDO_OCI_DIR) + fi + + case $PDO_OCI_VERSION in + 9.0|10.1|10.2|11.1|11.2|12.1) + PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD) + ;; + + *) + AC_MSG_ERROR(Unsupported Oracle version $PDO_OCI_VERSION) + ;; + esac + + PHP_ADD_LIBPATH($PDO_OCI_LIB_DIR, PDO_OCI_SHARED_LIBADD) + + PHP_CHECK_LIBRARY(clntsh, OCIEnvCreate, + [ + AC_DEFINE(HAVE_OCIENVCREATE,1,[ ]) + ], [], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + + PHP_CHECK_LIBRARY(clntsh, OCIEnvNlsCreate, + [ + AC_DEFINE(HAVE_OCIENVNLSCREATE,1,[ ]) + ], [], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + + dnl + dnl Check if we need to add -locijdbc8 + dnl + PHP_CHECK_LIBRARY(clntsh, OCILobIsTemporary, + [ + AC_DEFINE(HAVE_OCILOBISTEMPORARY,1,[ ]) + ], [ + PHP_CHECK_LIBRARY(ocijdbc8, OCILobIsTemporary, + [ + PHP_ADD_LIBRARY(ocijdbc8, 1, PDO_OCI_SHARED_LIBADD) + AC_DEFINE(HAVE_OCILOBISTEMPORARY,1,[ ]) + ], [], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + ], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + + dnl + dnl Check if we have collections + dnl + PHP_CHECK_LIBRARY(clntsh, OCICollAssign, + [ + AC_DEFINE(HAVE_OCICOLLASSIGN,1,[ ]) + ], [], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + + dnl Scrollable cursors? + PHP_CHECK_LIBRARY(clntsh, OCIStmtFetch2, + [ + AC_DEFINE(HAVE_OCISTMTFETCH2,1,[ ]) + ], [], [ + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + ]) + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + PHP_NEW_EXTENSION(pdo_oci, pdo_oci.c oci_driver.c oci_statement.c, $ext_shared,,-I$pdo_cv_inc_path) + + PHP_SUBST_OLD(PDO_OCI_SHARED_LIBADD) + PHP_SUBST_OLD(PDO_OCI_DIR) + PHP_SUBST_OLD(PDO_OCI_VERSION) + + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_oci, pdo) + ]) + + AC_DEFINE_UNQUOTED(PHP_PDO_OCI_CLIENT_VERSION, "$PDO_OCI_VERSION", [ ]) +fi + diff --git a/tests/fixtures/ext/pdo_odbc/config.m4 b/tests/fixtures/ext/pdo_odbc/config.m4 new file mode 100755 index 000000000..74734c4d6 --- /dev/null +++ b/tests/fixtures/ext/pdo_odbc/config.m4 @@ -0,0 +1,174 @@ +dnl $Id$ +dnl config.m4 for extension pdo_odbc +dnl vim:et:sw=2:ts=2: + +define([PDO_ODBC_HELP_TEXT],[[ + include and lib dirs are looked for under 'dir'. + + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic + If ',dir' part is omitted, default for the flavour + you have selected will be used. e.g.: + + --with-pdo-odbc=unixODBC + + will check for unixODBC under /usr/local. You may attempt + to use an otherwise unsupported driver using the \"generic\" + flavour. The syntax for generic ODBC support is: + + --with-pdo-odbc=generic,dir,libname,ldflags,cflags + + When built as 'shared' the extension filename is always pdo_odbc.so]]) + +PHP_ARG_WITH(pdo-odbc, for ODBC v3 support for PDO, +[ --with-pdo-odbc=flavour,dir + PDO: Support for 'flavour' ODBC driver.]PDO_ODBC_HELP_TEXT) + + +AC_DEFUN([PDO_ODBC_CHECK_HEADER],[ + AC_MSG_CHECKING([for $1 in $PDO_ODBC_INCDIR]) + if test -f "$PDO_ODBC_INCDIR/$1"; then + php_pdo_have_header=yes + PHP_DEF_HAVE(translit($1,.,_)) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi +]) + +if test "$PHP_PDO_ODBC" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + AC_MSG_CHECKING([for selected PDO ODBC flavour]) + + pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" + pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" + + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then + pdo_odbc_dir= + fi + + case $pdo_odbc_flavour in + ibm-db2) + pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib + pdo_odbc_def_incdir=/home/db2inst1/sqllib/include + pdo_odbc_def_lib=db2 + ;; + + iODBC|iodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=iodbc + ;; + + unixODBC|unixodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=odbc + ;; + + ODBCRouter|odbcrouter) + pdo_odbc_def_libdir=/usr/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/include + pdo_odbc_def_lib=odbcsdk + ;; + + generic) + pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`" + pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`" + pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`" + pdo_odbc_flavour="generic-$pdo_odbc_def_lib" + ;; + + *) + AC_MSG_ERROR([Unknown ODBC flavour $pdo_odbc_flavour]PDO_ODBC_HELP_TEXT) + ;; + esac + + if test -n "$pdo_odbc_dir"; then + PDO_ODBC_INCDIR="$pdo_odbc_dir/include" + PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR" + else + PDO_ODBC_INCDIR="$pdo_odbc_def_incdir" + PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" + fi + + AC_MSG_RESULT([$pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR]) + + if test ! -d "$PDO_ODBC_LIBDIR" ; then + AC_MSG_WARN([library dir $PDO_ODBC_LIBDIR does not exist]) + fi + + PDO_ODBC_CHECK_HEADER(odbc.h) + PDO_ODBC_CHECK_HEADER(odbcsdk.h) + PDO_ODBC_CHECK_HEADER(iodbc.h) + PDO_ODBC_CHECK_HEADER(sqlunix.h) + PDO_ODBC_CHECK_HEADER(sqltypes.h) + PDO_ODBC_CHECK_HEADER(sqlucode.h) + PDO_ODBC_CHECK_HEADER(sql.h) + PDO_ODBC_CHECK_HEADER(isql.h) + PDO_ODBC_CHECK_HEADER(sqlext.h) + PDO_ODBC_CHECK_HEADER(isqlext.h) + PDO_ODBC_CHECK_HEADER(udbcext.h) + PDO_ODBC_CHECK_HEADER(sqlcli1.h) + PDO_ODBC_CHECK_HEADER(LibraryManager.h) + PDO_ODBC_CHECK_HEADER(cli0core.h) + PDO_ODBC_CHECK_HEADER(cli0ext.h) + PDO_ODBC_CHECK_HEADER(cli0cli.h) + PDO_ODBC_CHECK_HEADER(cli0defs.h) + PDO_ODBC_CHECK_HEADER(cli0env.h) + + if test "$php_pdo_have_header" != "yes"; then + AC_MSG_ERROR([Cannot find header file(s) for pdo_odbc]) + fi + + PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" + PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib" + + PHP_EVAL_LIBLINE([$PDO_ODBC_LDFLAGS], [PDO_ODBC_SHARED_LIBADD]) + + dnl Check first for an ODBC 1.0 function to assert that the libraries work + PHP_CHECK_LIBRARY($pdo_odbc_def_lib, SQLBindCol, + [ + dnl And now check for an ODBC 3.0 function to assert that they're + dnl *good* libraries. + PHP_CHECK_LIBRARY($pdo_odbc_def_lib, SQLAllocHandle, + [], [ + AC_MSG_ERROR([ +Your ODBC library does not appear to be ODBC 3 compatible. +You should consider using iODBC or unixODBC instead, and loading your +libraries as a driver in that environment; it will emulate the +functions required for PDO support. +])], $PDO_ODBC_LDFLAGS) + ],[ + AC_MSG_ERROR([Your ODBC library does not exist or there was an error. Check config.log for more information]) + ], $PDO_ODBC_LDFLAGS) + + PHP_NEW_EXTENSION(pdo_odbc, pdo_odbc.c odbc_driver.c odbc_stmt.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE) + PHP_SUBST(PDO_ODBC_SHARED_LIBADD) + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_odbc, pdo) + ]) +fi diff --git a/tests/fixtures/ext/pdo_pgsql/config.m4 b/tests/fixtures/ext/pdo_pgsql/config.m4 new file mode 100644 index 000000000..afe42e06a --- /dev/null +++ b/tests/fixtures/ext/pdo_pgsql/config.m4 @@ -0,0 +1,129 @@ +dnl $Id$ +dnl config.m4 for extension pdo_pgsql +dnl vim:et:sw=2:ts=2: + +PHP_ARG_WITH(pdo-pgsql,for PostgreSQL support for PDO, +[ --with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base + install directory or the path to pg_config]) + +if test "$PHP_PDO_PGSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + PHP_EXPAND_PATH($PGSQL_INCLUDE, PGSQL_INCLUDE) + + AC_MSG_CHECKING(for pg_config) + for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + AC_MSG_RESULT([$PG_CONFIG]) + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + else + AC_MSG_RESULT(not found) + if test "$PHP_PDO_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + fi + fi + done + + for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + AC_MSG_ERROR(Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path) + fi + + if test -z "$PGSQL_LIBDIR"; then + AC_MSG_ERROR(Cannot find libpq.so. Please specify correct PostgreSQL installation path) + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + AC_MSG_ERROR([Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS]) + fi + + AC_DEFINE(HAVE_PDO_PGSQL,1,[Whether to build PostgreSQL for PDO support or not]) + + AC_MSG_CHECKING([for openssl dependencies]) + grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1 + if test $? -eq 0 ; then + AC_MSG_RESULT([yes]) + dnl First try to find pkg-config + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags` + fi + else + AC_MSG_RESULT([no]) + fi + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + AC_CHECK_LIB(pq, PQparameterStatus,AC_DEFINE(HAVE_PQPARAMETERSTATUS,1,[PostgreSQL 7.4 or later]), [ + echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required" + exit 1 + ]) + + AC_CHECK_LIB(pq, PQprepare,AC_DEFINE(HAVE_PQPREPARE,1,[PostgreSQL 8.0 or later])) + AC_CHECK_LIB(pq, PQescapeStringConn, AC_DEFINE(HAVE_PQESCAPE_CONN,1,[PostgreSQL 8.1.4 or later])) + AC_CHECK_LIB(pq, PQescapeByteaConn, AC_DEFINE(HAVE_PQESCAPE_BYTEA_CONN,1,[PostgreSQL 8.1.4 or later])) + + AC_CHECK_LIB(pq, pg_encoding_to_char,AC_DEFINE(HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT,1,[Whether libpq is compiled with --enable-multibyte])) + + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + PHP_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR, PDO_PGSQL_SHARED_LIBADD) + PHP_SUBST(PDO_PGSQL_SHARED_LIBADD) + + PHP_ADD_INCLUDE($PGSQL_INCLUDE) + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS) + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo) + ]) +fi diff --git a/tests/fixtures/ext/pdo_sqlite/config.m4 b/tests/fixtures/ext/pdo_sqlite/config.m4 new file mode 100644 index 000000000..0a7d0fe82 --- /dev/null +++ b/tests/fixtures/ext/pdo_sqlite/config.m4 @@ -0,0 +1,112 @@ +dnl $Id$ +dnl config.m4 for extension pdo_sqlite +dnl vim:et:sw=2:ts=2: + +PHP_ARG_WITH(pdo-sqlite, for sqlite 3 support for PDO, +[ --without-pdo-sqlite[=DIR] + PDO: sqlite 3 support. DIR is the sqlite base + install directory [BUNDLED]], $PHP_PDO) + +if test "$PHP_PDO_SQLITE" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) + fi + + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_cv_inc_path) + ]) + + php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c" + + if test "$PHP_PDO_SQLITE" != "yes"; then + SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this + SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this + if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter + PDO_SQLITE_DIR=$PHP_PDO_SQLITE + else # search default path list + AC_MSG_CHECKING([for sqlite3 files in default path]) + for i in $SEARCH_PATH ; do + if test -r $i/$SEARCH_FOR; then + PDO_SQLITE_DIR=$i + AC_MSG_RESULT(found in $i) + fi + done + fi + if test -z "$PDO_SQLITE_DIR"; then + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Please reinstall the sqlite3 distribution]) + fi + + PHP_ADD_INCLUDE($PDO_SQLITE_DIR/include) + + LIBNAME=sqlite3 + LIBSYMBOL=sqlite3_open + + PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, + [ + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $PDO_SQLITE_DIR/$PHP_LIBDIR, PDO_SQLITE_SHARED_LIBADD) + AC_DEFINE(HAVE_PDO_SQLITELIB,1,[ ]) + ],[ + AC_MSG_ERROR([wrong sqlite lib version or lib not found]) + ],[ + -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm + ]) + PHP_CHECK_LIBRARY(sqlite3,sqlite3_key,[ + AC_DEFINE(HAVE_SQLITE3_KEY,1, [have commercial sqlite3 with crypto support]) + ]) + + PHP_SUBST(PDO_SQLITE_SHARED_LIBADD) + PHP_NEW_EXTENSION(pdo_sqlite, $php_pdo_sqlite_sources_core, $ext_shared,,-I$pdo_cv_inc_path) + else + # use bundled libs + if test "$enable_maintainer_zts" = "yes"; then + threadsafe_flags="-DSQLITE_THREADSAFE=1" + else + threadsafe_flags="-DSQLITE_THREADSAFE=0" + fi + + other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1" + + dnl As long as intl is not shared we can have ICU support + if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then + other_flags="$other_flags -DSQLITE_ENABLE_ICU=1" + fi + + if test "$PHP_SQLITE3" != "yes"; then + PHP_ADD_SOURCES(PHP_EXT_DIR(sqlite3), libsqlite/sqlite3.c) + fi + + PHP_NEW_EXTENSION(pdo_sqlite, + $php_pdo_sqlite_sources_core, + $ext_shared,,-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_cv_inc_path) + + PHP_SUBST(PDO_SQLITE_SHARED_LIBADD) + PHP_ADD_EXTENSION_DEP(pdo_sqlite, sqlite3) + PHP_ADD_INCLUDE($abs_srcdir/ext/sqlite3/libsqlite) + + AC_CHECK_FUNCS(usleep nanosleep) + AC_CHECK_HEADERS(time.h) + fi + + dnl Solaris fix + PHP_CHECK_LIBRARY(rt, fdatasync, [PHP_ADD_LIBRARY(rt,, PDO_SQLITE_SHARED_LIBADD)]) + + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo) + ]) +fi diff --git a/tests/fixtures/ext/pgsql/config.m4 b/tests/fixtures/ext/pgsql/config.m4 new file mode 100644 index 000000000..13837bd83 --- /dev/null +++ b/tests/fixtures/ext/pgsql/config.m4 @@ -0,0 +1,109 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(pgsql,for PostgreSQL support, +[ --with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL + base install directory or the path to pg_config]) + +if test "$PHP_PGSQL" != "no"; then + PHP_EXPAND_PATH($PGSQL_INCLUDE, PGSQL_INCLUDE) + + AC_MSG_CHECKING(for pg_config) + for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + AC_MSG_RESULT([$PG_CONFIG]) + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + fi + else + AC_MSG_RESULT(not found) + if test "$PHP_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + fi + fi + done + + for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + AC_MSG_ERROR(Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path) + fi + + if test -z "$PGSQL_LIBDIR"; then + AC_MSG_ERROR(Cannot find libpq.so. Please specify correct PostgreSQL installation path) + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + AC_MSG_ERROR([Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS]) + fi + + AC_DEFINE(HAVE_PGSQL,1,[Whether to build PostgreSQL support or not]) + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + AC_CHECK_LIB(pq, PQescapeString,AC_DEFINE(HAVE_PQESCAPE,1,[PostgreSQL 7.2.0 or later])) + AC_CHECK_LIB(pq, PQunescapeBytea,AC_DEFINE(HAVE_PQUNESCAPEBYTEA,1,[PostgreSQL 7.3.0 or later])) + AC_CHECK_LIB(pq, PQsetnonblocking,AC_DEFINE(HAVE_PQSETNONBLOCKING,1,[PostgreSQL 7.0.x or later])) + AC_CHECK_LIB(pq, PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES,1,[Broken libpq under windows])) + AC_CHECK_LIB(pq, PQoidValue,AC_DEFINE(HAVE_PQOIDVALUE,1,[Older PostgreSQL])) + AC_CHECK_LIB(pq, PQclientEncoding,AC_DEFINE(HAVE_PQCLIENTENCODING,1,[PostgreSQL 7.0.x or later])) + AC_CHECK_LIB(pq, PQparameterStatus,AC_DEFINE(HAVE_PQPARAMETERSTATUS,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQprotocolVersion,AC_DEFINE(HAVE_PQPROTOCOLVERSION,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQtransactionStatus,AC_DEFINE(HAVE_PGTRANSACTIONSTATUS,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQexecParams,AC_DEFINE(HAVE_PQEXECPARAMS,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQprepare,AC_DEFINE(HAVE_PQPREPARE,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQexecPrepared,AC_DEFINE(HAVE_PQEXECPREPARED,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQresultErrorField,AC_DEFINE(HAVE_PQRESULTERRORFIELD,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQsendQueryParams,AC_DEFINE(HAVE_PQSENDQUERYPARAMS,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQsendPrepare,AC_DEFINE(HAVE_PQSENDPREPARE,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQsendQueryPrepared,AC_DEFINE(HAVE_PQSENDQUERYPREPARED,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQputCopyData,AC_DEFINE(HAVE_PQPUTCOPYDATA,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQputCopyEnd,AC_DEFINE(HAVE_PQPUTCOPYEND,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQgetCopyData,AC_DEFINE(HAVE_PQGETCOPYDATA,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQfreemem,AC_DEFINE(HAVE_PQFREEMEM,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQsetErrorVerbosity,AC_DEFINE(HAVE_PQSETERRORVERBOSITY,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQftable,AC_DEFINE(HAVE_PQFTABLE,1,[PostgreSQL 7.4 or later])) + AC_CHECK_LIB(pq, PQescapeStringConn, AC_DEFINE(HAVE_PQESCAPE_CONN,1,[PostgreSQL 8.1.4 or later])) + AC_CHECK_LIB(pq, PQescapeByteaConn, AC_DEFINE(HAVE_PQESCAPE_BYTEA_CONN,1,[PostgreSQL 8.1.4 or later])) + AC_CHECK_LIB(pq, pg_encoding_to_char,AC_DEFINE(HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT,1,[Whether libpq is compiled with --enable-multibyte])) + AC_CHECK_LIB(pq, lo_create, AC_DEFINE(HAVE_PG_LO_CREATE,1,[PostgreSQL 8.1 or later])) + AC_CHECK_LIB(pq, lo_import_with_oid, AC_DEFINE(HAVE_PG_LO_IMPORT_WITH_OID,1,[PostgreSQL 8.4 or later])) + AC_CHECK_LIB(pq, PQescapeLiteral, AC_DEFINE(HAVE_PQESCAPELITERAL,1,[PostgreSQL 9.0 or later])) + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + PHP_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR, PGSQL_SHARED_LIBADD) + PHP_SUBST(PGSQL_SHARED_LIBADD) + + PHP_ADD_INCLUDE($PGSQL_INCLUDE) + + PHP_NEW_EXTENSION(pgsql, pgsql.c, $ext_shared) +fi + + diff --git a/tests/fixtures/ext/phar/config.m4 b/tests/fixtures/ext/phar/config.m4 new file mode 100644 index 000000000..614d672ea --- /dev/null +++ b/tests/fixtures/ext/phar/config.m4 @@ -0,0 +1,34 @@ +dnl $Id$ +dnl config.m4 for extension phar + +PHP_ARG_ENABLE(phar, for phar archive support, +[ --disable-phar Disable phar support], yes) + +if test "$PHP_PHAR" != "no"; then + PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared) + AC_MSG_CHECKING([for phar openssl support]) + if test "$PHP_HASH_SHARED" != "yes"; then + if test "$PHP_HASH" != "no"; then + AC_DEFINE(PHAR_HASH_OK,1,[ ]) + fi + else + AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared]) + fi + if test "$PHP_OPENSSL_SHARED" = "yes"; then + AC_MSG_RESULT([no (shared openssl)]) + else + if test "$PHP_OPENSSL" = "yes"; then + AC_MSG_RESULT([yes]) + AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ]) + else + AC_MSG_RESULT([no]) + fi + fi + PHP_ADD_EXTENSION_DEP(phar, hash, true) + PHP_ADD_EXTENSION_DEP(phar, spl, true) + PHP_ADD_MAKEFILE_FRAGMENT + + PHP_INSTALL_HEADERS([ext/phar], [php_phar.h]) + + PHP_OUTPUT(ext/phar/phar.1 ext/phar/phar.phar.1) +fi diff --git a/tests/fixtures/ext/phar/package.xml b/tests/fixtures/ext/phar/package.xml new file mode 100644 index 000000000..4a9798e25 --- /dev/null +++ b/tests/fixtures/ext/phar/package.xml @@ -0,0 +1,1452 @@ + + + phar + pecl.php.net + allows running of complete applications out of .phar files (like Java .jar files) + This is the extension version of PEAR's PHP_Archive package. Support for +zlib, bz2 and crc32 is achieved without any dependency other than the external +zlib or bz2 extension. + +.phar files can be read using the phar stream, or with the Phar class. If the SPL extension +is available, a Phar object can be used as an array to iterate over a phar's contents +or to read files directly from the phar. + +Phar supports tar and zip file formats as well as the native phar file format, and can also be +used to create data-only tar and zip archives with the PharData class, even if +write access is disabled by the phar.readonly ini variable. + +Executable phar archives can be created using the streams API or with the Phar class, if +the phar.readonly ini variable is set to false. + +Full support for MD5 and SHA1 signatures is possible. Signatures can be required +if the ini variable phar.require_hash is set to true. When PECL extension hash is +available then SHA-256 and SHA-512 signatures are supported as well. + +Phar is APC-compatible, the latest APC will cache files within a phar archive, resulting in +a 6x speedup measured running phpMyAdmin as a phar archive. + + Greg Beaver + cellog + cellog@php.net + yes + + + Marcus Boerger + helly + helly@php.net + yes + + + Steph Fox + sfox + sfox@php.net + yes + + 2009-07-26 + + + 2.0.0 + 1.1.1 + + + stable + stable + + PHP License + +BC BREAKING RELEASE + BC breaks: + * Phar object Compression API is rewritten. Use Phar::compress() and decompress(), + Phar::compressFiles()/decompressFiles() and PharFileInfo->compress()/decompress(). + * phar.extract_list and Phar::getExtractList() are removed + +Major feature functionality release + * phar.cache_list allows web-based phar applications to run at equal or faster than + their on-disk equivalent [Greg] + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add support for OpenSSL-based true signatures [Greg] + * add support for signatures to tar-based phar archives [Greg] + * add Phar::isFileFormat() [Greg] + * add Phar::convertToExecutable(), Phar::convertToData() [Greg] + * add Phar::compress() [Greg] + * rename Phar::compressAllFiles() to compressFiles(), uncompressAllFiles() to + decompressFiles() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::running(), returns path or URL to currently executed phar + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::buildFromDirectory(string $base_directory[, string $regex]) [Steph] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + * implement Phar::unlinkArchive() [Greg] + +Security addition + * aliases are validated so that they contain no directory separators as intended + * on conversion to other formats, user-supplied aliases are validated + +Changes since 2.0.0RC2: + fixed PHP Bug #49021: phar tar signature algorithm reports as Unknown (0) in + getSignature() call + fixed PHP Bug #49020: phar misinterprets ustar long filename standard + fixed PHP Bug #49018: phar tar stores long filenames with prefix/name reversed + fixed PHP Bug #48791: open office files always reported as corrupted + fixed PHP Bug #48783: make install will fail saying phar file exists + fixed PHP Bug #48740: PHAR install fails when INSTALL_ROOT is not the final install location + fixed PHP Bug #48681: openssl signature verification for tar archives broken + fixed PHP Bug #48377: error message unclear on converting phar with existing file + fixed isset() on sub-directories (isset("blah") if file "blah/foo.php" exists) + + make phar work in PHP 6 +Changes since 2.0.0RC1: + security vulnerability in handling of long tar filenames fixed + fixed PECL Bug #14646: phar error message unclear with php stream wrappers + fixed PECL Bug #16338: php_stream_copy_to_stream{,_ex}() + fixed PHP Bug #48257: PharData throws an exception with non-phar tar + fixed PHP Bug #47085: rename() returns true even if the file in PHAR does not exist + fixed PHP Bug #46032: PharData::__construct() - wrong memory read + fixed PHP Bug #46060: Phar::addEmptyDir() breaks + fixed PHP Bug #45907: undefined reference to 'PHP_SHA512Init' + fixed PHP Bug #45726: PHP_Archive / Archive.php missing +Changes since 2.0.0a2: many bugfixes, removal of phar.extract_list, compression API refactored, + conversion API refactored +Changes since 2.0.0b1: addition of phar.cache_list, many performance improvements and bugfixes + implement OpenSSL asynchronous true package signing + add support for package signing to tar-based archives + require PHP 5.2.1+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.2.1 + + + 1.4.3 + + + + + bz2 + pecl.php.net + bz2 + + + hash + pecl.php.net + hash + + + spl + + + zlib + + + + phar + + + + + 2.0.0 + 1.1.1 + + + beta + beta + + 2009-07-26 + PHP License + +BC BREAKING RELEASE + BC breaks: + * Phar object Compression API is rewritten. Use Phar::compress() and decompress(), + Phar::compressFiles()/decompressFiles() and PharFileInfo->compress()/decompress(). + * phar.extract_list and Phar::getExtractList() are removed + +Major feature functionality release + * phar.cache_list allows web-based phar applications to run at equal or faster than + their on-disk equivalent [Greg] + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add support for OpenSSL-based true signatures [Greg] + * add support for signatures to tar-based phar archives [Greg] + * add Phar::isFileFormat() [Greg] + * add Phar::convertToExecutable(), Phar::convertToData() [Greg] + * add Phar::compress() [Greg] + * rename Phar::compressAllFiles() to compressFiles(), uncompressAllFiles() to + decompressFiles() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::running(), returns path or URL to currently executed phar + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::buildFromDirectory(string $base_directory[, string $regex]) [Steph] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + * implement Phar::unlinkArchive() [Greg] + +Security addition + * aliases are validated so that they contain no directory separators as intended + * on conversion to other formats, user-supplied aliases are validated + +Changes since 2.0.0RC2: + fixed PHP Bug #49021: phar tar signature algorithm reports as Unknown (0) in + getSignature() call + fixed PHP Bug #49020: phar misinterprets ustar long filename standard + fixed PHP Bug #49018: phar tar stores long filenames with prefix/name reversed + fixed PHP Bug #48791: open office files always reported as corrupted + fixed PHP Bug #48783: make install will fail saying phar file exists + fixed PHP Bug #48740: PHAR install fails when INSTALL_ROOT is not the final install location + fixed PHP Bug #48681: openssl signature verification for tar archives broken + fixed PHP Bug #48377: error message unclear on converting phar with existing file + fixed isset() on sub-directories (isset("blah") if file "blah/foo.php" exists) + + make phar work in PHP 6 +Changes since 2.0.0RC1: + security vulnerability in handling of long tar filenames fixed + fixed PECL Bug #14646: phar error message unclear with php stream wrappers + fixed PECL Bug #16338: php_stream_copy_to_stream{,_ex}() + fixed PHP Bug #48257: PharData throws an exception with non-phar tar + fixed PHP Bug #47085: rename() returns true even if the file in PHAR does not exist + fixed PHP Bug #46032: PharData::__construct() - wrong memory read + fixed PHP Bug #46060: Phar::addEmptyDir() breaks + fixed PHP Bug #45907: undefined reference to 'PHP_SHA512Init' + fixed PHP Bug #45726: PHP_Archive / Archive.php missing +Changes since 2.0.0a2: many bugfixes, removal of phar.extract_list, compression API refactored, + conversion API refactored +Changes since 2.0.0b1: addition of phar.cache_list, many performance improvements and bugfixes + implement OpenSSL asynchronous true package signing + add support for package signing to tar-based archives + require PHP 5.2.1+ + + + + + 2.0.0RC2 + 1.1.1 + + + beta + beta + + 2009-06-04 + PHP License + +BC BREAKING RELEASE + BC breaks: + * Phar object Compression API is rewritten. Use Phar::compress() and decompress(), + Phar::compressFiles()/decompressFiles() and PharFileInfo->compress()/decompress(). + * phar.extract_list and Phar::getExtractList() are removed + +Major feature functionality release + * phar.cache_list allows web-based phar applications to run at equal or faster than + their on-disk equivalent [Greg] + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add support for OpenSSL-based true signatures [Greg] + * add support for signatures to tar-based phar archives [Greg] + * add Phar::isFileFormat() [Greg] + * add Phar::convertToExecutable(), Phar::convertToData() [Greg] + * add Phar::compress() [Greg] + * rename Phar::compressAllFiles() to compressFiles(), uncompressAllFiles() to + decompressFiles() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::running(), returns path or URL to currently executed phar + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::buildFromDirectory(string $base_directory[, string $regex]) [Steph] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + * implement Phar::unlinkArchive() [Greg] + +Security addition + * aliases are validated so that they contain no directory separators as intended + * on conversion to other formats, user-supplied aliases are validated + +Changes since 2.0.0RC1: + security vulnerability in handling of long tar filenames fixed + fixed PECL Bug #14646: phar error message unclear with php stream wrappers + fixed PECL Bug #16338: php_stream_copy_to_stream{,_ex}() + fixed PHP Bug #48257: PharData throws an exception with non-phar tar + fixed PHP Bug #47085: rename() returns true even if the file in PHAR does not exist + fixed PHP Bug #46032: PharData::__construct() - wrong memory read + fixed PHP Bug #46060: Phar::addEmptyDir() breaks + fixed PHP Bug #45907: undefined reference to 'PHP_SHA512Init' + fixed PHP Bug #45726: PHP_Archive / Archive.php missing +Changes since 2.0.0a2: many bugfixes, removal of phar.extract_list, compression API refactored, + conversion API refactored +Changes since 2.0.0b1: addition of phar.cache_list, many performance improvements and bugfixes + implement OpenSSL asynchronous true package signing + add support for package signing to tar-based archives + require PHP 5.2.1+ + + + + + 2.0.0RC1 + 1.1.1 + + + beta + beta + + 2008-08-31 + PHP License + +BC BREAKING RELEASE + BC breaks: + * Phar object Compression API is rewritten. Use Phar::compress() and decompress(), + Phar::compressFiles()/decompressFiles() and PharFileInfo->compress()/decompress(). + * phar.extract_list and Phar::getExtractList() are removed + +Major feature functionality release + * phar.cache_list allows web-based phar applications to run at equal or faster than + their on-disk equivalent [Greg] + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add support for OpenSSL-based true signatures [Greg] + * add support for signatures to tar-based phar archives [Greg] + * add Phar::isFileFormat() [Greg] + * add Phar::convertToExecutable(), Phar::convertToData() [Greg] + * add Phar::compress() [Greg] + * rename Phar::compressAllFiles() to compressFiles(), uncompressAllFiles() to + decompressFiles() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::running(), returns path or URL to currently executed phar + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::buildFromDirectory(string $base_directory[, string $regex]) [Steph] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + * implement Phar::unlinkArchive() [Greg] + +Security addition + * aliases are validated so that they contain no directory separators as intended + * on conversion to other formats, user-supplied aliases are validated + +Changes since 2.0.0a2: many bugfixes, removal of phar.extract_list, compression API refactored, + conversion API refactored +Changes since 2.0.0b1: addition of phar.cache_list, many performance improvements and bugfixes + implement OpenSSL asynchronous true package signing + add support for package signing to tar-based archives + require PHP 5.2.1+ + + + + + 2.0.0b1 + 1.1.1 + + + beta + beta + + 2008-05-12 + PHP License + +BC BREAKING RELEASE + BC breaks: + * Phar object Compression API is rewritten. Use Phar::compress() and decompress(), + Phar::compressFiles()/decompressFiles() and PharFileInfo->compress()/decompress(). + * phar.extract_list and Phar::getExtractList() are removed + +Major feature functionality release + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add Phar::isFileFormat() [Greg] + * add Phar::convertToExecutable(), Phar::convertToData() [Greg] + * add Phar::compress() [Greg] + * rename Phar::compressAllFiles() to compressFiles(), uncompressAllFiles() to + decompressFiles() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::running(), returns path or URL to currently executed phar + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::buildFromDirectory(string $base_directory[, string $regex]) [Steph] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + * implement Phar::unlinkArchive() [Greg] + +Security addition + * aliases are validated so that they contain no directory separators as intended + * on conversion to other formats, user-supplied aliases are validated + +Changes since 2.0.0a2: many bugfixes, removal of phar.extract_list, compression API refactored, + conversion API refactored + + + + + 2.0.0a2 + 1.1.1 + + + alpha + alpha + + 2008-03-27 + PHP License + +Major feature functionality release + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add Phar::isTar(), Phar::isZip(), and Phar::isPhar() [Greg] + * add Phar::convertToTar(), Phar::convertToZip(), and Phar::convertToPhar() [Greg] + * add Phar::compress() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + +Changes since 2.0.0a1: fix build in PHP 5.2 + + + + + 2.0.0a1 + 1.1.1 + + + alpha + alpha + + 2008-03-26 + PHP License + +Major feature functionality release + * new default stub allows running of phar-based phars without phar extension [Greg/Steph] + * add support for tar-based and zip-based phar archives [Greg] + * add Phar::isTar(), Phar::isZip(), and Phar::isPhar() [Greg] + * add Phar::convertToTar(), Phar::convertToZip(), and Phar::convertToPhar() [Greg] + * add Phar::compress() [Greg] + * conversion to compressed or to other file formats automatically copies the archive + to a new extension (i.e. ".phar" to ".phar.tar" or ".tar" to ".tar.gz") [Steph] + * add Phar::webPhar() for running a web-based application unmodified + directly from a phar archive [Greg] + * file functions (fopen-based and stat-based) can be instructed to only look for + relative paths within a phar via Phar::interceptFileFuncs() + * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph] + non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg] + * paths with . and .. work (phar://blah.phar/a/../b.php => phar://blah.phar/b.php) [Greg] + * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg] + * add option to compress the entire phar file for phar/tar file format [Greg] + * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg] + * implement Phar::copy(string $from, string $to) [Greg] + * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg] + * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg] + * add Phar::delete() [Greg] + + + + + 1.2.1 + 1.1.0 + + + stable + stable + + 2007-08-24 + PHP License + +* add Phar::setAlias() [Greg] +* fix too many open file handles issue [Greg] +* fix rename [Greg] +* add Phar::getAlias() [Marcus] +* Made -a optional in pack subcommand of phar.phar [Marcus] +* Fix issue with apache module and extracted archives [Marcus] +* Send all error messages to stderr in phar.phar [Marcus] +* Added new subcommands add and delete to phar.phar [Marcus] +* Made Phar::loadPhar() and Phar::mapPhar() ignore extracted archives [Marcus] +* Fix issue with compressed entries and uncompressing entries [Marcus] +* Verify stubs before writing [Marcus] +* Always use longest stub end to avoid issues with length field [Marcus] + + + + + 1.2.0 + 1.1.0 + + + stable + stable + + 2007-05-18 + PHP License + +* add PharFileInfo::hasMetadata(), PharFileInfo::delMetadata() [Marcus] +* add Phar::hasMetadata(), Phar::delMetadata() [Marcus] +* fix Phar::CanWrite() [Marcus] +* add preliminary phar command (phar.php) [Marcus] +* add phar command (phar.phar) [Marcus] +* list all available compression methods using Phar::getSupportedCompression() [Marcus] +* remove RINIT [Marcus] + + + + + 1.1.0 + 1.1.0 + + + stable + stable + + 2007-04-12 + PHP License + +* implement ability connect a phar file 'phar://whatever' to a directory. That way all + access to that phar archive are directed to the extracted directory. This + allows to have the installed files and the archive keep the same includes. + [Marcus] +* implement SHA-2 (256, 512) support [Marcus] +* implement setSignatureAlgorithm() and Phar::MD5 Phar::SHA1 Phar::SHA256 Phar::SHA512 Phar::PGP to + choose the kind of signature to use (PGP falls back to SHA1) [Greg] + + + + + 1.0.1 + 1.0.1 + + + stable + stable + + 2007-03-28 + PHP License + +* Fix return value of unlink() and rename() when used for phar archievs. [Marcus] + + + + + 1.0.0 + 1.0.0 + + + stable + stable + + 2007-03-26 + PHP License + +*BACKWARDS COMPATIBILITY BREAK* +Rename Phar->begin/isFlushingToPhar/commit to startBuffering/isBuffering/stopBuffering +Note that isBuffering() returns the opposite value to isFlushingToPhar() + + + + diff --git a/tests/fixtures/ext/posix/config.m4 b/tests/fixtures/ext/posix/config.m4 new file mode 100644 index 000000000..82b80ce97 --- /dev/null +++ b/tests/fixtures/ext/posix/config.m4 @@ -0,0 +1,50 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(posix,whether to enable POSIX-like functions, +[ --disable-posix Disable POSIX-like functions], yes) + +if test "$PHP_POSIX" = "yes"; then + AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions]) + PHP_NEW_EXTENSION(posix, posix.c, $ext_shared) + + AC_CHECK_HEADERS(sys/mkdev.h) + + AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r) + + AC_MSG_CHECKING([for working ttyname_r() implementation]) + AC_TRY_RUN([ +#include + +int main(int argc, char *argv[]) +{ + char buf[64]; + + return ttyname_r(0, buf, 64) ? 1 : 0; +} + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_TTYNAME_R, 1, [Whether you have a working ttyname_r]) + ],[ + AC_MSG_RESULT([no, posix_ttyname() will be thread-unsafe]) + ], [ + AC_MSG_RESULT([no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe]) + ]) + + AC_CACHE_CHECK([for utsname.domainname], ac_cv_have_utsname_domainname, [ + AC_TRY_COMPILE([ + #define _GNU_SOURCE + #include + ],[ + return sizeof(((struct utsname *)0)->domainname); + ],[ + ac_cv_have_utsname_domainname=yes + ],[ + ac_cv_have_utsname_domainname=no + ]) + ]) + if test "$ac_cv_have_utsname_domainname" = yes; then + AC_DEFINE(HAVE_UTSNAME_DOMAINNAME, 1, [Whether struct utsname has domainname]) + fi +fi diff --git a/tests/fixtures/ext/posix/package.xml b/tests/fixtures/ext/posix/package.xml new file mode 100644 index 000000000..231c5bee2 --- /dev/null +++ b/tests/fixtures/ext/posix/package.xml @@ -0,0 +1,49 @@ + + + + pcntl + Process control functions + + + ??? + Jason Greene + jason@inetgurus.net + lead + + + +Process Control support in PHP implements the Unix style +of process creation, program execution, signal handling +and process termination. Process Control should not be +enabled within a webserver environment and unexpected +results may happen if any Process Control functions +are used within a webserver environment. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/pspell/config.m4 b/tests/fixtures/ext/pspell/config.m4 new file mode 100644 index 000000000..481a9ae89 --- /dev/null +++ b/tests/fixtures/ext/pspell/config.m4 @@ -0,0 +1,45 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(pspell,for PSPELL support, +[ --with-pspell[=DIR] Include PSPELL support. + GNU Aspell version 0.50.0 or higher required]) + +if test "$PHP_PSPELL" != "no"; then + PHP_NEW_EXTENSION(pspell, pspell.c, $ext_shared) + if test "$PHP_PSPELL" != "yes"; then + PSPELL_SEARCH_DIRS=$PHP_PSPELL + else + PSPELL_SEARCH_DIRS="/usr/local /usr" + fi + for i in $PSPELL_SEARCH_DIRS; do + if test -f $i/include/pspell/pspell.h; then + PSPELL_DIR=$i + PSPELL_INCDIR=$i/include/pspell + elif test -f $i/include/pspell.h; then + PSPELL_DIR=$i + PSPELL_INCDIR=$i/include + fi + done + + if test -z "$PSPELL_DIR"; then + AC_MSG_ERROR(Cannot find pspell) + fi + + PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR + + PHP_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD) + + dnl Add -laspell to LIBS if it exists + PHP_CHECK_LIBRARY(aspell,new_aspell_config, + [ + PHP_ADD_LIBRARY_WITH_PATH(aspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD) + ], [], [ + -L$PSPELL_LIBDIR + ]) + + PHP_ADD_INCLUDE($PSPELL_INCDIR) + PHP_SUBST(PSPELL_SHARED_LIBADD) + AC_DEFINE(HAVE_PSPELL,1,[ ]) +fi diff --git a/tests/fixtures/ext/pthreads/config.m4 b/tests/fixtures/ext/pthreads/config.m4 new file mode 100644 index 000000000..f0ba8a1fd --- /dev/null +++ b/tests/fixtures/ext/pthreads/config.m4 @@ -0,0 +1,22 @@ +PHP_ARG_ENABLE(pthreads, whether to enable Threading API, +[ --enable-pthreads Enable Threading API]) +PHP_ARG_ENABLE(pthreads-pedantic, whether to enable pedantic locking, +[ --enable-pthreads-pedantic Enable pedantic locking], no, no) + +if test "$PHP_PTHREADS" != "no"; then + AC_DEFINE(HAVE_PTHREADS, 1, [Wether you have user-land threading support]) + AC_MSG_CHECKING([checking for ZTS]) + if test "$PHP_THREAD_SAFETY" != "no"; then + AC_MSG_RESULT([ok]) + else + AC_MSG_ERROR([pthreads requires ZTS, please re-compile PHP with ZTS enabled]) + fi + if test "$PHP_PTHREADS_PEDANTIC" != "no"; then + AC_DEFINE(PTHREADS_PEDANTIC, 1, [Wether to use pedantic locking]) + fi + PHP_NEW_EXTENSION(pthreads, php_pthreads.c src/lock.c src/globals.c src/prepare.c src/synchro.c src/state.c src/store.c src/resources.c src/modifiers.c src/handlers.c src/object.c, $ext_shared) + PHP_ADD_BUILD_DIR($ext_builddir/src, 1) + PHP_ADD_INCLUDE($ext_builddir) + PHP_SUBST(PTHREADS_SHARED_LIBADD) + PHP_ADD_MAKEFILE_FRAGMENT +fi diff --git a/tests/fixtures/ext/pthreads/package.xml b/tests/fixtures/ext/pthreads/package.xml new file mode 100644 index 000000000..cdb77983a --- /dev/null +++ b/tests/fixtures/ext/pthreads/package.xml @@ -0,0 +1,161 @@ + + + pthreads + pecl.php.net + Threading API + A compatible Threading API for PHP5.3+ + + Joe Watkins + krakjoe + pthreads@pthreads.org + yes + + 2014-10-01 + + + 2.0.10 + 2.0.10 + + + stable + stable + + PHP License + +fix crash when sending SIGINT, clashed with ::kill + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.3.0 + + + 1.4.0b1 + + + + pthreads + + diff --git a/tests/fixtures/ext/quickhash/config.m4 b/tests/fixtures/ext/quickhash/config.m4 new file mode 100644 index 000000000..5edef4ca6 --- /dev/null +++ b/tests/fixtures/ext/quickhash/config.m4 @@ -0,0 +1,11 @@ +dnl $Id: config.m4,v 1.2 2002-10-23 18:55:10 derick Exp $ +dnl config.m4 for extension quickhash + +PHP_ARG_ENABLE(quickhash, whether to enable quickhash support, +[ --enable-quickhash Enable quickhash support]) + +if test "$PHP_QUICKHASH" != "no"; then + PHP_NEW_EXTENSION(quickhash, quickhash.c qh_inthash.c qh_intset.c qh_intstringhash.c qh_stringinthash.c qh_iterator.c lib/quickhash.c lib/hash-algorithms.c lib/iterator.c, $ext_shared) + PHP_SUBST(QUICKHASH_SHARED_LIBADD) + PHP_ADD_BUILD_DIR($ext_builddir/lib, 1) +fi diff --git a/tests/fixtures/ext/quickhash/package.xml b/tests/fixtures/ext/quickhash/package.xml new file mode 100644 index 000000000..acaac23f9 --- /dev/null +++ b/tests/fixtures/ext/quickhash/package.xml @@ -0,0 +1,67 @@ + + + quickhash + pecl.php.net + Provides a set of specific strongly-typed classes for sets and hashing + This extension contains four classes for managing: an integer set, an integer +hash, integer to string hash and a string to integer hash. The main features +are low memory consumption and fast serialization and deserialization of +the sets and hashes. + + Derick Rethans + derick + derick@php.net + yes + + 2012-09-02 + + + 1.0.0 + 1.0.0 + + + stable + stable + + The PHP License + +Implemented ArrayAccess for QuickHashIntSet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.2.0 + + + 1.4.0b1 + + + + quickhash + + diff --git a/tests/fixtures/ext/readline/config.m4 b/tests/fixtures/ext/readline/config.m4 new file mode 100644 index 000000000..0a00370fc --- /dev/null +++ b/tests/fixtures/ext/readline/config.m4 @@ -0,0 +1,124 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(libedit,for libedit readline replacement, +[ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)]) + +if test "$PHP_LIBEDIT" = "no"; then + PHP_ARG_WITH(readline,for readline support, + [ --with-readline[=DIR] Include readline support (CLI/CGI only)]) +else + dnl "register" the --with-readline option to preven invalid "unknown configure option" warning + php_with_readline=no +fi + +if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do + test -f $i/include/readline/readline.h && READLINE_DIR=$i && break + done + + if test -z "$READLINE_DIR"; then + AC_MSG_ERROR(Please reinstall readline - I cannot find readline.h) + fi + + PHP_ADD_INCLUDE($READLINE_DIR/include) + + PHP_READLINE_LIBS="" + AC_CHECK_LIB(ncurses, tgetent, + [ + PHP_ADD_LIBRARY(ncurses,,READLINE_SHARED_LIBADD) + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" + ],[ + AC_CHECK_LIB(termcap, tgetent, + [ + PHP_ADD_LIBRARY(termcap,,READLINE_SHARED_LIBADD) + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" + ]) + ]) + + PHP_CHECK_LIBRARY(readline, readline, + [ + PHP_ADD_LIBRARY_WITH_PATH(readline, $READLINE_DIR/$PHP_LIBDIR, READLINE_SHARED_LIBADD) + ], [ + AC_MSG_ERROR(readline library not found) + ], [ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + + PHP_CHECK_LIBRARY(readline, rl_pending_input, + [], [ + AC_MSG_ERROR([invalid readline installation detected. Try --with-libedit instead.]) + ], [ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + + PHP_CHECK_LIBRARY(readline, rl_callback_read_char, + [ + AC_DEFINE(HAVE_RL_CALLBACK_READ_CHAR, 1, [ ]) + ],[],[ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + + PHP_CHECK_LIBRARY(edit, rl_on_new_line, + [ + AC_DEFINE(HAVE_RL_ON_NEW_LINE, 1, [ ]) + ],[],[ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + + AC_DEFINE(HAVE_LIBREADLINE, 1, [ ]) + +elif test "$PHP_LIBEDIT" != "no"; then + + for i in $PHP_LIBEDIT /usr/local /usr; do + test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break + done + + if test -z "$LIBEDIT_DIR"; then + AC_MSG_ERROR(Please reinstall libedit - I cannot find readline.h) + fi + + PHP_ADD_INCLUDE($LIBEDIT_DIR/include) + + AC_CHECK_LIB(ncurses, tgetent, + [ + PHP_ADD_LIBRARY(ncurses,,READLINE_SHARED_LIBADD) + ],[ + AC_CHECK_LIB(termcap, tgetent, + [ + PHP_ADD_LIBRARY(termcap,,READLINE_SHARED_LIBADD) + ]) + ]) + + PHP_CHECK_LIBRARY(edit, readline, + [ + PHP_ADD_LIBRARY_WITH_PATH(edit, $LIBEDIT_DIR/$PHP_LIBDIR, READLINE_SHARED_LIBADD) + ], [ + AC_MSG_ERROR(edit library required by readline not found) + ], [ + -L$READLINE_DIR/$PHP_LIBDIR + ]) + + PHP_CHECK_LIBRARY(edit, rl_callback_read_char, + [ + AC_DEFINE(HAVE_RL_CALLBACK_READ_CHAR, 1, [ ]) + ],[],[ + -L$READLINE_DIR/$PHP_LIBDIR + ]) + + PHP_CHECK_LIBRARY(edit, rl_on_new_line, + [ + AC_DEFINE(HAVE_RL_ON_NEW_LINE, 1, [ ]) + ],[],[ + -L$READLINE_DIR/$PHP_LIBDIR + ]) + + AC_DEFINE(HAVE_LIBEDIT, 1, [ ]) +fi + +if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then + AC_CHECK_FUNCS([rl_completion_matches]) + PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli) + PHP_SUBST(READLINE_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/recode/config.m4 b/tests/fixtures/ext/recode/config.m4 new file mode 100644 index 000000000..7f394d046 --- /dev/null +++ b/tests/fixtures/ext/recode/config.m4 @@ -0,0 +1,64 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(recode,for recode support, +[ --with-recode[=DIR] Include recode support]) + +if test "$PHP_RECODE" != "no"; then + RECODE_LIST="$PHP_RECODE /usr/local /usr /opt" + + for i in $RECODE_LIST; do + if test -f $i/include/recode.h; then + RECODE_DIR=$i + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + if test -f $i/include/recode/recode.h; then + RECODE_DIR=$i + RECODE_INC=include/recode + RECODE_LIB=$PHP_LIBDIR/recode + fi + if test -f $i/recode/include/recode.h; then + RECODE_DIR=$i/recode + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + test -n "$RECODE_DIR" && break + done + + if test -z "$RECODE_DIR"; then + AC_MSG_ERROR([Can not find recode.h anywhere under $RECODE_LIST.]) + fi + + PHP_CHECK_LIBRARY(recode, recode_format_table, + [ + PHP_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD) + ], [ + old_LDFLAGS=$LDFLAGS + old_LIBS=$LIBS + LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB" + LIBS="$LIBS -lrecode" + AC_TRY_LINK( + [ +char *program_name; + ],[ +recode_format_table(); + ],[ + PHP_ADD_LIBRARY_DEFER_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD) + AC_DEFINE(HAVE_BROKEN_RECODE, 1, [Whether we have librecode 3.5]) + ],[ + AC_MSG_ERROR(I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?) + ]) + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + ], [ + -L$RECODE_DIR/$RECODE_LIB + ]) + + AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher]) + PHP_ADD_INCLUDE($RECODE_DIR/$RECODE_INC) + PHP_SUBST(RECODE_SHARED_LIBADD) + AC_CHECK_HEADERS(stdbool.h) + PHP_NEW_EXTENSION(recode, recode.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/recode/config9.m4 b/tests/fixtures/ext/recode/config9.m4 new file mode 100644 index 000000000..66df50e22 --- /dev/null +++ b/tests/fixtures/ext/recode/config9.m4 @@ -0,0 +1,18 @@ +dnl +dnl $Id$ +dnl + +dnl Check for extensions with which Recode can not work +if test "$PHP_RECODE" != "no"; then + test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap" + + if test -n "$MYSQL_LIBNAME"; then + PHP_CHECK_LIBRARY($MYSQL_LIBNAME, hash_insert, [ + recode_conflict="$recode_conflict mysql" + ]) + fi + + if test -n "$recode_conflict"; then + AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) + fi +fi diff --git a/tests/fixtures/ext/reflection/config.m4 b/tests/fixtures/ext/reflection/config.m4 new file mode 100755 index 000000000..702663677 --- /dev/null +++ b/tests/fixtures/ext/reflection/config.m4 @@ -0,0 +1,5 @@ +dnl $Id$ +dnl config.m4 for extension reflection + +AC_DEFINE(HAVE_REFLECTION, 1, [Whether Reflection is enabled]) +PHP_NEW_EXTENSION(reflection, php_reflection.c, no) diff --git a/tests/fixtures/ext/session/config.m4 b/tests/fixtures/ext/session/config.m4 new file mode 100644 index 000000000..1c3ba7836 --- /dev/null +++ b/tests/fixtures/ext/session/config.m4 @@ -0,0 +1,35 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(session, whether to enable PHP sessions, +[ --disable-session Disable session support], yes) + +PHP_ARG_WITH(mm,for mm support, +[ --with-mm[=DIR] SESSION: Include mm support for session storage], no, no) + +if test "$PHP_SESSION" != "no"; then + PHP_PWRITE_TEST + PHP_PREAD_TEST + PHP_NEW_EXTENSION(session, mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c, $ext_shared) + PHP_ADD_EXTENSION_DEP(session, hash, true) + PHP_ADD_EXTENSION_DEP(session, spl) + PHP_SUBST(SESSION_SHARED_LIBADD) + PHP_INSTALL_HEADERS(ext/session, [php_session.h mod_files.h mod_user.h]) + AC_DEFINE(HAVE_PHP_SESSION,1,[ ]) +fi + +if test "$PHP_MM" != "no"; then + for i in $PHP_MM /usr/local /usr; do + test -f "$i/include/mm.h" && MM_DIR=$i && break + done + + if test -z "$MM_DIR" ; then + AC_MSG_ERROR(cannot find mm library) + fi + + PHP_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/$PHP_LIBDIR, SESSION_SHARED_LIBADD) + PHP_ADD_INCLUDE($MM_DIR/include) + PHP_INSTALL_HEADERS([ext/session/mod_mm.h]) + AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm]) +fi diff --git a/tests/fixtures/ext/session/package.xml b/tests/fixtures/ext/session/package.xml new file mode 100644 index 000000000..03fcbf66d --- /dev/null +++ b/tests/fixtures/ext/session/package.xml @@ -0,0 +1,83 @@ + + + + session + Session handling functions + + + sascha + Sascha Schumann + sas@php.net + lead + + + andrei + Andrei Zmievski + andrei@php.net + lead + + + +Session support in PHP consists of a way to preserve certain data +across subsequent accesses. This enables you to build more customized +applications and increase the appeal of your web site. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/shmop/config.m4 b/tests/fixtures/ext/shmop/config.m4 new file mode 100644 index 000000000..6c1709d71 --- /dev/null +++ b/tests/fixtures/ext/shmop/config.m4 @@ -0,0 +1,8 @@ +dnl $Id$ +PHP_ARG_ENABLE(shmop, whether to enable shmop support, +[ --enable-shmop Enable shmop support]) + +if test "$PHP_SHMOP" != "no"; then + AC_DEFINE(HAVE_SHMOP, 1, [ ]) + PHP_NEW_EXTENSION(shmop, shmop.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/shmop/package.xml b/tests/fixtures/ext/shmop/package.xml new file mode 100644 index 000000000..2bba14378 --- /dev/null +++ b/tests/fixtures/ext/shmop/package.xml @@ -0,0 +1,47 @@ + + + + shmop + Portable shared memory access + + + iliaa + Ilia Alshanetsky + ilia@prohost.org + lead + + + Slava Poliakov + hackie@prohost.org + developer + + + + Portable Shared Memory access + + PHP + + stable + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/simplexml/config.m4 b/tests/fixtures/ext/simplexml/config.m4 new file mode 100644 index 000000000..387a24ea2 --- /dev/null +++ b/tests/fixtures/ext/simplexml/config.m4 @@ -0,0 +1,27 @@ +dnl $Id$ +dnl config.m4 for extension simplexml + +PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support, +[ --disable-simplexml Disable SimpleXML support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no) +fi + +if test "$PHP_SIMPLEXML" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [ + AC_DEFINE(HAVE_SIMPLEXML,1,[ ]) + PHP_NEW_EXTENSION(simplexml, simplexml.c sxe.c, $ext_shared) + PHP_SUBST(SIMPLEXML_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) + PHP_ADD_EXTENSION_DEP(simplexml, libxml) + PHP_ADD_EXTENSION_DEP(simplexml, spl, true) +fi diff --git a/tests/fixtures/ext/snmp/config.m4 b/tests/fixtures/ext/snmp/config.m4 new file mode 100644 index 000000000..dd7a3bf68 --- /dev/null +++ b/tests/fixtures/ext/snmp/config.m4 @@ -0,0 +1,64 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(snmp,for SNMP support, +[ --with-snmp[=DIR] Include SNMP support]) + +PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP, +[ --with-openssl-dir[=DIR] SNMP: openssl install prefix], no, no) + +if test "$PHP_SNMP" != "no"; then + + if test "$PHP_SNMP" = "yes"; then + AC_PATH_PROG(SNMP_CONFIG,net-snmp-config,,[/usr/local/bin:$PATH]) + else + SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config" + fi + + if test -x "$SNMP_CONFIG"; then + SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs` + SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`" + SNMP_PREFIX=`$SNMP_CONFIG --prefix` + snmp_full_version=`$SNMP_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $snmp_full_version + IFS=$ac_IFS + SNMP_VERSION=`expr [$]1 \* 1000 + [$]2` + if test "$SNMP_VERSION" -ge "5003"; then + if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then + PHP_ADD_INCLUDE(${SNMP_PREFIX}/include) + PHP_EVAL_LIBLINE($SNMP_LIBS, SNMP_SHARED_LIBADD) + SNMP_LIBNAME=netsnmp + else + AC_MSG_ERROR([Could not find the required paths. Please check your net-snmp installation.]) + fi + else + AC_MSG_ERROR([Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version).]) + fi + else + AC_MSG_ERROR([Could not find net-snmp-config binary. Please check your net-snmp installation.]) + fi + + dnl Test build. + PHP_CHECK_LIBRARY($SNMP_LIBNAME, init_snmp, + [ + AC_DEFINE(HAVE_SNMP,1,[ ]) + ], [ + AC_MSG_ERROR([SNMP sanity check failed. Please check config.log for more information.]) + ], [ + $SNMP_SHARED_LIBADD + ]) + + dnl Check whether shutdown_snmp_logging() exists. + PHP_CHECK_LIBRARY($SNMP_LIBNAME, shutdown_snmp_logging, + [ + AC_DEFINE(HAVE_SHUTDOWN_SNMP_LOGGING, 1, [ ]) + ], [], [ + $SNMP_SHARED_LIBADD + ]) + + PHP_NEW_EXTENSION(snmp, snmp.c, $ext_shared) + PHP_SUBST(SNMP_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/soap/config.m4 b/tests/fixtures/ext/soap/config.m4 new file mode 100644 index 000000000..7fa8c6f0e --- /dev/null +++ b/tests/fixtures/ext/soap/config.m4 @@ -0,0 +1,25 @@ +dnl $Id$ +dnl config.m4 for extension soap + +PHP_ARG_ENABLE(soap, whether to enable SOAP support, +[ --enable-soap Enable SOAP support]) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR SOAP: libxml2 install prefix], no, no) +fi + +if test "$PHP_SOAP" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([SOAP extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(SOAP_SHARED_LIBADD, [ + AC_DEFINE(HAVE_SOAP,1,[ ]) + PHP_NEW_EXTENSION(soap, soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c, $ext_shared) + PHP_SUBST(SOAP_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) +fi diff --git a/tests/fixtures/ext/soap/package.xml b/tests/fixtures/ext/soap/package.xml new file mode 100644 index 000000000..e43fd3602 --- /dev/null +++ b/tests/fixtures/ext/soap/package.xml @@ -0,0 +1,64 @@ + + + + ext_soap + Provides SOAP Services + + Description of package.... + + beta + + + rodif_bl + Brad Lafountain + rodif_bl@yahoo.com + lead + + + shane + Shane Caraveo + shane@caraveo.com + lead + + + dmitry + Dmitry Stogov + dmitry@zend.com + lead + + + PHP + + 0.1 + 2002-07-07 + alpha + + - First offical PEAR/PECL release + + + + + CREDITS + EXPERIMENTAL + TODO + config.m4 + php_encoding.c + php_encoding.h + php_http.c + php_http.h + php_packet_soap.c + php_packet_soap.h + php_schema.c + php_schema.h + php_sdl.c + php_sdl.h + php_soap.h + php_soap.h + php_xml.c + php_xml.h + soap.c + php_soap.dsp + + + diff --git a/tests/fixtures/ext/sockets/config.m4 b/tests/fixtures/ext/sockets/config.m4 new file mode 100644 index 000000000..a5a63dfb6 --- /dev/null +++ b/tests/fixtures/ext/sockets/config.m4 @@ -0,0 +1,61 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(sockets, whether to enable sockets support, +[ --enable-sockets Enable sockets support]) + +if test "$PHP_SOCKETS" != "no"; then + dnl Check for struct cmsghdr + AC_CACHE_CHECK([for struct cmsghdr], ac_cv_cmsghdr, + [ + AC_TRY_COMPILE([ +#include +#include ], [struct cmsghdr s; s], ac_cv_cmsghdr=yes, ac_cv_cmsghdr=no) + ]) + + if test "$ac_cv_cmsghdr" = yes; then + AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr]) + fi + + AC_CHECK_FUNCS([hstrerror socketpair if_nametoindex if_indextoname]) + AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h]) + AC_TRY_COMPILE([ +#include +#include + ], [static struct msghdr tp; int n = (int) tp.msg_flags; return n],[], + [AC_DEFINE(MISSING_MSGHDR_MSGFLAGS, 1, [ ])] + ) + AC_DEFINE([HAVE_SOCKETS], 1, [ ]) + + dnl Check for fied ss_family in sockaddr_storage (missing in AIX until 5.3) + AC_CACHE_CHECK([for field ss_family in struct sockaddr_storage], ac_cv_ss_family, + [ + AC_TRY_COMPILE([ +#include +#include +#include + ], [struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6;], + ac_cv_ss_family=yes, ac_cv_ss_family=no) + ]) + + if test "$ac_cv_ss_family" = yes; then + AC_DEFINE(HAVE_SA_SS_FAMILY,1,[Whether you have sockaddr_storage.ss_family]) + fi + + dnl Check for AI_V4MAPPED flag + AC_CACHE_CHECK([if getaddrinfo supports AI_V4MAPPED],[ac_cv_gai_ai_v4mapped], + [ + AC_TRY_COMPILE([ +#include + ], [int flag = AI_V4MAPPED;], + ac_cv_gai_ai_v4mapped=yes, ac_cv_gai_ai_v4mapped=no) + ]) + + if test "$ac_cv_gai_ai_v4mapped" = yes; then + AC_DEFINE(HAVE_AI_V4MAPPED,1,[Whether you have AI_V4MAPPED]) + fi + + PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c], [$ext_shared]) + PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h]) +fi diff --git a/tests/fixtures/ext/sockets/package.xml b/tests/fixtures/ext/sockets/package.xml new file mode 100644 index 000000000..2799fff13 --- /dev/null +++ b/tests/fixtures/ext/sockets/package.xml @@ -0,0 +1,66 @@ + + + + sockets + Socket functions + + + ??? + Chris Vandomelen + chrisv@b0rked.dhs.org + lead + + + sterling + Sterling Hughes + sterling@php.net + lead + + + jason + Jason Greene + jason@php.net + lead + + + ??? + Daniel Beulshausen + daniel@php4win.de + lead + + + +The socket extension implements a low-level interface to the socket +communication functions based on the popular BSD sockets, providing +the possibility to act as a socket server as well as a client. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/spl/config.m4 b/tests/fixtures/ext/spl/config.m4 new file mode 100755 index 000000000..a0f0d1a06 --- /dev/null +++ b/tests/fixtures/ext/spl/config.m4 @@ -0,0 +1,27 @@ +dnl $Id$ +dnl config.m4 for extension SPL + + AC_MSG_CHECKING(whether zend_object_value is packed) + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" + AC_TRY_RUN([ +#include "Zend/zend_types.h" +int main(int argc, char **argv) { + return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1; +} + ], [ + ac_result=1 + AC_MSG_RESULT(yes) + ],[ + ac_result=0 + AC_MSG_RESULT(no) + ], [ + ac_result=0 + AC_MSG_RESULT(no) + ]) + CPPFLAGS=$old_CPPFLAGS + AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed]) + AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) + PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, no) + PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h]) + PHP_ADD_EXTENSION_DEP(spl, pcre, true) diff --git a/tests/fixtures/ext/spl/package.xml b/tests/fixtures/ext/spl/package.xml new file mode 100755 index 000000000..372aaecd9 --- /dev/null +++ b/tests/fixtures/ext/spl/package.xml @@ -0,0 +1,75 @@ + + + + SPL + Standard PHP Library + + + helly + Marcus Boerger + helly@php.net + lead + + + +SPL is a collection of interfaces and classes that are meant to solve +standard problems. + + PHP + + stable + 0.1-dev + TBA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/sqlite3/config0.m4 b/tests/fixtures/ext/sqlite3/config0.m4 new file mode 100644 index 000000000..6959a6f91 --- /dev/null +++ b/tests/fixtures/ext/sqlite3/config0.m4 @@ -0,0 +1,96 @@ +dnl $Id$ +dnl config.m4 for extension sqlite3 +dnl vim:et:ts=2:sw=2 + +PHP_ARG_WITH(sqlite3, whether to enable the SQLite3 extension, +[ --without-sqlite3[=DIR] Do not include SQLite3 support. DIR is the prefix to + SQLite3 installation directory.], yes) + +if test $PHP_SQLITE3 != "no"; then + sqlite3_extra_sources="" + PHP_SQLITE3_CFLAGS="" + + dnl when running phpize enable_maintainer_zts is not available + if test -z "$enable_maintainer_zts"; then + if test -f "$phpincludedir/main/php_config.h"; then + ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'` + if test "$ZTS" -eq "1"; then + enable_maintainer_zts="yes" + fi + fi + fi + + if test $PHP_SQLITE3 != "yes"; then + AC_MSG_CHECKING([for sqlite3 files in default path]) + for i in $PHP_SQLITE3 /usr/local /usr; do + if test -r $i/include/sqlite3.h; then + SQLITE3_DIR=$i + AC_MSG_RESULT(found in $i) + break + fi + done + + if test -z "$SQLITE3_DIR"; then + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Please reinstall the sqlite distribution from http://www.sqlite.org]) + fi + + AC_MSG_CHECKING([for SQLite 3.3.9+]) + PHP_CHECK_LIBRARY(sqlite3, sqlite3_prepare_v2, [ + AC_MSG_RESULT(found) + PHP_ADD_LIBRARY_WITH_PATH(sqlite3, $SQLITE3_DIR/$PHP_LIBDIR, SQLITE3_SHARED_LIBADD) + PHP_ADD_INCLUDE($SQLITE3_DIR/include) + ],[ + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Please install SQLite 3.3.9 first or check libsqlite3 is present]) + ],[ + -L$SQLITE3_DIR/$PHP_LIBDIR -lm + ]) + + PHP_CHECK_LIBRARY(sqlite3,sqlite3_key,[ + AC_DEFINE(HAVE_SQLITE3_KEY, 1, [have commercial sqlite3 with crypto support]) + ]) + PHP_CHECK_LIBRARY(sqlite3,sqlite3_column_table_name,[ + AC_DEFINE(SQLITE_ENABLE_COLUMN_METADATA, 1, [have sqlite3 with column metadata enabled]) + ]) + + PHP_CHECK_LIBRARY(sqlite3,sqlite3_load_extension, + [], + [AC_DEFINE(SQLITE_OMIT_LOAD_EXTENSION, 1, [have sqlite3 with extension support]) + ]) + + else + AC_MSG_CHECKING([bundled sqlite3 library]) + AC_MSG_RESULT([yes]) + + sqlite3_extra_sources="libsqlite/sqlite3.c" + + if test "$enable_maintainer_zts" = "yes"; then + threadsafe_flags="-DSQLITE_THREADSAFE=1" + else + threadsafe_flags="-DSQLITE_THREADSAFE=0" + fi + + if test "$ZEND_DEBUG" = "yes"; then + debug_flags="-DSQLITE_DEBUG=1" + fi + + other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1" + + dnl As long as intl is not shared we can have ICU support + if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then + other_flags="$other_flags -DSQLITE_ENABLE_ICU=1" + fi + + PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" + PHP_INSTALL_HEADERS([ext/sqlite3/libsqlite/sqlite3.h]) + fi + + AC_DEFINE(HAVE_SQLITE3,1,[ ]) + + sqlite3_sources="sqlite3.c $sqlite3_extra_sources" + + PHP_NEW_EXTENSION(sqlite3, $sqlite3_sources, $ext_shared,,$PHP_SQLITE3_CFLAGS) + PHP_ADD_BUILD_DIR([$ext_builddir/libsqlite]) + PHP_SUBST(SQLITE3_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/standard/config.m4 b/tests/fixtures/ext/standard/config.m4 new file mode 100644 index 000000000..3d00d88dd --- /dev/null +++ b/tests/fixtures/ext/standard/config.m4 @@ -0,0 +1,609 @@ +dnl $Id$ -*- autoconf -*- + +dnl +dnl Check if flush should be called explicitly after buffered io +dnl +AC_CACHE_CHECK([whether flush should be called explicitly after a buffered io], ac_cv_flush_io,[ +AC_TRY_RUN( [ +#include +#include + +int main(int argc, char **argv) +{ + char *filename = tmpnam(NULL); + char buffer[64]; + int result = 0; + + FILE *fp = fopen(filename, "wb"); + if (NULL == fp) + return 0; + fputs("line 1\n", fp); + fputs("line 2\n", fp); + fclose(fp); + + fp = fopen(filename, "rb+"); + if (NULL == fp) + return 0; + fgets(buffer, sizeof(buffer), fp); + fputs("line 3\n", fp); + rewind(fp); + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 1\n")) + result = 1; + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 3\n")) + result = 1; + fclose(fp); + unlink(filename); + + exit(result); +} +],[ + ac_cv_flush_io=no +],[ + ac_cv_flush_io=yes +],[ + ac_cv_flush_io=no +])]) +if test "$ac_cv_flush_io" = "yes"; then + AC_DEFINE(HAVE_FLUSHIO, 1, [Define if flush should be called explicitly after a buffered io.]) +fi + +dnl +dnl Check for crypt() capabilities +dnl +if test "$ac_cv_func_crypt" = "no"; then + AC_CHECK_LIB(crypt, crypt, [ + LIBS="-lcrypt $LIBS -lcrypt" + AC_DEFINE(HAVE_CRYPT, 1, [ ]) + ]) +fi + +AC_CACHE_CHECK(for standard DES crypt, ac_cv_crypt_des,[ + AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M")); +#else + exit(0); +#endif +}],[ + ac_cv_crypt_des=yes +],[ + ac_cv_crypt_des=no +],[ + ac_cv_crypt_des=yes +])]) + +AC_CACHE_CHECK(for extended DES crypt, ac_cv_crypt_ext_des,[ + AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc")); +#else + exit(0); +#endif +}],[ + ac_cv_crypt_ext_des=yes +],[ + ac_cv_crypt_ext_des=no +],[ + ac_cv_crypt_ext_des=no +])]) + +AC_CACHE_CHECK(for MD5 crypt, ac_cv_crypt_md5,[ +AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[15], answer[40]; + + salt[0]='$'; salt[1]='1'; salt[2]='$'; + salt[3]='r'; salt[4]='a'; salt[5]='s'; + salt[6]='m'; salt[7]='u'; salt[8]='s'; + salt[9]='l'; salt[10]='e'; salt[11]='$'; + salt[12]='\0'; + strcpy(answer,salt); + strcat(answer,"rISCgZzpwk3UhDidwXvin0"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +}],[ + ac_cv_crypt_md5=yes +],[ + ac_cv_crypt_md5=no +],[ + ac_cv_crypt_md5=no +])]) + +AC_CACHE_CHECK(for Blowfish crypt, ac_cv_crypt_blowfish,[ +AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[30], answer[70]; + + salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; + strcat(salt,"rasmuslerd............"); + strcpy(answer,salt); + strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +}],[ + ac_cv_crypt_blowfish=yes +],[ + ac_cv_crypt_blowfish=no +],[ + ac_cv_crypt_blowfish=no +])]) + +AC_CACHE_CHECK(for SHA512 crypt, ac_cv_crypt_SHA512,[ +AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+86]; + + strcpy(salt,"\$6\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +}],[ + ac_cv_crypt_SHA512=yes +],[ + ac_cv_crypt_SHA512=no +],[ + ac_cv_crypt_SHA512=no +])]) + +AC_CACHE_CHECK(for SHA256 crypt, ac_cv_crypt_SHA256,[ +AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+43]; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); + +#else + exit(0); +#endif +}],[ + ac_cv_crypt_SHA256=yes +],[ + ac_cv_crypt_SHA256=no +],[ + ac_cv_crypt_SHA256=no +])]) + + +dnl +dnl If one of them is missing, use our own implementation, portable code is then possible +dnl +if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then + + dnl + dnl Check for __alignof__ support in the compiler + dnl + AC_CACHE_CHECK(whether the compiler supports __alignof__, ac_cv_alignof_exists,[ + AC_TRY_COMPILE([ + ],[ + int align = __alignof__(int); + ],[ + ac_cv_alignof_exists=yes + ],[ + ac_cv_alignof_exists=no + ])]) + if test "$ac_cv_alignof_exists" = "yes"; then + AC_DEFINE([HAVE_ALIGNOF], 1, [whether the compiler supports __alignof__]) + fi + + dnl + dnl Check for __attribute__ ((__aligned__)) support in the compiler + dnl + AC_CACHE_CHECK(whether the compiler supports aligned attribute, ac_cv_attribute_aligned,[ + AC_TRY_COMPILE([ + ],[ + unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); + ],[ + ac_cv_attribute_aligned=yes + ],[ + ac_cv_attribute_aligned=no + ])]) + if test "$ac_cv_attribute_aligned" = "yes"; then + AC_DEFINE([HAVE_ATTRIBUTE_ALIGNED], 1, [whether the compiler supports __attribute__ ((__aligned__))]) + fi + + + AC_DEFINE_UNQUOTED(PHP_USE_PHP_CRYPT_R, 1, [Whether PHP has to use its own crypt_r for blowfish, des, ext des and md5]) + AC_DEFINE_UNQUOTED(PHP_STD_DES_CRYPT, 1, [Whether the system supports standard DES salt]) + AC_DEFINE_UNQUOTED(PHP_BLOWFISH_CRYPT, 1, [Whether the system supports BlowFish salt]) + AC_DEFINE_UNQUOTED(PHP_EXT_DES_CRYPT, 1, [Whether the system supports extended DES salt]) + AC_DEFINE_UNQUOTED(PHP_MD5_CRYPT, 1, [Whether the system supports MD5 salt]) + AC_DEFINE_UNQUOTED(PHP_SHA512_CRYPT, 1, [Whether the system supports SHA512 salt]) + AC_DEFINE_UNQUOTED(PHP_SHA256_CRYPT, 1, [Whether the system supports SHA256 salt]) + + PHP_ADD_SOURCES(PHP_EXT_DIR(standard), crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c) +else + if test "$ac_cv_crypt_des" = "yes"; then + ac_result=1 + ac_crypt_des=1 + else + ac_result=0 + ac_crypt_des=0 + fi + AC_DEFINE_UNQUOTED(PHP_STD_DES_CRYPT, $ac_result, [Whether the system supports standard DES salt]) + + if test "$ac_cv_crypt_blowfish" = "yes"; then + ac_result=1 + ac_crypt_blowfish=1 + else + ac_result=0 + ac_crypt_blowfish=0 + fi + AC_DEFINE_UNQUOTED(PHP_BLOWFISH_CRYPT, $ac_result, [Whether the system supports BlowFish salt]) + + if test "$ac_cv_crypt_ext_des" = "yes"; then + ac_result=1 + ac_crypt_edes=1 + else + ac_result=0 + ac_crypt_edes=0 + fi + AC_DEFINE_UNQUOTED(PHP_EXT_DES_CRYPT, $ac_result, [Whether the system supports extended DES salt]) + + if test "$ac_cv_crypt_md5" = "yes"; then + ac_result=1 + ac_crypt_md5=1 + else + ac_result=0 + ac_crypt_md5=0 + fi + AC_DEFINE_UNQUOTED(PHP_MD5_CRYPT, $ac_result, [Whether the system supports MD5 salt]) + + if test "$ac_cv_crypt_sha512" = "yes"; then + ac_result=1 + ac_crypt_sha512=1 + else + ac_result=0 + ac_crypt_sha512=0 + fi + AC_DEFINE_UNQUOTED(PHP_SHA512_CRYPT, $ac_result, [Whether the system supports SHA512 salt]) + + if test "$ac_cv_crypt_sha256" = "yes"; then + ac_result=1 + ac_crypt_sha256=1 + else + ac_result=0 + ac_crypt_sha256=0 + fi + AC_DEFINE_UNQUOTED(PHP_SHA256_CRYPT, $ac_result, [Whether the system supports SHA256 salt]) + + AC_DEFINE_UNQUOTED(PHP_USE_PHP_CRYPT_R, 0, [Whether PHP has to use its own crypt_r for blowfish, des and ext des]) +fi + +dnl +dnl Check for available functions +dnl +AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy) +AC_FUNC_FNMATCH + +dnl +dnl Check if there is a support means of creating a new process +dnl and defining which handles it receives +dnl +AC_CHECK_FUNCS(fork CreateProcess, [ + php_can_support_proc_open=yes + break +],[ + php_can_support_proc_open=no +]) +AC_MSG_CHECKING([if your OS can spawn processes with inherited handles]) +if test "$php_can_support_proc_open" = "yes"; then + AC_MSG_RESULT(yes) + AC_DEFINE(PHP_CAN_SUPPORT_PROC_OPEN,1, [Define if your system has fork/vfork/CreateProcess]) +else + AC_MSG_RESULT(no) +fi + +PHP_ENABLE_CHROOT_FUNC=no +case "$PHP_SAPI" in + embed) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + none) + for PROG in $PHP_BINARIES; do + case "$PROG" in + cgi|cli) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + *) + PHP_ENABLE_CHROOT_FUNC=no + break + ;; + esac + done + ;; +esac + +if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then + AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function]) +fi + +dnl +dnl Detect library functions needed by php dns_xxx functions +dnl ext/standard/php_dns.h will collect these in a single define: HAVE_FULL_DNS_FUNCS +dnl +PHP_CHECK_FUNC(res_nsearch, resolv, bind, socket) +PHP_CHECK_FUNC(dns_search, resolv, bind, socket) +PHP_CHECK_FUNC(dn_expand, resolv, bind, socket) +PHP_CHECK_FUNC(dn_skipname, resolv, bind, socket) + +dnl +dnl These are old deprecated functions +dnl + +PHP_CHECK_FUNC(res_search, resolv, bind, socket) + +dnl +dnl Check if atof() accepts NAN +dnl +AC_CACHE_CHECK(whether atof() accepts NAN, ac_cv_atof_accept_nan,[ +AC_TRY_RUN([ +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isnan(atof("NAN")) ? 0 : 1; +} +],[ + ac_cv_atof_accept_nan=yes +],[ + ac_cv_atof_accept_nan=no +],[ + ac_cv_atof_accept_nan=no +])]) +if test "$ac_cv_atof_accept_nan" = "yes"; then + AC_DEFINE([HAVE_ATOF_ACCEPTS_NAN], 1, [whether atof() accepts NAN]) +fi + +dnl +dnl Check if atof() accepts INF +dnl +AC_CACHE_CHECK(whether atof() accepts INF, ac_cv_atof_accept_inf,[ +AC_TRY_RUN([ +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1; +} +],[ + ac_cv_atof_accept_inf=yes +],[ + ac_cv_atof_accept_inf=no +],[ + ac_cv_atof_accept_inf=no +])]) +if test "$ac_cv_atof_accept_inf" = "yes"; then + AC_DEFINE([HAVE_ATOF_ACCEPTS_INF], 1, [whether atof() accepts INF]) +fi + +dnl +dnl Check if HUGE_VAL == INF +dnl +AC_CACHE_CHECK(whether HUGE_VAL == INF, ac_cv_huge_val_inf,[ +AC_TRY_RUN([ +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(HUGE_VAL) ? 0 : 1; +} +],[ + ac_cv_huge_val_inf=yes +],[ + ac_cv_huge_val_inf=no +],[ + ac_cv_huge_val_inf=yes +])]) +dnl This is the most probable fallback so we assume yes in case of cross compile. +if test "$ac_cv_huge_val_inf" = "yes"; then + AC_DEFINE([HAVE_HUGE_VAL_INF], 1, [whether HUGE_VAL == INF]) +fi + +dnl +dnl Check if HUGE_VAL + -HUGEVAL == NAN +dnl +AC_CACHE_CHECK(whether HUGE_VAL + -HUGEVAL == NAN, ac_cv_huge_val_nan,[ +AC_TRY_RUN([ +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ +#if defined(__sparc__) && !(__GNUC__ >= 3) + /* prevent bug #27830 */ + return 1; +#else + return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1; +#endif +} +],[ + ac_cv_huge_val_nan=yes +],[ + ac_cv_huge_val_nan=no +],[ + ac_cv_huge_val_nan=yes +])]) +dnl This is the most probable fallback so we assume yes in case of cross compile. +if test "$ac_cv_huge_val_nan" = "yes"; then + AC_DEFINE([HAVE_HUGE_VAL_NAN], 1, [whether HUGE_VAL + -HUGEVAL == NAN]) +fi + +dnl +dnl Check for strptime() +dnl +AC_CACHE_CHECK(whether strptime() declaration fails, ac_cv_strptime_decl_fails,[ +AC_TRY_COMPILE([ +#include +],[ +#ifndef HAVE_STRPTIME +#error no strptime() on this platform +#else +/* use invalid strptime() declaration to see if it fails to compile */ +int strptime(const char *s, const char *format, struct tm *tm); +#endif +],[ + ac_cv_strptime_decl_fails=no +],[ + ac_cv_strptime_decl_fails=yes +])]) +if test "$ac_cv_strptime_decl_fails" = "yes"; then + AC_DEFINE([HAVE_STRPTIME_DECL_FAILS], 1, [whether strptime() declaration fails]) +fi + +dnl +dnl Check for i18n capabilities +dnl +AC_CHECK_HEADERS([wchar.h]) +AC_CHECK_FUNCS([mblen]) +AC_CHECK_FUNCS([mbrlen mbsinit],,,[ +#ifdef HAVE_WCHAR_H +# include +#endif +]) +AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t],[ +AC_TRY_COMPILE([ +#ifdef HAVE_WCHAR_H +# include +#endif +],[ +int __tmp__() { mbstate_t a; } +],[ + ac_cv_type_mbstate_t=yes +],[ + ac_cv_type_mbstate_t=no +])]) +if test "$ac_cv_type_mbstate_t" = "yes"; then + AC_DEFINE([HAVE_MBSTATE_T], 1, [Define if your system has mbstate_t in wchar.h]) +fi + +dnl +dnl Check for atomic operation API availability in Solaris +dnl +AC_CHECK_HEADERS([atomic.h]) + +dnl +dnl Setup extension sources +dnl +PHP_NEW_EXTENSION(standard, array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c) + +PHP_ADD_MAKEFILE_FRAGMENT +PHP_INSTALL_HEADERS([ext/standard/]) diff --git a/tests/fixtures/ext/sybase_ct/config.m4 b/tests/fixtures/ext/sybase_ct/config.m4 new file mode 100644 index 000000000..276fe1267 --- /dev/null +++ b/tests/fixtures/ext/sybase_ct/config.m4 @@ -0,0 +1,120 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(sybase-ct, for Sybase-CT support, +[ --with-sybase-ct[=DIR] Include Sybase-CT support. DIR is the Sybase home + directory [/home/sybase]]) + +if test "$PHP_SYBASE_CT" != "no"; then + + if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then + AC_MSG_ERROR([You can not use both --with-sybase and --with-sybase-ct in same build!]) + fi + + AC_DEFINE(HAVE_SYBASE_CT,1,[ ]) + PHP_NEW_EXTENSION(sybase_ct, php_sybase_ct.c, $ext_shared) + PHP_SUBST(SYBASE_CT_SHARED_LIBADD) + + if test "$PHP_SYBASE_CT" = "yes"; then + SYBASE_CT_INCDIR=/home/sybase/include + SYBASE_CT_LIBDIR=/home/sybase/lib + else + SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include + SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib + fi + + dnl Determine whether we're building 64 or 32 bit... + AC_CHECK_SIZEOF(long int, 4) + AC_MSG_CHECKING([checking if we're on a 64-bit platform]) + if test "$ac_cv_sizeof_long_int" = "4"; then + AC_MSG_RESULT([no]) + PHP_SYBASE_64=no + else + AC_MSG_RESULT([yes]) + PHP_SYBASE_64=yes + fi + + + AC_MSG_CHECKING([Checking for ctpublic.h]) + if test -f $SYBASE_CT_INCDIR/ctpublic.h; then + AC_MSG_RESULT([found in $SYBASE_CT_INCDIR]) + PHP_ADD_INCLUDE($SYBASE_CT_INCDIR) + else + AC_MSG_ERROR([ctpublic.h missing!]) + fi + + AC_MSG_CHECKING([Checking Sybase libdir]) + AC_MSG_RESULT([Have $SYBASE_CT_LIBDIR]) + + AC_MSG_CHECKING([Checking for Sybase platform libraries]) + + PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR, SYBASE_CT_SHARED_LIBADD) + if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then + PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD) + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct" + AC_MSG_RESULT([FreeTDS: $SYBASE_CT_LIBS]) + elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then + PHP_ADD_LIBRARY(sybcs64,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybct64,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybcomn64,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybintl64,, SYBASE_CT_SHARED_LIBADD) + + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + *OSF*) ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define + *) CFLAGS="${CFLAGS} -DSYB_LP64" ;; # + esac + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64" + AC_MSG_RESULT([Sybase64: $SYBASE_CT_LIBS]) + + PHP_CHECK_LIBRARY(sybtcl64, netg_errstr, [ + PHP_ADD_LIBRARY(sybtcl64,,SYBASE_CT_SHARED_LIBADD) + ],[ + PHP_ADD_LIBRARY(sybtcl64,,SYBASE_CT_SHARED_LIBADD) + ],[ + $SYBASE_CT_LIBS + ]) + + PHP_CHECK_LIBRARY(insck64, insck__getVdate, [PHP_ADD_LIBRARY(insck64,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + PHP_CHECK_LIBRARY(insck64, bsd_tcp, [PHP_ADD_LIBRARY(insck64,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then + PHP_ADD_LIBRARY(sybcs,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybct,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybcomn,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(sybintl,, SYBASE_CT_SHARED_LIBADD) + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl" + AC_MSG_RESULT([Sybase32 syb-prefix: $SYBASE_CT_LIBS]) + + PHP_CHECK_LIBRARY(sybtcl, netg_errstr, [ + PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD) + ],[ + PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD) + ],[ + $SYBASE_CT_LIBS + ]) + + PHP_CHECK_LIBRARY(insck, insck__getVdate, [PHP_ADD_LIBRARY(insck,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + PHP_CHECK_LIBRARY(insck, bsd_tcp, [PHP_ADD_LIBRARY(insck,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + else + PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD) + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl" + AC_MSG_RESULT([Sybase32 default: $SYBASE_CT_LIBS]) + + PHP_CHECK_LIBRARY(tcl, netg_errstr, [ + PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD) + ],[ + PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD) + ],[ + $SYBASE_CT_LIBS + ]) + + PHP_CHECK_LIBRARY(insck, insck__getVdate, [PHP_ADD_LIBRARY(insck,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + PHP_CHECK_LIBRARY(insck, bsd_tcp, [PHP_ADD_LIBRARY(insck,, SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR]) + fi +fi diff --git a/tests/fixtures/ext/sysvmsg/config.m4 b/tests/fixtures/ext/sysvmsg/config.m4 new file mode 100644 index 000000000..4ae8a2e69 --- /dev/null +++ b/tests/fixtures/ext/sysvmsg/config.m4 @@ -0,0 +1,14 @@ +dnl $Id$ + +PHP_ARG_ENABLE(sysvmsg,whether to enable System V IPC support, +[ --enable-sysvmsg Enable sysvmsg support]) + +if test "$PHP_SYSVMSG" != "no"; then + AC_CHECK_HEADER([sys/msg.h], + [], + [AC_MSG_ERROR([Cannot enable System V IPC support, sys/msg.h is missing]) + ]) + + AC_DEFINE(HAVE_SYSVMSG, 1, [ ]) + PHP_NEW_EXTENSION(sysvmsg, sysvmsg.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/sysvmsg/package.xml b/tests/fixtures/ext/sysvmsg/package.xml new file mode 100644 index 000000000..403e949d3 --- /dev/null +++ b/tests/fixtures/ext/sysvmsg/package.xml @@ -0,0 +1,40 @@ + + + + sysvmsg + Unix System V IPC Message Queues + + + wez + Wez Furlong + wez@php.net + lead + + + +Unix System V IPC Message Queues + + PHP + + stable + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/sysvsem/config.m4 b/tests/fixtures/ext/sysvsem/config.m4 new file mode 100644 index 000000000..bfb5d92f4 --- /dev/null +++ b/tests/fixtures/ext/sysvsem/config.m4 @@ -0,0 +1,29 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support, +[ --enable-sysvsem Enable System V semaphore support]) + +if test "$PHP_SYSVSEM" != "no"; then + PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared) + AC_DEFINE(HAVE_SYSVSEM, 1, [ ]) + AC_CACHE_CHECK(for union semun,php_cv_semun, + AC_TRY_COMPILE([ +#include +#include +#include + ], + [union semun x;], + [ + php_cv_semun=yes + ],[ + php_cv_semun=no + ]) + ) + if test "$php_cv_semun" = "yes"; then + AC_DEFINE(HAVE_SEMUN, 1, [ ]) + else + AC_DEFINE(HAVE_SEMUN, 0, [ ]) + fi +fi diff --git a/tests/fixtures/ext/sysvsem/package.xml b/tests/fixtures/ext/sysvsem/package.xml new file mode 100644 index 000000000..6c40af0e3 --- /dev/null +++ b/tests/fixtures/ext/sysvsem/package.xml @@ -0,0 +1,39 @@ + + + + sysvsem + Unix System V IPC Semaphores + + + ??? + Tom May + tom@go2net.com + lead + + + +Unix System V IPC Semaphores + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/sysvshm/config.m4 b/tests/fixtures/ext/sysvshm/config.m4 new file mode 100644 index 000000000..3827f5954 --- /dev/null +++ b/tests/fixtures/ext/sysvshm/config.m4 @@ -0,0 +1,11 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(sysvshm,whether to enable System V shared memory support, +[ --enable-sysvshm Enable the System V shared memory support]) + +if test "$PHP_SYSVSHM" != "no"; then + AC_DEFINE(HAVE_SYSVSHM, 1, [ ]) + PHP_NEW_EXTENSION(sysvshm, sysvshm.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/sysvshm/package.xml b/tests/fixtures/ext/sysvshm/package.xml new file mode 100644 index 000000000..d26986bfa --- /dev/null +++ b/tests/fixtures/ext/sysvshm/package.xml @@ -0,0 +1,40 @@ + + + + sysvsem + Unix System V IPC Shared Memory + + + ??? + Cristian Cartus + cartus@atrior.de + lead + + + +Unix System V IPC Shared Memory + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/tidy/config.m4 b/tests/fixtures/ext/tidy/config.m4 new file mode 100644 index 000000000..102f6a827 --- /dev/null +++ b/tests/fixtures/ext/tidy/config.m4 @@ -0,0 +1,44 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(tidy,for TIDY support, +[ --with-tidy[=DIR] Include TIDY support]) + +if test "$PHP_TIDY" != "no"; then + + if test "$PHP_TIDY" != "yes"; then + TIDY_SEARCH_DIRS=$PHP_TIDY + else + TIDY_SEARCH_DIRS="/usr/local /usr" + fi + + for i in $TIDY_SEARCH_DIRS; do + if test -f $i/include/tidy/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include/tidy + elif test -f $i/include/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include + fi + done + + if test -z "$TIDY_DIR"; then + AC_MSG_ERROR(Cannot find libtidy) + fi + + TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR + + PHP_ADD_LIBRARY_WITH_PATH(tidy, $TIDY_LIBDIR, TIDY_SHARED_LIBADD) + PHP_ADD_INCLUDE($TIDY_INCDIR) + + PHP_CHECK_LIBRARY(tidy,tidyOptGetDoc, + [ + AC_DEFINE(HAVE_TIDYOPTGETDOC,1,[ ]) + ],[],[]) + + + PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared) + PHP_SUBST(TIDY_SHARED_LIBADD) + AC_DEFINE(HAVE_TIDY,1,[ ]) +fi diff --git a/tests/fixtures/ext/tidy/package.xml b/tests/fixtures/ext/tidy/package.xml new file mode 100644 index 000000000..a5b461ce4 --- /dev/null +++ b/tests/fixtures/ext/tidy/package.xml @@ -0,0 +1,65 @@ + + + + tidy + Tidy HTML Repairing and Parsing + + + john + John Coggeshall + john@php.net + lead + + + iliaa + Ilia Alshanetsky + ilia@php.net + developer + + + +Tidy is a binding for the Tidy HTML clean and repair utility which +allows you to not only clean and otherwise manipluate HTML documents, +but also traverse the document tree using the Zend Engine 2 OO semantics. + + PHP + + beta + 2.0dev + 2003-11-13 + + Major API changes for PHP 5.0, including the re-introduction of resources, output buffering support, + dual-nature syntax (tidy_clean_repair($tidy_res) or $tidy->clean_repair()) and more. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/tokenizer/config.m4 b/tests/fixtures/ext/tokenizer/config.m4 new file mode 100644 index 000000000..007dddfc0 --- /dev/null +++ b/tests/fixtures/ext/tokenizer/config.m4 @@ -0,0 +1,12 @@ +dnl $Id$ +dnl config.m4 for extension tokenizer + +dnl Otherwise use enable: + +PHP_ARG_ENABLE(tokenizer, whether to enable tokenizer support, +[ --disable-tokenizer Disable tokenizer support], yes) + +if test "$PHP_TOKENIZER" != "no"; then + PHP_NEW_EXTENSION(tokenizer, tokenizer.c tokenizer_data.c, $ext_shared) + PHP_ADD_MAKEFILE_FRAGMENT +fi diff --git a/tests/fixtures/ext/tokenizer/package.xml b/tests/fixtures/ext/tokenizer/package.xml new file mode 100644 index 000000000..f6f754c3d --- /dev/null +++ b/tests/fixtures/ext/tokenizer/package.xml @@ -0,0 +1,46 @@ + + + + tokenizer + PHP Source code tokenizer + + + andrei + Andrei Zmievski + andrei@php.net + lead + + + +The tokenizer functions provide an interface to the PHP tokenizer +embedded in the Zend Engine. Using these functions you may write +your own PHP source analyzing or modification tools without having +to deal with the language specification at the lexical level. + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/wddx/config.m4 b/tests/fixtures/ext/wddx/config.m4 new file mode 100644 index 000000000..8f933d490 --- /dev/null +++ b/tests/fixtures/ext/wddx/config.m4 @@ -0,0 +1,60 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(wddx,whether to enable WDDX support, +[ --enable-wddx Enable WDDX support]) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR WDDX: libxml2 install prefix], no, no) +fi + +PHP_ARG_WITH(libexpat-dir, libexpat dir for WDDX, +[ --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)],no,no) + +if test "$PHP_WDDX" != "no"; then + + dnl + dnl Default to libxml2 if --with-libexpat-dir is not used + dnl + if test "$PHP_LIBEXPAT_DIR" = "no"; then + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([WDDX extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(WDDX_SHARED_LIBADD, [ + if test "$PHP_XML" = "no"; then + PHP_ADD_SOURCES(ext/xml, compat.c) + PHP_ADD_BUILD_DIR(ext/xml) + fi + ], [ + AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=]) + ]) + fi + + dnl + dnl Check for expat only if --with-libexpat-dir is used. + dnl + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + AC_MSG_ERROR([not found. Please reinstall the expat distribution.]) + fi + + PHP_ADD_INCLUDE($EXPAT_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/$PHP_LIBDIR, WDDX_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBEXPAT, 1, [ ]) + fi + + AC_DEFINE(HAVE_WDDX, 1, [ ]) + PHP_NEW_EXTENSION(wddx, wddx.c, $ext_shared) + PHP_ADD_EXTENSION_DEP(wddx, libxml) + PHP_SUBST(XMLRPC_SHARED_LIBADD) +fi diff --git a/tests/fixtures/ext/wddx/package.xml b/tests/fixtures/ext/wddx/package.xml new file mode 100644 index 000000000..9656ed1d1 --- /dev/null +++ b/tests/fixtures/ext/wddx/package.xml @@ -0,0 +1,43 @@ + + + + wddx + WDDX serialization functions + + + andrei + Andrei Zmievski + andrei@php.net + lead + + + +These functions are intended for work with WDDX (http://www.openwddx.org/) + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/xdebug/Makefile b/tests/fixtures/ext/xdebug/Makefile new file mode 100644 index 000000000..955a2b489 --- /dev/null +++ b/tests/fixtures/ext/xdebug/Makefile @@ -0,0 +1,5 @@ +.PHONY: install clean + +install: + +clean: diff --git a/tests/fixtures/ext/xdebug/config.m4 b/tests/fixtures/ext/xdebug/config.m4 new file mode 100644 index 000000000..a9b2272af --- /dev/null +++ b/tests/fixtures/ext/xdebug/config.m4 @@ -0,0 +1,32 @@ +dnl $Id: config.m4,v 1.28 2008-07-31 00:43:35 sniper Exp $ +dnl config.m4 for extension xdebug + +PHP_ARG_ENABLE(xdebug, whether to enable eXtended debugging support, +[ --enable-xdebug Enable Xdebug support]) + +if test "$PHP_XDEBUG" != "no"; then + AC_MSG_CHECKING([Check for supported PHP versions]) + PHP_XDEBUG_FOUND_VERSION=`${PHP_CONFIG} --version` + PHP_XDEBUG_FOUND_VERNUM=`echo "${PHP_XDEBUG_FOUND_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 100 + [$]2) * 100 + [$]3;}'` +dnl if test "$PHP_XDEBUG_FOUND_VERNUM" -lt "50400"; then + AC_MSG_RESULT([supported ($PHP_XDEBUG_FOUND_VERSION)]) +dnl else +dnl AC_MSG_ERROR([not supported. Need a PHP version < 5.4.0 (found $PHP_XDEBUG_FOUND_VERSION)]) +dnl fi + + AC_DEFINE(HAVE_XDEBUG,1,[ ]) + +dnl Check for new current_execute_data field in zend_executor_globals + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$INCLUDES $CPPFLAGS" + + AC_CHECK_FUNCS(gettimeofday) + + PHP_CHECK_LIBRARY(m, cos, [ PHP_ADD_LIBRARY(m,, XDEBUG_SHARED_LIBADD) ]) + + CPPFLAGS=$old_CPPFLAGS + + PHP_NEW_EXTENSION(xdebug, xdebug.c xdebug_code_coverage.c xdebug_com.c xdebug_compat.c xdebug_handler_dbgp.c xdebug_handlers.c xdebug_llist.c xdebug_hash.c xdebug_private.c xdebug_profiler.c xdebug_set.c xdebug_stack.c xdebug_str.c xdebug_superglobals.c xdebug_tracing.c xdebug_var.c xdebug_xml.c usefulstuff.c, $ext_shared,,,,yes) + PHP_SUBST(XDEBUG_SHARED_LIBADD) + PHP_ADD_MAKEFILE_FRAGMENT +fi diff --git a/tests/fixtures/ext/xdebug/package.xml b/tests/fixtures/ext/xdebug/package.xml new file mode 100644 index 000000000..6339a7099 --- /dev/null +++ b/tests/fixtures/ext/xdebug/package.xml @@ -0,0 +1,1839 @@ + + + xdebug + pecl.php.net + Provides functions for function traces and profiling + The Xdebug extension helps you debugging your script by providing a lot of +valuable debug information. The debug information that Xdebug can provide +includes the following: + + * stack and function traces in error messages with: + o full parameter display for user defined functions + o function name, file name and line indications + o support for member functions + * memory allocation + * protection for infinite recursions + +Xdebug also provides: + + * profiling information for PHP scripts + * code coverage analysis + * capabilities to debug your scripts interactively with a debug client + + Derick Rethans + derick + derick@xdebug.org + yes + + 2014-04-29 + + + 2.2.5 + 2.2.5 + + + stable + stable + + BSD style + +Tue, Apr 29, 2014 - xdebug 2.2.5 + += Fixed bugs: + + - Fixed bug #1040: Fixed uninitialized sa value. + - Fixed building on hurd-i386. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.1.0 + + + 1.4.0b1 + + + + xdebug + + + + 2014-02-28 + + + 2.2.4 + 2.2.4 + + + stable + stable + + BSD style + +Fri, Feb 28, 2014 - xdebug 2.2.4 + += Fixed bugs: + + - Fixed bug #785: Profiler does not handle closures and call_user_func_array well. + - Fixed bug #963: Xdebug waits too long for response from remote client + - Fixed bug #976: XDebug crashes if current varibles scope contains COM object. + - Fixed bug #978: Inspection of array with negative keys fails + - Fixed bug #979: property_value -m 0 should mean all bytes, not 0 bytes + - Fixed bug #987: Hidden property names not shown. + + + + 2013-05-22 + + + 2.2.3 + 2.2.3 + + + stable + stable + + BSD style + +Tue, May 21, 2013 - xdebug 2.2.3 + ++ Added features: + + - Support for PHP 5.5. + += Fixed bugs: + + - Fixed bug #923: Xdebug + Netbeans + ext/MongoDB crash on MongoCursor instance + - Fixed bug #929: Directory name management in xdebug.profiler_output_dir + - Fixed bug #931: xdebug_str_add does not check for NULL str before calling strlen on it + - Fixed bug #935: Document the return value from xdebug_get_code_coverage() + - Fixed bug #947: Newlines converted when html_errors = 0 + + + + 2013-03-23 + + + 2.2.2 + 2.2.2 + + + stable + stable + + BSD style + +Sat, Mar 23, 2013 - xdebug 2.2.2 + ++ Added features: + + - Support for PHP 5.5. + += Fixed bugs: + + - Fixed bug #598: Use HTTP_X_FORWARDED_FOR to determine remote debugger. + - Fixed bug #625: xdebug_get_headers() -> Headers are reset unexpectedly. + - Fixed bug #811: PHP Documentation Link. + - Fixed bug #818: Require a php script in the PHP_RINIT causes Xdebug to crash. + - Fixed bug #903: xdebug_get_headers() returns replaced headers. + - Fixed bug #905: Support PHP 5.5 and generators. + - Fixed bug #920: AM_CONFIG_HEADER is depreciated. + + + + + 2.2.1 + 2.2.1 + + + stable + stable + + 2012-07-14 + BSD style + += Fixed bugs: + + - Fixed bug #843: Text output depends on php locale. + - Fixed bug #838/#839/#840: Debugging static properties crashes Xdebug. + - Fixed bug #821: Variable assignments (beginning with =>) should be + indented one more scope. + - Fixed bug #811: PHP Documentation Link. + - Fixed bug #800: var_dump(get_class(new foo\bar')) add an extra "\" in + class name. + + + + + 2.2.0 + 2.2.0 + + + stable + stable + + 2012-05-08 + BSD style + +Tue, May 08, 2012 - xdebug 2.2.0 + ++ Added features: + + - Support for PHP 5.4. + + - Added ANSI colour output for the shell. (Including patches by Michael + Maclean) + - Added var_dump() overloading on the command line (issue #457). + + - Added better support for closures in stack and function traces. + - Added the size of arrays to the overloaded variable output, so that you + know how many elements there are. + - Added support for X-HTTP-FORWARDED-FOR before falling back to REMOTE_ADDR + (issue #660). (Patch by Hannes Magnusson) + - Added the method call type to xdebug_get_function_stack() (issue #695). + - Added extra information to error printouts to tell that the error + suppression operator has been ignored due to xdebug.scream. + - Added a error-specific CSS class to stack traces. + ++ New settings: + + - xdebug.cli_color for colouring output on the command line (Unix only). + - Added xdebug.trace_enable_trigger to triger function traces through a + GET/POST/COOKIE parameter (issue #517). (Patch by Patrick Allaert) + - Added support for the 'U' format specifier for function trace and + profiler filenames. + ++ Changes: + + - Improved performance by lazy-initializing data structures. + - Improved code coverage performance. (Including some patches by Taavi + Burns) + - Improved compatibility with KCacheGrind. + - Improved logging of remote debugging connections, by added connection + success/failure logging to the xdebug.remote_log functionality. + += Fixed bugs: + + - Fixed bug #827: Enabling Xdebug causes phpt tests to fail because of + var_dump() formatting issues. + - Fixed bug #823: Single quotes are escaped in var_dumped string output. + - Fixed issue #819: Xdebug 2.2.0RC2 can't stand on a breakpoint more than 30 seconds. + - Fixed bug #801: Segfault with streamwrapper and unclosed $fp on + destruction. + - Fixed issue #797: Xdebug crashes when fetching static properties. + - Fixed bug #794: Allow coloured output on Windows. + - Fixed bug #784: Unlimited feature for var_display_max_data and + var_display_max_depth is undocumented. + - Fixed bug #774: Apache crashes on header() calls. + - Fixed bug #764: Tailored Installation instructions do not work. + - Fixed bug #758: php_value xdebug.idekey is ignored in .htaccess files + - Fixed bug #728: Profiler reports __call() invocations confusingly/wrongly. + - Fixed bug #687: Xdebug does not show dynamically defined variable. + - Fixed bug #662: idekey is set to running user. + - Fixed bug #627: Added the realpath check. + + + + + 2.2.0RC2 + 2.2.0RC2 + + + stable + stable + + 2012-04-22 + BSD style + +Tue, Apr 22, 2012 - xdebug 2.2.0rc2 + += Fixed bugs: + + - Fixed bug #801: Segfault with streamwrapper and unclosed $fp on + destruction. + - Fixed bug #794: Allow coloured output on Windows. + - Fixed bug #784: Unlimited feature for var_display_max_data and + var_display_max_depth is undocumented. + - Fixed bug #774: Apache crashes on header() calls. + - Fixed bug #764: Tailored Installation instructions do not work. + - Fixed bug #758: php_value xdebug.idekey is ignored in .htaccess files + - Fixed bug #662: idekey is set to running user. + + + + + 2.2.0RC1 + 2.2.0RC1 + + + stable + stable + + 2012-03-12 + BSD style + +Tue, Mar 13, 2012 - xdebug 2.2.0rc1 + ++ Added features: + + - Support for PHP 5.4. + + - Added ANSI colour output for the shell. (Including patches by Michael + Maclean) + - Added var_dump() overloading on the command line (issue #457). + + - Added better support for closures in stack and function traces. + - Added the size of arrays to the overloaded variable output, so that you + know how many elements there are. + - Added support for X-HTTP-FORWARDED-FOR before falling back to REMOTE_ADDR + (issue #660). (Patch by Hannes Magnusson) + - Added the method call type to xdebug_get_function_stack() (issue #695). + - Added extra information to error printouts to tell that the error + suppression operator has been ignored due to xdebug.scream. + - Added a error-specific CSS class to stack traces. + + ++ New settings: + + - xdebug.cli_color for colouring output on the command line (Unix only). + - Added xdebug.trace_enable_trigger to triger function traces through a + GET/POST/COOKIE parameter (issue #517). (Patch by Patrick Allaert) + - Added support for the 'U' format specifier for function trace and + profiler filenames. + ++ Changes: + + - Improved performance by lazy-initializing data structures. + - Improved code coverage performance. (Including some patches by Taavi + Burns) + - Improved compatibility with KCacheGrind. + - Improved logging of remote debugging connections, by added connection + success/failure logging to the xdebug.remote_log functionality. + += Fixed bugs: + + - No additional bug fixes besides the ones from the 2.1 branch up til + Xdebug 2.1.4. + + + + + 2.1.4 + 2.1.4 + + + stable + stable + + 2012-03-12 + BSD style + += Fixed bugs: + + - Fixed bug #788: Collect errors eats fatal errors. + - Fixed bug #787: Segmentation Fault with PHP header_remove(). + - Fixed bug #778: Xdebug session in Eclipse crash whenever it run into + simplexml_load_string call. + - Fixed bug #756: Added support for ZEND_*_*_OBJ and self::*. + - Fixed bug #747: Still problem with error message and soap client / soap + server. + - Fixed bug #744: new lines in a PHP file from Windows are displayed with + an extra white line with var_dump(). + - Fixed an issue with debugging and the eval command. + - Fixed compilation with ZTS on PHP < 5.3 + + + + + 2.1.3 + 2.1.3 + + + stable + stable + + 2012-01-25 + BSD style + += Fixed bugs: + + - Fixed bug #725: EG(current_execute_data) is not checked in xdebug.c, + xdebug_statement_call. + - Fixed bug #723: xdebug is stricter than PHP regarding Exception property + types. + - Fixed bug #714: Cachegrind files have huge (wrong) numbers in some lines. + - Fixed bug #709: Xdebug doesn't understand E_USER_DEPRECATED. + - Fixed bug #698: Allow xdebug.remote_connect_back to be set in .htaccess. + - Fixed bug #690: Function traces are not appended to file with + xdebug_start_trace() and xdebug.trace_options=1. + - Fixed bug #623: Static properties of a class can be evaluated only with + difficulty. + - Fixed bug #614/#619: Viewing private variables in base classes through + the debugger. + - Fixed bug #609: Xdebug and SOAP extension's error handlers conflict. + - Fixed bug #606/#678/#688/#689/#704: crash after using eval on an + unparsable, or un-executable statement. + - Fixed bug #305: xdebug exception handler doesn't properly handle special + chars. + ++ Changes: + + - Changed xdebug_break() to hint to the statement execution trap instead of + breaking forcefully adding an extra stackframe. + - Prevent Xdebug 2.1.x to build with PHP 5.4. + + + + + 2.1.2 + 2.1.2 + + + stable + stable + + 2011-07-28 + BSD style + += Fixed bugs: + + - Fixed bug #622: Working with eval() code is inconvenient and difficult. + - Fixed bug #684: xdebug_var_dump - IE does not support &. + - Fixed bug #693: Cachegrind files not written when filename is very long. + - Fixed bug #697: Incorrect code coverage of function arguments when using + XDEBUG_CC_UNUSED. + - Fixed bug #699: Xdebug gets the filename wrong for the countable + interface. + - Fixed bug #703 by adding another opcode to the list that needs to be + overridden. + + + + + 2.1.2 + 2.1.2 + + + stable + stable + + 2011-07-28 + BSD style + += Fixed bugs: + + - Fixed bug #622: Working with eval() code is inconvenient and difficult. + - Fixed bug #684: xdebug_var_dump - IE does not support &. + - Fixed bug #693: Cachegrind files not written when filename is very long. + - Fixed bug #697: Incorrect code coverage of function arguments when using + XDEBUG_CC_UNUSED. + - Fixed bug #699: Xdebug gets the filename wrong for the countable + interface. + - Fixed bug #703 by adding another opcode to the list that needs to be + overridden. + + + + + 2.1.1 + 2.1.1 + + + stable + stable + + 2011-03-28 + BSD style + +Mon, Mar 28, 2011 - xdebug 2.1.1 + += Fixed bugs: + + - Fixed ZTS compilation. + + + + + 2.1.1RC1 + 2.1.1RC1 + + + beta + beta + + 2011-03-22 + BSD style + +Tue, Mar 22, 2011 - xdebug 2.1.1rc1 + += Fixed bugs: + + = Debugger + - Fixed bug #518: Removed CLASSNAME pseudo-property optional. + - Fixed bug #592: Xdebug crashes with run after detach. + - Fixed bug #596: Call breakpoint never works with instance methods, only + static methods. + - Fixed JIT mode in the debugger so that it works for xdebug_break() too. + + = Profiler + - Fixed bug #631: Summary not written when script ended with "exit()". + - Fixed bug #639: Xdebug profiling: output not correct - missing 'cfl='. + - Fixed bug #642: Fixed line numbers for offsetGet, offsetSet, + __get/__set/__isset/__unset and __call in profile files and stack + traces/function traces. + - Fixed bug #643: Profiler gets line numbers wrong. + - Fixed bug #653: XDebug profiler crashes with %H in file name and non + standard port. + + = Others + - Fixed bug #651: Incorrect code coverage after empty() in conditional. + - Fixed bug #654: Xdebug hides error message in CLI. + - Fixed bug #665: Xdebug does not respect display_errors=stderr. + Patch by Ben Spencer <dangerous.ben@gmail.com> + - Fixed bug #670: Xdebug crashes with broken "break x" code. + + + + + 2.1.0 + 2.1.0 + + + stable + stable + + 2010-06-29 + BSD style + +Tue, Jun 29, 2010 - xdebug 2.1.0 + += Fixed bugs: + - Fixed bug #562: Incorrect coverage information for closure function + headers. + - Fixed bug #566: Xdebug crashes when using conditional breakpoints. + - Fixed bug #567: xdebug_debug_zval and xdebug_debug_zval_stdout don't work + with PHP 5.3. (Patch by Endo Hiroaki). + - Fixed bug #570: undefined symbol: zend_memrchr. + + + + + 2.1.0RC1 + 2.1.0RC1 + + + beta + beta + + 2010-02-27 + BSD style + +Thu, Apr 06, 2010 - xdebug 2.1.0rc1 + += Fixed bugs: + - Fixed bug #494: Private attributes of parent class unavailable when + inheriting. + - Fixed bug #400: Xdebug shows errors, even when PHP is request startup + mode. + - Fixed bug #421: xdebug sends back invalid characters in xml sometimes. + - Fixed bug #475: Property names with null chars are not sent fully to the + client. + - Fixed bug #480: Issues with the reserved resource in multi threaded + environments (Patch by Francis.Grolemund@netapp.com). + - Fixed bug #558: PHP segfaults when running a nested eval. + + + + + 2.1.0beta3 + 2.1.0beta3 + + + beta + beta + + 2010-02-27 + BSD style + +Sat, Feb 27, 2010 - xdebug 2.1.0beta3 + += Fixed bugs: + - Fixed memory corruption issues. + - Fixed a threading related issue for code-coverage. + - Fixed bug #532: XDebug breaks header() function. + - DBGP: Prevent Xdebug from returning properties when a too high page number + has been requested. + + + + + 2.1.0beta2 + 2.1.0beta2 + + + beta + beta + + 2010-02-03 + BSD style + +Wed, Feb 03, 2010 - xdebug 2.1.0beta2 + += Fixed bugs: + - Fixed memory leak in breakpoint handling. + - Fixed bug #528: Core dump generated with remote_connect_back option set + and CLI usage. + - Fixed bug #515: declare(ticks) statement confuses code coverage. + - Fixed bug #512: DBGP: breakpoint_get doesn't return conditions in its + response. + - Possible fix for bug #507/#517: Crashes because of uninitalised header + globals. + - Fixed bug #501: Xdebug's variable tracing misses POST_INC and variants. + + + + + 2.1.0beta1 + 2.1.0beta1 + + + beta + beta + + 2010-01-03 + BSD style + +Sun, Jan 03, 2010 - xdebug 2.1.0beta1 + ++ Added features: + - Added error display collection and suppressions. + - Added the recording of headers being set in scripts. + - Added variable assignment tracing. + - Added the ability to turn of the default overriding of var_dump(). + - Added "Scream" support, which disables the @ operator. + - Added a trace-file analysing script. + - Added support for debugging into phars. + - Added a default xdebug.ini. (Patch by Martin Schuhfuß + <martins@spot-media.de>) + - Added function parameters in computerized function traces. + - PHP 5.3 compatibility. + - Improved code coverage accuracy. + + + New functions: + - xdebug_get_formatted_function_stack(), which returns a formatted function + stack instead of displaying it. + - xdebug_get_headers(), which returns all headers that have been set in a + script, both explicitly with things like header(), but also implicitly + for things like setcookie(). + - xdebug_start_error_collection(), xdebug_stop_error_collection() and + xdebug_get_collected_errors(), which allow you to collect all notices, + warnings and error messages that Xdebug generates from PHP's + error_reporting functionality so that you can output them at a later + point in your script by hand. + + + New settings: + - xdebug.collect_assignments, which enables the emitting of variable + assignments in function traces. + - xdebug.file_line_format, to generate a link with a specific format for + every filename that Xdebug outputs. + - xdebug.overload_var_dump, which allows you to turn off Xdebug's version + of var_dump(). + - xdebug.remote_cookie_expire_time, that controls the length of a + remote debugging session. (Patch by Rick Pannen <pannen@gmail.com>) + - xdebug.scream, which makes the @ operator to be ignored. + ++ Changes: + - Added return values for xdebug_start_code_coverage() and + xdebug_stop_code_coverage() to indicate whether the action was + succesfull. xdebug_start_code_coverage() will return TRUE if the call + enabled code coverage, and FALSE if it was already enabled. + xdebug_stop_code_coverage() will return FALSE when code coverage wasn't + started yet and TRUE if it was turned on. + - Added an optional argument to xdebug_print_function_stack() to display + your own message. (Patch by Mikko Koppanen). + - All HTML output as generated by Xdebug now has a HTML "class" attribute + for easy CSS formatting. + +- Removed features: + - Support for PHP versions lower than PHP 5.1 have been dropped. + - The PHP3 and GDB debugger engines have been removed. + += Fixed bugs: + - Fixed support for showing $this in remote debugging sessions. + - Fixed bug in formatting the display of "Variables in the local scope". + - Possible fix for a threading issue where the headers gathering function + would create stack overflows. + - Possible fix for #324: xdebug_dump_superglobals() only dumps superglobals + that were accessed before, and #478: XDebug 2.0.x can't use %R in + xdebug.profiler_output_name if register_long_arrays is off. + + - Fixed bug #505: %s in xdebug.trace_output_name breaks functions traces. + - Fixed bug #494: Private attributes of parent class unavailable when + inheriting. + - Fixed bug #486: feature_get -n breakpoint_types returns out of date list. + - Fixed bug #476: Xdebug doesn't support PHP 5.3's exception chaining. + - Fixed bug #472: Dead Code Analysis for code coverage messed up after goto. + - Fixed bug #470: Catch blocks marked as dead code unless executed. + - Fixed bug #469: context_get for function variables always appear as + "uninitialized". + - Fixed bug #468: Property_get on $GLOBALS works only at top-level, by + adding GLOBALS to the super globals context. + - Fixed bug #453: Memory leaks. + - Fixed bug #445: error_prepend_string and error_append_string are ignored + by xdebug_error_cb. (Patch by Kent Davidson <kent@marketruler.com>) + - Fixed bug #442: configure: error: "you have strange libedit". + - Fixed bug #439: Xdebug crash in xdebug_header_handler. + - Fixed bug #423: Conflicts with funcall. + - Fixed bug #419: Make use of P_tmpdir if defined instead of hard coded + '/tmp'. + - Fixed bug #417: Response of context_get may lack page and pagesize + attributes. + - Fixed bug #411: Class/function breakpoint setting does not follow the + specs. + - Fixed bug #393: eval returns array data at the previous page request. + - Fixed bug #391: Xdebug doesn't stop executing script on catchable fatal + errors. + - Fixed bug #389: Destructors called on fatal error. + - Fixed bug #368: Xdebug's debugger bails out on a parse error with the + eval command. + - Fixed bug #356: Temporary breakpoints persist. + - Fixed bug #355: Function numbers in trace files weren't unique. + - Fixed bug #340: Segfault while throwing an Exception. + - Fixed bug #328: Private properties are incorrectly enumerated in case of + extended classes. + - Fixed bug #249: Xdebug's error handler messes up with the SOAP + extension's error handler. + ++ DBGP: + - Fixed cases where private properties where shown for objects, but not + accessible. + - Added a patch by Lucas Nealan (lucas@php.net) and Brian Shire + (shire@php.net) of Facebook to allow connections to the initiating + request's IP address for remote debugging. + - Added the -p argument to the eval command as well, pending inclusion into + DBGP. + - Added the retrieval of a file's execution lines. I added a new + un-official method called xcmd_get_executable_lines which requires the + stack depth as argument (-d). You can only fetch this information for + stack frames as it needs an available op-array which is only available + when a function is executed. + - Added a fake "CLASSNAME" property to objects that are returned in debug + requests to facilitate deficiencies in IDEs that fail to show the "classname" + XML attribute. + + + + + 2.0.5 + 2.0.5 + + + stable + stable + + 2009-07-03 + BSD style + +Fri, Jul 03, 2009 - xdebug 2.0.5 + += Fixed bugs: + - Fixed bug #425: memory leak (around 40MB for each request) when using + xdebug_start_trace. + - Fixed bug #422: Segfaults when using code coverage with a parse error in + the script. + - Fixed bug #418: compilation breaks with CodeWarrior for NetWare. + - Fixed bug #403: 'call' and 'return' breakpoints triggers both on call and + return for class method breakpoints. + - Fixed TSRM issues for PHP 5.2 and PHP 5.3. (Original patch by Elizabeth + M. Smith). + - Fixed odd crash bugs, due to GCC 4 sensitivity. + + + + + 2.0.4 + 2.0.4 + + + stable + stable + + 2008-12-30 + BSD style + +Tue, Dec 30, 2008 - xdebug 2.0.4 + += Fixed bugs: + - Fixed for strange jump positions in path analysis. + - Fixed issues with code coverage crashing on parse errors. + - Fixed code code coverage by overriding more opcodes. + - Fixed issues with Xdebug stalling/crashing when detaching from remote + debugging. + - Fixed crash on Vista where memory was freed with routines from a different + standard-C library than it was allocated with. (Patch by Eric Promislow + <ericp@activestate.com>). + - Link against the correct CRT library. (Patch by Eric Promislow + <ericp@activestate.com>). + - Sort the symbol elements according to name. (Patch by Eric Promislow + <ericp@activestate.com>). + - Fixed support for mapped-drive UNC paths for Windows. (Patch by Eric + Promislow <ericp@activestate.com>). + - Fixed a segfault in interactive mode while including a file. + - Fixed a crash in super global dumping in case somebody was strange enough + to reassign them to a value type other than an Array. + - Simplify version checking for libtool. (Patch by PGNet + <pgnet.trash@gmail.com>). + - Fixed display of unused returned variables from functions in PHP 5.3. + - Include config.w32 in the packages as well. + - Fixed .dsp for building with PHP 4. + ++ Added features: + - Support debugging into phars. + - Basic PHP 5.3 support. + + + + + 2.0.3 + 2.0.3 + + + stable + stable + + 2008-04-09 + BSD style + +Wed, Apr 09, 2008 - xdebug 2.0.3 + += Fixed bugs: + - Fixed bug #338: Crash with: xdebug.remote_handler=req. + - Fixed bug #334: Code Coverage Regressions. + - Fixed abstract method detection for PHP 5.3. + - Fixed code coverage dead-code detection. + - Ignore ZEND_ADD_INTERFACE, which is on a different line in PHP >= 5.3 for + some weird reason. + ++ Changes: + - Added a CSS-class for xdebug's var_dump(). + - Added support for the new E_DEPRECATED. + + + + + 2.0.2 + 2.0.2 + + + stable + stable + + 2007-11-11 + BSD style + +Sun, Nov 11, 2007 - xdebug 2.0.2 + += Fixed bugs: + - Fixed bug #325: DBGP: "detach" stops further sessions being established + from Apache. + - Fixed bug #321: Code coverage crashes on empty PHP files. + - Fixed bug #318: Segmentation Fault in code coverage analysis. + - Fixed bug #315: Xdebug crashes when including a file that doesn't exist. + - Fixed bug #314: PHP CLI Error Logging thwarted when XDebug Loaded. + - Fixed bug #300: Direction of var_dump(). + - Always set the transaction_id and command. (Related to bug #313). + + + + + 2.0.1 + 2.0.1 + + + stable + stable + + 2007-10-29 + BSD style + +Sat, Oct 20, 2007 - xdebug 2.0.1 + ++ Changes: + - Improved code coverage performance dramatically. + - PHP 5.3 compatibility (no namespaces yet though). + += Fixed bugs: + - Fixed bug #301: Loading would cause SIGBUS on Solaris 10 SPARC. (Patch by + Sean Chalmers) + - Fixed bug #300: Xdebug does not force LTR rendering for its tables. + - Fixed bug #299: Computerized traces don't have a newline for return + entries if memory limit is not enabled. + - Fixed bug #298: xdebug_var_dump() doesn't handle entity replacements + correctly concerning string length. + - Fixed a memory free error related to remote debugging conditions. + (Related to bug #297). + + + + + 2.0.0 + 2.0.0 + + + stable + stable + + 2007-07-18 + BSD style + +Wed, Jul 18, 2007 - xdebug 2.0.0 + ++ Changes: + - Put back the disabling of stack traces - apperently people were relying + on this. This brings back xdebug_enable(), xdebug_disable() and + xdebug_is_enabled(). + - xdebug.collect_params is no longer a boolean setting. Although it worked + fine, phpinfo() showed only just On or Off here. + - Fixed the Xdebug version of raw_url_encode to not encode : and \. This is + not necessary according to the RFCs and it makes debug breakpoints work + on Windows. + += Fixed bugs: + - Fixed bug #291: Tests that use SPL do not skip when SPL is not available. + - Fixed bug #290: Function calls leak memory. + - Fixed bug #289: Xdebug terminates connection when eval() is run in the + init stage. + - Fixed bug #284: Step_over on breakpointed line made Xdebug break twice. + - Fixed bug #283: Xdebug always returns $this with the value of last stack + frame. + - Fixed bug #282: %s is not usable for xdebug.profiler_output_name on + Windows in all stack frames. + - Fixed bug #280: var_dump() doesn't display key of array as expected. + - Fixed bug #278: Code Coverage Issue. + - Fixed bug #273: Remote debugging: context_get does not return context id. + - Fixed bug #270: Debugger aborts when PHP's eval() is encountered. + - Fixed bug #265: XDebug breaks error_get_last() . + - Fixed bug #261: Code coverage issues by overloading zend_assign_dim. + ++ DBGP: + - Added support for "breakpoint_languages". + + + + + 2.0.0RC4 + 2.0.0RC4 + + + beta + beta + + 2007-05-17 + BSD style + +Wed, May 17, 2007 - xdebug 2.0.0rc4 ++ Changes: + - Use µ seconds instead of a tenths of µ seconds to avoid confusion in + profile information. + - Changed xdebug.profiler_output_name and xdebug.trace_output_name to use + modifier tags: + %c = crc32 of the current working directory + %p = pid + %r = random number + %s = script name + %t = timestamp (seconds) + %u = timestamp (microseconds) + %H = $_SERVER['HTTP_HOST'] + %R = $_SERVER['REQUEST_URI'] + %S = session_id (from $_COOKIE if set) + %% = literal % + += Fixed bugs: + - Fixed bug #255: Call Stack Table doesn't show Location on Windows. + - Fixed bug #251: Using the source command with an invalid filename returns + unexpected result. + - Fixed bug #243: show_exception_trace="0" ignored. + - Fixed bug #241: Crash in xdebug_get_function_stack(). + - Fixed bug #240: Crash with xdebug.remote_log on Windows. + - Fixed a segfault in rendering stack traces to error logs. + - Fixed a bug that prevented variable names from being recorded for remote + debug session while xdebug.collect_vars was turned off. + - Fixed xdebug_dump_superglobals() in case no super globals were + configured. + +- Removed functions: + - Removed support for Memory profiling as that didn't work properly. + - Get rid of xdebug.default_enable setting and associated functions: + xdebug_disable() and xdebug_enable(). + ++ Added features: + - Implemented support for four different xdebug.collect_params settings for + stack traces and function traces. + - Allow to trigger profiling by the XDEBUG_PROFILE cookie. + ++ DBGP: + - Correctly add namespace definitions to XML. + - Added the xdebug namespace that adds extra information to breakpoints if + available. + - Stopped the use of >error> elements for exception breakpoints, as that + violates the protocol. + + + + + 2.0.0RC3 + 2.0.0RC3 + + + beta + beta + + 2007-01-31 + BSD style + +Wed, Jan 31, 2007 - xdebug 2.0.0rc3 ++ Changes: + - Removed the bogus "xdebug.allowed_clients" setting - it was not + implemented. + - Optimized used variable collection by switching to a linked list instead + of a hash. This is about 30% faster, but it needed a quick conversion to + hash in the case the information had to be shown to remove duplicate + variable names. + += Fixed bugs: + - Fixed bug #232: PHP log_errors functionality lost after enabling xdebug + error handler when CLI is used. + - Fixed problems with opening files - the filename could cause double free + issues. + - Fixed memory tracking as memory_limit is always enabled in PHP 5.2.1 and + later. + - Fixed a segfault that occurred when creating printable stack traces and + collect_params was turned off. + + + + + 2.0.0RC2 + 2.0.0RC2 + + + beta + beta + + 2006-12-24 + BSD style + +Sun, Dec 24, 2006 - xdebug 2.0.0rc2 ++ Added new features: + - Implemented the "xdebug.var_display_max_children" setting. The default is + set to 128 children. + - Added types to fancy var dumping function. + - Implemented FR #210: Add a way to stop the debug session without having + to execute a script. The GET/POST parameter "XDEBUG_SESSION_STOP_NO_EXEC" + works in the same way as XDEBUG_SESSION_STOP, except that the script will + not be executed. + - DBGP: Allow postmortem analysis. + - DBGP: Added the non-standard function xcmd_profiler_name_get. + ++ Changes: + - Fixed the issue where xdebug_get_declared_vars() did not know about + variables there are in the declared function header, but were not used in + the code. Due to this change expected arguments that were not send to a + function will now show up as ??? in stack and function traces in PHP 5.1 + and PHP 5.2. + - Allow xdebug.var_display_max_data and xdebug.var_display_max_depth + settings of -1 which will unlimit those settings. + - DBGP: Sort super globals in Globals overview. + - DBGP: Fixed a bug where error messages where not added upon errors in the + protocol. + - DBGP: Change context 1 from globals (superglobals + vars in bottom most + stack frame) to just superglobals. + += Fixed bugs: + - Fixed linking error on AIX by adding libm. + - Fixed dead code analysis for THROW. + - Fixed oparray prefill caching for code coverage. + - Fixed the xdebug.remote_log feature work. + - DBGP: Fixed a bug where $this did not appear in the local scoped context. + - DBGP: Reimplemented property_set to use the same symbol fetching function + as property_get. We now only use eval in case no type (-t) argument was + given. + - DBGP: Fixed some issues with finding out the classname, which is + important for fetching private properties. + - DBGP: Fixed usage of uninitialized memory that prevented looking up + numerical array keys while fetching array elements not work properly. + - Fixed bug #228: Binary safety for stream output and property fetches. + - Fixed bug #227: The SESSION super global does not show up in the Globals + scope. + - Fixed bug #225: xdebug dumps core when protocol is GDB. + - Fixed bug #224: Compile failure on Solaris. + - Fixed bug #219: Memory usage delta in traces don't work on PHP 5.2.0. + - Fixed bug #215: Cannot retrieve nested arrays when the array key is a + numeric index. + - Fixed bug #214: The depth level of arrays was incorrectly checked so it + would show the first page of a level too deep as well. + - Fixed bug #213: Dead code analysis doesn't take catches for throws into + account. + - Fixed bug #211: When starting a new session with a different idekey, the + cookie is not updated. + - Fixed bug #209: Additional remote debugging session started when + triggering shutdown function. + - Fixed bug #208: Socket connection attempted when XDEBUG_SESSION_STOP. + - Fixed PECL bug #8989: Compile error with PHP 5 and GCC 2.95. + + + + + 2.0.0rc1 + 2.0.0rc1 + + + beta + beta + + 2006-10-08 + BSD style + ++ Added new features: + - Implemented FR #70: Provide optional depth on xdebug_call_* functions. + - Partially implemented FR #50: Resource limiting for variable display. By + default only two levels of nested variables and max string lengths of 512 + are shown. This can be changed by setting the ini settings + xdebug.var_display_max_depth and xdebug.var_display_max_data. + - Implemented breakpoints for different types of PHP errors. You can now + set an 'exception' breakpoint on "Fatal error", "Warning", "Notice" etc. + This is related to bug #187. + - Added the xdebug_print_function_trace() function to display a stack trace on + demand. + - Reintroduce HTML tracing by adding a new tracing option "XDEBUG_TRACE_HTML" + (4). + - Made xdebug_stop_trace() return the trace file name, so that the + following works: <?php echo file_get_contents( xdebug_stop_trace() ); ?> + - Added the xdebug.collect_vars setting to tell Xdebug to collect + information about which variables are used in a scope. Now you don't need + to show variables with xdebug.show_local_vars anymore for + xdebug_get_declared_vars() to work. + - Make the filename parameter to the xdebug_start_trace() function + optional. If left empty it will use the same algorithm to pick a filename + as when you are using the xdebug.auto_trace setting. + ++ Changes: + - Implemented dead code analysis during code coverage for: + * abstract methods. + * dead code after return, throw and exit. + * implicit returns when a normal return is present. + - Improved readability of stack traces. + - Use PG(html_errors) instead of checking whether we run with CLI when + deciding when to use HTML messages or plain text messages. + += Fixed bugs: + - Fixed bug #203: PHP errors with HTML content processed incorrectly. This + patch backs out the change that was made to fix bug #182. + - Fixed bug #198: Segfault when trying to use a non-existing debug handler. + - Fixed bug #197: Race condition fixes created too many files. + - Fixed bug #196: Profile timing on Windows does not work. + - Fixed bug #195: CLI Error after debugging session. + - Fixed bug #193: Compile problems with PHP 5.2. + - Fixed bug #191: File/line breakpoints are case-sensitive on Windows. + - Fixed bug #181: Xdebug doesn't handle uncaught exception output + correctly. + - Fixed bug #173: Coverage produces wrong coverage. + - Fixed a typo that prevented the XDEBUG_CONFIG option "profiler_enable" + from working. + + + + + 2.0.0beta6 + 2.0.0beta6 + + + beta + beta + + 2006-06-30 + BSD style + ++ Added new features: + - Implemented FR #137: feature_get for general commands doesn't have a text field. + - Implemented FR #131: XDebug needs to implement paged child object requests. + - Implemented FR #124: Add backtrace dumping information when exception thrown. + - Implemented FR #70: Add feature_get breakpoint_types. + - Added profiling aggregation functions (patch by Andrei Zmievski) + - Implemented the "timestamp" option for the xdebug.trace_output_name and + xdebug.profiler_output_name settings. + - Added the xdebug.remote_log setting that allows you to log debugger + communication to a log file for debugging. This can also be set through + the "remote_log" element in the XDEBUG_CONFIG environment variable. + - Added a "script" value to the profiler_output_name option. This will write + the profiler output to a filename that consists of the script's full path + (using underscores). ie: /var/www/index.php becomes + var_www_index_php_cachegrind.out. (Patch by Brian Shire). + - DBGp: Implemented support for hit conditions for breakpoints. + - DBGp: Added support for conditions for file/line breakpoints. + - DBGp: Added support for hit value checking to file/line breakpoints. + - DBGp: Added support for "exception" breakpoints. ++ Performance improvements: + - Added a cache that prevents the code coverage functionality from running a + "which code is executable check" on every function call, even if they + were executed multiple times. This should speed up code coverage a lot. + - Speedup Xdebug but only gathering information about variables in scopes when + either remote debugging is used, or show_local_vars is enabled. += Fixed bugs: + - Fixed bug #184: problem with control chars in code traces + - Fixed bug #183: property_get -n $this->somethingnonexistent crashes the + debugger. + - Fixed bug #182: Errors are not html escaped when being displayed. + - Fixed bug #180: collected includes not shown in trace files. (Patch by + Cristian Rodriguez) + - Fixed bug #178: $php_errormsg and Track errors unavailable. + - Fixed bug #177: debugclient fails to compile due to Bison. + - Fixed bug #176: Segfault using SplTempFileObject. + - Fixed bug #173: Xdebug segfaults using SPL ArrayIterator. + - Fixed bug #171: set_time_limit stack overflow on 2nd request. + - Fixed bug #168: Xdebug's DBGp crashes on an eval command where the + result is an array. + - Fixed bug #125: show_mem_delta does not calculate correct negative values on + 64bit machines. + - Fixed bug #121: property_get -n $r[2] returns the whole hash. + - Fixed bug #111: xdebug does not ignore set_time_limit() function during debug + session. + - Fixed bug #87: Warning about headers when "register_shutdown_function" used. + - Fixed PECL bug #6940 (XDebug ignores set_time_limit) + - Fixed Komodo bug 45484: no member data for objects in PHP debugger. + - Suppress NOP/EXT_NOP from being marked as executable code with Code + Coverage. + + + + + 2.0.0beta5 + 2.0.0beta5 + + + beta + beta + + 2005-12-31 + BSD style + ++ Added new features: + - Implemented FR #161: var_dump doesn't show lengths for strings. + - Implemented FR #158: Function calls from the {main} scope always have the + line number 0. + - Implemented FR #156: it's impossible to know the time taken by the last + func call in xdebug trace mode 0. + - Implemented FR #153: xdebug_get_declared_vars(). + += Fixed bugs: + - Fixed shutdown crash with ZTS on Win32 + - Fixed bad memory leak when a E_ERROR of exceeding memory_limit was + thrown. + - Fixed bug #154: GCC 4.0.2 optimizes too much out with -O2. + - Fixed bug #141: Remote context_get causes segfault. + + + + + 2.0.0beta4 + 2.0.0beta4 + + + beta + beta + + 2005-09-24 + BSD style + ++ Added new features: + - Added xdebug_debug_zval_stdout(). + - Added xdebug_get_profile_filename() function which returns the current + profiler dump file. + - Updated for latest 5.1 and 6.0 CVS versions of PHP. + - Added FR #148: Option to append to cachegrind files, instead of + overwriting. + - Implemented FR #114: Rename tests/*.php to tests/*.inc + +- Changed features: + - Allow "xdebug.default_enable" to be set everywhere. + += Fixed bugs: + - DBGP: Xdebug should return "array" with property get, which is defined + in the typemap to the common type "hash". + - Fixed bug #142: xdebug crashes with implicit destructor calls. + - Fixed bug #136: The "type" attribute is missing from stack_get returns. + - Fixed bug #133: PHP scripts exits with 0 on PHP error. + - Fixed bug #132: use of eval causes a segmentation fault. + + + + + 2.0.0beta3 + 2.0.0beta3 + + + beta + beta + + 2005-05-12 + BSD style + ++ Added new features: + - Added the possibility to trigger the profiler by setting + "xdebug.profiler_enable_trigger" to 1 and using XDEBUG_PROFILE as a get + parameter. + += Fixed bugs: + - Fixed a segfault for when an attribute value is NULL on XML string + generation. + - Fixed bug #118: Segfault with exception when remote debugging. + - Fixed bug #117: var_dump dows not work with "private". + - Fixed bug #109: DBGP's eval will abort the script when the eval statement + is invalid. + - Fixed bug #108: log_only still displays some text for errors in included + files. + - Fixed bug #107: Code Coverage only detects executable code in used + functions and classes. + - Fixed bug #103: crash when running the DBGp command 'eval' on a global + variable + - Fixed bug #95: Segfault when deinitializing Xdebug module. + (Patch by Maxim Poltarak <demiurg@gmail.com>) + + + + + 2.0.0beta2 + 2.0.0beta2 + + + beta + beta + + 2004-11-28 + BSD style + ++ Added new features: + - DBGP: Added error messages to returned errors (in most cases) + ++ Added new functions: + - xdebug_debug_zval() to debug zvals by printing its refcounts and is_ref + values. + += Changed features: + - xdebug_code_coverage_stop() will now clean up the code coverage array, + unless you specify FALSE as parameter. + - The proper Xdebug type is "hash" for associative arrays. + - Extended the code-coverage functionality by returning lines with + executable code on them, but where not executed with a count value of -1. + += Fixed bugs: + - DBGP: Make property_get and property_value finally work as they should, + including retrieving information from different depths then the most top + stack frame. + - DBGP: Fix eval'ed $varnames in property_get. + - DBGP: Support the -d option for property_get. + - Fixed the exit handler hook to use the new "5.1" way of handling it; + which fortunately also works with PHP 5.0. + - Fixed bug #102: Problems with configure for automake 1.8. + - Fixed bug #101: crash with set_exeception_handler() and uncatched exceptions. + - Fixed bug #99: unset variables return the name as a string with property_get. + - Fixed bug #98: 'longname' attribute not returned for unintialized + property in context_get request. + - Fixed bug #94: xdebug_sprintf misbehaves with x86_64/glibc-2.3.3 + - Fixed bug #93: Crash in lookup_hostname on x86_64 + - Fixed bug #92: xdebug_disable() doesn't disable the exception handler. + - Fixed bug #68: Summary not written when script ended with "exit()". + + + + + 2.0.0beta1 + 2.0.0beta1 + + + beta + beta + + 2004-09-15 + BSD style + ++ Added new features: + - Added support for the new DBGp protocol for communicating with the debug + engine. + - A computerized trace format for easier parsing by external programs. + - The ability to set remote debugging features via the environment. This + allows an IDE to emulate CGI and still pass the configuration through to + the debugger. In CGI mode, PHP does not allow -d arguments. + - Reimplementation of the tracing code, you can now only trace to file; this greatly + enhances performance as no string representation of variables need to be + kept in memory any more. + - Re-implemented profiling support. Xdebug outputs information the same way + that cachegrind does so it is possible to use Kcachegrind as front-end. + - Xdebug emits warnings when it was not loaded as a Zend extension. + - Added showing private, protected and public to the fancy var_dump() + replacement function. + - Added the setting of the TCP_NODELAY socket option to stop delays in + transferring data to the remote debugger client. (Patch by Christof J. Reetz) + + DebugClient: Added setting for port to listen on and implemented running + the previous command when pressing just enter. + ++ Added new functions: + - xdebug_get_stack_depth() to return the current stack depth level. + - xdebug_get_tracefile_name() to retrieve the name of the tracefile. This + is useful in case auto trace is enabled and you want to clean the trace + file. + - xdebug_peak_memory_usage() which returns the peak memory + used in a script. (Only works when --enable-memory-limit was enabled) + ++ Added feature requests: + - FR #5: xdebug_break() function which interupts the script for the debug + engine. + - FR #30: Dump current scope information in stack traces on error. + - FR #88: Make the url parameter XDEBUG_SESSION_START optional. So it can + be disabled and the user does not need to add it. + ++ Added new php.ini settings: + - xdebug.auto_trace_file: to configure a trace file to write to as addition + to the xdebug.auto_trace setting which just turns on tracing. + - xdebug.collect_includes: separates collecting + names of include files from the xdebug.collect_params setting. + - xdebug.collect_return: showing return values in traces. + - xdebug.dump_global: with which you can turn off dumping of super globals + even in you have that configured. + - xdebug.extended_info: turns off the generation of extended opcodes that + are needed for stepping and breakpoints for the remote debugger. This is + useful incase you want to profile memory usage as the generation of this + extended info increases memory usage of oparrrays by about 33%. + - xdebug.profiler_output_dir: profiler output directory. + - xdebug.profiler_enable: enable the profiler. + - xdebug.show_local_vars: turn off the showing of local variables in the + top most stack frame on errors. + - xdebug.show_mem_delta: show differences between current and previous + memory usage on a function call level. + - xdebug.trace_options: to configure extra + options for trace dumping: + o XDEBUG_TRACE_APPEND option (1) + += Changed features: + - xdebug_start_trace() now returns the filename of the tracefile (.xt is + added to the requested name). + - Changed default debugging protocol to dbgp instead of gdb. + - Changed default debugger port from 17869 to 9000. + - Changed trace file naming: xdebug.trace_output_dir is now used to + configure a directory to dump automatic traces; the trace file name now + also includes the pid (xdebug.trace_output_name=pid) or a crc32 checksum + of the current working dir (xdebug.trace_output_name=crc32) and traces + are not being appended to an existing file anymore, but simply + overwritten. + - Removed $this and $GLOBALS from showing variables in the local scope. + +- Removed functions: + - xdebug_get_function_trace/xdebug_dump_function_trace() because of the new + idea of tracing. + += Fixed bugs: + - Fixed bug #89: var_dump shows empty strings garbled. + - Fixed bug #85: Xdebug segfaults when no idekey is set. + - Fixed bug #83: More than 32 parameters functions make xdebug crash. + - Fixed bug #75: xdebug's var_dump implementation is not binary safe. + - Fixed bug #73: komodo beta 4.3.7 crash. + - Fixed bug #72: breakpoint_get returns wrong structure. + - Fixed bug #69: Integer overflow in cachegrind summary. + - Fixed bug #67: Filenames in Xdebug break URI RFC with spaces. + - Fixed bug #64: Missing include of xdebug_compat.h. + - Fixed bug #57: Crash with overloading functions. + - Fixed bug #54: source command did not except missing -f parameter. + - Fixed bug #53: Feature get misusing the supported attribute. + - Fixed bug #51: Only start a debug session if XDEBUG_SESSION_START is + passed as GET or POST parameter, or the DBGP_COOKIE is send to the server. + Passing XDEBUG_SESSION_STOP as GET/POST parameter will end the debug + session and removes the cookie again. The cookie is also passed to the + remote handler backends; for DBGp it is added to the <init> packet. + - Fixed bug #49: Included file's names should not be stored by address. + - Fixed bug #44: Script time-outs should be disabled when debugging. + = Fixed bug #36: GDB handler using print causes segfault with wrong syntax + - Fixed bug #33: Implemented the use of the ZEND_POST_DEACTIVATE hook. Now we + can handle destructors safely too. + - Fixed bug #32: Unusual dynamic variables cause xdebug to crash. + + + + + 1.3.1 + 1.3.1 + + + stable + stable + + 2004-04-06 + BSD style + += Fixed profiler to aggregate class/method calls correctly. (Robert Beenen) += Fixed debugclient to initialize socket structure correctly. (Brandon Philips + and David Sklar) += GDB: Fixed bug where the source file wasn't closed after a "source" command. + (Derick) + + + + + 1.3.0 + 1.3.0 + + + stable + stable + + 2003-09-17 + BSD style + += Fixed segfault where a function name didn't exist in case of a + "call_user_function". (Derick) += Fixed reading a filename in case of an callback to a PHP function from an + internal function (like "array_map()"). (Derick) + + + + + 1.3.0rc1 + 1.3.0rc1 + + + beta + beta + + 2003-09-17 + BSD style + += Fixed bug with wrong file names for functions called from call_user_*(). + (Derick) ++ Added the option "dump_superglobals" to the remote debugger. If you set this + option to 0 the "show-local" and similar commands will not return any data + from superglobals anymore. (Derick) += Fixed bug #2: "pear package" triggers a segfault. (Derick) += Fixed crash bug when a function had sprintf style parameters (ie. + strftime()). (Derick) ++ Added "id" attribute to <var /> elements in responses from the remove + debugger when the response method is XML. This makes it possible to + distinguish between unique elements by use of recursion for example. (Derick) += Improved performance greatly by doing lazy folding of variables outside + trace mode. (Derick) += Fixed a bug with "quit", if it was used it disabled the extension for the + current process. (Derick) ++ Added the "full" argument to the remote command "backtrace". When this + argument is passed, the local variables will be returned to for each frame in + the stack. (Derick) ++ Implemented xdebug_time_index() which returns the time passed since the + start of the script. This change also changes the output of the tracing + functions as the start time will no longer be the first function call, but + the real start time of the script. (Derick) ++ Implemented the "show-local" command (shows all local variables in the + current scope including all contents). (Derick) ++ Implemented conditions for breakpoints in the "break" command. (Derick) + + + + + 1.2.0 + 1.2.0 + + + stable + stable + + 2003-04-21 + BSD style + += Fixed compilation on MacOSX. (Derick) + + + + + 1.2.0rc2 + 1.2.0rc2 + + + beta + beta + + 2003-04-15 + BSD style + += Fixed handling Windows paths in the debugger. (Derick) += Fixed getting zvals out of Zend Engine 2. (Derick) + + + + + 1.2.0rc1 + 1.2.0rc1 + + + beta + beta + + 2003-04-06 + BSD style + ++ Added code coverage functions to check which lines and how often they were + touched during execution. (Derick) ++ Made Xdebug compatible with Zend Engine 2. (Derick) ++ Added dumping of super globals on errors. (Harald Radi) ++ Added XML protocol for the debugger client. (Derick) += Fixed handling of "continue" (so that it also continues with the script). + (Derick) ++ Additions to the remote debugger: "eval" (evaluate any PHP code from the + debugger client). (Derick) ++ Added profiling support to xdebug. This introduces 3 new functions, + xdebug_start_profiling() that begins profiling process, + xdebug_stop_profiling() that ends the profiling process and + xdebug_dump_function_trace() that dumps the profiling data. (Ilia) ++ Implemented the "kill" (kills the running script) and "delete" (removes + a breakpoint on a specified element) command. (Derick) + + + + + 1.1.0 + 1.1.0 + + + stable + stable + + 2002-11-11 + BSD style + ++ Implemented the "list" (source listing), "print" (printing variable + contents), "show" (show all variables in the scope), "step" (step through + execution), "pwd" (print working directory), "next" (step over) and "finish" + (step out) commands for the remote debugger. (Derick) += Fixed lots of small bugs, under them memory leaks and crash bugs. (Derick) + + + + + 1.1.0pre2 + 1.1.0pre2 + + + beta + beta + + 2002-10-29 + BSD style + ++ Implemented class::method, object->method and file.ext:line style + breakpoints. (Derick) ++ Added xdebug.collect_params setting. If this setting is on (the default) + then Xdebug collects all parameters passed to functions, otherwise they + are not collected at all. (Derick) ++ Implemented correct handling of include/require and eval. (Derick) + + + + + 1.1.0pre1 + 1.1.0pre1 + + + beta + beta + + 2002-10-22 + BSD style + ++ Added automatic starting of function traces (xdebug.auto_trace, defaulting to + "off"). (Derick) +- Xdebug no longer supports PHP versions below PHP 4.3.0pre1. (Derick) ++ Added gdb compatible debugger handler with support for simple (function only) + breakpoints. (Derick) += Implemented a new way to get class names and file names. (Derick, Thies C. + Arntzen <thies@thieso.net>) ++ Added time-index and memory footprint to CLI dumps. (Derick) ++ Implemented remote debugger handler abstraction. (Derick) ++ Added a php3 compatible debugger handler. (Derick) + + + + + 1.0.0rc1 + 1.0.0rc1 + + + beta + beta + + 2002-09-01 + BSD style + ++ Implemented gathering of parameters to internal functions (only available + in combination with PHP 4.3.0-dev). (Derick) += Implemented a new way to get class names and file names. (Derick, Thies C. + Arntzen >thies@thieso.net<) ++ Added support for error messages with stack trace in syslog. (Sergio + Ballestrero >s.ballestrero@planetweb.it<) += Windows compilation fixes. (Derick) + + + + + 0.9.0 + 0.9.0 + + + beta + beta + + 2002-06-16 + BSD style + += Fixed a memory leak in delayed included files. (Derick) +- Added support for PHP 4.1.2. (Derick) += Rewrote xdebug_get_function_stack() and xdebug_get_function_trace() to return + data in multidimensional arrays. (Derick) += Fixed compiling without memory limit enabled (Sander Roobol, Derick) +- Add support for classnames, variable include files and variable + function names. (Derick) +- Implemented links to the PHP Manual in traces. (Derick) +- Added timestamps and memory usage to function traces. (Derick) += Fixed crash when using an user defined session handler. (Derick) ++ Implemented variable function names ($a = 'foo'; $f();) for use in + traces. (Derick) + + + + + 0.8.0 + 0.8.0 + + + beta + beta + + 2002-05-26 + BSD style + ++ Implemented much better parameter tracing for user defined + functions. (Derick) += Renamed xdebug_get_function_trace() to xdebug_dump_function_trace(). + (Derick) += Implemented new xdebug_get_function_trace() to return the function trace in + an array. (Derick) ++ Added a parameter to xdebug_start_trace(). When this parameter is used, + xdebug will dump a function trace to the filename which this parameter + speficies. (Derick) +- Fix a problem with nested member functions. (Derick) += Make configure scripts work with PHP 4.2.x. (Derick) ++ Implemented handling single-dimensional constant arrays passed to a + function. (Derick) += Fix function traces in windows. (Derick) ++ Implemented function traces, which you can start and stop with + xdebug_start_trace() and xdebug_stop_trace(). You can view the trace by using + the return array from xdebug_get_function_trace(). (Derick) += Fixed segfaults with xdebug_call_*(). (Derick) + + + + + 0.7.0 + 0.7.0 + + + beta + beta + + 2002-05-08 + BSD style + ++ Implemented handling of static method calls (foo::bar). (Derick) ++ Added correct handling of include(_once)/require(_once) and eval(). + (Derick) ++ Added ini setting to change the default setting for enabling showing + enhanced error messages. (Defaults to "On"). (Derick) ++ Added the functions xdebug_enable() and xdebug_disable() to change the + showing of stack traces from within your code. (Derick) += Fixed the extension to show all errors. (Derick) ++ Implemented xdebug_memory_usage() which returns the memory in use by PHPs + engine. (Derick) + + + + diff --git a/tests/fixtures/ext/xhprof/extension/config.m4 b/tests/fixtures/ext/xhprof/extension/config.m4 new file mode 100644 index 000000000..754014740 --- /dev/null +++ b/tests/fixtures/ext/xhprof/extension/config.m4 @@ -0,0 +1,6 @@ +PHP_ARG_ENABLE(xhprof, whether to enable xhprof support, +[ --enable-xhprof Enable xhprof support]) + +if test "$PHP_XHPROF" != "no"; then + PHP_NEW_EXTENSION(xhprof, xhprof.c, $ext_shared) +fi diff --git a/tests/fixtures/ext/xhprof/package.xml b/tests/fixtures/ext/xhprof/package.xml new file mode 100644 index 000000000..59e92a756 --- /dev/null +++ b/tests/fixtures/ext/xhprof/package.xml @@ -0,0 +1,184 @@ + + + xhprof + pecl.php.net + XHProf: A Hierarchical Profiler for PHP + +XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based navigational interface. The raw data collection component is implemented in C (as a PHP extension). The reporting/UI layer is all in PHP. It is capable of reporting function-level inclusive and exclusive wall times, memory usage, CPU times and number of calls for each function. Additionally, it supports ability to compare two runs (hierarchical DIFF reports), or aggregate results from multiple runs. + + + Kannan Muthukkaruppan + kannan + kannan@php.net + no + + + Venkat Venkataramani + veeve + veeve@php.net + no + + + Changhao Jiang + cjiang + cjiang@php.net + no + + + Haiping Zhao + haiping + haiping@php.net + no + + + Carlos Bueno + aristus + cmb@fb.com + no + + + Bill Fumerola + billf + bill@fb.com + yes + + + Scott MacVicar + macvicar + scott@fb.com + yes + + 2009-03-28 + + 0.9.2 + 0.9.2 + + + beta + beta + + Apache 2.0 + +-- Request #16544: Mac port for XHProf (svilen spasov) +-- fix #16574: require/require_once not special cased like include/include_once (kannan) +-- add a sanity test for sampling mode in xhprof (kannan) +-- add support to ignore functions (such as call_user_func) during profiling (mike paleczny) +-- fix #16098: suppress notices due to use of FILE_BINARY (kannan) +-- add a sanity test for timer (kannan) +-- fix for compile error on debian linux (russ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.2.0 + + + 1.4.0 + + + + xhprof + + + + + 0.9.1 + 0.9.1 + + 2009-03-21 + + beta + beta + + +-- doc improvements/fixes + + + + + 0.9.0 + 0.9.0 + + 2009-03-17 + + beta + beta + + + -- initial release of xhprof + + + + + + diff --git a/tests/fixtures/ext/xml/config.m4 b/tests/fixtures/ext/xml/config.m4 new file mode 100644 index 000000000..ebfc0471e --- /dev/null +++ b/tests/fixtures/ext/xml/config.m4 @@ -0,0 +1,59 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(xml,whether to enable XML support, +[ --disable-xml Disable XML support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR XML: libxml2 install prefix], no, no) +fi + +PHP_ARG_WITH(libexpat-dir, libexpat install dir, +[ --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)], no, no) + +if test "$PHP_XML" != "no"; then + + dnl + dnl Default to libxml2 if --with-libexpat-dir is not used. + dnl + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XML extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [ + xml_extra_sources="compat.c" + PHP_ADD_EXTENSION_DEP(xml, libxml) + ], [ + AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=]) + ]) + fi + + dnl + dnl Check for expat only if --with-libexpat-dir is used. + dnl + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + AC_MSG_ERROR([not found. Please reinstall the expat distribution.]) + fi + + PHP_ADD_INCLUDE($EXPAT_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/$PHP_LIBDIR, XML_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBEXPAT, 1, [ ]) + fi + + PHP_NEW_EXTENSION(xml, xml.c $xml_extra_sources, $ext_shared) + PHP_SUBST(XML_SHARED_LIBADD) + PHP_INSTALL_HEADERS([ext/xml/]) + AC_DEFINE(HAVE_XML, 1, [ ]) +fi diff --git a/tests/fixtures/ext/xml/package.xml b/tests/fixtures/ext/xml/package.xml new file mode 100644 index 000000000..ae5e6450d --- /dev/null +++ b/tests/fixtures/ext/xml/package.xml @@ -0,0 +1,74 @@ + + + + xml + XML Parsing functions + + + ssb + Stig Bakken + ssb@php.net + lead + + + thies + Thies Arntzen + thies@php.net + lead + + + sterling + Sterling Hughes + sterling@php.net + lead + + + +This extension lets you create XML parsers and then define +handlers for different XML events. Each XML parser also has +a few parameters you can adjust. + + PHP + + beta + 5.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/xmlreader/config.m4 b/tests/fixtures/ext/xmlreader/config.m4 new file mode 100644 index 000000000..d346b58ee --- /dev/null +++ b/tests/fixtures/ext/xmlreader/config.m4 @@ -0,0 +1,27 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(xmlreader, whether to enable XMLReader support, +[ --disable-xmlreader Disable XMLReader support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR XMLReader: libxml2 install prefix], no, no) +fi + +if test "$PHP_XMLREADER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XMLReader extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(XMLREADER_SHARED_LIBADD, [ + AC_DEFINE(HAVE_XMLREADER,1,[ ]) + PHP_NEW_EXTENSION(xmlreader, php_xmlreader.c, $ext_shared) + PHP_ADD_EXTENSION_DEP(xmlreader, dom, true) + PHP_SUBST(XMLREADER_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) +fi diff --git a/tests/fixtures/ext/xmlreader/package.xml b/tests/fixtures/ext/xmlreader/package.xml new file mode 100644 index 000000000..6536b78c1 --- /dev/null +++ b/tests/fixtures/ext/xmlreader/package.xml @@ -0,0 +1,75 @@ + + + + xmlreader + Provides fast, non-cached, forward-only access to XML data under PHP 5. + + This extension wraps the libxml xmlReader API. The reader acts as a cursor + going forward on the document stream and stopping at each node in the way. + xmlReader is similar to SAX though uses a much simpler API. + + PHP License + + + rrichards + Rob Richards + rrichards@php.net + lead + + + chregu + lead + Christian Stocker + chregu@php.net + + + + + 1.0.1 + 2005-04-30 + stable + + Add workaround for next() bug when using libxml 2.6.17 and lower. + + + + + + 1.0 + 2004-07-27 + stable + + Add name parameter to next() to skip to next named sibling node. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + libxml + + diff --git a/tests/fixtures/ext/xmlrpc/config.m4 b/tests/fixtures/ext/xmlrpc/config.m4 new file mode 100644 index 000000000..f82016edc --- /dev/null +++ b/tests/fixtures/ext/xmlrpc/config.m4 @@ -0,0 +1,122 @@ +dnl +dnl $Id$ +dnl + +sinclude(ext/xmlrpc/libxmlrpc/acinclude.m4) +sinclude(ext/xmlrpc/libxmlrpc/xmlrpc.m4) +sinclude(libxmlrpc/acinclude.m4) +sinclude(libxmlrpc/xmlrpc.m4) + +PHP_ARG_WITH(xmlrpc, for XMLRPC-EPI support, +[ --with-xmlrpc[=DIR] Include XMLRPC-EPI support]) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix], no, no) +fi + +PHP_ARG_WITH(libexpat-dir, libexpat dir for XMLRPC-EPI, +[ --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)],no,no) + +PHP_ARG_WITH(iconv-dir, iconv dir for XMLRPC-EPI, +[ --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI],no,no) + +if test "$PHP_XMLRPC" != "no"; then + + PHP_ADD_EXTENSION_DEP(xmlrpc, libxml) + PHP_SUBST(XMLRPC_SHARED_LIBADD) + AC_DEFINE(HAVE_XMLRPC,1,[ ]) + + dnl + dnl Default to libxml2 if --with-libexpat-dir is not used + dnl + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XML-RPC extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(XMLRPC_SHARED_LIBADD, [ + if test "$PHP_XML" = "no"; then + PHP_ADD_SOURCES(ext/xml, compat.c) + PHP_ADD_BUILD_DIR(ext/xml) + fi + ], [ + AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=]) + ]) + else + testval=no + for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do + if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then + AC_DEFINE(HAVE_LIBEXPAT,1,[ ]) + PHP_ADD_LIBRARY_WITH_PATH(expat, $i/$PHP_LIBDIR, XMLRPC_SHARED_LIBADD) + PHP_ADD_INCLUDE($i/include) + testval=yes + break + fi + done + + if test "$testval" = "no"; then + AC_MSG_ERROR([XML-RPC support requires libexpat. Use --with-libexpat-dir= (deprecated!)]) + fi + fi + + dnl if iconv is shared or missing then we should build iconv ourselves + if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then + + if test "$PHP_ICONV_DIR" != "no"; then + PHP_ICONV=$PHP_ICONV_DIR + fi + + if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi + + PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [ + AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library]) + ]) + fi +fi + +if test "$PHP_XMLRPC" = "yes"; then + XMLRPC_CHECKS + PHP_NEW_EXTENSION(xmlrpc,xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c,$ext_shared,, + -I@ext_srcdir@/libxmlrpc -DVERSION="0.50") + PHP_ADD_BUILD_DIR($ext_builddir/libxmlrpc) + XMLRPC_MODULE_TYPE=builtin + +elif test "$PHP_XMLRPC" != "no"; then + + if test -r $PHP_XMLRPC/include/xmlrpc.h; then + XMLRPC_DIR=$PHP_XMLRPC/include + elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then +dnl some xmlrpc-epi header files have generic file names like +dnl queue.h or base64.h. Distributions have to create dir +dnl for xmlrpc-epi because of this. + XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi + else + AC_MSG_CHECKING(for XMLRPC-EPI in default path) + for i in /usr/local /usr; do + if test -r $i/include/xmlrpc.h; then + XMLRPC_DIR=$i/include + AC_MSG_RESULT(found in $i) + break + fi + done + fi + + if test -z "$XMLRPC_DIR"; then + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Please reinstall the XMLRPC-EPI distribution) + fi + + PHP_ADD_INCLUDE($XMLRPC_DIR) + PHP_ADD_LIBRARY_WITH_PATH(xmlrpc, $XMLRPC_DIR/$PHP_LIBDIR, XMLRPC_SHARED_LIBADD) + PHP_NEW_EXTENSION(xmlrpc,xmlrpc-epi-php.c, $ext_shared) + XMLRPC_MODULE_TYPE=external +fi diff --git a/tests/fixtures/ext/xmlwriter/config.m4 b/tests/fixtures/ext/xmlwriter/config.m4 new file mode 100644 index 000000000..b3b98012f --- /dev/null +++ b/tests/fixtures/ext/xmlwriter/config.m4 @@ -0,0 +1,26 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(xmlwriter, whether to enable XMLWriter support, +[ --disable-xmlwriter Disable XMLWriter support], yes) + +if test -z "$PHP_LIBXML_DIR"; then + PHP_ARG_WITH(libxml-dir, libxml2 install dir, + [ --with-libxml-dir=DIR XMLWriter: libxml2 install prefix], no, no) +fi + +if test "$PHP_XMLWRITER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XMLWriter extension requires LIBXML extension, add --enable-libxml]) + fi + + PHP_SETUP_LIBXML(XMLWRITER_SHARED_LIBADD, [ + AC_DEFINE(HAVE_XMLWRITER,1,[ ]) + PHP_NEW_EXTENSION(xmlwriter, php_xmlwriter.c, $ext_shared) + PHP_SUBST(XMLWRITER_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) +fi diff --git a/tests/fixtures/ext/xmlwriter/package.xml b/tests/fixtures/ext/xmlwriter/package.xml new file mode 100644 index 000000000..01f7ad442 --- /dev/null +++ b/tests/fixtures/ext/xmlwriter/package.xml @@ -0,0 +1,107 @@ + + + + xmlwriter + Provides fast, non-cached, forward-only means to write XML data. + This extension wraps the libxml xmlWriter API. Represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data. + + PHP + + + rrichards + Rob Richards + rrichards@php.net + lead + + + + pajoye + Pierre-Alain Joye + pajoye@php.net + developer + + + 2.0.2 + 2005-12-01 + stable + - fix build under 5.0 +- fix crash when XMLWriter is instantiated but not used +- Switch from BSD-like license to PHP License 3.01 + + + + + 2.0.0 + 2005-08-07 + stable + + fix tests using UTF-8 + move to stable state + + + + + 1.1.0 + 2005-05-24 + beta + + Add OO interface (php5 only) + Add test cases + + + + + 2.0.1 + 2005-11-15 + stable + - Switch from PHP License to BSD-like license +- Allow recursive calls to __get/__set for different properties (ilia) + + + 1.0 + 2005-05-02 + stable + + Many Bug Fixes + Use PHP streams under PHP 4 + Add xmlwriter_flush function to flush buffer + Add support for xmlTextWriterStart/EndComment + + + + 0.1 + 2004-07-20 + alpha + Initial Release + + + 0.2 + 2004-10-08 + alpha + Fix bug 2482 and other function parameters + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/ext/xsl/config.m4 b/tests/fixtures/ext/xsl/config.m4 new file mode 100644 index 000000000..9b6f8aaa4 --- /dev/null +++ b/tests/fixtures/ext/xsl/config.m4 @@ -0,0 +1,67 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(xsl, for XSL support, +[ --with-xsl[=DIR] Include XSL support. DIR is the libxslt base + install directory (libxslt >= 1.1.0 required)]) + +if test "$PHP_XSL" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XSL extension requires LIBXML extension, add --enable-libxml]) + fi + + if test "$PHP_DOM" = "no"; then + AC_MSG_ERROR([XSL extension requires DOM extension, add --enable-dom]) + fi + + for i in $PHP_XSL /usr/local /usr; do + if test -x "$i/bin/xslt-config"; then + XSLT_CONFIG=$i/bin/xslt-config + break + fi + done + + if test -z "$XSLT_CONFIG"; then + AC_MSG_ERROR([xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution]) + else + libxslt_full_version=`$XSLT_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxslt_full_version + IFS=$ac_IFS + LIBXSLT_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` + if test "$LIBXSLT_VERSION" -ge "1001000"; then + XSL_LIBS=`$XSLT_CONFIG --libs` + XSL_INCS=`$XSLT_CONFIG --cflags` + PHP_EVAL_LIBLINE($XSL_LIBS, XSL_SHARED_LIBADD) + PHP_EVAL_INCLINE($XSL_INCS) + + AC_MSG_CHECKING([for EXSLT support]) + for i in $PHP_XSL /usr/local /usr; do + if test -r "$i/include/libexslt/exslt.h"; then + PHP_XSL_EXSL_DIR=$i + break + fi + done + if test -z "$PHP_XSL_EXSL_DIR"; then + AC_MSG_RESULT(not found) + else + AC_MSG_RESULT(found) + PHP_ADD_LIBRARY_WITH_PATH(exslt, $PHP_XSL_EXSL_DIR/$PHP_LIBDIR, XSL_SHARED_LIBADD) + PHP_ADD_INCLUDE($PHP_XSL_EXSL_DIR/include) + AC_DEFINE(HAVE_XSL_EXSLT,1,[ ]) + fi + else + AC_MSG_ERROR([libxslt version 1.1.0 or greater required.]) + fi + + + fi + + AC_DEFINE(HAVE_XSL,1,[ ]) + PHP_NEW_EXTENSION(xsl, php_xsl.c xsltprocessor.c, $ext_shared) + PHP_SUBST(XSL_SHARED_LIBADD) + PHP_ADD_EXTENSION_DEP(xsl, libxml) +fi diff --git a/tests/fixtures/ext/yaml/config.m4 b/tests/fixtures/ext/yaml/config.m4 new file mode 100644 index 000000000..5f65c6436 --- /dev/null +++ b/tests/fixtures/ext/yaml/config.m4 @@ -0,0 +1,40 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(yaml, [whether to enable LibYAML suppot], +[ --with-yaml[[=DIR]] Enable LibYAML support. + DIR is the path to LibYAML install prefix]) + + +if test "$PHP_YAML" != "no"; then + + AC_MSG_CHECKING([for yaml headers]) + for i in "$PHP_YAML" "$prefix" /usr /usr/local; do + if test -r "$i/include/yaml.h"; then + PHP_YAML_DIR=$i + AC_MSG_RESULT([found in $i]) + break + fi + done + if test -z "$PHP_YAML_DIR"; then + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([Please install libyaml]) + fi + + PHP_ADD_INCLUDE($PHP_YAML_DIR/include) + dnl recommended flags for compilation with gcc + dnl CFLAGS="$CFLAGS -Wall -fno-strict-aliasing" + + export OLD_CPPFLAGS="$CPPFLAGS" + export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_YAML" + AC_CHECK_HEADER([yaml.h], [], AC_MSG_ERROR(['yaml.h' header not found])) + PHP_SUBST(YAML_SHARED_LIBADD) + + PHP_ADD_LIBRARY_WITH_PATH(yaml, $PHP_YAML_DIR/lib, YAML_SHARED_LIBADD) + export CPPFLAGS="$OLD_CPPFLAGS" + + PHP_SUBST(YAML_SHARED_LIBADD) + AC_DEFINE(HAVE_YAML, 1, [ ]) + PHP_NEW_EXTENSION(yaml, yaml.c parse.c emit.c detect.c , $ext_shared) +fi diff --git a/tests/fixtures/ext/yaml/package.xml b/tests/fixtures/ext/yaml/package.xml new file mode 100644 index 000000000..f417def10 --- /dev/null +++ b/tests/fixtures/ext/yaml/package.xml @@ -0,0 +1,296 @@ + + + yaml + pecl.php.net + YAML-1.1 parser and emitter + Support for YAML 1.1 (YAML Ain't Markup Language) serialization using the + LibYAML library. + + Bryan Davis + bd808 + bd808@php.net + yes + + 2013-11-19 + + + 1.1.1 + 1.1.0 + + + stable + stable + + MIT + +New Features: +- Removed "not yet implemented" warning and deliberate abort from + yaml_emit_file() +Bugs Fixed: +- #61770 Crash on nonunicode character +- #61923 Detect_scalar_type() is not aware of base 60 representation +- #63086 Compiling PHP with YAML as static extension fails +- #64019 Segmentation fault if yaml anchor ends with a colon +- #64694 Segfault when array used as mapping key + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.2.0 + + + 1.4.0b1 + + + + + date + + + + yaml + + + + + + 2011-04-15 + + 1.1.0 + 1.1.0 + + + stable + stable + + +Marking 1.1.0 branch as stable. No change from 1.1.0RC2. + + + + 2011-03-27 + + 1.1.0RC2 + 1.1.0 + + + beta + beta + + +Bugs Fixed: +- #61477 memset sizeof(struct) instead of sizeof(pointer) +- #61475 config.m4 honors `php-config --prefix` + + + + 2011-03-12 + + 1.1.0RC1 + 1.1.0 + + + beta + beta + + +New Features: + - #59860 Callback support when parsing implicit tags + - #60711 Callback support when emitting objects +Bugs Fixed: + - #59765 Build process does not honour custom CFLAGS + - #60628 Mystery circular references after tag callback + + + + 2011-02-20 + + 1.0.1 + 1.0.0 + + + stable + stable + + +- Bug #21995: fixed double free bug when a callback mapping is provided +- corrected string length issue with callback "tag" argument +- added "tag" and "flags" arguments to sequence and map callbacks + + + + 2011-02-20 + + 1.0.0 + 1.0.0 + + + stable + stable + + +Marking package as stable after 12 months of daily production usage. + + + + 2010-02-09 + + 0.6.3 + 0.6.3 + + + beta + beta + + +Fixed packaging problem that broke install via pecl channel. + + + + + 0.6.2 + 0.6.2 + + + beta + beta + + +First release from new hosting at svn.php.net via pecl.php.net + + + + + 0.6.1 + 0.6.1 + + + beta + beta + + 2010-01-25 + +Fixed bad pecl package. + + + + + 0.6.0 + 0.6.0 + + + beta + beta + + 2010-01-25 + +Support for '<<' (merge) in mappings. Fixed issues with php 5.3 and +ZTS compilation. Added support for emitting recursive arrays. + + + + + 0.5.0 + 0.5.0 + + + alpha + alpha + + 2009-11-24 + +Implemented yaml_emit and yaml_emit_file. Wrote basic phpdoc content. Lots +and lots of new unit tests. + + + + + 0.4.0 + 0.4.0 + + + devel + devel + + 2009-11-12 + +Initial release of fork from rsky's 0.3.0 tarball found at +http://www.opendogs.org/pub/php_yaml-0.3.0.tgz + + + + diff --git a/tests/fixtures/ext/zip/config.m4 b/tests/fixtures/ext/zip/config.m4 new file mode 100644 index 000000000..805d92442 --- /dev/null +++ b/tests/fixtures/ext/zip/config.m4 @@ -0,0 +1,108 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_ENABLE(zip, for zip archive read/writesupport, +[ --enable-zip Include Zip read/write support]) + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] ZIP: Set the path to libz install prefix], no, no) +fi + +PHP_ARG_WITH(pcre-dir, pcre install prefix, +[ --with-pcre-dir ZIP: pcre install prefix], no, no) + +if test "$PHP_ZIP" != "no"; then + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + AC_MSG_ERROR([Can not find zlib headers under "$PHP_ZLIB_DIR"]) + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + dnl # zlib + AC_MSG_CHECKING([for the location of zlib]) + if test "$PHP_ZLIB_DIR" = "no"; then + AC_MSG_ERROR([zip support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located]) + else + AC_MSG_RESULT([$PHP_ZLIB_DIR]) + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD) + PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR) + fi + + dnl This is PECL build, check if bundled PCRE library is used + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=yes + ],[ + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=pecl + ],[ + PHP_PCRE_REGEX=no + ]) + ]) + CPPFLAGS=$old_CPPFLAGS + + PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \ + lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \ + lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \ + lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \ + lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \ + lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \ + lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \ + lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \ + lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \ + lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \ + lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \ + lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \ + lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \ + lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \ + lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \ + lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \ + lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \ + lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \ + lib/zip_error_clear.c lib/zip_file_error_clear.c \ + lib/zip_fdopen.c lib/zip_fopen_encrypted.c lib/zip_fopen_index_encrypted.c \ + lib/zip_get_compression_implementation.c lib/zip_get_encryption_implementation.c \ + lib/zip_get_file_extra.c lib/zip_get_num_entries.c lib/zip_set_default_password.c \ + lib/zip_set_file_extra.c lib/zip_source_close.c lib/zip_source_crc.c \ + lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_layered.c \ + lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \ + lib/zip_source_read.c lib/zip_source_stat.c" + + AC_DEFINE(HAVE_ZIP,1,[ ]) + PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared) + PHP_ADD_BUILD_DIR($ext_builddir/lib, 1) + PHP_SUBST(ZIP_SHARED_LIBADD) + + dnl so we always include the known-good working hack. + PHP_ADD_MAKEFILE_FRAGMENT +fi diff --git a/tests/fixtures/ext/zlib/config0.m4 b/tests/fixtures/ext/zlib/config0.m4 new file mode 100644 index 000000000..ebf67cc00 --- /dev/null +++ b/tests/fixtures/ext/zlib/config0.m4 @@ -0,0 +1,65 @@ +dnl +dnl $Id$ +dnl + +PHP_ARG_WITH(zlib,for ZLIB support, +[ --with-zlib[=DIR] Include ZLIB support (requires zlib >= 1.0.9)]) + +PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined, +[ --with-zlib-dir= Define the location of zlib install directory], no, no) + +if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then + PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared) + PHP_SUBST(ZLIB_SHARED_LIBADD) + + if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then + if test -f $PHP_ZLIB/include/zlib/zlib.h; then + ZLIB_DIR=$PHP_ZLIB + ZLIB_INCDIR=$ZLIB_DIR/include/zlib + elif test -f $PHP_ZLIB/include/zlib.h; then + ZLIB_DIR=$PHP_ZLIB + ZLIB_INCDIR=$ZLIB_DIR/include + fi + else + for i in /usr/local /usr $PHP_ZLIB_DIR; do + if test -f $i/include/zlib/zlib.h; then + ZLIB_DIR=$i + ZLIB_INCDIR=$i/include/zlib + elif test -f $i/include/zlib.h; then + ZLIB_DIR=$i + ZLIB_INCDIR=$i/include + fi + done + fi + + if test -z "$ZLIB_DIR"; then + AC_MSG_ERROR(Cannot find libz) + fi + + case $ZLIB_DIR in + /usr) ac_extra= ;; + *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;; + esac + + AC_MSG_CHECKING([for zlib version >= 1.2.0.4]) + ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[[^0-9\.]]//g'` + AC_MSG_RESULT([$ZLIB_VERSION]) + if test `echo $ZLIB_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then + AC_MSG_ERROR([libz version greater or equal to 1.2.0.4 required]) + fi + + PHP_CHECK_LIBRARY(z, gzgets, [ + AC_DEFINE(HAVE_ZLIB,1,[ ]) + ],[ + AC_MSG_ERROR(ZLIB extension requires gzgets in zlib) + ],[ + $ac_extra + ]) + + PHP_ADD_LIBPATH($ZLIB_DIR/$PHP_LIBDIR, ZLIB_SHARED_LIBADD) + + PHP_ZLIB_DIR=$ZLIB_DIR + PHP_ADD_LIBRARY(z,, ZLIB_SHARED_LIBADD) + PHP_ADD_INCLUDE($ZLIB_INCDIR) + +fi diff --git a/tests/fixtures/ext/zlib/package.xml b/tests/fixtures/ext/zlib/package.xml new file mode 100644 index 000000000..4be42e093 --- /dev/null +++ b/tests/fixtures/ext/zlib/package.xml @@ -0,0 +1,70 @@ + + + + zlib + zlib compression management + + + sr + Stefan Roehrich + sr@linux.de + lead + + + rasmus + Rasmus Lerdorf + rasmus@php.net + developer + + + zeev + Zeev Suraski + zeev@php.net + developer + + + ??? + Jade Nicoletti + ???@php.net + developer + + + +This module enables you to transparently read and write +gzip (.gz) compressed files, through versions of most of +the filesystem functions which work with gzip-compressed +files (and uncompressed files, too, but not with sockets). + + PHP + + beta + 5.0.0rc1 + 2004-03-19 + +package.xml added to support installation using pear installer + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/make/Makefile b/tests/fixtures/make/Makefile new file mode 100644 index 000000000..2914151cd --- /dev/null +++ b/tests/fixtures/make/Makefile @@ -0,0 +1,7 @@ +.PHONY: all install clean + +all: + +install: + +clean: diff --git a/tests/fixtures/patches/intl_patch/Makefile b/tests/fixtures/patches/intl_patch/Makefile new file mode 100644 index 000000000..cd06a2ad0 --- /dev/null +++ b/tests/fixtures/patches/intl_patch/Makefile @@ -0,0 +1,1811 @@ +srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +EGREP = grep -E +SED = /opt/local/bin/gsed +CONFIGURE_COMMAND = './configure' '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +CONFIGURE_OPTIONS = '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +PHP_MAJOR_VERSION = 5 +PHP_MINOR_VERSION = 3 +PHP_RELEASE_VERSION = 29 +PHP_EXTRA_VERSION = +AWK = gawk +YACC = exit 0; +RE2C = re2c +RE2C_FLAGS = +SHLIB_SUFFIX_NAME = dylib +SHLIB_DL_SUFFIX_NAME = so +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +INSTALL_CLI = $(mkinstalldirs) $(INSTALL_ROOT)$(bindir); $(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT) +php_fpm_user = nobody +php_fpm_group = nobody +php_fpm_sysconfdir = /Users/c9s/.phpbrew/php/php-5.3.29/etc +php_fpm_localstatedir = /Users/c9s/.phpbrew/php/php-5.3.29/var +php_fpm_prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +SAPI_FPM_PATH = sapi/fpm/php-fpm +BUILD_FPM = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(SAPI_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) +PROG_SENDMAIL = /usr/sbin/sendmail +OPENSSL_SHARED_LIBADD = +SQLITE3_SHARED_LIBADD = +ZLIB_SHARED_LIBADD = +BZ2_SHARED_LIBADD = +CURL_SHARED_LIBADD = +DOM_SHARED_LIBADD = +FILTER_SHARED_LIBADD = +GETTEXT_SHARED_LIBADD = +INTL_SHARED_LIBADD = +JSON_SHARED_LIBADD = +MBSTRING_SHARED_LIBADD = +MCRYPT_SHARED_LIBADD = +MYSQL_SHARED_LIBADD = +MYSQLI_SHARED_LIBADD = +PDO_MYSQL_SHARED_LIBADD = +PDO_MYSQL_MODULE_TYPE = external +PDO_PGSQL_SHARED_LIBADD = +PDO_SQLITE_SHARED_LIBADD = +PGSQL_SHARED_LIBADD = +READLINE_SHARED_LIBADD = +SESSION_SHARED_LIBADD = +SIMPLEXML_SHARED_LIBADD = +SOAP_SHARED_LIBADD = +XML_SHARED_LIBADD = +XMLREADER_SHARED_LIBADD = +XMLWRITER_SHARED_LIBADD = +XSL_SHARED_LIBADD = +ZIP_SHARED_LIBADD = +PHP_INSTALLED_SAPIS = cli fpm +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +PHP_CLI_TARGET = $(SAPI_CLI_PATH) +PHP_SAPI_OBJS = sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_mach.lo main/internal_functions.lo +PHP_CLI_OBJS = ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo main/internal_functions_cli.lo +PHP_GLOBAL_OBJS = ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/gettext/gettext.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_salsa.lo ext/intl/php_intl.lo ext/intl/intl_error.lo ext/intl/intl_convert.lo ext/intl/collator/collator.lo ext/intl/collator/collator_class.lo ext/intl/collator/collator_sort.lo ext/intl/collator/collator_convert.lo ext/intl/collator/collator_locale.lo ext/intl/collator/collator_compare.lo ext/intl/collator/collator_attr.lo ext/intl/collator/collator_create.lo ext/intl/collator/collator_is_numeric.lo ext/intl/collator/collator_error.lo ext/intl/common/common_error.lo ext/intl/formatter/formatter.lo ext/intl/formatter/formatter_main.lo ext/intl/formatter/formatter_class.lo ext/intl/formatter/formatter_attr.lo ext/intl/formatter/formatter_data.lo ext/intl/formatter/formatter_format.lo ext/intl/formatter/formatter_parse.lo ext/intl/normalizer/normalizer.lo ext/intl/normalizer/normalizer_class.lo ext/intl/normalizer/normalizer_normalize.lo ext/intl/locale/locale.lo ext/intl/locale/locale_class.lo ext/intl/locale/locale_methods.lo ext/intl/dateformat/dateformat.lo ext/intl/dateformat/dateformat_class.lo ext/intl/dateformat/dateformat_attr.lo ext/intl/dateformat/dateformat_data.lo ext/intl/dateformat/dateformat_format.lo ext/intl/dateformat/dateformat_parse.lo ext/intl/msgformat/msgformat.lo ext/intl/msgformat/msgformat_attr.lo ext/intl/msgformat/msgformat_class.lo ext/intl/msgformat/msgformat_data.lo ext/intl/msgformat/msgformat_format.lo ext/intl/msgformat/msgformat_helpers.lo ext/intl/msgformat/msgformat_parse.lo ext/intl/grapheme/grapheme_string.lo ext/intl/grapheme/grapheme_util.lo ext/intl/resourcebundle/resourcebundle.lo ext/intl/resourcebundle/resourcebundle_class.lo ext/intl/resourcebundle/resourcebundle_iterator.lo ext/intl/idn/idn.lo ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_pgsql/pdo_pgsql.lo ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo ext/mysqlnd/mysqlnd.lo ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo ext/mysqlnd/mysqlnd_loaddata.lo ext/mysqlnd/mysqlnd_net.lo ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo +PHP_MODULES = +PHP_ZEND_EX = +EXT_LIBS = +abs_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +abs_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +exec_prefix = ${prefix} +program_prefix = +program_suffix = +includedir = ${prefix}/include +libdir = ${exec_prefix}/lib/php +mandir = ${prefix}/man +phplibdir = /Users/c9s/.phpbrew/build/php-5.3.29/modules +phptempdir = /Users/c9s/.phpbrew/build/php-5.3.29/libs +prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +localstatedir = ${prefix}/var +datadir = ${prefix}/share/php +datarootdir = /Users/c9s/.phpbrew/php/php-5.3.29/php +sysconfdir = ${prefix}/etc +EXEEXT = .dSYM +CC = gcc +CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static +CFLAGS_CLEAN = -g -O2 -fvisibility=hidden -DZTS +CPP = gcc -E +CPPFLAGS = -no-cpp-precomp +CXX = c++ +CXXFLAGS = -g -O2 -prefer-non-pic -static +CXXFLAGS_CLEAN = -g -O2 +DEBUG_CFLAGS = +EXTENSION_DIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php/extensions/no-debug-zts-20090626 +EXTRA_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LDFLAGS_PROGRAM = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LIBS = -lz -lexslt -lresolv -ledit -lncurses -lpq -lpq -lmcrypt -lltdl -lintl -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm -lxml2 -lcurl -lxml2 -licui18n -licuuc -licudata -licuio -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt +ZEND_EXTRA_LIBS = +INCLUDES = -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -I/opt/local/include -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl -I/opt/local/include/postgresql92 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -I/usr/include/libxml2 -I$(top_builddir)/TSRM -I$(top_builddir)/Zend +EXTRA_INCLUDES = +INCLUDE_PATH = .:/Users/c9s/.phpbrew/php/php-5.3.29/lib/php +INSTALL_IT = : +LFLAGS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent --preserve-dup-deps +LN_S = ln -s +NATIVE_RPATHS = -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/local/lib/postgresql92 +PEAR_INSTALLDIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php +PHP_BUILD_DATE = 2015-07-17 +PHP_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +PHP_LIBS = +OVERALL_TARGET = $(SAPI_FPM_PATH) +PHP_RPATHS = -R /opt/local/lib -R /opt/local/lib/postgresql92 +PHP_SAPI = fpm +PHP_VERSION = 5.3.29 +PHP_VERSION_ID = 50329 +SHELL = /bin/sh +SHARED_LIBTOOL = $(LIBTOOL) +WARNING_LEVEL = +PHP_FRAMEWORKS = +PHP_FRAMEWORKPATH = +INSTALL_HEADERS = ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h ext/date/lib/timelib_config.h ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/ ext/libxml/php_libxml.h ext/pcre/php_pcre.h ext/pcre/pcrelib/ ext/sqlite3/libsqlite/sqlite3.h ext/dom/xml_common.h ext/filter/php_filter.h ext/hash/php_hash.h ext/hash/php_hash_md.h ext/hash/php_hash_sha.h ext/hash/php_hash_ripemd.h ext/hash/php_hash_haval.h ext/hash/php_hash_tiger.h ext/hash/php_hash_gost.h ext/hash/php_hash_snefru.h ext/hash/php_hash_whirlpool.h ext/hash/php_hash_adler32.h ext/hash/php_hash_crc32.h ext/hash/php_hash_salsa.h ext/hash/php_hash_types.h ext/json/php_json.h ext/mbstring/oniguruma/oniguruma.h ext/mbstring/php_mbregex.h ext/mbstring/php_onig_compat.h ext/mbstring/libmbfl/config.h ext/mbstring/libmbfl/mbfl/eaw_table.h ext/mbstring/libmbfl/mbfl/mbfilter.h ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h ext/mbstring/libmbfl/mbfl/mbfilter_pass.h ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h ext/mbstring/libmbfl/mbfl/mbfl_allocators.h ext/mbstring/libmbfl/mbfl/mbfl_consts.h ext/mbstring/libmbfl/mbfl/mbfl_convert.h ext/mbstring/libmbfl/mbfl/mbfl_defs.h ext/mbstring/libmbfl/mbfl/mbfl_encoding.h ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h ext/mbstring/libmbfl/mbfl/mbfl_ident.h ext/mbstring/libmbfl/mbfl/mbfl_language.h ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h ext/mbstring/libmbfl/mbfl/mbfl_string.h ext/mbstring/mbstring.h ext/mysqli/php_mysqli_structs.h ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/session/php_session.h ext/session/mod_files.h ext/session/mod_user.h ext/sockets//php_sockets.h ext/spl/php_spl.h ext/spl/spl_array.h ext/spl/spl_directory.h ext/spl/spl_engine.h ext/spl/spl_exceptions.h ext/spl/spl_functions.h ext/spl/spl_iterators.h ext/spl/spl_observer.h ext/spl/spl_dllist.h ext/spl/spl_heap.h ext/spl/spl_fixedarray.h ext/standard/ ext/xml/ ext/mysqlnd/ Zend/ TSRM/ include/ main/ main/streams/ +ZEND_EXT_TYPE = zend_extension +all_targets = $(OVERALL_TARGET) $(PHP_MODULES) $(PHP_ZEND_EX) $(PHP_CLI_TARGET) pharcmd +install_targets = install-sapi install-cli install-build install-headers install-programs install-pear install-pharcmd +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: +cli: $(SAPI_CLI_PATH) + +$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) + $(BUILD_CLI) + +install-cli: $(SAPI_CLI_PATH) + @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/" + @$(INSTALL_CLI) + @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1 +fpm: $(SAPI_FPM_PATH) + +sapi/fpm/fpm: + @mkdir -p sapi/fpm/fpm + @mkdir -p sapi/fpm/fpm/events + +$(SAPI_FPM_PATH): sapi/fpm/fpm $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(SAPI_EXTRA_DEPS) + $(BUILD_FPM) + +sapi/fpm/fpm/fpm_conf.lo: sapi/fpm/../../main/build-defs.h + +install-build: install-fpm + +install-fpm: install-sapi + @echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(sbindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir) + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run + @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) + + @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : + + @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8 + @$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8 + + @echo "Installing PHP FPM status page: $(INSTALL_ROOT)$(datadir)/fpm/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm + @$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html + +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/data_file.c +phpincludedir=$(prefix)/include/php + +PDO_HEADER_FILES= \ + php_pdo.h \ + php_pdo_driver.h + + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.re + (cd $(top_srcdir); $(RE2C) -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re) + +install-pdo-headers: + @echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo + @for f in $(PDO_HEADER_FILES); do \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + else \ + echo "hmmm"; \ + fi \ + done; + +# mini hack +install: $(all_targets) $(install_targets) install-pdo-headers + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re) + +pharcmd: ext/phar/phar.php ext/phar/phar.phar + +PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' +PHP_PHARCMD_EXECUTABLE = ` \ + if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ + $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ + if test "x$(PHP_MODULES)" != "x"; then \ + $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ + for i in bz2 zlib phar; do \ + if test -f "$(top_builddir)/modules/$$i.la"; then \ + . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + fi; \ + done; \ + fi; \ + else \ + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ + fi;` +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + +ext/phar/phar/phar.inc: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc + -@test -d ext/phar/phar || mkdir ext/phar/phar + -@test -f ext/phar/phar/phar.inc || cp /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc ext/phar/phar/phar.inc + +ext/phar/phar.php: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.php" + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php > ext/phar/phar.php + +ext/phar/phar.phar: ext/phar/phar.php ext/phar/phar/phar.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.phar" + -@rm -f ext/phar/phar.phar + -@rm -f /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.phar + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_BANG)" /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/ + -@chmod +x ext/phar/phar.phar + +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + $(INSTALL) ext/phar/phar.phar $(INSTALL_ROOT)$(bindir) + -@rm -f $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f $(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) + +ext/standard/info.lo: ext/standard/../../main/build-defs.h + +ext/standard/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h +$(top_srcdir)/Zend/zend_language_parser.c: +$(top_srcdir)/Zend/zend_language_scanner.c: +ext/tokenizer/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c +# -*- makefile -*- + +peardir=$(PEAR_INSTALLDIR) + +# Skip all php.ini files altogether +PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 + +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` +PEAR_PREFIX = -dp a${program_prefix} +PEAR_SUFFIX = -ds a$(program_suffix) + +install-pear-installer: $(SAPI_CLI_PATH) + @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + +install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" + @if test ! -f pear/install-pear-nozlib.phar; then \ + if test -f /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar; then \ + cp /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + else \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P pear/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o pear/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n /Users/c9s/.phpbrew/build/php-5.3.29/pear/fetch.php http://pear.php.net/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + fi \ + fi \ + fi + @if test -f pear/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ + $(MAKE) -s install-pear-installer; \ + else \ + cat /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear.txt; \ + fi + + +# +# Build environment install +# + +phpincludedir = $(includedir)/php +phpbuilddir = $(libdir)/build + +BUILD_FILES = \ + scripts/phpize.m4 \ + build/mkdep.awk \ + build/scan_makefile_in.awk \ + build/libtool.m4 \ + Makefile.global \ + acinclude.m4 \ + ltmain.sh \ + run-tests.php + +BUILD_FILES_EXEC = \ + build/shtool \ + config.guess \ + config.sub + +bin_SCRIPTS = phpize php-config +man_PAGES = phpize php-config + +install-build: + @echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ + (cd $(top_srcdir) && \ + $(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \ + $(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) + +install-programs: scripts/phpize scripts/php-config + @echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @for prog in $(bin_SCRIPTS); do \ + echo " program: $(program_prefix)$${prog}$(program_suffix)"; \ + $(INSTALL) -m 755 scripts/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \ + done + @echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @for page in $(man_PAGES); do \ + echo " page: $(program_prefix)$${page}$(program_suffix).1"; \ + $(INSTALL_DATA) scripts/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \ + done + +scripts/phpize: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/phpize.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +scripts/php-config: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/php-config.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +# +# Zend +# + +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l) + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y + @$(YACC) -p zend -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y + @$(YACC) -p ini_ -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l) + +Zend/zend_indent.lo Zend/zend_highlight.lo Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_execute.h /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_opcodes.h +sapi/fpm/fpm/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo +sapi/fpm/fpm/fpm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo +sapi/fpm/fpm/fpm_children.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo +sapi/fpm/fpm/fpm_cleanup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c -o sapi/fpm/fpm/fpm_cleanup.lo +sapi/fpm/fpm/fpm_clock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c -o sapi/fpm/fpm/fpm_clock.lo +sapi/fpm/fpm/fpm_conf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c -o sapi/fpm/fpm/fpm_conf.lo +sapi/fpm/fpm/fpm_env.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c -o sapi/fpm/fpm/fpm_env.lo +sapi/fpm/fpm/fpm_events.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c -o sapi/fpm/fpm/fpm_events.lo +sapi/fpm/fpm/fpm_log.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c -o sapi/fpm/fpm/fpm_log.lo +sapi/fpm/fpm/fpm_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo +sapi/fpm/fpm/fpm_php.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo +sapi/fpm/fpm/fpm_php_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c -o sapi/fpm/fpm/fpm_php_trace.lo +sapi/fpm/fpm/fpm_process_ctl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c -o sapi/fpm/fpm/fpm_process_ctl.lo +sapi/fpm/fpm/fpm_request.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c -o sapi/fpm/fpm/fpm_request.lo +sapi/fpm/fpm/fpm_shm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c -o sapi/fpm/fpm/fpm_shm.lo +sapi/fpm/fpm/fpm_scoreboard.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c -o sapi/fpm/fpm/fpm_scoreboard.lo +sapi/fpm/fpm/fpm_signals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c -o sapi/fpm/fpm/fpm_signals.lo +sapi/fpm/fpm/fpm_sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c -o sapi/fpm/fpm/fpm_sockets.lo +sapi/fpm/fpm/fpm_status.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c -o sapi/fpm/fpm/fpm_status.lo +sapi/fpm/fpm/fpm_stdio.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c -o sapi/fpm/fpm/fpm_stdio.lo +sapi/fpm/fpm/fpm_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c -o sapi/fpm/fpm/fpm_unix.lo +sapi/fpm/fpm/fpm_worker_pool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c -o sapi/fpm/fpm/fpm_worker_pool.lo +sapi/fpm/fpm/zlog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c -o sapi/fpm/fpm/zlog.lo +sapi/fpm/fpm/events/select.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c -o sapi/fpm/fpm/events/select.lo +sapi/fpm/fpm/events/poll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c -o sapi/fpm/fpm/events/poll.lo +sapi/fpm/fpm/events/epoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c -o sapi/fpm/fpm/events/epoll.lo +sapi/fpm/fpm/events/kqueue.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c -o sapi/fpm/fpm/events/kqueue.lo +sapi/fpm/fpm/events/devpoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c -o sapi/fpm/fpm/events/devpoll.lo +sapi/fpm/fpm/events/port.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c -o sapi/fpm/fpm/events/port.lo +sapi/fpm/fpm/fpm_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c -o sapi/fpm/fpm/fpm_trace.lo +sapi/fpm/fpm/fpm_trace_mach.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c -o sapi/fpm/fpm/fpm_trace_mach.lo +ext/date/php_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c -o ext/date/php_date.lo +ext/date/lib/astro.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c -o ext/date/lib/astro.lo +ext/date/lib/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c -o ext/date/lib/dow.lo +ext/date/lib/parse_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo +ext/date/lib/parse_tz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo +ext/date/lib/timelib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c -o ext/date/lib/timelib.lo +ext/date/lib/tm2unixtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c -o ext/date/lib/tm2unixtime.lo +ext/date/lib/unixtime2tm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c -o ext/date/lib/unixtime2tm.lo +ext/date/lib/parse_iso_intervals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c -o ext/date/lib/parse_iso_intervals.lo +ext/date/lib/interval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c -o ext/date/lib/interval.lo +ext/ereg/ereg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c -o ext/ereg/ereg.lo +ext/ereg/regex/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c -o ext/ereg/regex/regcomp.lo +ext/ereg/regex/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c -o ext/ereg/regex/regexec.lo +ext/ereg/regex/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c -o ext/ereg/regex/regerror.lo +ext/ereg/regex/regfree.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c -o ext/ereg/regex/regfree.lo +ext/libxml/libxml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/libxml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c -o ext/libxml/libxml.lo +ext/openssl/openssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c -o ext/openssl/openssl.lo +ext/openssl/xp_ssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo +ext/pcre/pcrelib/pcre_chartables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo +ext/pcre/pcrelib/pcre_ucd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c -o ext/pcre/pcrelib/pcre_ucd.lo +ext/pcre/pcrelib/pcre_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c -o ext/pcre/pcrelib/pcre_compile.lo +ext/pcre/pcrelib/pcre_config.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c -o ext/pcre/pcrelib/pcre_config.lo +ext/pcre/pcrelib/pcre_exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo +ext/pcre/pcrelib/pcre_fullinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c -o ext/pcre/pcrelib/pcre_fullinfo.lo +ext/pcre/pcrelib/pcre_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c -o ext/pcre/pcrelib/pcre_get.lo +ext/pcre/pcrelib/pcre_globals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c -o ext/pcre/pcrelib/pcre_globals.lo +ext/pcre/pcrelib/pcre_maketables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c -o ext/pcre/pcrelib/pcre_maketables.lo +ext/pcre/pcrelib/pcre_newline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c -o ext/pcre/pcrelib/pcre_newline.lo +ext/pcre/pcrelib/pcre_ord2utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c -o ext/pcre/pcrelib/pcre_ord2utf8.lo +ext/pcre/pcrelib/pcre_refcount.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c -o ext/pcre/pcrelib/pcre_refcount.lo +ext/pcre/pcrelib/pcre_study.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c -o ext/pcre/pcrelib/pcre_study.lo +ext/pcre/pcrelib/pcre_tables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c -o ext/pcre/pcrelib/pcre_tables.lo +ext/pcre/pcrelib/pcre_valid_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c -o ext/pcre/pcrelib/pcre_valid_utf8.lo +ext/pcre/pcrelib/pcre_version.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c -o ext/pcre/pcrelib/pcre_version.lo +ext/pcre/pcrelib/pcre_xclass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c -o ext/pcre/pcrelib/pcre_xclass.lo +ext/pcre/php_pcre.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo +ext/sqlite3/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo +ext/sqlite3/libsqlite/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo +ext/zlib/zlib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c -o ext/zlib/zlib.lo +ext/zlib/zlib_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo +ext/zlib/zlib_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c -o ext/zlib/zlib_filter.lo +ext/bcmath/bcmath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo +ext/bcmath/libbcmath/src/add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c -o ext/bcmath/libbcmath/src/add.lo +ext/bcmath/libbcmath/src/div.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c -o ext/bcmath/libbcmath/src/div.lo +ext/bcmath/libbcmath/src/init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c -o ext/bcmath/libbcmath/src/init.lo +ext/bcmath/libbcmath/src/neg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo +ext/bcmath/libbcmath/src/outofmem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c -o ext/bcmath/libbcmath/src/outofmem.lo +ext/bcmath/libbcmath/src/raisemod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo +ext/bcmath/libbcmath/src/rt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c -o ext/bcmath/libbcmath/src/rt.lo +ext/bcmath/libbcmath/src/sub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c -o ext/bcmath/libbcmath/src/sub.lo +ext/bcmath/libbcmath/src/compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c -o ext/bcmath/libbcmath/src/compare.lo +ext/bcmath/libbcmath/src/divmod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c -o ext/bcmath/libbcmath/src/divmod.lo +ext/bcmath/libbcmath/src/int2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c -o ext/bcmath/libbcmath/src/int2num.lo +ext/bcmath/libbcmath/src/num2long.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c -o ext/bcmath/libbcmath/src/num2long.lo +ext/bcmath/libbcmath/src/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c -o ext/bcmath/libbcmath/src/output.lo +ext/bcmath/libbcmath/src/recmul.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c -o ext/bcmath/libbcmath/src/recmul.lo +ext/bcmath/libbcmath/src/sqrt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c -o ext/bcmath/libbcmath/src/sqrt.lo +ext/bcmath/libbcmath/src/zero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c -o ext/bcmath/libbcmath/src/zero.lo +ext/bcmath/libbcmath/src/debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c -o ext/bcmath/libbcmath/src/debug.lo +ext/bcmath/libbcmath/src/doaddsub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c -o ext/bcmath/libbcmath/src/doaddsub.lo +ext/bcmath/libbcmath/src/nearzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c -o ext/bcmath/libbcmath/src/nearzero.lo +ext/bcmath/libbcmath/src/num2str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c -o ext/bcmath/libbcmath/src/num2str.lo +ext/bcmath/libbcmath/src/raise.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c -o ext/bcmath/libbcmath/src/raise.lo +ext/bcmath/libbcmath/src/rmzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c -o ext/bcmath/libbcmath/src/rmzero.lo +ext/bcmath/libbcmath/src/str2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c -o ext/bcmath/libbcmath/src/str2num.lo +ext/bz2/bz2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c -o ext/bz2/bz2.lo +ext/bz2/bz2_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo +ext/calendar/calendar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c -o ext/calendar/calendar.lo +ext/calendar/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c -o ext/calendar/dow.lo +ext/calendar/french.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c -o ext/calendar/french.lo +ext/calendar/gregor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c -o ext/calendar/gregor.lo +ext/calendar/jewish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c -o ext/calendar/jewish.lo +ext/calendar/julian.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c -o ext/calendar/julian.lo +ext/calendar/easter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c -o ext/calendar/easter.lo +ext/calendar/cal_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c -o ext/calendar/cal_unix.lo +ext/ctype/ctype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/ctype/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c -o ext/ctype/ctype.lo +ext/curl/interface.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c -o ext/curl/interface.lo +ext/curl/multi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c -o ext/curl/multi.lo +ext/curl/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c -o ext/curl/streams.lo +ext/dom/php_dom.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c -o ext/dom/php_dom.lo +ext/dom/attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c -o ext/dom/attr.lo +ext/dom/document.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c -o ext/dom/document.lo +ext/dom/domerrorhandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c -o ext/dom/domerrorhandler.lo +ext/dom/domstringlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c -o ext/dom/domstringlist.lo +ext/dom/domexception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c -o ext/dom/domexception.lo +ext/dom/namelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c -o ext/dom/namelist.lo +ext/dom/processinginstruction.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c -o ext/dom/processinginstruction.lo +ext/dom/cdatasection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c -o ext/dom/cdatasection.lo +ext/dom/documentfragment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c -o ext/dom/documentfragment.lo +ext/dom/domimplementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo +ext/dom/element.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c -o ext/dom/element.lo +ext/dom/node.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c -o ext/dom/node.lo +ext/dom/string_extend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c -o ext/dom/string_extend.lo +ext/dom/characterdata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c -o ext/dom/characterdata.lo +ext/dom/documenttype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c -o ext/dom/documenttype.lo +ext/dom/domimplementationlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo +ext/dom/entity.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c -o ext/dom/entity.lo +ext/dom/nodelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c -o ext/dom/nodelist.lo +ext/dom/text.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c -o ext/dom/text.lo +ext/dom/comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c -o ext/dom/comment.lo +ext/dom/domconfiguration.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c -o ext/dom/domconfiguration.lo +ext/dom/domimplementationsource.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c -o ext/dom/domimplementationsource.lo +ext/dom/entityreference.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c -o ext/dom/entityreference.lo +ext/dom/notation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c -o ext/dom/notation.lo +ext/dom/xpath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c -o ext/dom/xpath.lo +ext/dom/dom_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c -o ext/dom/dom_iterators.lo +ext/dom/typeinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c -o ext/dom/typeinfo.lo +ext/dom/domerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c -o ext/dom/domerror.lo +ext/dom/domlocator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c -o ext/dom/domlocator.lo +ext/dom/namednodemap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c -o ext/dom/namednodemap.lo +ext/dom/userdatahandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo +ext/exif/exif.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c + $(LIBTOOL) --mode=compile $(CC) -Iext/exif/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c -o ext/exif/exif.lo +ext/fileinfo/fileinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo +ext/fileinfo/libmagic/apptype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c -o ext/fileinfo/libmagic/apptype.lo +ext/fileinfo/libmagic/ascmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c -o ext/fileinfo/libmagic/ascmagic.lo +ext/fileinfo/libmagic/cdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c -o ext/fileinfo/libmagic/cdf.lo +ext/fileinfo/libmagic/cdf_time.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c -o ext/fileinfo/libmagic/cdf_time.lo +ext/fileinfo/libmagic/compress.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c -o ext/fileinfo/libmagic/compress.lo +ext/fileinfo/libmagic/encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo +ext/fileinfo/libmagic/fsmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c -o ext/fileinfo/libmagic/fsmagic.lo +ext/fileinfo/libmagic/funcs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c -o ext/fileinfo/libmagic/funcs.lo +ext/fileinfo/libmagic/is_tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c -o ext/fileinfo/libmagic/is_tar.lo +ext/fileinfo/libmagic/magic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c -o ext/fileinfo/libmagic/magic.lo +ext/fileinfo/libmagic/print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c -o ext/fileinfo/libmagic/print.lo +ext/fileinfo/libmagic/readcdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c -o ext/fileinfo/libmagic/readcdf.lo +ext/fileinfo/libmagic/readelf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo +ext/fileinfo/libmagic/softmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo +ext/filter/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c -o ext/filter/filter.lo +ext/filter/sanitizing_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c -o ext/filter/sanitizing_filters.lo +ext/filter/logical_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c -o ext/filter/logical_filters.lo +ext/filter/callback_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c -o ext/filter/callback_filter.lo +ext/gettext/gettext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c + $(LIBTOOL) --mode=compile $(CC) -Iext/gettext/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c -o ext/gettext/gettext.lo +ext/hash/hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c -o ext/hash/hash.lo +ext/hash/hash_md.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c -o ext/hash/hash_md.lo +ext/hash/hash_sha.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c -o ext/hash/hash_sha.lo +ext/hash/hash_ripemd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c -o ext/hash/hash_ripemd.lo +ext/hash/hash_haval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c -o ext/hash/hash_haval.lo +ext/hash/hash_tiger.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c -o ext/hash/hash_tiger.lo +ext/hash/hash_gost.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c -o ext/hash/hash_gost.lo +ext/hash/hash_snefru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c -o ext/hash/hash_snefru.lo +ext/hash/hash_whirlpool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c -o ext/hash/hash_whirlpool.lo +ext/hash/hash_adler32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c -o ext/hash/hash_adler32.lo +ext/hash/hash_crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c -o ext/hash/hash_crc32.lo +ext/hash/hash_salsa.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c -o ext/hash/hash_salsa.lo +ext/intl/php_intl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c -o ext/intl/php_intl.lo +ext/intl/intl_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c -o ext/intl/intl_error.lo +ext/intl/intl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c -o ext/intl/intl_convert.lo +ext/intl/collator/collator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo +ext/intl/collator/collator_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c -o ext/intl/collator/collator_class.lo +ext/intl/collator/collator_sort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo +ext/intl/collator/collator_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c -o ext/intl/collator/collator_convert.lo +ext/intl/collator/collator_locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c -o ext/intl/collator/collator_locale.lo +ext/intl/collator/collator_compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c -o ext/intl/collator/collator_compare.lo +ext/intl/collator/collator_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c -o ext/intl/collator/collator_attr.lo +ext/intl/collator/collator_create.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c -o ext/intl/collator/collator_create.lo +ext/intl/collator/collator_is_numeric.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c -o ext/intl/collator/collator_is_numeric.lo +ext/intl/collator/collator_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c -o ext/intl/collator/collator_error.lo +ext/intl/common/common_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c -o ext/intl/common/common_error.lo +ext/intl/formatter/formatter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c -o ext/intl/formatter/formatter.lo +ext/intl/formatter/formatter_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c -o ext/intl/formatter/formatter_main.lo +ext/intl/formatter/formatter_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c -o ext/intl/formatter/formatter_class.lo +ext/intl/formatter/formatter_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c -o ext/intl/formatter/formatter_attr.lo +ext/intl/formatter/formatter_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c -o ext/intl/formatter/formatter_data.lo +ext/intl/formatter/formatter_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c -o ext/intl/formatter/formatter_format.lo +ext/intl/formatter/formatter_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c -o ext/intl/formatter/formatter_parse.lo +ext/intl/normalizer/normalizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c -o ext/intl/normalizer/normalizer.lo +ext/intl/normalizer/normalizer_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c -o ext/intl/normalizer/normalizer_class.lo +ext/intl/normalizer/normalizer_normalize.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c -o ext/intl/normalizer/normalizer_normalize.lo +ext/intl/locale/locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c -o ext/intl/locale/locale.lo +ext/intl/locale/locale_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c -o ext/intl/locale/locale_class.lo +ext/intl/locale/locale_methods.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c -o ext/intl/locale/locale_methods.lo +ext/intl/dateformat/dateformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c -o ext/intl/dateformat/dateformat.lo +ext/intl/dateformat/dateformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c -o ext/intl/dateformat/dateformat_class.lo +ext/intl/dateformat/dateformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c -o ext/intl/dateformat/dateformat_attr.lo +ext/intl/dateformat/dateformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c -o ext/intl/dateformat/dateformat_data.lo +ext/intl/dateformat/dateformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c -o ext/intl/dateformat/dateformat_format.lo +ext/intl/dateformat/dateformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c -o ext/intl/dateformat/dateformat_parse.lo +ext/intl/msgformat/msgformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c -o ext/intl/msgformat/msgformat.lo +ext/intl/msgformat/msgformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c -o ext/intl/msgformat/msgformat_attr.lo +ext/intl/msgformat/msgformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c -o ext/intl/msgformat/msgformat_class.lo +ext/intl/msgformat/msgformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c -o ext/intl/msgformat/msgformat_data.lo +ext/intl/msgformat/msgformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c -o ext/intl/msgformat/msgformat_format.lo +ext/intl/msgformat/msgformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp -o ext/intl/msgformat/msgformat_helpers.lo +ext/intl/msgformat/msgformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c -o ext/intl/msgformat/msgformat_parse.lo +ext/intl/grapheme/grapheme_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c -o ext/intl/grapheme/grapheme_string.lo +ext/intl/grapheme/grapheme_util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c -o ext/intl/grapheme/grapheme_util.lo +ext/intl/resourcebundle/resourcebundle.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c -o ext/intl/resourcebundle/resourcebundle.lo +ext/intl/resourcebundle/resourcebundle_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c -o ext/intl/resourcebundle/resourcebundle_class.lo +ext/intl/resourcebundle/resourcebundle_iterator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c -o ext/intl/resourcebundle/resourcebundle_iterator.lo +ext/intl/idn/idn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c -o ext/intl/idn/idn.lo +ext/json/json.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c -o ext/json/json.lo +ext/json/utf8_to_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c -o ext/json/utf8_to_utf16.lo +ext/json/utf8_decode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c -o ext/json/utf8_decode.lo +ext/json/JSON_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c -o ext/json/JSON_parser.lo +ext/mbstring/oniguruma/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo +ext/mbstring/oniguruma/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo +ext/mbstring/oniguruma/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c -o ext/mbstring/oniguruma/regexec.lo +ext/mbstring/oniguruma/reggnu.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c -o ext/mbstring/oniguruma/reggnu.lo +ext/mbstring/oniguruma/regparse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo +ext/mbstring/oniguruma/regenc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c -o ext/mbstring/oniguruma/regenc.lo +ext/mbstring/oniguruma/regext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c -o ext/mbstring/oniguruma/regext.lo +ext/mbstring/oniguruma/regsyntax.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c -o ext/mbstring/oniguruma/regsyntax.lo +ext/mbstring/oniguruma/regtrav.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c -o ext/mbstring/oniguruma/regtrav.lo +ext/mbstring/oniguruma/regversion.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c -o ext/mbstring/oniguruma/regversion.lo +ext/mbstring/oniguruma/st.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c -o ext/mbstring/oniguruma/st.lo +ext/mbstring/oniguruma/enc/unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo +ext/mbstring/oniguruma/enc/ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c -o ext/mbstring/oniguruma/enc/ascii.lo +ext/mbstring/oniguruma/enc/utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c -o ext/mbstring/oniguruma/enc/utf8.lo +ext/mbstring/oniguruma/enc/euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c -o ext/mbstring/oniguruma/enc/euc_jp.lo +ext/mbstring/oniguruma/enc/euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c -o ext/mbstring/oniguruma/enc/euc_tw.lo +ext/mbstring/oniguruma/enc/euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c -o ext/mbstring/oniguruma/enc/euc_kr.lo +ext/mbstring/oniguruma/enc/sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c -o ext/mbstring/oniguruma/enc/sjis.lo +ext/mbstring/oniguruma/enc/iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c -o ext/mbstring/oniguruma/enc/iso8859_1.lo +ext/mbstring/oniguruma/enc/iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c -o ext/mbstring/oniguruma/enc/iso8859_2.lo +ext/mbstring/oniguruma/enc/iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c -o ext/mbstring/oniguruma/enc/iso8859_3.lo +ext/mbstring/oniguruma/enc/iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c -o ext/mbstring/oniguruma/enc/iso8859_4.lo +ext/mbstring/oniguruma/enc/iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c -o ext/mbstring/oniguruma/enc/iso8859_5.lo +ext/mbstring/oniguruma/enc/iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c -o ext/mbstring/oniguruma/enc/iso8859_6.lo +ext/mbstring/oniguruma/enc/iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c -o ext/mbstring/oniguruma/enc/iso8859_7.lo +ext/mbstring/oniguruma/enc/iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c -o ext/mbstring/oniguruma/enc/iso8859_8.lo +ext/mbstring/oniguruma/enc/iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c -o ext/mbstring/oniguruma/enc/iso8859_9.lo +ext/mbstring/oniguruma/enc/iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c -o ext/mbstring/oniguruma/enc/iso8859_10.lo +ext/mbstring/oniguruma/enc/iso8859_11.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c -o ext/mbstring/oniguruma/enc/iso8859_11.lo +ext/mbstring/oniguruma/enc/iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c -o ext/mbstring/oniguruma/enc/iso8859_13.lo +ext/mbstring/oniguruma/enc/iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c -o ext/mbstring/oniguruma/enc/iso8859_14.lo +ext/mbstring/oniguruma/enc/iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c -o ext/mbstring/oniguruma/enc/iso8859_15.lo +ext/mbstring/oniguruma/enc/iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c -o ext/mbstring/oniguruma/enc/iso8859_16.lo +ext/mbstring/oniguruma/enc/koi8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c -o ext/mbstring/oniguruma/enc/koi8.lo +ext/mbstring/oniguruma/enc/koi8_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c -o ext/mbstring/oniguruma/enc/koi8_r.lo +ext/mbstring/oniguruma/enc/big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c -o ext/mbstring/oniguruma/enc/big5.lo +ext/mbstring/oniguruma/enc/utf16_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c -o ext/mbstring/oniguruma/enc/utf16_be.lo +ext/mbstring/oniguruma/enc/utf16_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c -o ext/mbstring/oniguruma/enc/utf16_le.lo +ext/mbstring/oniguruma/enc/utf32_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c -o ext/mbstring/oniguruma/enc/utf32_be.lo +ext/mbstring/oniguruma/enc/utf32_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c -o ext/mbstring/oniguruma/enc/utf32_le.lo +ext/mbstring/libmbfl/filters/html_entities.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c -o ext/mbstring/libmbfl/filters/html_entities.lo +ext/mbstring/libmbfl/filters/mbfilter_7bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c -o ext/mbstring/libmbfl/filters/mbfilter_7bit.lo +ext/mbstring/libmbfl/filters/mbfilter_ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c -o ext/mbstring/libmbfl/filters/mbfilter_ascii.lo +ext/mbstring/libmbfl/filters/mbfilter_base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c -o ext/mbstring/libmbfl/filters/mbfilter_base64.lo +ext/mbstring/libmbfl/filters/mbfilter_big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c -o ext/mbstring/libmbfl/filters/mbfilter_big5.lo +ext/mbstring/libmbfl/filters/mbfilter_byte2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c -o ext/mbstring/libmbfl/filters/mbfilter_byte2.lo +ext/mbstring/libmbfl/filters/mbfilter_byte4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c -o ext/mbstring/libmbfl/filters/mbfilter_byte4.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo +ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c -o ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo +ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp850.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c -o ext/mbstring/libmbfl/filters/mbfilter_cp850.lo +ext/mbstring/libmbfl/filters/mbfilter_cp866.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c -o ext/mbstring/libmbfl/filters/mbfilter_cp866.lo +ext/mbstring/libmbfl/filters/mbfilter_cp932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp936.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c -o ext/mbstring/libmbfl/filters/mbfilter_cp936.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo +ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c -o ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo +ext/mbstring/libmbfl/filters/mbfilter_hz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c -o ext/mbstring/libmbfl/filters/mbfilter_hz.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo +ext/mbstring/libmbfl/filters/mbfilter_jis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c -o ext/mbstring/libmbfl/filters/mbfilter_jis.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo +ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c -o ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo +ext/mbstring/libmbfl/filters/mbfilter_qprint.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c -o ext/mbstring/libmbfl/filters/mbfilter_qprint.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo +ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c -o ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo +ext/mbstring/libmbfl/filters/mbfilter_uhc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c -o ext/mbstring/libmbfl/filters/mbfilter_uhc.lo +ext/mbstring/libmbfl/filters/mbfilter_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c -o ext/mbstring/libmbfl/filters/mbfilter_utf16.lo +ext/mbstring/libmbfl/filters/mbfilter_utf32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c -o ext/mbstring/libmbfl/filters/mbfilter_utf32.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8.lo +ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c -o ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo +ext/mbstring/libmbfl/mbfl/mbfilter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c -o ext/mbstring/libmbfl/mbfl/mbfilter.lo +ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c -o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo +ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c -o ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo +ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c -o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo +ext/mbstring/libmbfl/mbfl/mbfl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c -o ext/mbstring/libmbfl/mbfl/mbfl_convert.lo +ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c -o ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo +ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c -o ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo +ext/mbstring/libmbfl/mbfl/mbfl_ident.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c -o ext/mbstring/libmbfl/mbfl/mbfl_ident.lo +ext/mbstring/libmbfl/mbfl/mbfl_language.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c -o ext/mbstring/libmbfl/mbfl/mbfl_language.lo +ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c -o ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo +ext/mbstring/libmbfl/mbfl/mbfl_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c -o ext/mbstring/libmbfl/mbfl/mbfl_string.lo +ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c -o ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo +ext/mbstring/libmbfl/nls/nls_de.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c -o ext/mbstring/libmbfl/nls/nls_de.lo +ext/mbstring/libmbfl/nls/nls_en.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c -o ext/mbstring/libmbfl/nls/nls_en.lo +ext/mbstring/libmbfl/nls/nls_ja.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c -o ext/mbstring/libmbfl/nls/nls_ja.lo +ext/mbstring/libmbfl/nls/nls_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c -o ext/mbstring/libmbfl/nls/nls_kr.lo +ext/mbstring/libmbfl/nls/nls_neutral.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c -o ext/mbstring/libmbfl/nls/nls_neutral.lo +ext/mbstring/libmbfl/nls/nls_ru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c -o ext/mbstring/libmbfl/nls/nls_ru.lo +ext/mbstring/libmbfl/nls/nls_uni.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c -o ext/mbstring/libmbfl/nls/nls_uni.lo +ext/mbstring/libmbfl/nls/nls_zh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c -o ext/mbstring/libmbfl/nls/nls_zh.lo +ext/mbstring/libmbfl/nls/nls_hy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c -o ext/mbstring/libmbfl/nls/nls_hy.lo +ext/mbstring/libmbfl/nls/nls_tr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c -o ext/mbstring/libmbfl/nls/nls_tr.lo +ext/mbstring/libmbfl/nls/nls_ua.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c -o ext/mbstring/libmbfl/nls/nls_ua.lo +ext/mbstring/mbstring.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo +ext/mbstring/php_unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c -o ext/mbstring/php_unicode.lo +ext/mbstring/mb_gpc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c -o ext/mbstring/mb_gpc.lo +ext/mbstring/php_mbregex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c -o ext/mbstring/php_mbregex.lo +ext/mcrypt/mcrypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo +ext/mcrypt/mcrypt_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c -o ext/mcrypt/mcrypt_filter.lo +ext/mysql/php_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo +ext/mysqli/mysqli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo +ext/mysqli/mysqli_api.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo +ext/mysqli/mysqli_prop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo +ext/mysqli/mysqli_nonapi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo +ext/mysqli/mysqli_fe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo +ext/mysqli/mysqli_report.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo +ext/mysqli/mysqli_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo +ext/mysqli/mysqli_warning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo +ext/mysqli/mysqli_exception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo +ext/pcntl/pcntl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c -o ext/pcntl/pcntl.lo +ext/pcntl/php_signal.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c -o ext/pcntl/php_signal.lo +ext/pdo/pdo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c -o ext/pdo/pdo.lo +ext/pdo/pdo_dbh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c -o ext/pdo/pdo_dbh.lo +ext/pdo/pdo_stmt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c -o ext/pdo/pdo_stmt.lo +ext/pdo/pdo_sql_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c -o ext/pdo/pdo_sql_parser.lo +ext/pdo/pdo_sqlstate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo +ext/pdo_mysql/pdo_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo +ext/pdo_mysql/mysql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo +ext/pdo_mysql/mysql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo +ext/pdo_pgsql/pdo_pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo +ext/pdo_pgsql/pgsql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c -o ext/pdo_pgsql/pgsql_driver.lo +ext/pdo_pgsql/pgsql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c -o ext/pdo_pgsql/pgsql_statement.lo +ext/pdo_sqlite/pdo_sqlite.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo +ext/pdo_sqlite/sqlite_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo +ext/pdo_sqlite/sqlite_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo +ext/pgsql/pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo +ext/phar/util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c -o ext/phar/util.lo +ext/phar/tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c -o ext/phar/tar.lo +ext/phar/zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c -o ext/phar/zip.lo +ext/phar/stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c -o ext/phar/stream.lo +ext/phar/func_interceptors.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c -o ext/phar/func_interceptors.lo +ext/phar/dirstream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c -o ext/phar/dirstream.lo +ext/phar/phar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c -o ext/phar/phar.lo +ext/phar/phar_object.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c -o ext/phar/phar_object.lo +ext/phar/phar_path_check.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo +ext/posix/posix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/posix/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c -o ext/posix/posix.lo +ext/readline/readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c -o ext/readline/readline.lo +ext/reflection/php_reflection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/reflection/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo +ext/session/session.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c -o ext/session/session.lo +ext/session/mod_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c -o ext/session/mod_files.lo +ext/session/mod_mm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c -o ext/session/mod_mm.lo +ext/session/mod_user.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c -o ext/session/mod_user.lo +ext/shmop/shmop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/shmop/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c -o ext/shmop/shmop.lo +ext/simplexml/simplexml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo +ext/simplexml/sxe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo +ext/soap/soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c -o ext/soap/soap.lo +ext/soap/php_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo +ext/soap/php_http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c -o ext/soap/php_http.lo +ext/soap/php_packet_soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c -o ext/soap/php_packet_soap.lo +ext/soap/php_schema.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c -o ext/soap/php_schema.lo +ext/soap/php_sdl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c -o ext/soap/php_sdl.lo +ext/soap/php_xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c -o ext/soap/php_xml.lo +ext/sockets/sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c -o ext/sockets/sockets.lo +ext/spl/php_spl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c -o ext/spl/php_spl.lo +ext/spl/spl_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c -o ext/spl/spl_functions.lo +ext/spl/spl_engine.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c -o ext/spl/spl_engine.lo +ext/spl/spl_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c -o ext/spl/spl_iterators.lo +ext/spl/spl_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c -o ext/spl/spl_array.lo +ext/spl/spl_directory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c -o ext/spl/spl_directory.lo +ext/spl/spl_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c -o ext/spl/spl_exceptions.lo +ext/spl/spl_observer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c -o ext/spl/spl_observer.lo +ext/spl/spl_dllist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c -o ext/spl/spl_dllist.lo +ext/spl/spl_heap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c -o ext/spl/spl_heap.lo +ext/spl/spl_fixedarray.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c -o ext/spl/spl_fixedarray.lo +ext/standard/crypt_freesec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c -o ext/standard/crypt_freesec.lo +ext/standard/crypt_blowfish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c -o ext/standard/crypt_blowfish.lo +ext/standard/crypt_sha512.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo +ext/standard/crypt_sha256.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c -o ext/standard/crypt_sha256.lo +ext/standard/php_crypt_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo +ext/standard/array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c -o ext/standard/array.lo +ext/standard/base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c -o ext/standard/base64.lo +ext/standard/basic_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo +ext/standard/browscap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c -o ext/standard/browscap.lo +ext/standard/crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c -o ext/standard/crc32.lo +ext/standard/crypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c -o ext/standard/crypt.lo +ext/standard/cyr_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c -o ext/standard/cyr_convert.lo +ext/standard/datetime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c -o ext/standard/datetime.lo +ext/standard/dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c -o ext/standard/dir.lo +ext/standard/dl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c -o ext/standard/dl.lo +ext/standard/dns.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c -o ext/standard/dns.lo +ext/standard/exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c -o ext/standard/exec.lo +ext/standard/file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c -o ext/standard/file.lo +ext/standard/filestat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c -o ext/standard/filestat.lo +ext/standard/flock_compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo +ext/standard/formatted_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo +ext/standard/fsock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c -o ext/standard/fsock.lo +ext/standard/head.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c -o ext/standard/head.lo +ext/standard/html.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c -o ext/standard/html.lo +ext/standard/image.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c -o ext/standard/image.lo +ext/standard/info.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c -o ext/standard/info.lo +ext/standard/iptc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c -o ext/standard/iptc.lo +ext/standard/lcg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c -o ext/standard/lcg.lo +ext/standard/link.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c -o ext/standard/link.lo +ext/standard/mail.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c -o ext/standard/mail.lo +ext/standard/math.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c -o ext/standard/math.lo +ext/standard/md5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c -o ext/standard/md5.lo +ext/standard/metaphone.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c -o ext/standard/metaphone.lo +ext/standard/microtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c -o ext/standard/microtime.lo +ext/standard/pack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c -o ext/standard/pack.lo +ext/standard/pageinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c -o ext/standard/pageinfo.lo +ext/standard/quot_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c -o ext/standard/quot_print.lo +ext/standard/rand.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c -o ext/standard/rand.lo +ext/standard/soundex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c -o ext/standard/soundex.lo +ext/standard/string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c -o ext/standard/string.lo +ext/standard/scanf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c -o ext/standard/scanf.lo +ext/standard/syslog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c -o ext/standard/syslog.lo +ext/standard/type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c -o ext/standard/type.lo +ext/standard/uniqid.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c -o ext/standard/uniqid.lo +ext/standard/url.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c -o ext/standard/url.lo +ext/standard/var.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c -o ext/standard/var.lo +ext/standard/versioning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c -o ext/standard/versioning.lo +ext/standard/assert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c -o ext/standard/assert.lo +ext/standard/strnatcmp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c -o ext/standard/strnatcmp.lo +ext/standard/levenshtein.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c -o ext/standard/levenshtein.lo +ext/standard/incomplete_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c -o ext/standard/incomplete_class.lo +ext/standard/url_scanner_ex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c -o ext/standard/url_scanner_ex.lo +ext/standard/ftp_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c -o ext/standard/ftp_fopen_wrapper.lo +ext/standard/http_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.lo +ext/standard/php_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c -o ext/standard/php_fopen_wrapper.lo +ext/standard/credits.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c -o ext/standard/credits.lo +ext/standard/css.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c -o ext/standard/css.lo +ext/standard/var_unserializer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c -o ext/standard/var_unserializer.lo +ext/standard/ftok.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c -o ext/standard/ftok.lo +ext/standard/sha1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c -o ext/standard/sha1.lo +ext/standard/user_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c -o ext/standard/user_filters.lo +ext/standard/uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c -o ext/standard/uuencode.lo +ext/standard/filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c -o ext/standard/filters.lo +ext/standard/proc_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c -o ext/standard/proc_open.lo +ext/standard/streamsfuncs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo +ext/standard/http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c -o ext/standard/http.lo +ext/sysvmsg/sysvmsg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvmsg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.lo +ext/sysvsem/sysvsem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvsem/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c -o ext/sysvsem/sysvsem.lo +ext/sysvshm/sysvshm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvshm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c -o ext/sysvshm/sysvshm.lo +ext/tokenizer/tokenizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo +ext/tokenizer/tokenizer_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c -o ext/tokenizer/tokenizer_data.lo +ext/xml/xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c -o ext/xml/xml.lo +ext/xml/compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c -o ext/xml/compat.lo +ext/xmlreader/php_xmlreader.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlreader/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c -o ext/xmlreader/php_xmlreader.lo +ext/xmlwriter/php_xmlwriter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlwriter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c -o ext/xmlwriter/php_xmlwriter.lo +ext/xsl/php_xsl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo +ext/xsl/xsltprocessor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c -o ext/xsl/xsltprocessor.lo +ext/zip/php_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c -o ext/zip/php_zip.lo +ext/zip/zip_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c -o ext/zip/zip_stream.lo +ext/zip/lib/zip_add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c -o ext/zip/lib/zip_add.lo +ext/zip/lib/zip_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c -o ext/zip/lib/zip_error.lo +ext/zip/lib/zip_fclose.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c -o ext/zip/lib/zip_fclose.lo +ext/zip/lib/zip_fread.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c -o ext/zip/lib/zip_fread.lo +ext/zip/lib/zip_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c -o ext/zip/lib/zip_open.lo +ext/zip/lib/zip_source_filep.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c -o ext/zip/lib/zip_source_filep.lo +ext/zip/lib/zip_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c -o ext/zip/lib/zip_strerror.lo +ext/zip/lib/zip_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c -o ext/zip/lib/zip_close.lo +ext/zip/lib/zip_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c -o ext/zip/lib/zip_error_get.lo +ext/zip/lib/zip_file_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c -o ext/zip/lib/zip_file_error_get.lo +ext/zip/lib/zip_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c -o ext/zip/lib/zip_free.lo +ext/zip/lib/zip_rename.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c -o ext/zip/lib/zip_rename.lo +ext/zip/lib/zip_source_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c -o ext/zip/lib/zip_source_free.lo +ext/zip/lib/zip_unchange_all.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c -o ext/zip/lib/zip_unchange_all.lo +ext/zip/lib/zip_delete.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c -o ext/zip/lib/zip_delete.lo +ext/zip/lib/zip_error_get_sys_type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c -o ext/zip/lib/zip_error_get_sys_type.lo +ext/zip/lib/zip_file_get_offset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c -o ext/zip/lib/zip_file_get_offset.lo +ext/zip/lib/zip_get_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c -o ext/zip/lib/zip_get_name.lo +ext/zip/lib/zip_replace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c -o ext/zip/lib/zip_replace.lo +ext/zip/lib/zip_source_function.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c -o ext/zip/lib/zip_source_function.lo +ext/zip/lib/zip_unchange.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c -o ext/zip/lib/zip_unchange.lo +ext/zip/lib/zip_dirent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c -o ext/zip/lib/zip_dirent.lo +ext/zip/lib/zip_error_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c -o ext/zip/lib/zip_error_strerror.lo +ext/zip/lib/zip_filerange_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c -o ext/zip/lib/zip_filerange_crc.lo +ext/zip/lib/zip_file_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c -o ext/zip/lib/zip_file_strerror.lo +ext/zip/lib/zip_get_num_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c -o ext/zip/lib/zip_get_num_files.lo +ext/zip/lib/zip_get_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c -o ext/zip/lib/zip_get_archive_flag.lo +ext/zip/lib/zip_set_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c -o ext/zip/lib/zip_set_archive_flag.lo +ext/zip/lib/zip_set_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c -o ext/zip/lib/zip_set_name.lo +ext/zip/lib/zip_source_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c -o ext/zip/lib/zip_source_zip.lo +ext/zip/lib/zip_unchange_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c -o ext/zip/lib/zip_unchange_data.lo +ext/zip/lib/zip_entry_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c -o ext/zip/lib/zip_entry_free.lo +ext/zip/lib/zip_error_to_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c -o ext/zip/lib/zip_error_to_str.lo +ext/zip/lib/zip_fopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c -o ext/zip/lib/zip_fopen.lo +ext/zip/lib/zip_name_locate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c -o ext/zip/lib/zip_name_locate.lo +ext/zip/lib/zip_source_buffer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c -o ext/zip/lib/zip_source_buffer.lo +ext/zip/lib/zip_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c -o ext/zip/lib/zip_stat.lo +ext/zip/lib/zip_entry_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c -o ext/zip/lib/zip_entry_new.lo +ext/zip/lib/zip_err_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c -o ext/zip/lib/zip_err_str.lo +ext/zip/lib/zip_fopen_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c -o ext/zip/lib/zip_fopen_index.lo +ext/zip/lib/zip_get_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c -o ext/zip/lib/zip_get_archive_comment.lo +ext/zip/lib/zip_get_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c -o ext/zip/lib/zip_get_file_comment.lo +ext/zip/lib/zip_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c -o ext/zip/lib/zip_new.lo +ext/zip/lib/zip_source_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c -o ext/zip/lib/zip_source_file.lo +ext/zip/lib/zip_stat_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c -o ext/zip/lib/zip_stat_index.lo +ext/zip/lib/zip_set_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c -o ext/zip/lib/zip_set_archive_comment.lo +ext/zip/lib/zip_set_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c -o ext/zip/lib/zip_set_file_comment.lo +ext/zip/lib/zip_unchange_archive.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c -o ext/zip/lib/zip_unchange_archive.lo +ext/zip/lib/zip_memdup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c -o ext/zip/lib/zip_memdup.lo +ext/zip/lib/zip_stat_init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c -o ext/zip/lib/zip_stat_init.lo +ext/zip/lib/zip_add_dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c -o ext/zip/lib/zip_add_dir.lo +ext/zip/lib/zip_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c -o ext/zip/lib/zip_error_clear.lo +ext/zip/lib/zip_file_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c -o ext/zip/lib/zip_file_error_clear.lo +ext/zip/lib/zip_fdopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c -o ext/zip/lib/zip_fdopen.lo +ext/zip/lib/zip_fopen_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c -o ext/zip/lib/zip_fopen_encrypted.lo +ext/zip/lib/zip_fopen_index_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c -o ext/zip/lib/zip_fopen_index_encrypted.lo +ext/zip/lib/zip_get_compression_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c -o ext/zip/lib/zip_get_compression_implementation.lo +ext/zip/lib/zip_get_encryption_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c -o ext/zip/lib/zip_get_encryption_implementation.lo +ext/zip/lib/zip_get_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c -o ext/zip/lib/zip_get_file_extra.lo +ext/zip/lib/zip_get_num_entries.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c -o ext/zip/lib/zip_get_num_entries.lo +ext/zip/lib/zip_set_default_password.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c -o ext/zip/lib/zip_set_default_password.lo +ext/zip/lib/zip_set_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c -o ext/zip/lib/zip_set_file_extra.lo +ext/zip/lib/zip_source_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c -o ext/zip/lib/zip_source_close.lo +ext/zip/lib/zip_source_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c -o ext/zip/lib/zip_source_crc.lo +ext/zip/lib/zip_source_deflate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c -o ext/zip/lib/zip_source_deflate.lo +ext/zip/lib/zip_source_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c -o ext/zip/lib/zip_source_error.lo +ext/zip/lib/zip_source_layered.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c -o ext/zip/lib/zip_source_layered.lo +ext/zip/lib/zip_source_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c -o ext/zip/lib/zip_source_open.lo +ext/zip/lib/zip_source_pkware.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c -o ext/zip/lib/zip_source_pkware.lo +ext/zip/lib/zip_source_pop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c -o ext/zip/lib/zip_source_pop.lo +ext/zip/lib/zip_source_read.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c -o ext/zip/lib/zip_source_read.lo +ext/zip/lib/zip_source_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c -o ext/zip/lib/zip_source_stat.lo +ext/mysqlnd/mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c -o ext/mysqlnd/mysqlnd.lo +ext/mysqlnd/mysqlnd_charset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c -o ext/mysqlnd/mysqlnd_charset.lo +ext/mysqlnd/mysqlnd_wireprotocol.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c -o ext/mysqlnd/mysqlnd_wireprotocol.lo +ext/mysqlnd/mysqlnd_loaddata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c -o ext/mysqlnd/mysqlnd_loaddata.lo +ext/mysqlnd/mysqlnd_net.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c -o ext/mysqlnd/mysqlnd_net.lo +ext/mysqlnd/mysqlnd_statistics.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c -o ext/mysqlnd/mysqlnd_statistics.lo +ext/mysqlnd/mysqlnd_result.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c -o ext/mysqlnd/mysqlnd_result.lo +ext/mysqlnd/mysqlnd_result_meta.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c -o ext/mysqlnd/mysqlnd_result_meta.lo +ext/mysqlnd/mysqlnd_debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c -o ext/mysqlnd/mysqlnd_debug.lo +ext/mysqlnd/mysqlnd_block_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c -o ext/mysqlnd/mysqlnd_block_alloc.lo +ext/mysqlnd/php_mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c -o ext/mysqlnd/php_mysqlnd.lo +ext/mysqlnd/mysqlnd_ps.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c -o ext/mysqlnd/mysqlnd_ps.lo +ext/mysqlnd/mysqlnd_ps_codec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo +sapi/cli/php_cli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo +sapi/cli/php_cli_readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo +TSRM/TSRM.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c -o TSRM/TSRM.lo +TSRM/tsrm_strtok_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r.lo +TSRM/tsrm_virtual_cwd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c -o TSRM/tsrm_virtual_cwd.lo +main/main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c -o main/main.lo +main/snprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c -o main/snprintf.lo +main/spprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c -o main/spprintf.lo +main/php_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c -o main/php_sprintf.lo +main/safe_mode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c -o main/safe_mode.lo +main/fopen_wrappers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c -o main/fopen_wrappers.lo +main/alloca.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c -o main/alloca.lo +main/php_scandir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c -o main/php_scandir.lo +main/php_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c -o main/php_ini.lo +main/SAPI.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c -o main/SAPI.lo +main/rfc1867.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c -o main/rfc1867.lo +main/php_content_types.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c -o main/php_content_types.lo +main/strlcpy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c -o main/strlcpy.lo +main/strlcat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c -o main/strlcat.lo +main/mergesort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c -o main/mergesort.lo +main/reentrancy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c -o main/reentrancy.lo +main/php_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c -o main/php_variables.lo +main/php_ticks.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c -o main/php_ticks.lo +main/network.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c -o main/network.lo +main/php_open_temporary_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo +main/php_logos.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c -o main/php_logos.lo +main/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c -o main/output.lo +main/getopt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c -o main/getopt.lo +main/streams/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c -o main/streams/streams.lo +main/streams/cast.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c -o main/streams/cast.lo +main/streams/memory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c -o main/streams/memory.lo +main/streams/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c -o main/streams/filter.lo +main/streams/plain_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c -o main/streams/plain_wrapper.lo +main/streams/userspace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c -o main/streams/userspace.lo +main/streams/transports.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c -o main/streams/transports.lo +main/streams/xp_socket.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c -o main/streams/xp_socket.lo +main/streams/mmap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c -o main/streams/mmap.lo +main/streams/glob_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c -o main/streams/glob_wrapper.lo +main/internal_functions.lo: main/internal_functions.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions.c -o main/internal_functions.lo +main/internal_functions_cli.lo: main/internal_functions_cli.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions_cli.c -o main/internal_functions_cli.lo +Zend/zend_language_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo +Zend/zend_ini_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo +Zend/zend_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c -o Zend/zend_alloc.lo +Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c -o Zend/zend_compile.lo +Zend/zend_constants.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c -o Zend/zend_constants.lo +Zend/zend_dynamic_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c -o Zend/zend_dynamic_array.lo +Zend/zend_execute_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo +Zend/zend_highlight.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c -o Zend/zend_highlight.lo +Zend/zend_llist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c -o Zend/zend_llist.lo +Zend/zend_opcode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c -o Zend/zend_opcode.lo +Zend/zend_operators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c -o Zend/zend_operators.lo +Zend/zend_ptr_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c -o Zend/zend_ptr_stack.lo +Zend/zend_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c -o Zend/zend_stack.lo +Zend/zend_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c -o Zend/zend_variables.lo +Zend/zend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c -o Zend/zend.lo +Zend/zend_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c -o Zend/zend_API.lo +Zend/zend_extensions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c -o Zend/zend_extensions.lo +Zend/zend_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c -o Zend/zend_hash.lo +Zend/zend_list.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c -o Zend/zend_list.lo +Zend/zend_indent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c -o Zend/zend_indent.lo +Zend/zend_builtin_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c -o Zend/zend_builtin_functions.lo +Zend/zend_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c -o Zend/zend_sprintf.lo +Zend/zend_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c -o Zend/zend_ini.lo +Zend/zend_qsort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c -o Zend/zend_qsort.lo +Zend/zend_multibyte.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c -o Zend/zend_multibyte.lo +Zend/zend_ts_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c -o Zend/zend_ts_hash.lo +Zend/zend_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c -o Zend/zend_stream.lo +Zend/zend_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c -o Zend/zend_iterators.lo +Zend/zend_interfaces.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c -o Zend/zend_interfaces.lo +Zend/zend_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c -o Zend/zend_exceptions.lo +Zend/zend_strtod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c -o Zend/zend_strtod.lo +Zend/zend_gc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c -o Zend/zend_gc.lo +Zend/zend_closures.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c -o Zend/zend_closures.lo +Zend/zend_float.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c -o Zend/zend_float.lo +Zend/zend_objects.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c -o Zend/zend_objects.lo +Zend/zend_object_handlers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo +Zend/zend_objects_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo +Zend/zend_default_classes.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c -o Zend/zend_execute.lo diff --git a/tests/fixtures/php-releases.json b/tests/fixtures/php-releases.json new file mode 100644 index 000000000..31aa7ab51 --- /dev/null +++ b/tests/fixtures/php-releases.json @@ -0,0 +1,1586 @@ +{ + "7.3": { + "7.3.0": { + "version": "7.3.0", + "filename": "php-7.3.0.tar.bz2", + "name": "PHP 7.3.0 (tar.bz2)", + "sha256": "7a267daec9969a997c5c8028c350229646748e0fcc71e2f2dbb157ddcee87c67", + "date": "06 Dec 2018", + "museum": false + } + }, + "7.2": { + "7.2.13": { + "version": "7.2.13", + "filename": "php-7.2.13.tar.bz2", + "name": "PHP 7.2.13 (tar.bz2)", + "sha256": "5b4a46fb76491bcd3eee1213773382e570f6ecf9b22d623b24e2822298b3e92d", + "date": "06 Dec 2018", + "museum": false + }, + "7.2.12": { + "version": "7.2.12", + "announcement": "https://php.net/releases/7_2_12.php", + "date": "08 Nov 2018", + "filename": "php-7.2.12.tar.bz2", + "name": "PHP 7.2.12 (tar.bz2)", + "sha256": "b724c4c20347b6105be109d98cc395a610174e8aadb506c82e8cb645b65ef6b6", + "museum": false + }, + "7.2.11": { + "version": "7.2.11", + "announcement": "https://php.net/releases/7_2_11.php", + "date": "11 Oct 2018", + "filename": "php-7.2.11.tar.bz2", + "name": "PHP 7.2.11 (tar.bz2)", + "sha256": "4a0d7f402d07966b37a600796283f4ca4079d955d96d5bec024dd02009d8b4c5", + "museum": false + }, + "7.2.10": { + "version": "7.2.10", + "announcement": "https://php.net/releases/7_2_10.php", + "date": "13 Sep 2018", + "filename": "php-7.2.10.tar.bz2", + "name": "PHP 7.2.10 (tar.bz2)", + "sha256": "01b6129a0921a1636b07da9bc598a876669e45a462cef4b5844fc26862dbda9d", + "museum": false + }, + "7.2.9": { + "version": "7.2.9", + "announcement": "https://php.net/releases/7_2_9.php", + "date": "16 Aug 2018", + "filename": "php-7.2.9.tar.bz2", + "name": "PHP 7.2.9 (tar.bz2)", + "sha256": "e9e3aaa6c317b7fea78246a758b017544366049d2789ad5a44fe9398464c53a8", + "museum": false + }, + "7.2.8": { + "version": "7.2.8", + "announcement": "https://php.net/releases/7_2_8.php", + "date": "19 Jul 2018", + "filename": "php-7.2.8.tar.bz2", + "name": "PHP 7.2.8 (tar.bz2)", + "sha256": "1f8068f520a60fff3db19be1b849f0c02a33a0fd8b34b7ae05556ef682187ee6", + "museum": false + }, + "7.2.7": { + "version": "7.2.7", + "announcement": "https://php.net/releases/7_2_7.php", + "date": "21 Jun 2018", + "filename": "php-7.2.7.tar.bz2", + "name": "PHP 7.2.7 (tar.bz2)", + "sha256": "cc81675a96af4dd18d8ffc02f26a36c622abadf86af7ecfea7bcde8d3c96d5a3", + "museum": false + }, + "7.2.6": { + "version": "7.2.6", + "announcement": "https://php.net/releases/7_2_6.php", + "date": "24 May 2018", + "filename": "php-7.2.6.tar.bz2", + "name": "PHP 7.2.6 (tar.bz2)", + "sha256": "ae5d3e8ada80b9d293d0c8bd643d07c2d988538ff1052a3f7144c6b0cd0ff2c3", + "museum": false + }, + "7.2.5": { + "version": "7.2.5", + "announcement": "https://php.net/releases/7_2_5.php", + "date": "26 Apr 2018", + "filename": "php-7.2.5.tar.bz2", + "name": "PHP 7.2.5 (tar.bz2)", + "sha256": "f3820efa8efa79628b6e1b5b2f8c1b04c08d32e6721fa1654039ce5f89796031", + "museum": false + }, + "7.2.4": { + "version": "7.2.4", + "announcement": "https://php.net/releases/7_2_4.php", + "date": "29 Mar 2018", + "filename": "php-7.2.4.tar.bz2", + "name": "PHP 7.2.4 (tar.bz2)", + "sha256": "11658a0d764dc94023b9fb60d4b5eb75d438ad17981efe70abb0d0d09a447ef3", + "museum": false + }, + "7.2.3": { + "version": "7.2.3", + "announcement": "https://php.net/releases/7_2_3.php", + "date": "1 Mar 2018", + "filename": "php-7.2.3.tar.bz2", + "name": "PHP 7.2.3 (tar.bz2)", + "sha256": "4a735aac0ba764dd8208ea29007d3916396c5292e003ba8d3bec49edcdd5bf92", + "museum": false + }, + "7.2.2": { + "version": "7.2.2", + "announcement": "https://php.net/releases/7_2_2.php", + "date": "1 Feb 2018", + "filename": "php-7.2.2.tar.bz2", + "name": "PHP 7.2.2 (tar.bz2)", + "sha256": "f841ac58e17471f2241ea892b34edb01dc9b93ad9f661ffe4e3f1f476a8f4aee", + "museum": false + }, + "7.2.1": { + "version": "7.2.1", + "announcement": "https://php.net/releases/7_2_1.php", + "date": "4 Jan 2018", + "filename": "php-7.2.1.tar.bz2", + "name": "PHP 7.2.1 (tar.bz2)", + "sha256": "fe06793f268a4dd29cbc5f4ef415f01e786877152b02221ad7d18dbb6864eb79", + "museum": false + }, + "7.2.0": { + "version": "7.2.0", + "announcement": "https://php.net/releases/7_2_0.php", + "date": "30 Nov 2017", + "filename": "php-7.2.0.tar.bz2", + "name": "PHP 7.2.0 (tar.bz2)", + "sha256": "2bfefae4226b9b97879c9d33078e50bdb5c17f45ff6e255951062a529720c64a", + "museum": false + } + }, + "7.1": { + "7.1.25": { + "version": "7.1.25", + "filename": "php-7.1.25.tar.bz2", + "name": "PHP 7.1.25 (tar.bz2)", + "sha256": "002cdc880ac7cfaede2c389204d366108847db0f3ac72edf1ba95c0577f9aaac", + "date": "06 Dec 2018", + "museum": false + }, + "7.1.24": { + "version": "7.1.24", + "announcement": "https://php.net/releases/7_1_24.php", + "date": "08 Nov 2018", + "filename": "php-7.1.24.tar.bz2", + "name": "PHP 7.1.24 (tar.bz2)", + "sha256": "66de24e73c7f6006f090c1b187d6b218c8fa6a513acca4ff5c14b695a7391e0b", + "museum": false + }, + "7.1.23": { + "version": "7.1.23", + "announcement": "https://php.net/releases/7_1_23.php", + "date": "11 Oct 2018", + "filename": "php-7.1.23.tar.bz2", + "name": "PHP 7.1.23 (tar.bz2)", + "sha256": "2d79aa86d8f0faa760a712a1d7be50b57838a9770c1dff34020876630c2ecc4b", + "museum": false + }, + "7.1.22": { + "version": "7.1.22", + "announcement": "https://php.net/releases/7_1_22.php", + "date": "13 Sep 2018", + "filename": "php-7.1.22.tar.bz2", + "name": "PHP 7.1.22 (tar.bz2)", + "sha256": "c8e91f19c8aa810ae95f228ff31cf0e4805cb89f4c10870ee12c85491b26e763", + "museum": false + }, + "7.1.21": { + "version": "7.1.21", + "announcement": "https://php.net/releases/7_1_21.php", + "date": "17 Aug 2018", + "filename": "php-7.1.21.tar.bz2", + "name": "PHP 7.1.21 (tar.bz2)", + "sha256": "c2409c574bde23763b48a96b93922f530156df044585ff60108bce7b27b19580", + "museum": false + }, + "7.1.20": { + "version": "7.1.20", + "announcement": "https://php.net/releases/7_1_20.php", + "date": "19 Jul 2018", + "filename": "php-7.1.20.tar.bz2", + "name": "PHP 7.1.20 (tar.bz2)", + "sha256": "3a1b476c88fb81254ea572e891a1d65053ab54068348e00c75e8b54fae691d45", + "museum": false + }, + "7.1.19": { + "version": "7.1.19", + "announcement": "https://php.net/releases/7_1_19.php", + "date": "21 Jun 2018", + "filename": "php-7.1.19.tar.bz2", + "name": "PHP 7.1.19 (tar.bz2)", + "sha256": "13c43e7be3040ad53f192b0770c7ed99e5b3e348dfc6674666179d557fd770f3", + "museum": false + }, + "7.1.18": { + "version": "7.1.18", + "announcement": "https://php.net/releases/7_1_18.php", + "date": "24 May 2018", + "filename": "php-7.1.18.tar.bz2", + "name": "PHP 7.1.18 (tar.bz2)", + "sha256": "580e375515ede831a6d82e13c0ec25dd08b225c6d87dfc24d7cd5f3bd542bf8e", + "museum": false + }, + "7.1.17": { + "version": "7.1.17", + "announcement": "https://php.net/releases/7_1_17.php", + "date": "26 Apr 2018", + "filename": "php-7.1.17.tar.bz2", + "name": "PHP 7.1.17 (tar.bz2)", + "sha256": "e124e3ac552c50f3890ed981d07b2ee473cac961885e75186ded0bbb5b78dbcf", + "museum": false + }, + "7.1.16": { + "version": "7.1.16", + "announcement": "https://php.net/releases/7_1_16.php", + "date": "29 Mar 2018", + "filename": "php-7.1.16.tar.bz2", + "name": "PHP 7.1.16 (tar.bz2)", + "sha256": "348e2af9c7c0f327a57a972674078777dfde189e2598acbcb8618b9645b0e7e5", + "museum": false + }, + "7.1.15": { + "version": "7.1.15", + "announcement": "https://php.net/releases/7_1_15.php", + "date": "1 Mar 2018", + "filename": "php-7.1.15.tar.bz2", + "name": "PHP 7.1.15 (tar.bz2)", + "sha256": "e117a54738e9485de5fc75673d39dbe937dd87f0f9cc9e281960ef9b961adcbd", + "museum": false + }, + "7.1.14": { + "version": "7.1.14", + "announcement": "https://php.net/releases/7_1_14.php", + "date": "1 Feb 2018", + "filename": "php-7.1.14.tar.bz2", + "name": "PHP 7.1.14 (tar.bz2)", + "sha256": "63b2fd139ed7656756b0fa290bc42f8fff854723c3d2710a700e646370c581f4", + "museum": false + }, + "7.1.13": { + "version": "7.1.13", + "announcement": "https://php.net/releases/7_1_13.php", + "date": "4 Jan 2018", + "filename": "php-7.1.13.tar.bz2", + "name": "PHP 7.1.13 (tar.bz2)", + "sha256": "35fda51d2d44600940185fd5818d336a79e77ab3c98e2bd075091f2f91cf98a1", + "museum": false + }, + "7.1.12": { + "version": "7.1.12", + "announcement": "https://php.net/releases/7_1_12.php", + "date": "23 Nov 2017", + "filename": "php-7.1.12.tar.bz2", + "name": "PHP 7.1.12 (tar.bz2)", + "sha256": "f9ce3361ab99dce8f3f2fba663695ac9b18a3579bc8014dc280368d1577d87c4", + "museum": false + }, + "7.1.11": { + "version": "7.1.11", + "announcement": "https://php.net/releases/7_1_11.php", + "date": "26 Oct 2017", + "filename": "php-7.1.11.tar.bz2", + "name": "PHP 7.1.11 (tar.bz2)", + "sha256": "7646d7de701fc969e3305eeeb2eddda3d46af6a88ee20ef4a47270c447228573", + "museum": false + }, + "7.1.10": { + "version": "7.1.10", + "announcement": "https://php.net/releases/7_1_10.php", + "date": "28 Sep 2017", + "filename": "php-7.1.10.tar.bz2", + "name": "PHP 7.1.10 (tar.bz2)", + "sha256": "0ee51b9b1ae7eca3e9558f772ce20cbacd1f76420009b3af630c87027f9a41af", + "museum": false + }, + "7.1.9": { + "version": "7.1.9", + "announcement": "https://php.net/releases/7_1_9.php", + "date": "31 Aug 2017", + "filename": "php-7.1.9.tar.bz2", + "name": "PHP 7.1.9 (tar.bz2)", + "sha256": "314dcc10dfdd7c4443edb4fe1e133a44f2b2a8351be8c9eb6ab9222d45fd9bae", + "museum": false + }, + "7.1.8": { + "version": "7.1.8", + "announcement": "https://php.net/releases/7_1_8.php", + "date": "03 Aug 2017", + "filename": "php-7.1.8.tar.bz2", + "name": "PHP 7.1.8 (tar.bz2)", + "sha256": "7064a00a9450565190890c7a4be04e646e0be73b2e0f8c46ae34419f343ca2f8", + "museum": false + }, + "7.1.7": { + "version": "7.1.7", + "announcement": "https://php.net/releases/7_1_7.php", + "date": "06 Jul 2017", + "filename": "php-7.1.7.tar.bz2", + "name": "PHP 7.1.7 (tar.bz2)", + "sha256": "079b6792987f38dc485f92258c04f9e02dedd593f9d260ebe725343f812d1ff8", + "museum": false + }, + "7.1.6": { + "version": "7.1.6", + "announcement": "https://php.net/releases/7_1_6.php", + "date": "08 Jun 2017", + "filename": "php-7.1.6.tar.bz2", + "name": "PHP 7.1.6 (tar.bz2)", + "sha256": "6e3576ca77672a18461a4b089c5790647f1b2c19f82e4f5e94c962609aabffcf", + "museum": false + }, + "7.1.5": { + "version": "7.1.5", + "announcement": "https://php.net/releases/7_1_5.php", + "date": "11 May 2017", + "filename": "php-7.1.5.tar.bz2", + "name": "PHP 7.1.5 (tar.bz2)", + "sha256": "28eaa4784f1bd8b7dc71206dc8c4375510199432dc17af6906b14d16b3058697", + "museum": false + }, + "7.1.4": { + "version": "7.1.4", + "announcement": "https://php.net/releases/7_1_4.php", + "date": "13 Apr 2017", + "filename": "php-7.1.4.tar.bz2", + "name": "PHP 7.1.4 (tar.bz2)", + "sha256": "39bf697836e2760b3a44ea322e9e5f1f5b1f07abeb0111f6495eff7538e25805", + "museum": false + }, + "7.1.3": { + "version": "7.1.3", + "announcement": "https://php.net/releases/7_1_3.php", + "date": "16 Mar 2017", + "filename": "php-7.1.3.tar.bz2", + "name": "PHP 7.1.3 (tar.bz2)", + "sha256": "c145924d91b7a253eccc31f8d22f15b61589cd24d78105e56240c1bb6413b94f", + "museum": false + }, + "7.1.2": { + "version": "7.1.2", + "announcement": "https://php.net/releases/7_1_2.php", + "date": "16 Feb 2017", + "filename": "php-7.1.2.tar.bz2", + "name": "PHP 7.1.2 (tar.bz2)", + "sha256": "e0f2214e2366434ee231156ba70cfefd0c59790f050d8727a3f1dc2affa67004", + "museum": false + }, + "7.1.1": { + "version": "7.1.1", + "announcement": "https://php.net/releases/7_1_1.php", + "date": "19 Jan 2017", + "filename": "php-7.1.1.tar.bz2", + "name": "PHP 7.1.1 (tar.bz2)", + "sha256": "d791d39d7b54ec42441a05a5f06d68a495647d843210e3ae4f2c6adb99c675bc", + "museum": false + }, + "7.1.0": { + "version": "7.1.0", + "announcement": "https://php.net/releases/7_1_0.php", + "date": "01 Dec 2016", + "filename": "php-7.1.0.tar.bz2", + "name": "PHP 7.1.0 (tar.bz2)", + "sha256": "68bcfd7deed5b3474d81dec9f74d122058327e2bed0ac25bbc9ec70995228e61", + "museum": false + } + }, + "7.0": { + "7.0.33": { + "version": "7.0.33", + "filename": "php-7.0.33.tar.bz2", + "name": "PHP 7.0.33 (tar.bz2)", + "sha256": "4933ea74298a1ba046b0246fe3771415c84dfb878396201b56cb5333abe86f07", + "date": "06 Dec 2018", + "museum": false + }, + "7.0.32": { + "version": "7.0.32", + "announcement": "https://php.net/releases/7_0_32.php", + "date": "13 Sep 2018", + "filename": "php-7.0.32.tar.bz2", + "name": "PHP 7.0.32 (tar.bz2)", + "sha256": "56e8d8cf9c08178afa8663589805f83bdb01634efd98131977038e24066492e1", + "museum": false + }, + "7.0.31": { + "version": "7.0.31", + "announcement": "https://php.net/releases/7_0_31.php", + "date": "19 Jul 2018", + "filename": "php-7.0.31.tar.bz2", + "name": "PHP 7.0.31 (tar.bz2)", + "sha256": "7e8bd73eced6e679a179d39571e8fee6c83e51c86f43338f65c2dc88c1106b91", + "museum": false + }, + "7.0.30": { + "version": "7.0.30", + "announcement": "https://php.net/releases/7_0_30.php", + "date": "26 Apr 2018", + "filename": "php-7.0.30.tar.bz2", + "name": "PHP 7.0.30 (tar.bz2)", + "sha256": "213f38400c239b8fab2f6f59d6f4d4bd463d0a75bd4edf723dd4d5fea8850b50", + "museum": false + }, + "7.0.29": { + "version": "7.0.29", + "announcement": "https://php.net/releases/7_0_29.php", + "date": "29 Mar 2018", + "filename": "php-7.0.29.tar.bz2", + "name": "PHP 7.0.29 (tar.bz2)", + "sha256": "989142d5c5ff7a11431254f9c1995235bad61a3364b99c966e11e06aa10d3fbc", + "museum": false + }, + "7.0.28": { + "version": "7.0.28", + "announcement": "https://php.net/releases/7_0_28.php", + "date": "01 Mar 2018", + "filename": "php-7.0.28.tar.bz2", + "name": "PHP 7.0.28 (tar.bz2)", + "sha256": "ae5491b4613f3710e3d09e688ba3d30d3acc1112c7b96a8703663b8a95063c7f", + "museum": false + }, + "7.0.27": { + "version": "7.0.27", + "announcement": "https://php.net/releases/7_0_27.php", + "date": "04 Jan 2018", + "filename": "php-7.0.27.tar.bz2", + "name": "PHP 7.0.27 (tar.bz2)", + "sha256": "99fa2563bb4c4c1cde9febe87cfe97324227d7b4b8828f2e936e507127394131", + "museum": false + }, + "7.0.26": { + "version": "7.0.26", + "announcement": "https://php.net/releases/7_0_26.php", + "date": "23 Nov 2017", + "filename": "php-7.0.26.tar.bz2", + "name": "PHP 7.0.26 (tar.bz2)", + "sha256": "2590d722f7b23b6a903c5a00cf04e7ee728df79d10ae473e3a81ba41588509a7", + "museum": false + }, + "7.0.25": { + "version": "7.0.25", + "announcement": "https://php.net/releases/7_0_25.php", + "date": "26 Oct 2017", + "filename": "php-7.0.25.tar.bz2", + "name": "PHP 7.0.25 (tar.bz2)", + "sha256": "95a24d96d126a196e1550e394182b43a6460cdd2026f1a77bef01e422415cc25", + "museum": false + }, + "7.0.24": { + "version": "7.0.24", + "announcement": "https://php.net/releases/7_0_24.php", + "date": "28 Sep 2017", + "filename": "php-7.0.24.tar.bz2", + "name": "PHP 7.0.24 (tar.bz2)", + "sha256": "9bf91982694f178821c0aaf03563a20494873ece6933e2eeecfd76f325bdcf19", + "museum": false + }, + "7.0.23": { + "version": "7.0.23", + "announcement": "https://php.net/releases/7_0_23.php", + "date": "31 Aug 2017", + "filename": "php-7.0.23.tar.bz2", + "name": "PHP 7.0.23 (tar.bz2)", + "sha256": "6fe94cefc7d2c60ee2c1648b977beed756ad9cd0a7e4ea8bb8cf521d9355a09c", + "museum": false + }, + "7.0.22": { + "version": "7.0.22", + "announcement": "https://php.net/releases/7_0_22.php", + "date": "03 Aug 2017", + "filename": "php-7.0.22.tar.bz2", + "name": "PHP 7.0.22 (tar.bz2)", + "sha256": "88e0b27f69abdd12ecde81f000c5a9ea479af7218456ea7f6557edb43c6dfdde", + "museum": false + }, + "7.0.21": { + "version": "7.0.21", + "announcement": "https://php.net/releases/7_0_21.php", + "date": "06 Jul 2017", + "filename": "php-7.0.21.tar.bz2", + "name": "PHP 7.0.21 (tar.bz2)", + "sha256": "2ba133c392de6f86aacced8c54e0adefd1c81d3840ac323b9926b8ed3dc6231f", + "museum": false + }, + "7.0.20": { + "version": "7.0.20", + "announcement": "https://php.net/releases/7_0_20.php", + "date": "08 Jun 2017", + "filename": "php-7.0.20.tar.bz2", + "name": "PHP 7.0.20 (tar.bz2)", + "sha256": "cdfddfe01cc615218e333e34a1c761c9ef8fdf5199b27617264a02705eda7fc3", + "museum": false + }, + "7.0.19": { + "version": "7.0.19", + "announcement": "https://php.net/releases/7_0_19.php", + "date": "11 May 2017", + "filename": "php-7.0.19.tar.bz2", + "name": "PHP 7.0.19 (tar.bz2)", + "sha256": "0f3ac0afc02aec22f6b1659045da9287453e9309439d0499622bc8e94a7f7d59", + "museum": false + }, + "7.0.18": { + "version": "7.0.18", + "announcement": "https://php.net/releases/7_0_18.php", + "date": "13 Apr 2017", + "filename": "php-7.0.18.tar.bz2", + "name": "PHP 7.0.18 (tar.bz2)", + "sha256": "b20cc63d507032b39d8bb14cb64784e460b0e47997e90a8704b703bcbb233fd1", + "museum": false + }, + "7.0.17": { + "version": "7.0.17", + "announcement": "https://php.net/releases/7_0_17.php", + "date": "30 Mar 2017", + "filename": "php-7.0.17.tar.bz2", + "name": "PHP 7.0.17 (tar.bz2)", + "sha256": "aee503926b96d807692fac3e0fd64e3259788f5139819a983152679cb6e91d4b", + "museum": false + }, + "7.0.16": { + "version": "7.0.16", + "announcement": "https://php.net/releases/7_0_16.php", + "date": "16 Feb 2017", + "filename": "php-7.0.16.tar.bz2", + "name": "PHP 7.0.16 (tar.bz2)", + "sha256": "83c5f57575dc0feca563af529d6f1d60183bf9c2c13e98a6da131fbd0a3597ab", + "museum": false + }, + "7.0.15": { + "version": "7.0.15", + "announcement": "https://php.net/releases/7_0_15.php", + "date": "19 Jan 2017", + "filename": "php-7.0.15.tar.bz2", + "name": "PHP 7.0.15 (tar.bz2)", + "sha256": "a8c8f947335683fa6dd1b7443ed70f2a42bc33e8b6c215f139138cee89e47dd9", + "museum": false + }, + "7.0.14": { + "version": "7.0.14", + "announcement": "https://php.net/releases/7_0_14.php", + "date": "08 Dec 2016", + "filename": "php-7.0.14.tar.bz2", + "name": "PHP 7.0.14 (tar.bz2)", + "sha256": "fbc4369a0d42b55fd1ce75eb4f3d17b012da754a67567d8e3288fbfbb7490534", + "museum": false + }, + "7.0.13": { + "version": "7.0.13", + "announcement": "https://php.net/releases/7_0_13.php", + "date": "10 Nov 2016", + "filename": "php-7.0.13.tar.bz2", + "name": "PHP 7.0.13 (tar.bz2)", + "sha256": "d090bb523812117ec0c08d8f0b5c5f0616aa7a29a2eeee0374efe53a7cfe88c1", + "museum": false + }, + "7.0.12": { + "version": "7.0.12", + "announcement": "https://php.net/releases/7_0_12.php", + "date": "13 Oct 2016", + "filename": "php-7.0.12.tar.bz2", + "name": "PHP 7.0.12 (tar.bz2)", + "sha256": "38c47294fe8fb239b0230dc63a93c3e4044f472ab93b5dff8b65feb4103a6a27", + "museum": false + }, + "7.0.11": { + "version": "7.0.11", + "announcement": "https://php.net/releases/7_0_11.php", + "date": "15 Sep 2016", + "filename": "php-7.0.11.tar.bz2", + "name": "PHP 7.0.11 (tar.bz2)", + "sha256": "f99b729dc1149858844b18af1e8c0de6dd1cdfdd52e22fbb4de2aa78bf9bf7f1", + "museum": false + }, + "7.0.10": { + "version": "7.0.10", + "announcement": "https://php.net/releases/7_0_10.php", + "date": "18 Aug 2016", + "filename": "php-7.0.10.tar.bz2", + "name": "PHP 7.0.10 (tar.bz2)", + "sha256": "8055bbe5a736986931c0c6a08b765d6d778271ec7d2d56c50a1ad259ec09f6de", + "museum": false + }, + "7.0.9": { + "version": "7.0.9", + "announcement": "https://php.net/releases/7_0_9.php", + "date": "21 Jul 2016", + "filename": "php-7.0.9.tar.bz2", + "name": "PHP 7.0.9 (tar.bz2)", + "sha256": "2ee6968b5875f2f38700c58a189aad859a6a0b85fc337aa102ec2dc3652c3b7b", + "museum": false + }, + "7.0.8": { + "version": "7.0.8", + "announcement": "https://php.net/releases/7_0_8.php", + "date": "23 Jun 2016", + "filename": "php-7.0.8.tar.bz2", + "name": "PHP 7.0.8 (tar.bz2)", + "sha256": "66dc7ba388490e07b1313fe3a06b1fa822e1310585fe29f4909995f131e27c8d", + "museum": false + }, + "7.0.7": { + "version": "7.0.7", + "announcement": "https://php.net/releases/7_0_7.php", + "date": "26 May 2016", + "filename": "php-7.0.7.tar.bz2", + "name": "PHP 7.0.7 (tar.bz2)", + "sha256": "474f2925c4782b94016e3afbb17b14ff9cc6f4fdb6f6e231b36a378bb18a3d1a", + "museum": false + }, + "7.0.6": { + "version": "7.0.6", + "announcement": "https://php.net/releases/7_0_6.php", + "date": "28 Apr 2016", + "filename": "php-7.0.6.tar.bz2", + "name": "PHP 7.0.6 (tar.bz2)", + "sha256": "14ddf192a9965c858c1e742a61456be2f34a4db87556172c0d76f08de96329b7", + "museum": false + }, + "7.0.5": { + "version": "7.0.5", + "announcement": "https://php.net/releases/7_0_5.php", + "date": "31 Mar 2016", + "filename": "php-7.0.5.tar.bz2", + "name": "PHP 7.0.5 (tar.bz2)", + "sha256": "2c09af7fe64537ea795f098b9b542ead407ef83f7cdc65b3787115ccbbb51de9", + "museum": false + }, + "7.0.4": { + "version": "7.0.4", + "announcement": "https://php.net/releases/7_0_4.php", + "date": "03 Mar 2016", + "filename": "php-7.0.4.tar.bz2", + "name": "PHP 7.0.4 (tar.bz2)", + "sha256": "a246c503709c189ba8e1e22ed2cb22abc27da43a997ff1b3318e181baf529dcc", + "museum": false + }, + "7.0.3": { + "version": "7.0.3", + "announcement": "https://php.net/releases/7_0_3.php", + "date": "04 Feb 2016", + "filename": "php-7.0.3.tar.bz2", + "name": "PHP 7.0.3 (tar.bz2)", + "sha256": "826823d754f09c779222a99becf9c53a4dc719dba2d777aca7807c6ca68e6fc6", + "museum": false + }, + "7.0.2": { + "version": "7.0.2", + "announcement": "https://php.net/releases/7_0_2.php", + "date": "07 Jan 2016", + "filename": "php-7.0.2.tar.bz2", + "name": "PHP 7.0.2 (tar.bz2)", + "sha256": "9b1b75fbd9c92c6b0003b234e550965038826d11ea1f430bf279964da9da2236", + "museum": false + }, + "7.0.1": { + "version": "7.0.1", + "announcement": "https://php.net/releases/7_0_1.php", + "date": "17 Dec 2015", + "filename": "php-7.0.1.tar.bz2", + "name": "PHP 7.0.1 (tar.bz2)", + "sha256": "04ce3bd1da001397b342c2219a5093be9ecbbc97f022e1e6a0ec2fedc3d93e42", + "museum": false + }, + "7.0.0": { + "version": "7.0.0", + "announcement": "https://php.net/releases/7_0_0.php", + "date": "03 Dec 2015", + "filename": "php-7.0.0.tar.bz2", + "name": "PHP 7.0.0 (tar.bz2)", + "sha256": "a92a54306832167a39f7c0ec00524fc6f3f7d985c806caa7632561d0ddedfcea", + "museum": false + } + }, + "5.6": { + "5.6.39": { + "version": "5.6.39", + "date": "06 Dec 2018", + "filename": "php-5.6.39.tar.bz2", + "name": "PHP 5.6.39 (tar.bz2)", + "sha256": "b3db2345f50c010b01fe041b4e0f66c5aa28eb325135136f153e18da01583ad5", + "museum": false + }, + "5.6.38": { + "version": "5.6.38", + "announcement": "https://php.net/releases/5_6_38.php", + "date": "13 Sep 2018", + "filename": "php-5.6.38.tar.bz2", + "name": "PHP 5.6.38 (tar.bz2)", + "sha256": "d65b231bbdd63be4439ef5ced965cfd63e62983429dbd4dfcfb49981593ebc03", + "museum": false + }, + "5.6.37": { + "version": "5.6.37", + "announcement": "https://php.net/releases/5_6_37.php", + "date": "19 Jul 2018", + "filename": "php-5.6.37.tar.bz2", + "name": "PHP 5.6.37 (tar.bz2)", + "sha256": "886ad63d05d94ea3e54322691aadea0cf1d4bcdb4450b02fe300e5b570788b23", + "museum": false + }, + "5.6.36": { + "version": "5.6.36", + "announcement": "https://php.net/releases/5_6_36.php", + "date": "26 Apr 2018", + "filename": "php-5.6.36.tar.bz2", + "name": "PHP 5.6.36 (tar.bz2)", + "sha256": "626a0e3f5d8a0e686a2b930f0dd3a0601fe3dcb5e43dd0e8c3fab631e64e172a", + "museum": false + }, + "5.6.35": { + "version": "5.6.35", + "announcement": "https://php.net/releases/5_6_35.php", + "date": "29 Mar 2018", + "filename": "php-5.6.35.tar.bz2", + "name": "PHP 5.6.35 (tar.bz2)", + "sha256": "ee78a7e9ca21d8ea394d037c55effff477a49dbae31c7753c547036f5bd73b92", + "museum": false + }, + "5.6.34": { + "version": "5.6.34", + "announcement": "https://php.net/releases/5_6_34.php", + "date": "01 Mar 2018", + "filename": "php-5.6.34.tar.bz2", + "name": "PHP 5.6.34 (tar.bz2)", + "sha256": "e19f499d8cee4b0b0780361ecb6a00c41654772a754803ab9ea866b8d47cf2cd", + "museum": false + }, + "5.6.33": { + "version": "5.6.33", + "announcement": "https://php.net/releases/5_6_33.php", + "date": "04 Jan 2018", + "filename": "php-5.6.33.tar.bz2", + "name": "PHP 5.6.33 (tar.bz2)", + "sha256": "07f696a9761dcd839e2045c95c3a4d2ffb52c54417477cca9d30a14975b831cc", + "museum": false + }, + "5.6.32": { + "version": "5.6.32", + "announcement": "https://php.net/releases/5_6_32.php", + "date": "26 Oct 2017", + "filename": "php-5.6.32.tar.bz2", + "name": "PHP 5.6.32 (tar.bz2)", + "sha256": "3ee44e7a5fa42b563652b3ea0d3487bc236fcc9e5ea74b583775cab867abcb51", + "museum": false + }, + "5.6.31": { + "version": "5.6.31", + "announcement": "https://php.net/releases/5_6_31.php", + "date": "06 Jul 2017", + "filename": "php-5.6.31.tar.bz2", + "name": "PHP 5.6.31 (tar.bz2)", + "sha256": "8f397169cb65f0539f3bcb04060f97770d73e19074a37bd2c58b98ebf6ecb10f", + "museum": false + }, + "5.6.30": { + "version": "5.6.30", + "announcement": "https://php.net/releases/5_6_30.php", + "date": "19 Jan 2017", + "filename": "php-5.6.30.tar.bz2", + "name": "PHP 5.6.30 (tar.bz2)", + "sha256": "a105c293fa1dbff118b5b0ca74029e6c461f8c78f49b337a2a98be9e32c27906", + "museum": false + }, + "5.6.29": { + "version": "5.6.29", + "announcement": "https://php.net/releases/5_6_29.php", + "date": "08 Dec 2016", + "filename": "php-5.6.29.tar.bz2", + "name": "PHP 5.6.29 (tar.bz2)", + "sha256": "499b844c8aa7be064c111692e51a093ba94e54d2d9abb01e70ea76183a1825bb", + "museum": false + }, + "5.6.28": { + "version": "5.6.28", + "announcement": "https://php.net/releases/5_6_28.php", + "date": "10 Nov 2016", + "filename": "php-5.6.28.tar.bz2", + "name": "PHP 5.6.28 (tar.bz2)", + "sha256": "c55ea3f4aad5a0b65631d01c4468930fd981ad208ffcd242acdf731bcb47548f", + "museum": false + }, + "5.6.27": { + "version": "5.6.27", + "announcement": "https://php.net/releases/5_6_27.php", + "date": "13 Oct 2016", + "filename": "php-5.6.27.tar.bz2", + "name": "PHP 5.6.27 (tar.bz2)", + "sha256": "3b77d3a067b6e9cc7bb282d4d5b0e6eeb0623a828bb0479241e3b030446f2a3c", + "museum": false + }, + "5.6.26": { + "version": "5.6.26", + "announcement": "https://php.net/releases/5_6_26.php", + "date": "15 Sep 2016", + "filename": "php-5.6.26.tar.bz2", + "name": "PHP 5.6.26 (tar.bz2)", + "sha256": "d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236", + "museum": false + }, + "5.6.25": { + "version": "5.6.25", + "announcement": "https://php.net/releases/5_6_25.php", + "date": "18 Aug 2016", + "filename": "php-5.6.25.tar.bz2", + "name": "PHP 5.6.25 (tar.bz2)", + "sha256": "58ce6032aced7f3e42ced492bd9820e5b3f2a3cd3ef71429aa92fd7b3eb18dde", + "museum": false + }, + "5.6.24": { + "version": "5.6.24", + "announcement": "https://php.net/releases/5_6_24.php", + "date": "21 Jul 2016", + "filename": "php-5.6.24.tar.bz2", + "name": "PHP 5.6.24 (tar.bz2)", + "sha256": "bf23617ec3ed0a125ec8bde2b7bca9d3804b2ff4df8de192890c84dc9fac38c6", + "museum": false + }, + "5.6.23": { + "version": "5.6.23", + "announcement": "https://php.net/releases/5_6_23.php", + "date": "23 Jun 2016", + "filename": "php-5.6.23.tar.bz2", + "name": "PHP 5.6.23 (tar.bz2)", + "sha256": "facd280896d277e6f7084b60839e693d4db68318bfc92085d3dc0251fd3558c7", + "museum": false + }, + "5.6.22": { + "version": "5.6.22", + "announcement": "https://php.net/releases/5_6_22.php", + "date": "26 May 2016", + "filename": "php-5.6.22.tar.bz2", + "name": "PHP 5.6.22 (tar.bz2)", + "sha256": "90da8a80cc52fa699cf2bfa4c6fa737c772df7c92b81ef483460aa3b1e9f88c6", + "museum": false + }, + "5.6.21": { + "version": "5.6.21", + "announcement": "https://php.net/releases/5_6_21.php", + "date": "28 Apr 2016", + "filename": "php-5.6.21.tar.bz2", + "name": "PHP 5.6.21 (tar.bz2)", + "sha256": "b4ed7ab574b689fd6d6494fde954826c06efc85c505e017b8d776c7c7f479590", + "museum": false + }, + "5.6.20": { + "version": "5.6.20", + "announcement": "https://php.net/releases/5_6_20.php", + "date": "31 Marc 2016", + "filename": "php-5.6.20.tar.bz2", + "name": "PHP 5.6.20 (tar.bz2)", + "sha256": "5ac7bf7caec7a79b18cf458e786fd1609ad2da771224b80bc15cc6f01b22bf1f", + "museum": false + }, + "5.6.19": { + "version": "5.6.19", + "announcement": "https://php.net/releases/5_6_19.php", + "date": "03 Marc 2016", + "filename": "php-5.6.19.tar.bz2", + "name": "PHP 5.6.19 (tar.bz2)", + "sha256": "2a24a3f84971680ac0a4c71050067de4f76ee235aa4a041fae21bfa69975c168", + "museum": false + }, + "5.6.18": { + "version": "5.6.18", + "announcement": "https://php.net/releases/5_6_18.php", + "date": "04 Feb 2016", + "filename": "php-5.6.18.tar.bz2", + "name": "PHP 5.6.18 (tar.bz2)", + "sha256": "c3cd4a29a9562309d36e2b128407d6eaa5c7dde590d2b1a464457383e517f4ed", + "museum": false + }, + "5.6.17": { + "version": "5.6.17", + "announcement": "https://php.net/releases/5_6_17.php", + "date": "07 Jan 2016", + "filename": "php-5.6.17.tar.bz2", + "name": "PHP 5.6.17 (tar.bz2)", + "sha256": "77b45f56a1e63e75bb22b42cfb8b438ec4083c59ce774b4d7c1685544b7add3b", + "museum": false + }, + "5.6.16": { + "version": "5.6.16", + "announcement": "https://php.net/releases/5_6_16.php", + "date": "26 Nov 2015", + "filename": "php-5.6.16.tar.bz2", + "name": "PHP 5.6.16 (tar.bz2)", + "sha256": "4fe6f40964c1bfaba05fc144ba20a2cdad33e11685f4f101ea5a48b98bbcd2ae", + "museum": false + }, + "5.6.15": { + "version": "5.6.15", + "announcement": "https://php.net/releases/5_6_15.php", + "date": "29 Oct 2015", + "filename": "php-5.6.15.tar.bz2", + "name": "PHP 5.6.15 (tar.bz2)", + "sha256": "11a0645c4d4b749e256da1e0d6df89dd886b5b06b83c914d942653661dbd1c38", + "museum": false + }, + "5.6.14": { + "version": "5.6.14", + "announcement": "https://php.net/releases/5_6_14.php", + "date": "01 Oct 2015", + "filename": "php-5.6.14.tar.bz2", + "name": "PHP 5.6.14 (tar.bz2)", + "sha256": "36f295f11641c1839a5df00e693f685fd134c65e8a1d46e8ee0abae8662b2eb0", + "museum": false + }, + "5.6.13": { + "version": "5.6.13", + "announcement": "https://php.net/releases/5_6_13.php", + "date": "03 Sep 2015", + "filename": "php-5.6.13.tar.bz2", + "name": "PHP 5.6.13 (tar.bz2)", + "sha256": "6358837c9cbab41b91ede59dbf0670ae0fb925a1369ecbc1a44a27212420f893", + "museum": false + }, + "5.6.12": { + "version": "5.6.12", + "announcement": "https://php.net/releases/5_6_12.php", + "date": "06 Aug 2015", + "filename": "php-5.6.12.tar.bz2", + "name": "PHP 5.6.12 (tar.bz2)", + "sha256": "6f27104272af7b2a996f85e4100fac627630fbdaf39d7bd263f16cf529c8853a", + "museum": false + }, + "5.6.11": { + "version": "5.6.11", + "announcement": "https://php.net/releases/5_6_11.php", + "date": "10 Jul 2015", + "filename": "php-5.6.11.tar.bz2", + "name": "PHP 5.6.11 (tar.bz2)", + "sha256": "bd6b260816764c267244749ead07482120dbf8d1920ebbbb0dcb2aa411033866", + "museum": false + }, + "5.6.10": { + "version": "5.6.10", + "announcement": "https://php.net/releases/5_6_10.php", + "date": "11 Jun 2015", + "filename": "php-5.6.10.tar.bz2", + "name": "PHP 5.6.10 (tar.bz2)", + "sha256": "0a579c81c724ea41815eee0caa8ea7d8eeb302458519d8cc4fc5b055577c8c45", + "museum": false + }, + "5.6.9": { + "version": "5.6.9", + "announcement": "https://php.net/releases/5_6_9.php", + "date": "14 May 2015", + "filename": "php-5.6.9.tar.bz2", + "name": "PHP 5.6.9 (tar.bz2)", + "sha256": "19d3b87b7b8bba3be24cf6d757d16b723a98881c3af8d15469fd25501e9abcb9", + "museum": false + }, + "5.6.8": { + "version": "5.6.8", + "announcement": "https://php.net/releases/5_6_8.php", + "date": "16 Apr 2015", + "filename": "php-5.6.8.tar.bz2", + "name": "PHP 5.6.8 (tar.bz2)", + "sha256": "0af0045745d61eeb74a3ea744529a2481b27cb689da720e6c0250675043724e4", + "museum": false + }, + "5.6.7": { + "version": "5.6.7", + "announcement": "https://php.net/releases/5_6_7.php", + "date": "19 Mar 2015", + "filename": "php-5.6.7.tar.bz2", + "name": "PHP 5.6.7 (tar.bz2)", + "sha256": "02954fb74c61a7879d48ebdcd4ecb78aa0056f4215ca9b096232de28eb8f17bc", + "museum": false + }, + "5.6.6": { + "version": "5.6.6", + "announcement": "https://php.net/releases/5_6_6.php", + "date": "19 Feb 2015", + "filename": "php-5.6.6.tar.bz2", + "name": "PHP 5.6.6 (tar.bz2)", + "sha256": "09625c9b65e0c8198dc76995a35f0feec0e13ea4489526e64a00954b12adbb4c", + "museum": false + }, + "5.6.5": { + "version": "5.6.5", + "announcement": "https://php.net/releases/5_6_5.php", + "date": "22 Jan 2015", + "filename": "php-5.6.5.tar.bz2", + "name": "PHP 5.6.5 (tar.bz2)", + "sha256": "adab4c0775512a5ca0ae74e08efdc941d92529b75283e0f44d3f53822cdfd06d", + "museum": false + }, + "5.6.4": { + "version": "5.6.4", + "announcement": "https://php.net/releases/5_6_4.php", + "date": "18 Dec 2014", + "filename": "php-5.6.4.tar.bz2", + "name": "PHP 5.6.4 (tar.bz2)", + "sha256": "576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1", + "museum": false + }, + "5.6.3": { + "version": "5.6.3", + "announcement": "https://php.net/releases/5_6_3.php", + "date": "13 Nov 2014", + "filename": "php-5.6.3.tar.bz2", + "name": "PHP 5.6.3 (tar.bz2)", + "sha256": "8986b20124d14430d795165e47801ef065a38d5855bea39d0d47b13ab9ad4009", + "museum": false + }, + "5.6.2": { + "version": "5.6.2", + "announcement": "https://php.net/releases/5_6_2.php", + "date": "16 Oct 2014", + "filename": "php-5.6.2.tar.bz2", + "name": "PHP 5.6.2 (tar.bz2)", + "sha256": "671dcf1f636410c63bb9eb015c4c180d904f5436f81217be0adbf52da9becdb5", + "museum": false + }, + "5.6.1": { + "version": "5.6.1", + "announcement": "https://php.net/releases/5_6_1.php", + "date": "02 Oct 2014", + "filename": "php-5.6.1.tar.bz2", + "name": "PHP 5.6.1 (tar.bz2)", + "sha256": "82c1ccd17830d697d7a4d75bb60ea12be58fa80b4dba101e97db1a6372ca45f0", + "museum": false + }, + "5.6.0": { + "version": "5.6.0", + "announcement": "https://php.net/releases/5_6_0.php", + "date": "28 Aug 2014", + "filename": "php-5.6.0.tar.bz2", + "name": "PHP 5.6.0 (tar.bz2)", + "sha256": "097af1be34fc73965e6f8401fd10e73eb56e1969ed4ffd691fb7e91606d0fc09", + "museum": false + } + }, + "5.5": { + "5.5.38": { + "version": "5.5.38", + "announcement": "https://php.net/releases/5_5_38.php", + "date": "21 Jul 2016", + "filename": "php-5.5.38.tar.bz2", + "name": "PHP 5.5.38 (tar.bz2)", + "sha256": "473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38", + "museum": false + }, + "5.5.37": { + "version": "5.5.37", + "announcement": "https://php.net/releases/5_5_37.php", + "date": "23 Jun 2016", + "filename": "php-5.5.37.tar.bz2", + "name": "PHP 5.5.37 (tar.bz2)", + "sha256": "d2380ebe46caf17f2c4cd055867d00a82e6702dc5f62dc29ce864a5742905d88", + "museum": false + }, + "5.5.36": { + "version": "5.5.36", + "announcement": "https://php.net/releases/5_5_36.php", + "date": "26 May 2016", + "filename": "php-5.5.36.tar.bz2", + "name": "PHP 5.5.36 (tar.bz2)", + "sha256": "2484edfaa3de606d74f927b55c5206f51b1ae24ea8e428aa9fc15474c7bb71bb", + "museum": false + }, + "5.5.35": { + "version": "5.5.35", + "announcement": "https://php.net/releases/5_5_35.php", + "date": "28 Apr 2016", + "filename": "php-5.5.35.tar.bz2", + "name": "PHP 5.5.35 (tar.bz2)", + "sha256": "2d648dd648e820fd64693ce72f9bf07064d147220e594e39fb9f6310238258d7", + "museum": false + }, + "5.5.34": { + "version": "5.5.34", + "announcement": "https://php.net/releases/5_5_34.php", + "date": "31 Mar 2016", + "filename": "php-5.5.34.tar.bz2", + "name": "PHP 5.5.34 (tar.bz2)", + "sha256": "af88884416a92619de842ad0fd23f7f7e8140efb0b9194f98a38a78781e5851c", + "museum": false + }, + "5.5.33": { + "version": "5.5.33", + "announcement": "https://php.net/releases/5_5_33.php", + "date": "03 Mar 2016", + "filename": "php-5.5.33.tar.bz2", + "name": "PHP 5.5.33 (tar.bz2)", + "sha256": "c490b1ed4df596b48eb68f630d89ca512945e2650840e7dace1119cc7e600aa9", + "museum": false + }, + "5.5.32": { + "version": "5.5.32", + "announcement": "https://php.net/releases/5_5_32.php", + "date": "04 Feb 2016", + "filename": "php-5.5.32.tar.bz2", + "name": "PHP 5.5.32 (tar.bz2)", + "sha256": "b0f2c108db8e05db9f6366aaba9a754fd0ee31f3f86ee889561b608dfd6e92ee", + "museum": false + }, + "5.5.31": { + "version": "5.5.31", + "announcement": "https://php.net/releases/5_5_31.php", + "date": "07 Jan 2016", + "filename": "php-5.5.31.tar.bz2", + "name": "PHP 5.5.31 (tar.bz2)", + "sha256": "fb4a382b9a9dceb749b7ef047d8251320bc8d371c843714e5b4f4b70d61ba277", + "museum": false + }, + "5.5.30": { + "version": "5.5.30", + "announcement": "https://php.net/releases/5_5_30.php", + "date": "01 Oct 2015", + "filename": "php-5.5.30.tar.bz2", + "name": "PHP 5.5.30 (tar.bz2)", + "sha256": "e7332a713cecdd1cb44a1b1336739885c9789f633f0f51236b25e48ab03c3b29", + "museum": false + }, + "5.5.29": { + "version": "5.5.29", + "announcement": "https://php.net/releases/5_5_29.php", + "date": "03 Sep 2015", + "filename": "php-5.5.29.tar.bz2", + "name": "PHP 5.5.29 (tar.bz2)", + "sha256": "fbcee579ecc77cad6960a541116aee669cf145c2cd9a54bf60503a870843b946", + "museum": false + }, + "5.5.28": { + "version": "5.5.28", + "announcement": "https://php.net/releases/5_5_28.php", + "date": "06 Aug 2015", + "filename": "php-5.5.28.tar.bz2", + "name": "PHP 5.5.28 (tar.bz2)", + "sha256": "197d2c572e030c177e53d3763d59ac6d363d7c78dc22e6cc1e2ac65573d9c2f3", + "museum": false + }, + "5.5.27": { + "version": "5.5.27", + "announcement": "https://php.net/releases/5_5_27.php", + "date": "09 Jul 2015", + "filename": "php-5.5.27.tar.bz2", + "name": "PHP 5.5.27 (tar.bz2)", + "sha256": "c4b4c6a534c0ca67a9ae39bec4f51e52d13e820135dd016eae230e15337e1f70", + "museum": false + }, + "5.5.26": { + "version": "5.5.26", + "announcement": "https://php.net/releases/5_5_26.php", + "date": "11 Jun 2015", + "filename": "php-5.5.26.tar.bz2", + "name": "PHP 5.5.26 (tar.bz2)", + "sha256": "816afffdb03ff4c542bc172a2f77f9c69b817df82d60cce05c1b4f578c2c926e", + "museum": false + }, + "5.5.25": { + "version": "5.5.25", + "announcement": "https://php.net/releases/5_5_25.php", + "date": "14 May 2015", + "filename": "php-5.5.25.tar.bz2", + "name": "PHP 5.5.25 (tar.bz2)", + "sha256": "68df37e725ddd05675c0df906041038127938ecc52113a54d10e1e4029262c63", + "museum": false + }, + "5.5.24": { + "version": "5.5.24", + "announcement": "https://php.net/releases/5_5_24.php", + "date": "16 Apr 2015", + "filename": "php-5.5.24.tar.bz2", + "name": "PHP 5.5.24 (tar.bz2)", + "sha256": "801b5cf2e0c01b07314d4ac3c8a7c28d524bdd8263ebdd0e33a99008251316a2", + "museum": false + }, + "5.5.23": { + "version": "5.5.23", + "announcement": "https://php.net/releases/5_5_23.php", + "date": "20 Feb 2015", + "filename": "php-5.5.23.tar.bz2", + "name": "PHP 5.5.23 (tar.bz2)", + "sha256": "a99ab264dcd40181baa9defeaa4b21eb2c20d4e9316b904cc05f628762e6ada7", + "museum": false + }, + "5.5.22": { + "version": "5.5.22", + "announcement": "https://php.net/releases/5_5_22.php", + "date": "20 Feb 2015", + "filename": "php-5.5.22.tar.bz2", + "name": "PHP 5.5.22 (tar.bz2)", + "sha256": "c218c184bef2905bc79fcdda6040f3d1738261395fb706396935d1c6f6e162bb", + "museum": false + }, + "5.5.21": { + "version": "5.5.21", + "announcement": "https://php.net/releases/5_5_21.php", + "date": "22 Jan 2015", + "filename": "php-5.5.21.tar.bz2", + "name": "PHP 5.5.21 (tar.bz2)", + "sha256": "62e9429975c4ca5d7067a5052d5388fbf2ac8c51eeee581d59b04cc5a8da83fe", + "museum": false + }, + "5.5.20": { + "version": "5.5.20", + "announcement": "https://php.net/releases/5_5_20.php", + "date": "18 Dec 2014", + "filename": "php-5.5.20.tar.bz2", + "name": "PHP 5.5.20 (tar.bz2)", + "sha256": "f28a150d1cd8991bd1a41dce4fdff4e343d1dbe01a48b9b44bea74532ce0391a", + "museum": false + }, + "5.5.19": { + "version": "5.5.19", + "announcement": "https://php.net/releases/5_5_19.php", + "date": "13 Nov 2014", + "filename": "php-5.5.19.tar.bz2", + "name": "PHP 5.5.19 (tar.bz2)", + "sha256": "4366dbb904cba8c8dd32224ac9408495d20aecaed86a871d78df420f5a23bbff", + "museum": false + }, + "5.5.18": { + "version": "5.5.18", + "announcement": "https://php.net/releases/5_5_18.php", + "date": "16 Oct 2014", + "filename": "php-5.5.18.tar.bz2", + "name": "PHP 5.5.18 (tar.bz2)", + "sha256": "f974279927b72b672dda4ef4b4362b4847fd3d19ce1d4f2e982230a4e93bb842", + "museum": false + }, + "5.5.17": { + "version": "5.5.17", + "announcement": "https://php.net/releases/5_5_17.php", + "date": "18 Sep 2014", + "filename": "php-5.5.17.tar.bz2", + "name": "PHP 5.5.17 (tar.bz2)", + "sha256": "5d81db0c8b2a68da05715c363d037922b82a45c966785d64a77482e5c01e4e1b", + "museum": false + }, + "5.5.16": { + "version": "5.5.16", + "announcement": "https://php.net/releases/5_5_16.php", + "date": "21 Aug 2014", + "filename": "php-5.5.16.tar.bz2", + "name": "PHP 5.5.16 (tar.bz2)", + "sha256": "a1d7c4556a80bed744a348211b33bc35303edd56dd0a34e0a75a948c879cc5f6", + "museum": false + }, + "5.5.15": { + "version": "5.5.15", + "announcement": "https://php.net/releases/5_5_15.php", + "date": "24 Jul 2014", + "filename": "php-5.5.15.tar.bz2", + "name": "PHP 5.5.15 (tar.bz2)", + "sha256": "00f24226b12fee27e332383b6304f1b9ed3f4d9173dd728a68c5c3f5a59b8ba7", + "museum": false + }, + "5.5.14": { + "version": "5.5.14", + "announcement": "https://php.net/releases/5_5_14.php", + "date": "26 Jun 2014", + "filename": "php-5.5.14.tar.bz2", + "name": "PHP 5.5.14 (tar.bz2)", + "sha256": "df5a057877f827549e0a60b43fb01e4bd440814bcf04fbd70bacbddf74482610", + "museum": false + }, + "5.5.13": { + "version": "5.5.13", + "announcement": "https://php.net/releases/5_5_13.php", + "date": "29 May 2014", + "filename": "php-5.5.13.tar.bz2", + "name": "PHP 5.5.13 (tar.bz2)", + "sha256": "e58a4a754eb18d2d8b1a120cad5cce4ed24a7db5d49eca5830a40e4c8ca78b9c", + "museum": false + }, + "5.5.12": { + "version": "5.5.12", + "announcement": "https://php.net/releases/5_5_12.php", + "date": "30 Apr 2014", + "filename": "php-5.5.12.tar.bz2", + "name": "PHP 5.5.12 (tar.bz2)", + "sha256": "519ee29e28532782676f3d8e31a808ffbfee383e0279ccc8cbd2b12ed53c2335", + "museum": false + }, + "5.5.11": { + "version": "5.5.11", + "announcement": "https://php.net/releases/5_5_11.php", + "date": "3 Apr 2014", + "filename": "php-5.5.11.tar.bz2", + "name": "PHP 5.5.11 (tar.bz2)", + "sha256": "60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96", + "museum": false + }, + "5.5.10": { + "version": "5.5.10", + "announcement": "https://php.net/releases/5_5_10.php", + "date": "6 Mar 2014", + "filename": "php-5.5.10.tar.bz2", + "name": "PHP 5.5.10 (tar.bz2)", + "sha256": "bb34e61f8e6f56c612867bfe85d144d5045cd5e44497539bc126a4e8c6795419", + "museum": false + }, + "5.5.9": { + "version": "5.5.9", + "announcement": "https://php.net/releases/5_5_9.php", + "date": "6 Feb 2014", + "filename": "php-5.5.9.tar.bz2", + "name": "PHP 5.5.9 (tar.bz2)", + "sha256": "9d1dea5195e2bcd928416130a6e19173d02bd36fb76c382522bf145c458fbed3", + "museum": false + }, + "5.5.8": { + "version": "5.5.8", + "announcement": "https://php.net/releases/5_5_8.php", + "date": "9 Jan 2014", + "filename": "php-5.5.8.tar.bz2", + "name": "PHP 5.5.8 (tar.bz2)", + "sha256": "6d5f45659d13383fc8429f185cc9da0b30c7bb72dcae9baf568f0511eb7f8b68", + "museum": false + }, + "5.5.7": { + "version": "5.5.7", + "announcement": "https://php.net/releases/5_5_7.php", + "date": "12 Dec 2013", + "filename": "php-5.5.7.tar.bz2", + "name": "PHP 5.5.7 (tar.bz2)", + "sha256": "2cb9425ef514b984dd233097d82a66f4623b9bf48f2ef265bc7ba25d697d6008", + "museum": false + }, + "5.5.6": { + "version": "5.5.6", + "announcement": "https://php.net/releases/5_5_6.php", + "date": "14 Nov 2013", + "filename": "php-5.5.6.tar.bz2", + "name": "PHP 5.5.6 (tar.bz2)", + "sha256": "a9b7d291199d7e6b90ef1d78eb791d738944d66856e76bde9463ce2645b0e4a4", + "museum": false + }, + "5.5.5": { + "version": "5.5.5", + "announcement": "https://php.net/releases/5_5_5.php", + "date": "17 Oct 2013", + "filename": "php-5.5.5.tar.bz2", + "name": "PHP 5.5.5 (tar.bz2)", + "sha256": "a400b324ae288eb0c9285e550fe5fd7f92c0f4e126496c3b05f9041da6cc04de", + "museum": false + }, + "5.5.4": { + "version": "5.5.4", + "announcement": "https://php.net/releases/5_5_4.php", + "date": "19 Sep 2013", + "filename": "php-5.5.4.tar.bz2", + "name": "PHP 5.5.4 (tar.bz2)", + "md5": "456f2eb1ee36f2a277bd4cc778e720eb", + "museum": true + }, + "5.5.3": { + "version": "5.5.3", + "announcement": "https://php.net/releases/5_5_3.php", + "date": "22 Aug 2013", + "filename": "php-5.5.3.tar.bz2", + "name": "PHP 5.5.3 (tar.bz2)", + "md5": "886b08ee6865d654911a6bb02ae98ee8", + "museum": true + }, + "5.5.2": { + "version": "5.5.2", + "announcement": "https://php.net/releases/5_5_2.php", + "date": "15 Aug 2013", + "filename": "php-5.5.2.tar.bz2", + "name": "PHP 5.5.2 (tar.bz2)", + "md5": "caf7f4d86514a568fb3c8021b096a9f0", + "museum": true + }, + "5.5.1": { + "version": "5.5.1", + "announcement": "https://php.net/releases/5_5_1.php", + "date": "18 Jul 2013", + "filename": "php-5.5.1.tar.bz2", + "name": "PHP 5.5.1 (tar.bz2)", + "md5": "e6520ba8f86e03451f1e9226ca2be681", + "museum": true + }, + "5.5.0": { + "version": "5.5.0", + "announcement": "https://php.net/releases/5_5_0.php", + "date": "20 Jun 2013", + "filename": "php-5.5.0.tar.bz2", + "name": "PHP 5.5.0 (tar.bz2)", + "md5": "daf2d54e79def9fd0fb2ac7dfcefb7f3", + "museum": true + } + }, + "5.4": { + "5.4.45": { + "version": "5.4.45", + "announcement": "https://php.net/releases/5_4_45.php", + "date": "03 Sep 2015", + "filename": "php-5.4.45.tar.bz2", + "name": "PHP 5.4.45 (tar.bz2)", + "sha256": "4e0d28b1554c95cfaea6fa2b64aac85433f158ce72bb571bcd5574f98f4c6582", + "museum": false + }, + "5.4.44": { + "version": "5.4.44", + "announcement": "https://php.net/releases/5_4_44.php", + "date": "06 Aug 2015", + "filename": "php-5.4.44.tar.bz2", + "name": "PHP 5.4.44 (tar.bz2)", + "sha256": "8dd59e5ce9248cf36ac3de5412a518b8b24c01ace6c46ce3d12e4ce981a3856d", + "museum": false + }, + "5.4.43": { + "version": "5.4.43", + "announcement": "https://php.net/releases/5_4_43.php", + "date": "09 Jul 2015", + "filename": "php-5.4.43.tar.bz2", + "name": "PHP 5.4.43 (tar.bz2)", + "sha256": "25d7724fb00ad1b520f5bad2173717031153d0a8e3de2c75e7a084c76f8ecd6b", + "museum": false + }, + "5.4.42": { + "version": "5.4.42", + "announcement": "https://php.net/releases/5_4_42.php", + "date": "11 Jun 2015", + "filename": "php-5.4.42.tar.bz2", + "name": "PHP 5.4.42 (tar.bz2)", + "sha256": "6285b2e64bfaa69e5d983d7d981b4f254f5259ad3fd591ca832722a4cc1ae0f9", + "museum": false + }, + "5.4.41": { + "version": "5.4.41", + "announcement": "https://php.net/releases/5_4_41.php", + "date": "14 May 2015", + "filename": "php-5.4.41.tar.bz2", + "name": "PHP 5.4.41 (tar.bz2)", + "sha256": "5bc4b45a1280ff80a3cf5b8563716f325cfd0121d7fd25aa54d56ff38b3b8272", + "museum": false + }, + "5.4.40": { + "version": "5.4.40", + "announcement": "https://php.net/releases/5_4_40.php", + "date": "16 Apr 2015", + "filename": "php-5.4.40.tar.bz2", + "name": "PHP 5.4.40 (tar.bz2)", + "sha256": "4898ffe8ac3ccb2d8cc94f7d76a9ea0414d954f5d4479895ddfccdc2e158a51a", + "museum": false + }, + "5.4.39": { + "version": "5.4.39", + "announcement": "https://php.net/releases/5_4_39.php", + "date": "19 Mar 2015", + "filename": "php-5.4.39.tar.bz2", + "name": "PHP 5.4.39 (tar.bz2)", + "sha256": "7ceb76538e709c74533210ae41148d5c01c330ac8a73220954bbc4fcae69d77e", + "museum": false + }, + "5.4.38": { + "version": "5.4.38", + "announcement": "https://php.net/releases/5_4_38.php", + "date": "19 Feb 2015", + "filename": "php-5.4.38.tar.bz2", + "name": "PHP 5.4.38 (tar.bz2)", + "sha256": "abf37db0cfadc9bb814f9df35f6aa966ad63f4f4c4475e432ec625568a5d3e88", + "museum": false + }, + "5.4.37": { + "version": "5.4.37", + "announcement": "https://php.net/releases/5_4_37.php", + "date": "22 Jan 2015", + "filename": "php-5.4.37.tar.bz2", + "name": "PHP 5.4.37 (tar.bz2)", + "sha256": "857bf6675eeb0ae9c3cd6f9ccdb2a9b7bf89dcfda7f0a80857638fe023f3a8ad", + "museum": false + }, + "5.4.36": { + "version": "5.4.36", + "announcement": "https://php.net/releases/5_4_36.php", + "date": "18 Dec 2014", + "filename": "php-5.4.36.tar.bz2", + "name": "PHP 5.4.36 (tar.bz2)", + "sha256": "b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241", + "museum": false + }, + "5.4.35": { + "version": "5.4.35", + "announcement": "https://php.net/releases/5_4_35.php", + "date": "13 Nov 2014", + "filename": "php-5.4.35.tar.bz2", + "name": "PHP 5.4.35 (tar.bz2)", + "sha256": "8cdb4265cd0f778befacd1e6b5939ec23315fff38400e17e77a36e4c55b9746b", + "museum": false + }, + "5.4.34": { + "version": "5.4.34", + "announcement": "https://php.net/releases/5_4_34.php", + "date": "16 Oct 2014", + "filename": "php-5.4.34.tar.bz2", + "name": "PHP 5.4.34 (tar.bz2)", + "sha256": "57d4ea10f0c18b096a7c8fd0a98dcbe40c8f4dc94453fd3ca0a10e35fb2f8234", + "museum": false + }, + "5.4.33": { + "version": "5.4.33", + "announcement": "https://php.net/releases/5_4_33.php", + "date": "18 Sep 2014", + "filename": "php-5.4.33.tar.bz2", + "name": "PHP 5.4.33 (tar.bz2)", + "sha256": "1a75b2d0835e74b8886cd3980d9598a0e06691441bb7f91d19b74c2278e40bb5", + "museum": false + }, + "5.4.32": { + "version": "5.4.32", + "announcement": "https://php.net/releases/5_4_32.php", + "date": "21 Aug 2014", + "filename": "php-5.4.32.tar.bz2", + "name": "PHP 5.4.32 (tar.bz2)", + "sha256": "26d0717669a098f18cd22dc3ae8282101d38508054500c26775ddcc26ca7c826", + "museum": false + }, + "5.4.31": { + "version": "5.4.31", + "announcement": "https://php.net/releases/5_4_31.php", + "date": "24 Jul 2014", + "filename": "php-5.4.31.tar.bz2", + "name": "PHP 5.4.31 (tar.bz2)", + "sha256": "5e8e491431fd1d99df925d762b05da05c80b02cb38c9b3db616e8894a307914d", + "museum": false + }, + "5.4.30": { + "version": "5.4.30", + "announcement": "https://php.net/releases/5_4_30.php", + "date": "26 Jun 2014", + "filename": "php-5.4.30.tar.bz2", + "name": "PHP 5.4.30 (tar.bz2)", + "sha256": "32b83644e42d57388d6e5ec700c3502cde5f5e1207395b1e361e4cb2ce496ce6", + "museum": false + }, + "5.4.29": { + "version": "5.4.29", + "announcement": "https://php.net/releases/5_4_29.php", + "date": "29 May 2014", + "filename": "php-5.4.29.tar.bz2", + "name": "PHP 5.4.29 (tar.bz2)", + "sha256": "62ce3ca063cf04f6065eeac82117e43b44e20487bc0a0a8d05436e17a0b1e2a7", + "museum": false + }, + "5.4.28": { + "version": "5.4.28", + "announcement": "https://php.net/releases/5_4_28.php", + "date": "2 May 2014", + "filename": "php-5.4.28.tar.bz2", + "name": "PHP 5.4.28 (tar.bz2)", + "sha256": "3fe780e5179e90c4d37276e79acc0d0692f1bc0911985af694b92c664c0ef3c4", + "museum": false + }, + "5.4.27": { + "version": "5.4.27", + "announcement": "https://php.net/releases/5_4_27.php", + "date": "3 Apr 2014", + "filename": "php-5.4.27.tar.bz2", + "name": "PHP 5.4.27 (tar.bz2)", + "sha256": "09dcc44cded735e1cf1b1b9f2749d1a0fd90e03378b6a70364a662f4740e61e2", + "museum": false + }, + "5.4.26": { + "version": "5.4.26", + "announcement": "https://php.net/releases/5_4_26.php", + "date": "6 Mar 2014", + "filename": "php-5.4.26.tar.bz2", + "name": "PHP 5.4.26 (tar.bz2)", + "sha256": "5053649317b9331df40bd836c976a32b31dbc5c5d68997d3ae01cb90db22d240", + "museum": false + }, + "5.4.25": { + "version": "5.4.25", + "announcement": "https://php.net/releases/5_4_25.php", + "date": "6 Feb 2014", + "filename": "php-5.4.25.tar.bz2", + "name": "PHP 5.4.25 (tar.bz2)", + "sha256": "b6c18c07c6bf34f75e601b28829d636e44c1c9f4267aac4ed013443c32a2245f", + "museum": false + } + } +} \ No newline at end of file diff --git a/tests/fixtures/php/5.3.29/Makefile b/tests/fixtures/php/5.3.29/Makefile new file mode 100644 index 000000000..cd06a2ad0 --- /dev/null +++ b/tests/fixtures/php/5.3.29/Makefile @@ -0,0 +1,1811 @@ +srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +EGREP = grep -E +SED = /opt/local/bin/gsed +CONFIGURE_COMMAND = './configure' '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +CONFIGURE_OPTIONS = '--prefix=/Users/c9s/.phpbrew/php/php-5.3.29' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.3.29/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.3.29/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.3.29/lib/php' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/usr' '--with-curl=/usr' '--with-readline=/usr' '--with-libedit=/usr' '--enable-session' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' '--with-icu-dir=/opt/local' +PHP_MAJOR_VERSION = 5 +PHP_MINOR_VERSION = 3 +PHP_RELEASE_VERSION = 29 +PHP_EXTRA_VERSION = +AWK = gawk +YACC = exit 0; +RE2C = re2c +RE2C_FLAGS = +SHLIB_SUFFIX_NAME = dylib +SHLIB_DL_SUFFIX_NAME = so +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +INSTALL_CLI = $(mkinstalldirs) $(INSTALL_ROOT)$(bindir); $(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT) +php_fpm_user = nobody +php_fpm_group = nobody +php_fpm_sysconfdir = /Users/c9s/.phpbrew/php/php-5.3.29/etc +php_fpm_localstatedir = /Users/c9s/.phpbrew/php/php-5.3.29/var +php_fpm_prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +SAPI_FPM_PATH = sapi/fpm/php-fpm +BUILD_FPM = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(SAPI_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) +PROG_SENDMAIL = /usr/sbin/sendmail +OPENSSL_SHARED_LIBADD = +SQLITE3_SHARED_LIBADD = +ZLIB_SHARED_LIBADD = +BZ2_SHARED_LIBADD = +CURL_SHARED_LIBADD = +DOM_SHARED_LIBADD = +FILTER_SHARED_LIBADD = +GETTEXT_SHARED_LIBADD = +INTL_SHARED_LIBADD = +JSON_SHARED_LIBADD = +MBSTRING_SHARED_LIBADD = +MCRYPT_SHARED_LIBADD = +MYSQL_SHARED_LIBADD = +MYSQLI_SHARED_LIBADD = +PDO_MYSQL_SHARED_LIBADD = +PDO_MYSQL_MODULE_TYPE = external +PDO_PGSQL_SHARED_LIBADD = +PDO_SQLITE_SHARED_LIBADD = +PGSQL_SHARED_LIBADD = +READLINE_SHARED_LIBADD = +SESSION_SHARED_LIBADD = +SIMPLEXML_SHARED_LIBADD = +SOAP_SHARED_LIBADD = +XML_SHARED_LIBADD = +XMLREADER_SHARED_LIBADD = +XMLWRITER_SHARED_LIBADD = +XSL_SHARED_LIBADD = +ZIP_SHARED_LIBADD = +PHP_INSTALLED_SAPIS = cli fpm +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +PHP_CLI_TARGET = $(SAPI_CLI_PATH) +PHP_SAPI_OBJS = sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_mach.lo main/internal_functions.lo +PHP_CLI_OBJS = ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo main/internal_functions_cli.lo +PHP_GLOBAL_OBJS = ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/gettext/gettext.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_salsa.lo ext/intl/php_intl.lo ext/intl/intl_error.lo ext/intl/intl_convert.lo ext/intl/collator/collator.lo ext/intl/collator/collator_class.lo ext/intl/collator/collator_sort.lo ext/intl/collator/collator_convert.lo ext/intl/collator/collator_locale.lo ext/intl/collator/collator_compare.lo ext/intl/collator/collator_attr.lo ext/intl/collator/collator_create.lo ext/intl/collator/collator_is_numeric.lo ext/intl/collator/collator_error.lo ext/intl/common/common_error.lo ext/intl/formatter/formatter.lo ext/intl/formatter/formatter_main.lo ext/intl/formatter/formatter_class.lo ext/intl/formatter/formatter_attr.lo ext/intl/formatter/formatter_data.lo ext/intl/formatter/formatter_format.lo ext/intl/formatter/formatter_parse.lo ext/intl/normalizer/normalizer.lo ext/intl/normalizer/normalizer_class.lo ext/intl/normalizer/normalizer_normalize.lo ext/intl/locale/locale.lo ext/intl/locale/locale_class.lo ext/intl/locale/locale_methods.lo ext/intl/dateformat/dateformat.lo ext/intl/dateformat/dateformat_class.lo ext/intl/dateformat/dateformat_attr.lo ext/intl/dateformat/dateformat_data.lo ext/intl/dateformat/dateformat_format.lo ext/intl/dateformat/dateformat_parse.lo ext/intl/msgformat/msgformat.lo ext/intl/msgformat/msgformat_attr.lo ext/intl/msgformat/msgformat_class.lo ext/intl/msgformat/msgformat_data.lo ext/intl/msgformat/msgformat_format.lo ext/intl/msgformat/msgformat_helpers.lo ext/intl/msgformat/msgformat_parse.lo ext/intl/grapheme/grapheme_string.lo ext/intl/grapheme/grapheme_util.lo ext/intl/resourcebundle/resourcebundle.lo ext/intl/resourcebundle/resourcebundle_class.lo ext/intl/resourcebundle/resourcebundle_iterator.lo ext/intl/idn/idn.lo ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_pgsql/pdo_pgsql.lo ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo ext/mysqlnd/mysqlnd.lo ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo ext/mysqlnd/mysqlnd_loaddata.lo ext/mysqlnd/mysqlnd_net.lo ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo +PHP_MODULES = +PHP_ZEND_EX = +EXT_LIBS = +abs_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +abs_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_builddir = /Users/c9s/.phpbrew/build/php-5.3.29 +php_abs_top_srcdir = /Users/c9s/.phpbrew/build/php-5.3.29 +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +exec_prefix = ${prefix} +program_prefix = +program_suffix = +includedir = ${prefix}/include +libdir = ${exec_prefix}/lib/php +mandir = ${prefix}/man +phplibdir = /Users/c9s/.phpbrew/build/php-5.3.29/modules +phptempdir = /Users/c9s/.phpbrew/build/php-5.3.29/libs +prefix = /Users/c9s/.phpbrew/php/php-5.3.29 +localstatedir = ${prefix}/var +datadir = ${prefix}/share/php +datarootdir = /Users/c9s/.phpbrew/php/php-5.3.29/php +sysconfdir = ${prefix}/etc +EXEEXT = .dSYM +CC = gcc +CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static +CFLAGS_CLEAN = -g -O2 -fvisibility=hidden -DZTS +CPP = gcc -E +CPPFLAGS = -no-cpp-precomp +CXX = c++ +CXXFLAGS = -g -O2 -prefer-non-pic -static +CXXFLAGS_CLEAN = -g -O2 +DEBUG_CFLAGS = +EXTENSION_DIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php/extensions/no-debug-zts-20090626 +EXTRA_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LDFLAGS_PROGRAM = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LIBS = -lz -lexslt -lresolv -ledit -lncurses -lpq -lpq -lmcrypt -lltdl -lintl -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm -lxml2 -lcurl -lxml2 -licui18n -licuuc -licudata -licuio -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt +ZEND_EXTRA_LIBS = +INCLUDES = -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -I/opt/local/include -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl -I/opt/local/include/postgresql92 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -I/usr/include/libxml2 -I$(top_builddir)/TSRM -I$(top_builddir)/Zend +EXTRA_INCLUDES = +INCLUDE_PATH = .:/Users/c9s/.phpbrew/php/php-5.3.29/lib/php +INSTALL_IT = : +LFLAGS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent --preserve-dup-deps +LN_S = ln -s +NATIVE_RPATHS = -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/local/lib/postgresql92 +PEAR_INSTALLDIR = /Users/c9s/.phpbrew/php/php-5.3.29/lib/php +PHP_BUILD_DATE = 2015-07-17 +PHP_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +PHP_LIBS = +OVERALL_TARGET = $(SAPI_FPM_PATH) +PHP_RPATHS = -R /opt/local/lib -R /opt/local/lib/postgresql92 +PHP_SAPI = fpm +PHP_VERSION = 5.3.29 +PHP_VERSION_ID = 50329 +SHELL = /bin/sh +SHARED_LIBTOOL = $(LIBTOOL) +WARNING_LEVEL = +PHP_FRAMEWORKS = +PHP_FRAMEWORKPATH = +INSTALL_HEADERS = ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h ext/date/lib/timelib_config.h ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/ ext/libxml/php_libxml.h ext/pcre/php_pcre.h ext/pcre/pcrelib/ ext/sqlite3/libsqlite/sqlite3.h ext/dom/xml_common.h ext/filter/php_filter.h ext/hash/php_hash.h ext/hash/php_hash_md.h ext/hash/php_hash_sha.h ext/hash/php_hash_ripemd.h ext/hash/php_hash_haval.h ext/hash/php_hash_tiger.h ext/hash/php_hash_gost.h ext/hash/php_hash_snefru.h ext/hash/php_hash_whirlpool.h ext/hash/php_hash_adler32.h ext/hash/php_hash_crc32.h ext/hash/php_hash_salsa.h ext/hash/php_hash_types.h ext/json/php_json.h ext/mbstring/oniguruma/oniguruma.h ext/mbstring/php_mbregex.h ext/mbstring/php_onig_compat.h ext/mbstring/libmbfl/config.h ext/mbstring/libmbfl/mbfl/eaw_table.h ext/mbstring/libmbfl/mbfl/mbfilter.h ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h ext/mbstring/libmbfl/mbfl/mbfilter_pass.h ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h ext/mbstring/libmbfl/mbfl/mbfl_allocators.h ext/mbstring/libmbfl/mbfl/mbfl_consts.h ext/mbstring/libmbfl/mbfl/mbfl_convert.h ext/mbstring/libmbfl/mbfl/mbfl_defs.h ext/mbstring/libmbfl/mbfl/mbfl_encoding.h ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h ext/mbstring/libmbfl/mbfl/mbfl_ident.h ext/mbstring/libmbfl/mbfl/mbfl_language.h ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h ext/mbstring/libmbfl/mbfl/mbfl_string.h ext/mbstring/mbstring.h ext/mysqli/php_mysqli_structs.h ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/session/php_session.h ext/session/mod_files.h ext/session/mod_user.h ext/sockets//php_sockets.h ext/spl/php_spl.h ext/spl/spl_array.h ext/spl/spl_directory.h ext/spl/spl_engine.h ext/spl/spl_exceptions.h ext/spl/spl_functions.h ext/spl/spl_iterators.h ext/spl/spl_observer.h ext/spl/spl_dllist.h ext/spl/spl_heap.h ext/spl/spl_fixedarray.h ext/standard/ ext/xml/ ext/mysqlnd/ Zend/ TSRM/ include/ main/ main/streams/ +ZEND_EXT_TYPE = zend_extension +all_targets = $(OVERALL_TARGET) $(PHP_MODULES) $(PHP_ZEND_EX) $(PHP_CLI_TARGET) pharcmd +install_targets = install-sapi install-cli install-build install-headers install-programs install-pear install-pharcmd +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: +cli: $(SAPI_CLI_PATH) + +$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) + $(BUILD_CLI) + +install-cli: $(SAPI_CLI_PATH) + @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/" + @$(INSTALL_CLI) + @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1 +fpm: $(SAPI_FPM_PATH) + +sapi/fpm/fpm: + @mkdir -p sapi/fpm/fpm + @mkdir -p sapi/fpm/fpm/events + +$(SAPI_FPM_PATH): sapi/fpm/fpm $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(SAPI_EXTRA_DEPS) + $(BUILD_FPM) + +sapi/fpm/fpm/fpm_conf.lo: sapi/fpm/../../main/build-defs.h + +install-build: install-fpm + +install-fpm: install-sapi + @echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(sbindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir) + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run + @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) + + @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : + + @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8 + @$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8 + + @echo "Installing PHP FPM status page: $(INSTALL_ROOT)$(datadir)/fpm/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm + @$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html + +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/data_file.c +phpincludedir=$(prefix)/include/php + +PDO_HEADER_FILES= \ + php_pdo.h \ + php_pdo_driver.h + + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.re + (cd $(top_srcdir); $(RE2C) -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re) + +install-pdo-headers: + @echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo + @for f in $(PDO_HEADER_FILES); do \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + else \ + echo "hmmm"; \ + fi \ + done; + +# mini hack +install: $(all_targets) $(install_targets) install-pdo-headers + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re) + +pharcmd: ext/phar/phar.php ext/phar/phar.phar + +PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' +PHP_PHARCMD_EXECUTABLE = ` \ + if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ + $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ + if test "x$(PHP_MODULES)" != "x"; then \ + $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ + for i in bz2 zlib phar; do \ + if test -f "$(top_builddir)/modules/$$i.la"; then \ + . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + fi; \ + done; \ + fi; \ + else \ + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ + fi;` +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + +ext/phar/phar/phar.inc: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc + -@test -d ext/phar/phar || mkdir ext/phar/phar + -@test -f ext/phar/phar/phar.inc || cp /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.inc ext/phar/phar/phar.inc + +ext/phar/phar.php: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.php" + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/build_precommand.php > ext/phar/phar.php + +ext/phar/phar.phar: ext/phar/phar.php ext/phar/phar/phar.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.phar" + -@rm -f ext/phar/phar.phar + -@rm -f /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.phar + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_BANG)" /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar/ + -@chmod +x ext/phar/phar.phar + +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + $(INSTALL) ext/phar/phar.phar $(INSTALL_ROOT)$(bindir) + -@rm -f $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f $(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) + +/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.re + @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) + +ext/standard/info.lo: ext/standard/../../main/build-defs.h + +ext/standard/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h +$(top_srcdir)/Zend/zend_language_parser.c: +$(top_srcdir)/Zend/zend_language_scanner.c: +ext/tokenizer/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c +# -*- makefile -*- + +peardir=$(PEAR_INSTALLDIR) + +# Skip all php.ini files altogether +PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 + +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` +PEAR_PREFIX = -dp a${program_prefix} +PEAR_SUFFIX = -ds a$(program_suffix) + +install-pear-installer: $(SAPI_CLI_PATH) + @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + +install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" + @if test ! -f pear/install-pear-nozlib.phar; then \ + if test -f /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar; then \ + cp /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + else \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P pear/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o pear/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n /Users/c9s/.phpbrew/build/php-5.3.29/pear/fetch.php http://pear.php.net/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + fi \ + fi \ + fi + @if test -f pear/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ + $(MAKE) -s install-pear-installer; \ + else \ + cat /Users/c9s/.phpbrew/build/php-5.3.29/pear/install-pear.txt; \ + fi + + +# +# Build environment install +# + +phpincludedir = $(includedir)/php +phpbuilddir = $(libdir)/build + +BUILD_FILES = \ + scripts/phpize.m4 \ + build/mkdep.awk \ + build/scan_makefile_in.awk \ + build/libtool.m4 \ + Makefile.global \ + acinclude.m4 \ + ltmain.sh \ + run-tests.php + +BUILD_FILES_EXEC = \ + build/shtool \ + config.guess \ + config.sub + +bin_SCRIPTS = phpize php-config +man_PAGES = phpize php-config + +install-build: + @echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ + (cd $(top_srcdir) && \ + $(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \ + $(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) + +install-programs: scripts/phpize scripts/php-config + @echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @for prog in $(bin_SCRIPTS); do \ + echo " program: $(program_prefix)$${prog}$(program_suffix)"; \ + $(INSTALL) -m 755 scripts/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \ + done + @echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @for page in $(man_PAGES); do \ + echo " page: $(program_prefix)$${page}$(program_suffix).1"; \ + $(INSTALL_DATA) scripts/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \ + done + +scripts/phpize: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/phpize.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +scripts/php-config: /Users/c9s/.phpbrew/build/php-5.3.29/scripts/php-config.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +# +# Zend +# + +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l) + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y + @$(YACC) -p zend -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.h: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y + @$(YACC) -p ini_ -v -d /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l) + +Zend/zend_indent.lo Zend/zend_highlight.lo Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.h +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_execute.h /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_vm_opcodes.h +sapi/fpm/fpm/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo +sapi/fpm/fpm/fpm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo +sapi/fpm/fpm/fpm_children.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo +sapi/fpm/fpm/fpm_cleanup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_cleanup.c -o sapi/fpm/fpm/fpm_cleanup.lo +sapi/fpm/fpm/fpm_clock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_clock.c -o sapi/fpm/fpm/fpm_clock.lo +sapi/fpm/fpm/fpm_conf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_conf.c -o sapi/fpm/fpm/fpm_conf.lo +sapi/fpm/fpm/fpm_env.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_env.c -o sapi/fpm/fpm/fpm_env.lo +sapi/fpm/fpm/fpm_events.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_events.c -o sapi/fpm/fpm/fpm_events.lo +sapi/fpm/fpm/fpm_log.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_log.c -o sapi/fpm/fpm/fpm_log.lo +sapi/fpm/fpm/fpm_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo +sapi/fpm/fpm/fpm_php.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo +sapi/fpm/fpm/fpm_php_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_php_trace.c -o sapi/fpm/fpm/fpm_php_trace.lo +sapi/fpm/fpm/fpm_process_ctl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_process_ctl.c -o sapi/fpm/fpm/fpm_process_ctl.lo +sapi/fpm/fpm/fpm_request.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_request.c -o sapi/fpm/fpm/fpm_request.lo +sapi/fpm/fpm/fpm_shm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_shm.c -o sapi/fpm/fpm/fpm_shm.lo +sapi/fpm/fpm/fpm_scoreboard.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_scoreboard.c -o sapi/fpm/fpm/fpm_scoreboard.lo +sapi/fpm/fpm/fpm_signals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_signals.c -o sapi/fpm/fpm/fpm_signals.lo +sapi/fpm/fpm/fpm_sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_sockets.c -o sapi/fpm/fpm/fpm_sockets.lo +sapi/fpm/fpm/fpm_status.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_status.c -o sapi/fpm/fpm/fpm_status.lo +sapi/fpm/fpm/fpm_stdio.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_stdio.c -o sapi/fpm/fpm/fpm_stdio.lo +sapi/fpm/fpm/fpm_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_unix.c -o sapi/fpm/fpm/fpm_unix.lo +sapi/fpm/fpm/fpm_worker_pool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_worker_pool.c -o sapi/fpm/fpm/fpm_worker_pool.lo +sapi/fpm/fpm/zlog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/zlog.c -o sapi/fpm/fpm/zlog.lo +sapi/fpm/fpm/events/select.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/select.c -o sapi/fpm/fpm/events/select.lo +sapi/fpm/fpm/events/poll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/poll.c -o sapi/fpm/fpm/events/poll.lo +sapi/fpm/fpm/events/epoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/epoll.c -o sapi/fpm/fpm/events/epoll.lo +sapi/fpm/fpm/events/kqueue.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/kqueue.c -o sapi/fpm/fpm/events/kqueue.lo +sapi/fpm/fpm/events/devpoll.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/devpoll.c -o sapi/fpm/fpm/events/devpoll.lo +sapi/fpm/fpm/events/port.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/events/port.c -o sapi/fpm/fpm/events/port.lo +sapi/fpm/fpm/fpm_trace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace.c -o sapi/fpm/fpm/fpm_trace.lo +sapi/fpm/fpm/fpm_trace_mach.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/fpm/fpm/fpm_trace_mach.c -o sapi/fpm/fpm/fpm_trace_mach.lo +ext/date/php_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/php_date.c -o ext/date/php_date.lo +ext/date/lib/astro.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/astro.c -o ext/date/lib/astro.lo +ext/date/lib/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/dow.c -o ext/date/lib/dow.lo +ext/date/lib/parse_date.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo +ext/date/lib/parse_tz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo +ext/date/lib/timelib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/timelib.c -o ext/date/lib/timelib.lo +ext/date/lib/tm2unixtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/tm2unixtime.c -o ext/date/lib/tm2unixtime.lo +ext/date/lib/unixtime2tm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/unixtime2tm.c -o ext/date/lib/unixtime2tm.lo +ext/date/lib/parse_iso_intervals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/parse_iso_intervals.c -o ext/date/lib/parse_iso_intervals.lo +ext/date/lib/interval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/date/lib/interval.c -o ext/date/lib/interval.lo +ext/ereg/ereg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ereg.c -o ext/ereg/ereg.lo +ext/ereg/regex/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regcomp.c -o ext/ereg/regex/regcomp.lo +ext/ereg/regex/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regexec.c -o ext/ereg/regex/regexec.lo +ext/ereg/regex/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regerror.c -o ext/ereg/regex/regerror.lo +ext/ereg/regex/regfree.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ereg/regex/regfree.c -o ext/ereg/regex/regfree.lo +ext/libxml/libxml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/libxml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/libxml/libxml.c -o ext/libxml/libxml.lo +ext/openssl/openssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/openssl.c -o ext/openssl/openssl.lo +ext/openssl/xp_ssl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo +ext/pcre/pcrelib/pcre_chartables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo +ext/pcre/pcrelib/pcre_ucd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ucd.c -o ext/pcre/pcrelib/pcre_ucd.lo +ext/pcre/pcrelib/pcre_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_compile.c -o ext/pcre/pcrelib/pcre_compile.lo +ext/pcre/pcrelib/pcre_config.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_config.c -o ext/pcre/pcrelib/pcre_config.lo +ext/pcre/pcrelib/pcre_exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo +ext/pcre/pcrelib/pcre_fullinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_fullinfo.c -o ext/pcre/pcrelib/pcre_fullinfo.lo +ext/pcre/pcrelib/pcre_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_get.c -o ext/pcre/pcrelib/pcre_get.lo +ext/pcre/pcrelib/pcre_globals.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_globals.c -o ext/pcre/pcrelib/pcre_globals.lo +ext/pcre/pcrelib/pcre_maketables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_maketables.c -o ext/pcre/pcrelib/pcre_maketables.lo +ext/pcre/pcrelib/pcre_newline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_newline.c -o ext/pcre/pcrelib/pcre_newline.lo +ext/pcre/pcrelib/pcre_ord2utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_ord2utf8.c -o ext/pcre/pcrelib/pcre_ord2utf8.lo +ext/pcre/pcrelib/pcre_refcount.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_refcount.c -o ext/pcre/pcrelib/pcre_refcount.lo +ext/pcre/pcrelib/pcre_study.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_study.c -o ext/pcre/pcrelib/pcre_study.lo +ext/pcre/pcrelib/pcre_tables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_tables.c -o ext/pcre/pcrelib/pcre_tables.lo +ext/pcre/pcrelib/pcre_valid_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_valid_utf8.c -o ext/pcre/pcrelib/pcre_valid_utf8.lo +ext/pcre/pcrelib/pcre_version.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_version.c -o ext/pcre/pcrelib/pcre_version.lo +ext/pcre/pcrelib/pcre_xclass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib/pcre_xclass.c -o ext/pcre/pcrelib/pcre_xclass.lo +ext/pcre/php_pcre.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo +ext/sqlite3/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo +ext/sqlite3/libsqlite/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo +ext/zlib/zlib.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib.c -o ext/zlib/zlib.lo +ext/zlib/zlib_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo +ext/zlib/zlib_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zlib/zlib_filter.c -o ext/zlib/zlib_filter.lo +ext/bcmath/bcmath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo +ext/bcmath/libbcmath/src/add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/add.c -o ext/bcmath/libbcmath/src/add.lo +ext/bcmath/libbcmath/src/div.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/div.c -o ext/bcmath/libbcmath/src/div.lo +ext/bcmath/libbcmath/src/init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/init.c -o ext/bcmath/libbcmath/src/init.lo +ext/bcmath/libbcmath/src/neg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo +ext/bcmath/libbcmath/src/outofmem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/outofmem.c -o ext/bcmath/libbcmath/src/outofmem.lo +ext/bcmath/libbcmath/src/raisemod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo +ext/bcmath/libbcmath/src/rt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rt.c -o ext/bcmath/libbcmath/src/rt.lo +ext/bcmath/libbcmath/src/sub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sub.c -o ext/bcmath/libbcmath/src/sub.lo +ext/bcmath/libbcmath/src/compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/compare.c -o ext/bcmath/libbcmath/src/compare.lo +ext/bcmath/libbcmath/src/divmod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/divmod.c -o ext/bcmath/libbcmath/src/divmod.lo +ext/bcmath/libbcmath/src/int2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/int2num.c -o ext/bcmath/libbcmath/src/int2num.lo +ext/bcmath/libbcmath/src/num2long.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2long.c -o ext/bcmath/libbcmath/src/num2long.lo +ext/bcmath/libbcmath/src/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/output.c -o ext/bcmath/libbcmath/src/output.lo +ext/bcmath/libbcmath/src/recmul.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/recmul.c -o ext/bcmath/libbcmath/src/recmul.lo +ext/bcmath/libbcmath/src/sqrt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/sqrt.c -o ext/bcmath/libbcmath/src/sqrt.lo +ext/bcmath/libbcmath/src/zero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/zero.c -o ext/bcmath/libbcmath/src/zero.lo +ext/bcmath/libbcmath/src/debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/debug.c -o ext/bcmath/libbcmath/src/debug.lo +ext/bcmath/libbcmath/src/doaddsub.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/doaddsub.c -o ext/bcmath/libbcmath/src/doaddsub.lo +ext/bcmath/libbcmath/src/nearzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/nearzero.c -o ext/bcmath/libbcmath/src/nearzero.lo +ext/bcmath/libbcmath/src/num2str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/num2str.c -o ext/bcmath/libbcmath/src/num2str.lo +ext/bcmath/libbcmath/src/raise.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/raise.c -o ext/bcmath/libbcmath/src/raise.lo +ext/bcmath/libbcmath/src/rmzero.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/rmzero.c -o ext/bcmath/libbcmath/src/rmzero.lo +ext/bcmath/libbcmath/src/str2num.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bcmath/libbcmath/src/str2num.c -o ext/bcmath/libbcmath/src/str2num.lo +ext/bz2/bz2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2.c -o ext/bz2/bz2.lo +ext/bz2/bz2_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo +ext/calendar/calendar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/calendar.c -o ext/calendar/calendar.lo +ext/calendar/dow.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/dow.c -o ext/calendar/dow.lo +ext/calendar/french.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/french.c -o ext/calendar/french.lo +ext/calendar/gregor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/gregor.c -o ext/calendar/gregor.lo +ext/calendar/jewish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/jewish.c -o ext/calendar/jewish.lo +ext/calendar/julian.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/julian.c -o ext/calendar/julian.lo +ext/calendar/easter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/easter.c -o ext/calendar/easter.lo +ext/calendar/cal_unix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/calendar/cal_unix.c -o ext/calendar/cal_unix.lo +ext/ctype/ctype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/ctype/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/ctype/ctype.c -o ext/ctype/ctype.lo +ext/curl/interface.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/interface.c -o ext/curl/interface.lo +ext/curl/multi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/multi.c -o ext/curl/multi.lo +ext/curl/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/curl/streams.c -o ext/curl/streams.lo +ext/dom/php_dom.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/php_dom.c -o ext/dom/php_dom.lo +ext/dom/attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/attr.c -o ext/dom/attr.lo +ext/dom/document.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/document.c -o ext/dom/document.lo +ext/dom/domerrorhandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerrorhandler.c -o ext/dom/domerrorhandler.lo +ext/dom/domstringlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domstringlist.c -o ext/dom/domstringlist.lo +ext/dom/domexception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domexception.c -o ext/dom/domexception.lo +ext/dom/namelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namelist.c -o ext/dom/namelist.lo +ext/dom/processinginstruction.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/processinginstruction.c -o ext/dom/processinginstruction.lo +ext/dom/cdatasection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/cdatasection.c -o ext/dom/cdatasection.lo +ext/dom/documentfragment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documentfragment.c -o ext/dom/documentfragment.lo +ext/dom/domimplementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo +ext/dom/element.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/element.c -o ext/dom/element.lo +ext/dom/node.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/node.c -o ext/dom/node.lo +ext/dom/string_extend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/string_extend.c -o ext/dom/string_extend.lo +ext/dom/characterdata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/characterdata.c -o ext/dom/characterdata.lo +ext/dom/documenttype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/documenttype.c -o ext/dom/documenttype.lo +ext/dom/domimplementationlist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo +ext/dom/entity.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entity.c -o ext/dom/entity.lo +ext/dom/nodelist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/nodelist.c -o ext/dom/nodelist.lo +ext/dom/text.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/text.c -o ext/dom/text.lo +ext/dom/comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/comment.c -o ext/dom/comment.lo +ext/dom/domconfiguration.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domconfiguration.c -o ext/dom/domconfiguration.lo +ext/dom/domimplementationsource.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domimplementationsource.c -o ext/dom/domimplementationsource.lo +ext/dom/entityreference.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/entityreference.c -o ext/dom/entityreference.lo +ext/dom/notation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/notation.c -o ext/dom/notation.lo +ext/dom/xpath.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/xpath.c -o ext/dom/xpath.lo +ext/dom/dom_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/dom_iterators.c -o ext/dom/dom_iterators.lo +ext/dom/typeinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/typeinfo.c -o ext/dom/typeinfo.lo +ext/dom/domerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domerror.c -o ext/dom/domerror.lo +ext/dom/domlocator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/domlocator.c -o ext/dom/domlocator.lo +ext/dom/namednodemap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/namednodemap.c -o ext/dom/namednodemap.lo +ext/dom/userdatahandler.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo +ext/exif/exif.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c + $(LIBTOOL) --mode=compile $(CC) -Iext/exif/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/exif/exif.c -o ext/exif/exif.lo +ext/fileinfo/fileinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo +ext/fileinfo/libmagic/apptype.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/apptype.c -o ext/fileinfo/libmagic/apptype.lo +ext/fileinfo/libmagic/ascmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/ascmagic.c -o ext/fileinfo/libmagic/ascmagic.lo +ext/fileinfo/libmagic/cdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf.c -o ext/fileinfo/libmagic/cdf.lo +ext/fileinfo/libmagic/cdf_time.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/cdf_time.c -o ext/fileinfo/libmagic/cdf_time.lo +ext/fileinfo/libmagic/compress.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/compress.c -o ext/fileinfo/libmagic/compress.lo +ext/fileinfo/libmagic/encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo +ext/fileinfo/libmagic/fsmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/fsmagic.c -o ext/fileinfo/libmagic/fsmagic.lo +ext/fileinfo/libmagic/funcs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/funcs.c -o ext/fileinfo/libmagic/funcs.lo +ext/fileinfo/libmagic/is_tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/is_tar.c -o ext/fileinfo/libmagic/is_tar.lo +ext/fileinfo/libmagic/magic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/magic.c -o ext/fileinfo/libmagic/magic.lo +ext/fileinfo/libmagic/print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/print.c -o ext/fileinfo/libmagic/print.lo +ext/fileinfo/libmagic/readcdf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readcdf.c -o ext/fileinfo/libmagic/readcdf.lo +ext/fileinfo/libmagic/readelf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo +ext/fileinfo/libmagic/softmagic.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo +ext/filter/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/filter.c -o ext/filter/filter.lo +ext/filter/sanitizing_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/sanitizing_filters.c -o ext/filter/sanitizing_filters.lo +ext/filter/logical_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/logical_filters.c -o ext/filter/logical_filters.lo +ext/filter/callback_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/filter/callback_filter.c -o ext/filter/callback_filter.lo +ext/gettext/gettext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c + $(LIBTOOL) --mode=compile $(CC) -Iext/gettext/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/gettext/gettext.c -o ext/gettext/gettext.lo +ext/hash/hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash.c -o ext/hash/hash.lo +ext/hash/hash_md.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_md.c -o ext/hash/hash_md.lo +ext/hash/hash_sha.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_sha.c -o ext/hash/hash_sha.lo +ext/hash/hash_ripemd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_ripemd.c -o ext/hash/hash_ripemd.lo +ext/hash/hash_haval.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_haval.c -o ext/hash/hash_haval.lo +ext/hash/hash_tiger.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_tiger.c -o ext/hash/hash_tiger.lo +ext/hash/hash_gost.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_gost.c -o ext/hash/hash_gost.lo +ext/hash/hash_snefru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_snefru.c -o ext/hash/hash_snefru.lo +ext/hash/hash_whirlpool.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_whirlpool.c -o ext/hash/hash_whirlpool.lo +ext/hash/hash_adler32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_adler32.c -o ext/hash/hash_adler32.lo +ext/hash/hash_crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_crc32.c -o ext/hash/hash_crc32.lo +ext/hash/hash_salsa.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/hash/hash_salsa.c -o ext/hash/hash_salsa.lo +ext/intl/php_intl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/php_intl.c -o ext/intl/php_intl.lo +ext/intl/intl_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_error.c -o ext/intl/intl_error.lo +ext/intl/intl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/intl_convert.c -o ext/intl/intl_convert.lo +ext/intl/collator/collator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo +ext/intl/collator/collator_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_class.c -o ext/intl/collator/collator_class.lo +ext/intl/collator/collator_sort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo +ext/intl/collator/collator_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_convert.c -o ext/intl/collator/collator_convert.lo +ext/intl/collator/collator_locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_locale.c -o ext/intl/collator/collator_locale.lo +ext/intl/collator/collator_compare.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_compare.c -o ext/intl/collator/collator_compare.lo +ext/intl/collator/collator_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_attr.c -o ext/intl/collator/collator_attr.lo +ext/intl/collator/collator_create.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_create.c -o ext/intl/collator/collator_create.lo +ext/intl/collator/collator_is_numeric.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_is_numeric.c -o ext/intl/collator/collator_is_numeric.lo +ext/intl/collator/collator_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/collator/collator_error.c -o ext/intl/collator/collator_error.lo +ext/intl/common/common_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/common/common_error.c -o ext/intl/common/common_error.lo +ext/intl/formatter/formatter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter.c -o ext/intl/formatter/formatter.lo +ext/intl/formatter/formatter_main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_main.c -o ext/intl/formatter/formatter_main.lo +ext/intl/formatter/formatter_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_class.c -o ext/intl/formatter/formatter_class.lo +ext/intl/formatter/formatter_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_attr.c -o ext/intl/formatter/formatter_attr.lo +ext/intl/formatter/formatter_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_data.c -o ext/intl/formatter/formatter_data.lo +ext/intl/formatter/formatter_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_format.c -o ext/intl/formatter/formatter_format.lo +ext/intl/formatter/formatter_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/formatter/formatter_parse.c -o ext/intl/formatter/formatter_parse.lo +ext/intl/normalizer/normalizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer.c -o ext/intl/normalizer/normalizer.lo +ext/intl/normalizer/normalizer_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_class.c -o ext/intl/normalizer/normalizer_class.lo +ext/intl/normalizer/normalizer_normalize.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/normalizer/normalizer_normalize.c -o ext/intl/normalizer/normalizer_normalize.lo +ext/intl/locale/locale.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale.c -o ext/intl/locale/locale.lo +ext/intl/locale/locale_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_class.c -o ext/intl/locale/locale_class.lo +ext/intl/locale/locale_methods.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/locale/locale_methods.c -o ext/intl/locale/locale_methods.lo +ext/intl/dateformat/dateformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat.c -o ext/intl/dateformat/dateformat.lo +ext/intl/dateformat/dateformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_class.c -o ext/intl/dateformat/dateformat_class.lo +ext/intl/dateformat/dateformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_attr.c -o ext/intl/dateformat/dateformat_attr.lo +ext/intl/dateformat/dateformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_data.c -o ext/intl/dateformat/dateformat_data.lo +ext/intl/dateformat/dateformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_format.c -o ext/intl/dateformat/dateformat_format.lo +ext/intl/dateformat/dateformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/dateformat/dateformat_parse.c -o ext/intl/dateformat/dateformat_parse.lo +ext/intl/msgformat/msgformat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat.c -o ext/intl/msgformat/msgformat.lo +ext/intl/msgformat/msgformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_attr.c -o ext/intl/msgformat/msgformat_attr.lo +ext/intl/msgformat/msgformat_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_class.c -o ext/intl/msgformat/msgformat_class.lo +ext/intl/msgformat/msgformat_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_data.c -o ext/intl/msgformat/msgformat_data.lo +ext/intl/msgformat/msgformat_format.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_format.c -o ext/intl/msgformat/msgformat_format.lo +ext/intl/msgformat/msgformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp -o ext/intl/msgformat/msgformat_helpers.lo +ext/intl/msgformat/msgformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/msgformat/msgformat_parse.c -o ext/intl/msgformat/msgformat_parse.lo +ext/intl/grapheme/grapheme_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_string.c -o ext/intl/grapheme/grapheme_string.lo +ext/intl/grapheme/grapheme_util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/grapheme/grapheme_util.c -o ext/intl/grapheme/grapheme_util.lo +ext/intl/resourcebundle/resourcebundle.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c -o ext/intl/resourcebundle/resourcebundle.lo +ext/intl/resourcebundle/resourcebundle_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_class.c -o ext/intl/resourcebundle/resourcebundle_class.lo +ext/intl/resourcebundle/resourcebundle_iterator.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/resourcebundle/resourcebundle_iterator.c -o ext/intl/resourcebundle/resourcebundle_iterator.lo +ext/intl/idn/idn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/intl/idn/idn.c -o ext/intl/idn/idn.lo +ext/json/json.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/json.c -o ext/json/json.lo +ext/json/utf8_to_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_to_utf16.c -o ext/json/utf8_to_utf16.lo +ext/json/utf8_decode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/utf8_decode.c -o ext/json/utf8_decode.lo +ext/json/JSON_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/json/JSON_parser.c -o ext/json/JSON_parser.lo +ext/mbstring/oniguruma/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo +ext/mbstring/oniguruma/regerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo +ext/mbstring/oniguruma/regexec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regexec.c -o ext/mbstring/oniguruma/regexec.lo +ext/mbstring/oniguruma/reggnu.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/reggnu.c -o ext/mbstring/oniguruma/reggnu.lo +ext/mbstring/oniguruma/regparse.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo +ext/mbstring/oniguruma/regenc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regenc.c -o ext/mbstring/oniguruma/regenc.lo +ext/mbstring/oniguruma/regext.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regext.c -o ext/mbstring/oniguruma/regext.lo +ext/mbstring/oniguruma/regsyntax.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regsyntax.c -o ext/mbstring/oniguruma/regsyntax.lo +ext/mbstring/oniguruma/regtrav.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regtrav.c -o ext/mbstring/oniguruma/regtrav.lo +ext/mbstring/oniguruma/regversion.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/regversion.c -o ext/mbstring/oniguruma/regversion.lo +ext/mbstring/oniguruma/st.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/st.c -o ext/mbstring/oniguruma/st.lo +ext/mbstring/oniguruma/enc/unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo +ext/mbstring/oniguruma/enc/ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/ascii.c -o ext/mbstring/oniguruma/enc/ascii.lo +ext/mbstring/oniguruma/enc/utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf8.c -o ext/mbstring/oniguruma/enc/utf8.lo +ext/mbstring/oniguruma/enc/euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_jp.c -o ext/mbstring/oniguruma/enc/euc_jp.lo +ext/mbstring/oniguruma/enc/euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_tw.c -o ext/mbstring/oniguruma/enc/euc_tw.lo +ext/mbstring/oniguruma/enc/euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/euc_kr.c -o ext/mbstring/oniguruma/enc/euc_kr.lo +ext/mbstring/oniguruma/enc/sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/sjis.c -o ext/mbstring/oniguruma/enc/sjis.lo +ext/mbstring/oniguruma/enc/iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_1.c -o ext/mbstring/oniguruma/enc/iso8859_1.lo +ext/mbstring/oniguruma/enc/iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_2.c -o ext/mbstring/oniguruma/enc/iso8859_2.lo +ext/mbstring/oniguruma/enc/iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_3.c -o ext/mbstring/oniguruma/enc/iso8859_3.lo +ext/mbstring/oniguruma/enc/iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_4.c -o ext/mbstring/oniguruma/enc/iso8859_4.lo +ext/mbstring/oniguruma/enc/iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_5.c -o ext/mbstring/oniguruma/enc/iso8859_5.lo +ext/mbstring/oniguruma/enc/iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_6.c -o ext/mbstring/oniguruma/enc/iso8859_6.lo +ext/mbstring/oniguruma/enc/iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_7.c -o ext/mbstring/oniguruma/enc/iso8859_7.lo +ext/mbstring/oniguruma/enc/iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_8.c -o ext/mbstring/oniguruma/enc/iso8859_8.lo +ext/mbstring/oniguruma/enc/iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_9.c -o ext/mbstring/oniguruma/enc/iso8859_9.lo +ext/mbstring/oniguruma/enc/iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_10.c -o ext/mbstring/oniguruma/enc/iso8859_10.lo +ext/mbstring/oniguruma/enc/iso8859_11.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_11.c -o ext/mbstring/oniguruma/enc/iso8859_11.lo +ext/mbstring/oniguruma/enc/iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_13.c -o ext/mbstring/oniguruma/enc/iso8859_13.lo +ext/mbstring/oniguruma/enc/iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_14.c -o ext/mbstring/oniguruma/enc/iso8859_14.lo +ext/mbstring/oniguruma/enc/iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_15.c -o ext/mbstring/oniguruma/enc/iso8859_15.lo +ext/mbstring/oniguruma/enc/iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/iso8859_16.c -o ext/mbstring/oniguruma/enc/iso8859_16.lo +ext/mbstring/oniguruma/enc/koi8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8.c -o ext/mbstring/oniguruma/enc/koi8.lo +ext/mbstring/oniguruma/enc/koi8_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/koi8_r.c -o ext/mbstring/oniguruma/enc/koi8_r.lo +ext/mbstring/oniguruma/enc/big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/big5.c -o ext/mbstring/oniguruma/enc/big5.lo +ext/mbstring/oniguruma/enc/utf16_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_be.c -o ext/mbstring/oniguruma/enc/utf16_be.lo +ext/mbstring/oniguruma/enc/utf16_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf16_le.c -o ext/mbstring/oniguruma/enc/utf16_le.lo +ext/mbstring/oniguruma/enc/utf32_be.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_be.c -o ext/mbstring/oniguruma/enc/utf32_be.lo +ext/mbstring/oniguruma/enc/utf32_le.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/oniguruma/enc/utf32_le.c -o ext/mbstring/oniguruma/enc/utf32_le.lo +ext/mbstring/libmbfl/filters/html_entities.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/html_entities.c -o ext/mbstring/libmbfl/filters/html_entities.lo +ext/mbstring/libmbfl/filters/mbfilter_7bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_7bit.c -o ext/mbstring/libmbfl/filters/mbfilter_7bit.lo +ext/mbstring/libmbfl/filters/mbfilter_ascii.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ascii.c -o ext/mbstring/libmbfl/filters/mbfilter_ascii.lo +ext/mbstring/libmbfl/filters/mbfilter_base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_base64.c -o ext/mbstring/libmbfl/filters/mbfilter_base64.lo +ext/mbstring/libmbfl/filters/mbfilter_big5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_big5.c -o ext/mbstring/libmbfl/filters/mbfilter_big5.lo +ext/mbstring/libmbfl/filters/mbfilter_byte2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte2.c -o ext/mbstring/libmbfl/filters/mbfilter_byte2.lo +ext/mbstring/libmbfl/filters/mbfilter_byte4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_byte4.c -o ext/mbstring/libmbfl/filters/mbfilter_byte4.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo +ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c -o ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo +ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp850.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp850.c -o ext/mbstring/libmbfl/filters/mbfilter_cp850.lo +ext/mbstring/libmbfl/filters/mbfilter_cp866.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp866.c -o ext/mbstring/libmbfl/filters/mbfilter_cp866.lo +ext/mbstring/libmbfl/filters/mbfilter_cp932.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp936.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_cp936.c -o ext/mbstring/libmbfl/filters/mbfilter_cp936.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo +ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c -o ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo +ext/mbstring/libmbfl/filters/mbfilter_hz.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_hz.c -o ext/mbstring/libmbfl/filters/mbfilter_hz.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo +ext/mbstring/libmbfl/filters/mbfilter_jis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_jis.c -o ext/mbstring/libmbfl/filters/mbfilter_jis.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo +ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c -o ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo +ext/mbstring/libmbfl/filters/mbfilter_qprint.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_qprint.c -o ext/mbstring/libmbfl/filters/mbfilter_qprint.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo +ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c -o ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo +ext/mbstring/libmbfl/filters/mbfilter_uhc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uhc.c -o ext/mbstring/libmbfl/filters/mbfilter_uhc.lo +ext/mbstring/libmbfl/filters/mbfilter_utf16.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf16.c -o ext/mbstring/libmbfl/filters/mbfilter_utf16.lo +ext/mbstring/libmbfl/filters/mbfilter_utf32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf32.c -o ext/mbstring/libmbfl/filters/mbfilter_utf32.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_utf8.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8.lo +ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c -o ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo +ext/mbstring/libmbfl/mbfl/mbfilter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter.c -o ext/mbstring/libmbfl/mbfl/mbfilter.lo +ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c -o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo +ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c -o ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo +ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c -o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo +ext/mbstring/libmbfl/mbfl/mbfl_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_convert.c -o ext/mbstring/libmbfl/mbfl/mbfl_convert.lo +ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c -o ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo +ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c -o ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo +ext/mbstring/libmbfl/mbfl/mbfl_ident.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_ident.c -o ext/mbstring/libmbfl/mbfl/mbfl_ident.lo +ext/mbstring/libmbfl/mbfl/mbfl_language.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_language.c -o ext/mbstring/libmbfl/mbfl/mbfl_language.lo +ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c -o ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo +ext/mbstring/libmbfl/mbfl/mbfl_string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_string.c -o ext/mbstring/libmbfl/mbfl/mbfl_string.lo +ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c -o ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo +ext/mbstring/libmbfl/nls/nls_de.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_de.c -o ext/mbstring/libmbfl/nls/nls_de.lo +ext/mbstring/libmbfl/nls/nls_en.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_en.c -o ext/mbstring/libmbfl/nls/nls_en.lo +ext/mbstring/libmbfl/nls/nls_ja.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ja.c -o ext/mbstring/libmbfl/nls/nls_ja.lo +ext/mbstring/libmbfl/nls/nls_kr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_kr.c -o ext/mbstring/libmbfl/nls/nls_kr.lo +ext/mbstring/libmbfl/nls/nls_neutral.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_neutral.c -o ext/mbstring/libmbfl/nls/nls_neutral.lo +ext/mbstring/libmbfl/nls/nls_ru.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ru.c -o ext/mbstring/libmbfl/nls/nls_ru.lo +ext/mbstring/libmbfl/nls/nls_uni.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_uni.c -o ext/mbstring/libmbfl/nls/nls_uni.lo +ext/mbstring/libmbfl/nls/nls_zh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_zh.c -o ext/mbstring/libmbfl/nls/nls_zh.lo +ext/mbstring/libmbfl/nls/nls_hy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_hy.c -o ext/mbstring/libmbfl/nls/nls_hy.lo +ext/mbstring/libmbfl/nls/nls_tr.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_tr.c -o ext/mbstring/libmbfl/nls/nls_tr.lo +ext/mbstring/libmbfl/nls/nls_ua.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/libmbfl/nls/nls_ua.c -o ext/mbstring/libmbfl/nls/nls_ua.lo +ext/mbstring/mbstring.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo +ext/mbstring/php_unicode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_unicode.c -o ext/mbstring/php_unicode.lo +ext/mbstring/mb_gpc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/mb_gpc.c -o ext/mbstring/mb_gpc.lo +ext/mbstring/php_mbregex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mbstring/php_mbregex.c -o ext/mbstring/php_mbregex.lo +ext/mcrypt/mcrypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo +ext/mcrypt/mcrypt_filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mcrypt/mcrypt_filter.c -o ext/mcrypt/mcrypt_filter.lo +ext/mysql/php_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo +ext/mysqli/mysqli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo +ext/mysqli/mysqli_api.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo +ext/mysqli/mysqli_prop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo +ext/mysqli/mysqli_nonapi.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo +ext/mysqli/mysqli_fe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo +ext/mysqli/mysqli_report.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo +ext/mysqli/mysqli_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo +ext/mysqli/mysqli_warning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo +ext/mysqli/mysqli_exception.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo +ext/pcntl/pcntl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/pcntl.c -o ext/pcntl/pcntl.lo +ext/pcntl/php_signal.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pcntl/php_signal.c -o ext/pcntl/php_signal.lo +ext/pdo/pdo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo.c -o ext/pdo/pdo.lo +ext/pdo/pdo_dbh.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_dbh.c -o ext/pdo/pdo_dbh.lo +ext/pdo/pdo_stmt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_stmt.c -o ext/pdo/pdo_stmt.lo +ext/pdo/pdo_sql_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sql_parser.c -o ext/pdo/pdo_sql_parser.lo +ext/pdo/pdo_sqlstate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo +ext/pdo_mysql/pdo_mysql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo +ext/pdo_mysql/mysql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo +ext/pdo_mysql/mysql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo +ext/pdo_pgsql/pdo_pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo +ext/pdo_pgsql/pgsql_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_driver.c -o ext/pdo_pgsql/pgsql_driver.lo +ext/pdo_pgsql/pgsql_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_pgsql/pgsql_statement.c -o ext/pdo_pgsql/pgsql_statement.lo +ext/pdo_sqlite/pdo_sqlite.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo +ext/pdo_sqlite/sqlite_driver.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo +ext/pdo_sqlite/sqlite_statement.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.3.29/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo +ext/pgsql/pgsql.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pgsql/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo +ext/phar/util.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/util.c -o ext/phar/util.lo +ext/phar/tar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/tar.c -o ext/phar/tar.lo +ext/phar/zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/zip.c -o ext/phar/zip.lo +ext/phar/stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/stream.c -o ext/phar/stream.lo +ext/phar/func_interceptors.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/func_interceptors.c -o ext/phar/func_interceptors.lo +ext/phar/dirstream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/dirstream.c -o ext/phar/dirstream.lo +ext/phar/phar.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar.c -o ext/phar/phar.lo +ext/phar/phar_object.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_object.c -o ext/phar/phar_object.lo +ext/phar/phar_path_check.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo +ext/posix/posix.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/posix/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/posix/posix.c -o ext/posix/posix.lo +ext/readline/readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/readline/readline.c -o ext/readline/readline.lo +ext/reflection/php_reflection.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/reflection/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo +ext/session/session.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/session.c -o ext/session/session.lo +ext/session/mod_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_files.c -o ext/session/mod_files.lo +ext/session/mod_mm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_mm.c -o ext/session/mod_mm.lo +ext/session/mod_user.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/session/mod_user.c -o ext/session/mod_user.lo +ext/shmop/shmop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/shmop/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/shmop/shmop.c -o ext/shmop/shmop.lo +ext/simplexml/simplexml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo +ext/simplexml/sxe.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo +ext/soap/soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/soap.c -o ext/soap/soap.lo +ext/soap/php_encoding.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo +ext/soap/php_http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_http.c -o ext/soap/php_http.lo +ext/soap/php_packet_soap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_packet_soap.c -o ext/soap/php_packet_soap.lo +ext/soap/php_schema.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_schema.c -o ext/soap/php_schema.lo +ext/soap/php_sdl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_sdl.c -o ext/soap/php_sdl.lo +ext/soap/php_xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/soap/php_xml.c -o ext/soap/php_xml.lo +ext/sockets/sockets.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sockets/sockets.c -o ext/sockets/sockets.lo +ext/spl/php_spl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/php_spl.c -o ext/spl/php_spl.lo +ext/spl/spl_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_functions.c -o ext/spl/spl_functions.lo +ext/spl/spl_engine.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_engine.c -o ext/spl/spl_engine.lo +ext/spl/spl_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_iterators.c -o ext/spl/spl_iterators.lo +ext/spl/spl_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_array.c -o ext/spl/spl_array.lo +ext/spl/spl_directory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_directory.c -o ext/spl/spl_directory.lo +ext/spl/spl_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_exceptions.c -o ext/spl/spl_exceptions.lo +ext/spl/spl_observer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_observer.c -o ext/spl/spl_observer.lo +ext/spl/spl_dllist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_dllist.c -o ext/spl/spl_dllist.lo +ext/spl/spl_heap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_heap.c -o ext/spl/spl_heap.lo +ext/spl/spl_fixedarray.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/spl/spl_fixedarray.c -o ext/spl/spl_fixedarray.lo +ext/standard/crypt_freesec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_freesec.c -o ext/standard/crypt_freesec.lo +ext/standard/crypt_blowfish.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_blowfish.c -o ext/standard/crypt_blowfish.lo +ext/standard/crypt_sha512.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo +ext/standard/crypt_sha256.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt_sha256.c -o ext/standard/crypt_sha256.lo +ext/standard/php_crypt_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo +ext/standard/array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/array.c -o ext/standard/array.lo +ext/standard/base64.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/base64.c -o ext/standard/base64.lo +ext/standard/basic_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo +ext/standard/browscap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/browscap.c -o ext/standard/browscap.lo +ext/standard/crc32.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crc32.c -o ext/standard/crc32.lo +ext/standard/crypt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/crypt.c -o ext/standard/crypt.lo +ext/standard/cyr_convert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/cyr_convert.c -o ext/standard/cyr_convert.lo +ext/standard/datetime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/datetime.c -o ext/standard/datetime.lo +ext/standard/dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dir.c -o ext/standard/dir.lo +ext/standard/dl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dl.c -o ext/standard/dl.lo +ext/standard/dns.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/dns.c -o ext/standard/dns.lo +ext/standard/exec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/exec.c -o ext/standard/exec.lo +ext/standard/file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/file.c -o ext/standard/file.lo +ext/standard/filestat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filestat.c -o ext/standard/filestat.lo +ext/standard/flock_compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo +ext/standard/formatted_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo +ext/standard/fsock.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/fsock.c -o ext/standard/fsock.lo +ext/standard/head.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/head.c -o ext/standard/head.lo +ext/standard/html.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/html.c -o ext/standard/html.lo +ext/standard/image.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/image.c -o ext/standard/image.lo +ext/standard/info.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/info.c -o ext/standard/info.lo +ext/standard/iptc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/iptc.c -o ext/standard/iptc.lo +ext/standard/lcg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/lcg.c -o ext/standard/lcg.lo +ext/standard/link.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/link.c -o ext/standard/link.lo +ext/standard/mail.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/mail.c -o ext/standard/mail.lo +ext/standard/math.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/math.c -o ext/standard/math.lo +ext/standard/md5.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/md5.c -o ext/standard/md5.lo +ext/standard/metaphone.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/metaphone.c -o ext/standard/metaphone.lo +ext/standard/microtime.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/microtime.c -o ext/standard/microtime.lo +ext/standard/pack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pack.c -o ext/standard/pack.lo +ext/standard/pageinfo.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/pageinfo.c -o ext/standard/pageinfo.lo +ext/standard/quot_print.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/quot_print.c -o ext/standard/quot_print.lo +ext/standard/rand.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/rand.c -o ext/standard/rand.lo +ext/standard/soundex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/soundex.c -o ext/standard/soundex.lo +ext/standard/string.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/string.c -o ext/standard/string.lo +ext/standard/scanf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/scanf.c -o ext/standard/scanf.lo +ext/standard/syslog.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/syslog.c -o ext/standard/syslog.lo +ext/standard/type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/type.c -o ext/standard/type.lo +ext/standard/uniqid.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uniqid.c -o ext/standard/uniqid.lo +ext/standard/url.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url.c -o ext/standard/url.lo +ext/standard/var.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var.c -o ext/standard/var.lo +ext/standard/versioning.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/versioning.c -o ext/standard/versioning.lo +ext/standard/assert.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/assert.c -o ext/standard/assert.lo +ext/standard/strnatcmp.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/strnatcmp.c -o ext/standard/strnatcmp.lo +ext/standard/levenshtein.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/levenshtein.c -o ext/standard/levenshtein.lo +ext/standard/incomplete_class.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/incomplete_class.c -o ext/standard/incomplete_class.lo +ext/standard/url_scanner_ex.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/url_scanner_ex.c -o ext/standard/url_scanner_ex.lo +ext/standard/ftp_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftp_fopen_wrapper.c -o ext/standard/ftp_fopen_wrapper.lo +ext/standard/http_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.lo +ext/standard/php_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/php_fopen_wrapper.c -o ext/standard/php_fopen_wrapper.lo +ext/standard/credits.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/credits.c -o ext/standard/credits.lo +ext/standard/css.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/css.c -o ext/standard/css.lo +ext/standard/var_unserializer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/var_unserializer.c -o ext/standard/var_unserializer.lo +ext/standard/ftok.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ftok.c -o ext/standard/ftok.lo +ext/standard/sha1.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/sha1.c -o ext/standard/sha1.lo +ext/standard/user_filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/user_filters.c -o ext/standard/user_filters.lo +ext/standard/uuencode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/uuencode.c -o ext/standard/uuencode.lo +ext/standard/filters.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/filters.c -o ext/standard/filters.lo +ext/standard/proc_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/proc_open.c -o ext/standard/proc_open.lo +ext/standard/streamsfuncs.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo +ext/standard/http.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/standard/http.c -o ext/standard/http.lo +ext/sysvmsg/sysvmsg.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvmsg/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.lo +ext/sysvsem/sysvsem.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvsem/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvsem/sysvsem.c -o ext/sysvsem/sysvsem.lo +ext/sysvshm/sysvshm.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvshm/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/sysvshm/sysvshm.c -o ext/sysvshm/sysvshm.lo +ext/tokenizer/tokenizer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo +ext/tokenizer/tokenizer_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/tokenizer/tokenizer_data.c -o ext/tokenizer/tokenizer_data.lo +ext/xml/xml.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/xml.c -o ext/xml/xml.lo +ext/xml/compat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xml/compat.c -o ext/xml/compat.lo +ext/xmlreader/php_xmlreader.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlreader/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlreader/php_xmlreader.c -o ext/xmlreader/php_xmlreader.lo +ext/xmlwriter/php_xmlwriter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlwriter/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xmlwriter/php_xmlwriter.c -o ext/xmlwriter/php_xmlwriter.lo +ext/xsl/php_xsl.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo +ext/xsl/xsltprocessor.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/xsl/xsltprocessor.c -o ext/xsl/xsltprocessor.lo +ext/zip/php_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/php_zip.c -o ext/zip/php_zip.lo +ext/zip/zip_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/zip_stream.c -o ext/zip/zip_stream.lo +ext/zip/lib/zip_add.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add.c -o ext/zip/lib/zip_add.lo +ext/zip/lib/zip_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error.c -o ext/zip/lib/zip_error.lo +ext/zip/lib/zip_fclose.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fclose.c -o ext/zip/lib/zip_fclose.lo +ext/zip/lib/zip_fread.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fread.c -o ext/zip/lib/zip_fread.lo +ext/zip/lib/zip_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_open.c -o ext/zip/lib/zip_open.lo +ext/zip/lib/zip_source_filep.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_filep.c -o ext/zip/lib/zip_source_filep.lo +ext/zip/lib/zip_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_strerror.c -o ext/zip/lib/zip_strerror.lo +ext/zip/lib/zip_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_close.c -o ext/zip/lib/zip_close.lo +ext/zip/lib/zip_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get.c -o ext/zip/lib/zip_error_get.lo +ext/zip/lib/zip_file_error_get.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_get.c -o ext/zip/lib/zip_file_error_get.lo +ext/zip/lib/zip_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_free.c -o ext/zip/lib/zip_free.lo +ext/zip/lib/zip_rename.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_rename.c -o ext/zip/lib/zip_rename.lo +ext/zip/lib/zip_source_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_free.c -o ext/zip/lib/zip_source_free.lo +ext/zip/lib/zip_unchange_all.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_all.c -o ext/zip/lib/zip_unchange_all.lo +ext/zip/lib/zip_delete.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_delete.c -o ext/zip/lib/zip_delete.lo +ext/zip/lib/zip_error_get_sys_type.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_get_sys_type.c -o ext/zip/lib/zip_error_get_sys_type.lo +ext/zip/lib/zip_file_get_offset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_get_offset.c -o ext/zip/lib/zip_file_get_offset.lo +ext/zip/lib/zip_get_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_name.c -o ext/zip/lib/zip_get_name.lo +ext/zip/lib/zip_replace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_replace.c -o ext/zip/lib/zip_replace.lo +ext/zip/lib/zip_source_function.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_function.c -o ext/zip/lib/zip_source_function.lo +ext/zip/lib/zip_unchange.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange.c -o ext/zip/lib/zip_unchange.lo +ext/zip/lib/zip_dirent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_dirent.c -o ext/zip/lib/zip_dirent.lo +ext/zip/lib/zip_error_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_strerror.c -o ext/zip/lib/zip_error_strerror.lo +ext/zip/lib/zip_filerange_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_filerange_crc.c -o ext/zip/lib/zip_filerange_crc.lo +ext/zip/lib/zip_file_strerror.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_strerror.c -o ext/zip/lib/zip_file_strerror.lo +ext/zip/lib/zip_get_num_files.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_files.c -o ext/zip/lib/zip_get_num_files.lo +ext/zip/lib/zip_get_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_flag.c -o ext/zip/lib/zip_get_archive_flag.lo +ext/zip/lib/zip_set_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_flag.c -o ext/zip/lib/zip_set_archive_flag.lo +ext/zip/lib/zip_set_name.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_name.c -o ext/zip/lib/zip_set_name.lo +ext/zip/lib/zip_source_zip.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_zip.c -o ext/zip/lib/zip_source_zip.lo +ext/zip/lib/zip_unchange_data.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_data.c -o ext/zip/lib/zip_unchange_data.lo +ext/zip/lib/zip_entry_free.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_free.c -o ext/zip/lib/zip_entry_free.lo +ext/zip/lib/zip_error_to_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_to_str.c -o ext/zip/lib/zip_error_to_str.lo +ext/zip/lib/zip_fopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen.c -o ext/zip/lib/zip_fopen.lo +ext/zip/lib/zip_name_locate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_name_locate.c -o ext/zip/lib/zip_name_locate.lo +ext/zip/lib/zip_source_buffer.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_buffer.c -o ext/zip/lib/zip_source_buffer.lo +ext/zip/lib/zip_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat.c -o ext/zip/lib/zip_stat.lo +ext/zip/lib/zip_entry_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_entry_new.c -o ext/zip/lib/zip_entry_new.lo +ext/zip/lib/zip_err_str.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_err_str.c -o ext/zip/lib/zip_err_str.lo +ext/zip/lib/zip_fopen_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index.c -o ext/zip/lib/zip_fopen_index.lo +ext/zip/lib/zip_get_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_archive_comment.c -o ext/zip/lib/zip_get_archive_comment.lo +ext/zip/lib/zip_get_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_comment.c -o ext/zip/lib/zip_get_file_comment.lo +ext/zip/lib/zip_new.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_new.c -o ext/zip/lib/zip_new.lo +ext/zip/lib/zip_source_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_file.c -o ext/zip/lib/zip_source_file.lo +ext/zip/lib/zip_stat_index.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_index.c -o ext/zip/lib/zip_stat_index.lo +ext/zip/lib/zip_set_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_archive_comment.c -o ext/zip/lib/zip_set_archive_comment.lo +ext/zip/lib/zip_set_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_comment.c -o ext/zip/lib/zip_set_file_comment.lo +ext/zip/lib/zip_unchange_archive.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_unchange_archive.c -o ext/zip/lib/zip_unchange_archive.lo +ext/zip/lib/zip_memdup.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_memdup.c -o ext/zip/lib/zip_memdup.lo +ext/zip/lib/zip_stat_init.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_stat_init.c -o ext/zip/lib/zip_stat_init.lo +ext/zip/lib/zip_add_dir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_add_dir.c -o ext/zip/lib/zip_add_dir.lo +ext/zip/lib/zip_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_error_clear.c -o ext/zip/lib/zip_error_clear.lo +ext/zip/lib/zip_file_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_file_error_clear.c -o ext/zip/lib/zip_file_error_clear.lo +ext/zip/lib/zip_fdopen.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fdopen.c -o ext/zip/lib/zip_fdopen.lo +ext/zip/lib/zip_fopen_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_encrypted.c -o ext/zip/lib/zip_fopen_encrypted.lo +ext/zip/lib/zip_fopen_index_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_fopen_index_encrypted.c -o ext/zip/lib/zip_fopen_index_encrypted.lo +ext/zip/lib/zip_get_compression_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_compression_implementation.c -o ext/zip/lib/zip_get_compression_implementation.lo +ext/zip/lib/zip_get_encryption_implementation.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_encryption_implementation.c -o ext/zip/lib/zip_get_encryption_implementation.lo +ext/zip/lib/zip_get_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_file_extra.c -o ext/zip/lib/zip_get_file_extra.lo +ext/zip/lib/zip_get_num_entries.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_get_num_entries.c -o ext/zip/lib/zip_get_num_entries.lo +ext/zip/lib/zip_set_default_password.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_default_password.c -o ext/zip/lib/zip_set_default_password.lo +ext/zip/lib/zip_set_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_set_file_extra.c -o ext/zip/lib/zip_set_file_extra.lo +ext/zip/lib/zip_source_close.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_close.c -o ext/zip/lib/zip_source_close.lo +ext/zip/lib/zip_source_crc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_crc.c -o ext/zip/lib/zip_source_crc.lo +ext/zip/lib/zip_source_deflate.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_deflate.c -o ext/zip/lib/zip_source_deflate.lo +ext/zip/lib/zip_source_error.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_error.c -o ext/zip/lib/zip_source_error.lo +ext/zip/lib/zip_source_layered.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_layered.c -o ext/zip/lib/zip_source_layered.lo +ext/zip/lib/zip_source_open.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_open.c -o ext/zip/lib/zip_source_open.lo +ext/zip/lib/zip_source_pkware.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pkware.c -o ext/zip/lib/zip_source_pkware.lo +ext/zip/lib/zip_source_pop.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_pop.c -o ext/zip/lib/zip_source_pop.lo +ext/zip/lib/zip_source_read.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_read.c -o ext/zip/lib/zip_source_read.lo +ext/zip/lib/zip_source_stat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/zip/lib/zip_source_stat.c -o ext/zip/lib/zip_source_stat.lo +ext/mysqlnd/mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd.c -o ext/mysqlnd/mysqlnd.lo +ext/mysqlnd/mysqlnd_charset.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_charset.c -o ext/mysqlnd/mysqlnd_charset.lo +ext/mysqlnd/mysqlnd_wireprotocol.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_wireprotocol.c -o ext/mysqlnd/mysqlnd_wireprotocol.lo +ext/mysqlnd/mysqlnd_loaddata.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_loaddata.c -o ext/mysqlnd/mysqlnd_loaddata.lo +ext/mysqlnd/mysqlnd_net.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_net.c -o ext/mysqlnd/mysqlnd_net.lo +ext/mysqlnd/mysqlnd_statistics.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_statistics.c -o ext/mysqlnd/mysqlnd_statistics.lo +ext/mysqlnd/mysqlnd_result.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result.c -o ext/mysqlnd/mysqlnd_result.lo +ext/mysqlnd/mysqlnd_result_meta.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_result_meta.c -o ext/mysqlnd/mysqlnd_result_meta.lo +ext/mysqlnd/mysqlnd_debug.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_debug.c -o ext/mysqlnd/mysqlnd_debug.lo +ext/mysqlnd/mysqlnd_block_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_block_alloc.c -o ext/mysqlnd/mysqlnd_block_alloc.lo +ext/mysqlnd/php_mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/php_mysqlnd.c -o ext/mysqlnd/php_mysqlnd.lo +ext/mysqlnd/mysqlnd_ps.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps.c -o ext/mysqlnd/mysqlnd_ps.lo +ext/mysqlnd/mysqlnd_ps_codec.lo: /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo +sapi/cli/php_cli.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo +sapi/cli/php_cli_readline.lo: /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo +TSRM/TSRM.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/TSRM.c -o TSRM/TSRM.lo +TSRM/tsrm_strtok_r.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r.lo +TSRM/tsrm_virtual_cwd.lo: /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.3.29/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/TSRM/tsrm_virtual_cwd.c -o TSRM/tsrm_virtual_cwd.lo +main/main.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/main.c -o main/main.lo +main/snprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/snprintf.c -o main/snprintf.lo +main/spprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/spprintf.c -o main/spprintf.lo +main/php_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_sprintf.c -o main/php_sprintf.lo +main/safe_mode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/safe_mode.c -o main/safe_mode.lo +main/fopen_wrappers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/fopen_wrappers.c -o main/fopen_wrappers.lo +main/alloca.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/alloca.c -o main/alloca.lo +main/php_scandir.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_scandir.c -o main/php_scandir.lo +main/php_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ini.c -o main/php_ini.lo +main/SAPI.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/SAPI.c -o main/SAPI.lo +main/rfc1867.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/rfc1867.c -o main/rfc1867.lo +main/php_content_types.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_content_types.c -o main/php_content_types.lo +main/strlcpy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcpy.c -o main/strlcpy.lo +main/strlcat.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/strlcat.c -o main/strlcat.lo +main/mergesort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/mergesort.c -o main/mergesort.lo +main/reentrancy.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/reentrancy.c -o main/reentrancy.lo +main/php_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_variables.c -o main/php_variables.lo +main/php_ticks.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_ticks.c -o main/php_ticks.lo +main/network.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/network.c -o main/network.lo +main/php_open_temporary_file.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo +main/php_logos.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/php_logos.c -o main/php_logos.lo +main/output.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/output.c -o main/output.lo +main/getopt.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/getopt.c -o main/getopt.lo +main/streams/streams.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/streams.c -o main/streams/streams.lo +main/streams/cast.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/cast.c -o main/streams/cast.lo +main/streams/memory.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/memory.c -o main/streams/memory.lo +main/streams/filter.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/filter.c -o main/streams/filter.lo +main/streams/plain_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/plain_wrapper.c -o main/streams/plain_wrapper.lo +main/streams/userspace.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/userspace.c -o main/streams/userspace.lo +main/streams/transports.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/transports.c -o main/streams/transports.lo +main/streams/xp_socket.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/xp_socket.c -o main/streams/xp_socket.lo +main/streams/mmap.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/mmap.c -o main/streams/mmap.lo +main/streams/glob_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/main/streams/glob_wrapper.c -o main/streams/glob_wrapper.lo +main/internal_functions.lo: main/internal_functions.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions.c -o main/internal_functions.lo +main/internal_functions_cli.lo: main/internal_functions_cli.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.3.29/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions_cli.c -o main/internal_functions_cli.lo +Zend/zend_language_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo +Zend/zend_ini_parser.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo +Zend/zend_alloc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_alloc.c -o Zend/zend_alloc.lo +Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_compile.c -o Zend/zend_compile.lo +Zend/zend_constants.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_constants.c -o Zend/zend_constants.lo +Zend/zend_dynamic_array.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_dynamic_array.c -o Zend/zend_dynamic_array.lo +Zend/zend_execute_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo +Zend/zend_highlight.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_highlight.c -o Zend/zend_highlight.lo +Zend/zend_llist.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_llist.c -o Zend/zend_llist.lo +Zend/zend_opcode.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_opcode.c -o Zend/zend_opcode.lo +Zend/zend_operators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_operators.c -o Zend/zend_operators.lo +Zend/zend_ptr_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ptr_stack.c -o Zend/zend_ptr_stack.lo +Zend/zend_stack.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stack.c -o Zend/zend_stack.lo +Zend/zend_variables.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_variables.c -o Zend/zend_variables.lo +Zend/zend.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend.c -o Zend/zend.lo +Zend/zend_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_API.c -o Zend/zend_API.lo +Zend/zend_extensions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_extensions.c -o Zend/zend_extensions.lo +Zend/zend_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_hash.c -o Zend/zend_hash.lo +Zend/zend_list.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_list.c -o Zend/zend_list.lo +Zend/zend_indent.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_indent.c -o Zend/zend_indent.lo +Zend/zend_builtin_functions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_builtin_functions.c -o Zend/zend_builtin_functions.lo +Zend/zend_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_sprintf.c -o Zend/zend_sprintf.lo +Zend/zend_ini.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ini.c -o Zend/zend_ini.lo +Zend/zend_qsort.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_qsort.c -o Zend/zend_qsort.lo +Zend/zend_multibyte.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_multibyte.c -o Zend/zend_multibyte.lo +Zend/zend_ts_hash.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_ts_hash.c -o Zend/zend_ts_hash.lo +Zend/zend_stream.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_stream.c -o Zend/zend_stream.lo +Zend/zend_iterators.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_iterators.c -o Zend/zend_iterators.lo +Zend/zend_interfaces.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_interfaces.c -o Zend/zend_interfaces.lo +Zend/zend_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_exceptions.c -o Zend/zend_exceptions.lo +Zend/zend_strtod.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_strtod.c -o Zend/zend_strtod.lo +Zend/zend_gc.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_gc.c -o Zend/zend_gc.lo +Zend/zend_closures.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_closures.c -o Zend/zend_closures.lo +Zend/zend_float.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_float.c -o Zend/zend_float.lo +Zend/zend_objects.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects.c -o Zend/zend_objects.lo +Zend/zend_object_handlers.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo +Zend/zend_objects_API.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo +Zend/zend_default_classes.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.3.29/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.3.29/Zend/zend_execute.c -o Zend/zend_execute.lo diff --git a/tests/fixtures/php/5.3.29/Makefile.in b/tests/fixtures/php/5.3.29/Makefile.in new file mode 100644 index 000000000..b340e9557 --- /dev/null +++ b/tests/fixtures/php/5.3.29/Makefile.in @@ -0,0 +1,14 @@ +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo +SAPI_CGI_PATH = sapi/cgi/php-cgi +BUILD_CGI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH) +EXTRA_LDFLAGS_PROGRAM = +EXTRA_LIBS = -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt +ZEND_EXTRA_LIBS = +libphp$(PHP_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_VERSION).so diff --git a/tests/fixtures/php/5.5.17/Makefile b/tests/fixtures/php/5.5.17/Makefile new file mode 100644 index 000000000..60b472da8 --- /dev/null +++ b/tests/fixtures/php/5.5.17/Makefile @@ -0,0 +1,1990 @@ +srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +top_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +top_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +EGREP = /usr/bin/grep -E +SED = /opt/local/bin/gsed +CONFIGURE_COMMAND = './configure' '--prefix=/Users/c9s/.phpbrew/php/php-5.5.17' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.5.17/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.5.17/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.5.17/lib/php' '--disable-all' '--enable-short-tags' '--with-zlib=/opt/local' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/opt/local' '--with-curl=/opt/local' '--with-readline=/opt/local' '--with-libedit=/opt/local' '--enable-session' '--enable-phpdbg' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-opcache' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/opt/local' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/opt/local' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' +CONFIGURE_OPTIONS = '--prefix=/Users/c9s/.phpbrew/php/php-5.5.17' '--with-config-file-path=/Users/c9s/.phpbrew/php/php-5.5.17/etc' '--with-config-file-scan-dir=/Users/c9s/.phpbrew/php/php-5.5.17/var/db' '--with-pear=/Users/c9s/.phpbrew/php/php-5.5.17/lib/php' '--disable-all' '--enable-short-tags' '--with-zlib=/opt/local' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pgsql=/opt/local/lib/postgresql92/bin' '--with-pdo-pgsql=/opt/local/lib/postgresql92/bin' '--enable-fpm' '--with-sqlite3' '--with-pdo-sqlite' '--enable-pcntl' '--enable-posix' '--with-gettext=/opt/local' '--enable-intl' '--with-openssl=/opt/local' '--with-curl=/opt/local' '--with-readline=/opt/local' '--with-libedit=/opt/local' '--enable-session' '--enable-phpdbg' '--enable-soap' '--enable-bcmath' '--enable-exif' '--enable-fileinfo' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-imap-ssl' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/opt/local' '--enable-opcache' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/opt/local' '--enable-maintainer-zts' '--with-icu-dir=/opt/local/lib' '--with-bz2=/opt/local' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--with-mcrypt=/opt/local' '--with-pcre-regex' '--with-pcre-dir=/opt/local' '--enable-phar' '--enable-sockets' '--enable-tokenizer' '--enable-zip' '--with-icu-dir=/opt/local' +PHP_MAJOR_VERSION = 5 +PHP_MINOR_VERSION = 5 +PHP_RELEASE_VERSION = 17 +PHP_EXTRA_VERSION = +AWK = gawk +YACC = bison -y +RE2C = re2c +RE2C_FLAGS = +SHLIB_SUFFIX_NAME = dylib +SHLIB_DL_SUFFIX_NAME = so +PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo sapi/cli/ps_title.lo sapi/cli/php_cli_process_title.lo +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +SAPI_CLI_PATH = sapi/cli/php +BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH) +php_fpm_systemd = simple +php_fpm_user = nobody +php_fpm_group = nobody +php_fpm_sysconfdir = /Users/c9s/.phpbrew/php/php-5.5.17/etc +php_fpm_localstatedir = /Users/c9s/.phpbrew/php/php-5.5.17/var +php_fpm_prefix = /Users/c9s/.phpbrew/php/php-5.5.17 +PHP_FPM_OBJS = sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_log.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_scoreboard.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/events/select.lo sapi/fpm/fpm/events/poll.lo sapi/fpm/fpm/events/epoll.lo sapi/fpm/fpm/events/kqueue.lo sapi/fpm/fpm/events/devpoll.lo sapi/fpm/fpm/events/port.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_mach.lo +SAPI_FPM_PATH = sapi/fpm/php-fpm +BUILD_FPM = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_FPM_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(FPM_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) +PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo +SAPI_CGI_PATH = sapi/cgi/php-cgi +BUILD_CGI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_BINARY_OBJS:.lo=.o) $(PHP_CGI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH) +PROG_SENDMAIL = /usr/sbin/sendmail +OPENSSL_SHARED_LIBADD = +SQLITE3_SHARED_LIBADD = +ZLIB_SHARED_LIBADD = +BZ2_SHARED_LIBADD = +CURL_SHARED_LIBADD = +DOM_SHARED_LIBADD = +FILTER_SHARED_LIBADD = +GETTEXT_SHARED_LIBADD = +INTL_SHARED_LIBADD = +JSON_SHARED_LIBADD = +MBSTRING_SHARED_LIBADD = +MCRYPT_SHARED_LIBADD = +MYSQL_SHARED_LIBADD = +MYSQLI_SHARED_LIBADD = +shared_objects_opcache = ext/opcache/ZendAccelerator.lo ext/opcache/zend_accelerator_blacklist.lo ext/opcache/zend_accelerator_debug.lo ext/opcache/zend_accelerator_hash.lo ext/opcache/zend_accelerator_module.lo ext/opcache/zend_persist.lo ext/opcache/zend_persist_calc.lo ext/opcache/zend_shared_alloc.lo ext/opcache/zend_accelerator_util_funcs.lo ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo ext/opcache/shared_alloc_posix.lo ext/opcache/Optimizer/zend_optimizer.lo +PDO_MYSQL_SHARED_LIBADD = +PDO_MYSQL_MODULE_TYPE = external +PDO_PGSQL_SHARED_LIBADD = +PDO_SQLITE_SHARED_LIBADD = +PGSQL_SHARED_LIBADD = +READLINE_SHARED_LIBADD = +SESSION_SHARED_LIBADD = +SIMPLEXML_SHARED_LIBADD = +SOAP_SHARED_LIBADD = +XML_SHARED_LIBADD = +XMLREADER_SHARED_LIBADD = +XMLWRITER_SHARED_LIBADD = +XSL_SHARED_LIBADD = +ZIP_SHARED_LIBADD = +PHP_INSTALLED_SAPIS = cli fpm cgi +PHP_EXECUTABLE = $(top_builddir)/$(SAPI_CLI_PATH) +PHP_SAPI_OBJS = main/internal_functions.lo +PHP_BINARY_OBJS = main/internal_functions_cli.lo +PHP_GLOBAL_OBJS = ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/share.lo ext/curl/curl_file.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/gettext/gettext.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/intl/php_intl.lo ext/intl/intl_error.lo ext/intl/intl_convert.lo ext/intl/intl_convertcpp.lo ext/intl/collator/collator.lo ext/intl/collator/collator_class.lo ext/intl/collator/collator_sort.lo ext/intl/collator/collator_convert.lo ext/intl/collator/collator_locale.lo ext/intl/collator/collator_compare.lo ext/intl/collator/collator_attr.lo ext/intl/collator/collator_create.lo ext/intl/collator/collator_is_numeric.lo ext/intl/collator/collator_error.lo ext/intl/common/common_error.lo ext/intl/common/common_enum.lo ext/intl/common/common_date.lo ext/intl/converter/converter.lo ext/intl/formatter/formatter.lo ext/intl/formatter/formatter_main.lo ext/intl/formatter/formatter_class.lo ext/intl/formatter/formatter_attr.lo ext/intl/formatter/formatter_data.lo ext/intl/formatter/formatter_format.lo ext/intl/formatter/formatter_parse.lo ext/intl/normalizer/normalizer.lo ext/intl/normalizer/normalizer_class.lo ext/intl/normalizer/normalizer_normalize.lo ext/intl/locale/locale.lo ext/intl/locale/locale_class.lo ext/intl/locale/locale_methods.lo ext/intl/dateformat/dateformat.lo ext/intl/dateformat/dateformat_class.lo ext/intl/dateformat/dateformat_attr.lo ext/intl/dateformat/dateformat_data.lo ext/intl/dateformat/dateformat_format.lo ext/intl/dateformat/dateformat_format_object.lo ext/intl/dateformat/dateformat_parse.lo ext/intl/dateformat/dateformat_create.lo ext/intl/dateformat/dateformat_attrcpp.lo ext/intl/dateformat/dateformat_helpers.lo ext/intl/msgformat/msgformat.lo ext/intl/msgformat/msgformat_attr.lo ext/intl/msgformat/msgformat_class.lo ext/intl/msgformat/msgformat_data.lo ext/intl/msgformat/msgformat_format.lo ext/intl/msgformat/msgformat_helpers.lo ext/intl/msgformat/msgformat_parse.lo ext/intl/grapheme/grapheme_string.lo ext/intl/grapheme/grapheme_util.lo ext/intl/resourcebundle/resourcebundle.lo ext/intl/resourcebundle/resourcebundle_class.lo ext/intl/resourcebundle/resourcebundle_iterator.lo ext/intl/transliterator/transliterator.lo ext/intl/transliterator/transliterator_class.lo ext/intl/transliterator/transliterator_methods.lo ext/intl/timezone/timezone_class.lo ext/intl/timezone/timezone_methods.lo ext/intl/calendar/calendar_class.lo ext/intl/calendar/calendar_methods.lo ext/intl/calendar/gregoriancalendar_methods.lo ext/intl/breakiterator/breakiterator_class.lo ext/intl/breakiterator/breakiterator_iterators.lo ext/intl/breakiterator/breakiterator_methods.lo ext/intl/breakiterator/rulebasedbreakiterator_methods.lo ext/intl/breakiterator/codepointiterator_internal.lo ext/intl/breakiterator/codepointiterator_methods.lo ext/intl/idn/idn.lo ext/intl/spoofchecker/spoofchecker_class.lo ext/intl/spoofchecker/spoofchecker.lo ext/intl/spoofchecker/spoofchecker_create.lo ext/intl/spoofchecker/spoofchecker_main.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/mysqli/mysqli_result_iterator.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_mysql/pdo_mysql.lo ext/pdo_mysql/mysql_driver.lo ext/pdo_mysql/mysql_statement.lo ext/pdo_pgsql/pdo_pgsql.lo ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/readline/readline.lo ext/readline/readline_cli.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/sockets/multicast.lo ext/sockets/conversions.lo ext/sockets/sockaddr_conv.lo ext/sockets/sendrecvmsg.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo ext/mysqlnd/mysqlnd.lo ext/mysqlnd/mysqlnd_alloc.lo ext/mysqlnd/mysqlnd_bt.lo ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo ext/mysqlnd/mysqlnd_loaddata.lo ext/mysqlnd/mysqlnd_reverse_api.lo ext/mysqlnd/mysqlnd_net.lo ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_driver.lo ext/mysqlnd/mysqlnd_ext_plugin.lo ext/mysqlnd/mysqlnd_auth.lo ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/mysqlnd_plugin.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo +PHP_BINARIES = cli fpm cgi +PHP_MODULES = +PHP_ZEND_EX = $(phplibdir)/opcache.la +EXT_LIBS = +abs_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +abs_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +php_abs_top_builddir = /Users/c9s/.phpbrew/build/php-5.5.17 +php_abs_top_srcdir = /Users/c9s/.phpbrew/build/php-5.5.17 +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +exec_prefix = ${prefix} +program_prefix = +program_suffix = +includedir = ${prefix}/include +libdir = ${exec_prefix}/lib/php +mandir = ${datarootdir}/man +phplibdir = /Users/c9s/.phpbrew/build/php-5.5.17/modules +phptempdir = /Users/c9s/.phpbrew/build/php-5.5.17/libs +prefix = /Users/c9s/.phpbrew/php/php-5.5.17 +localstatedir = ${prefix}/var +datadir = ${datarootdir} +datarootdir = /Users/c9s/.phpbrew/php/php-5.5.17/php +sysconfdir = ${prefix}/etc +EXEEXT = +CC = cc +CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static +CFLAGS_CLEAN = -g -O2 -fvisibility=hidden -DZTS +CPP = cc -E +CPPFLAGS = -no-cpp-precomp +CXX = g++ +CXXFLAGS = -g -O2 -prefer-non-pic -static +CXXFLAGS_CLEAN = -g -O2 +DEBUG_CFLAGS = +EXTENSION_DIR = /Users/c9s/.phpbrew/php/php-5.5.17/lib/php/extensions/no-debug-zts-20121212 +EXTRA_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LDFLAGS_PROGRAM = -L/opt/local/lib -L/opt/local/lib/postgresql92 +EXTRA_LIBS = -lcrypto -lssl -lcrypto -lz -lexslt -lresolv -ledit -lncurses -lpq -lpq -lmcrypt -lltdl -lstdc++ -lintl -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lxslt +ZEND_EXTRA_LIBS = +INCLUDES = -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex -I/opt/local/include/libxml2 -I/opt/local/include -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl -I/opt/local/include/postgresql92 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -I/usr/include/libxml2 -I$(top_builddir)/TSRM -I$(top_builddir)/Zend +EXTRA_INCLUDES = +INCLUDE_PATH = .:/Users/c9s/.phpbrew/php/php-5.5.17/lib/php +INSTALL_IT = +LFLAGS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent --preserve-dup-deps +LN_S = ln -s +NATIVE_RPATHS = -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/local/lib/postgresql92 +PEAR_INSTALLDIR = /Users/c9s/.phpbrew/php/php-5.5.17/lib/php +PHP_BUILD_DATE = 2014-12-08 +PHP_LDFLAGS = -L/opt/local/lib -L/opt/local/lib/postgresql92 +PHP_LIBS = +OVERALL_TARGET = +PHP_RPATHS = -R /opt/local/lib -R /opt/local/lib/postgresql92 +PHP_SAPI = none +PHP_VERSION = 5.5.17 +PHP_VERSION_ID = 50517 +SHELL = /bin/sh +SHARED_LIBTOOL = $(LIBTOOL) +WARNING_LEVEL = +PHP_FRAMEWORKS = +PHP_FRAMEWORKPATH = +INSTALL_HEADERS = sapi/cli/cli.h ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h ext/date/lib/timelib_config.h ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/ ext/libxml/php_libxml.h ext/pcre/php_pcre.h ext/pcre/pcrelib/ ext/sqlite3/libsqlite/sqlite3.h ext/dom/xml_common.h ext/filter/php_filter.h ext/hash/php_hash.h ext/hash/php_hash_md.h ext/hash/php_hash_sha.h ext/hash/php_hash_ripemd.h ext/hash/php_hash_haval.h ext/hash/php_hash_tiger.h ext/hash/php_hash_gost.h ext/hash/php_hash_snefru.h ext/hash/php_hash_whirlpool.h ext/hash/php_hash_adler32.h ext/hash/php_hash_crc32.h ext/hash/php_hash_fnv.h ext/hash/php_hash_joaat.h ext/hash/php_hash_types.h ext/json/php_json.h ext/mbstring/oniguruma/oniguruma.h ext/mbstring/php_mbregex.h ext/mbstring/php_onig_compat.h ext/mbstring/libmbfl/config.h ext/mbstring/libmbfl/mbfl/eaw_table.h ext/mbstring/libmbfl/mbfl/mbfilter.h ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h ext/mbstring/libmbfl/mbfl/mbfilter_pass.h ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h ext/mbstring/libmbfl/mbfl/mbfl_allocators.h ext/mbstring/libmbfl/mbfl/mbfl_consts.h ext/mbstring/libmbfl/mbfl/mbfl_convert.h ext/mbstring/libmbfl/mbfl/mbfl_defs.h ext/mbstring/libmbfl/mbfl/mbfl_encoding.h ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h ext/mbstring/libmbfl/mbfl/mbfl_ident.h ext/mbstring/libmbfl/mbfl/mbfl_language.h ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h ext/mbstring/libmbfl/mbfl/mbfl_string.h ext/mbstring/mbstring.h ext/mysqli/php_mysqli_structs.h ext/mysqli/mysqli_mysqlnd.h ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/phar/php_phar.h ext/session/php_session.h ext/session/mod_files.h ext/session/mod_user.h ext/sockets//php_sockets.h ext/spl/php_spl.h ext/spl/spl_array.h ext/spl/spl_directory.h ext/spl/spl_engine.h ext/spl/spl_exceptions.h ext/spl/spl_functions.h ext/spl/spl_iterators.h ext/spl/spl_observer.h ext/spl/spl_dllist.h ext/spl/spl_heap.h ext/spl/spl_fixedarray.h ext/standard/ ext/xml/ ext/mysqlnd/ Zend/ TSRM/ include/ main/ main/streams/ +ZEND_EXT_TYPE = zend_extension +all_targets = $(OVERALL_TARGET) $(PHP_MODULES) $(PHP_ZEND_EX) $(PHP_BINARIES) pharcmd +install_targets = install-modules install-binaries install-build install-headers install-programs install-pear install-pharcmd +install_binary_targets = install-cli install-fpm install-cgi +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h + rm -f php5.spec main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/mysqlnd/php_mysqlnd_config.h + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: +cli: $(SAPI_CLI_PATH) + +$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS) + $(BUILD_CLI) + +install-cli: $(SAPI_CLI_PATH) + @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @$(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT) + @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1 + +fpm: $(SAPI_FPM_PATH) + +$(SAPI_FPM_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FPM_OBJS) + $(BUILD_FPM) + +install-fpm: $(SAPI_FPM_PATH) + @echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(sbindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir) + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log + @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run + @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) + + @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : + + @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8 + @$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8 + + @echo "Installing PHP FPM status page: $(INSTALL_ROOT)$(datadir)/fpm/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm + @$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html +cgi: $(SAPI_CGI_PATH) + +$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS) + $(BUILD_CGI) + +install-cgi: $(SAPI_CGI_PATH) + @echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT) + @echo "Installing PHP CGI man page: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) sapi/cgi/php-cgi.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php-cgi$(program_suffix).1 + + +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/data_file.c +phpincludedir=$(prefix)/include/php + +PDO_HEADER_FILES= \ + php_pdo.h \ + php_pdo_driver.h + + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.re + (cd $(top_srcdir); $(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re) + +install-pdo-headers: + @echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo + @for f in $(PDO_HEADER_FILES); do \ + if test -f "$(top_srcdir)/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + elif test -f "$(top_builddir)/ext/pdo/$$f"; then \ + $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \ + else \ + echo "hmmm"; \ + fi \ + done; + +# mini hack +install: $(all_targets) $(install_targets) install-pdo-headers + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re) + +pharcmd: ext/phar/phar.php ext/phar/phar.phar + +PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' +PHP_PHARCMD_EXECUTABLE = ` \ + if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ + $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ + if test "x$(PHP_MODULES)" != "x"; then \ + $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ + for i in bz2 zlib phar; do \ + if test -f "$(top_builddir)/modules/$$i.la"; then \ + . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + fi; \ + done; \ + fi; \ + else \ + $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ + fi;` +PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + +ext/phar/phar/phar.inc: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.inc + -@test -d ext/phar/phar || mkdir ext/phar/phar + -@test -f ext/phar/phar/phar.inc || cp /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.inc ext/phar/phar/phar.inc + +ext/phar/phar.php: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/build_precommand.php /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.php" + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/build_precommand.php > ext/phar/phar.php + +ext/phar/phar.phar: ext/phar/phar.php ext/phar/phar/phar.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.inc /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/*.php $(SAPI_CLI_PATH) + -@echo "Generating phar.phar" + -@rm -f ext/phar/phar.phar + -@rm -f /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.phar + @$(PHP_PHARCMD_EXECUTABLE) $(PHP_PHARCMD_SETTINGS) ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/phar.php -h sha1 -b "$(PHP_PHARCMD_BANG)" /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar/ + -@chmod +x ext/phar/phar.phar + +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + $(INSTALL) ext/phar/phar.phar $(INSTALL_ROOT)$(bindir) + -@rm -f $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f $(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @$(INSTALL_DATA) ext/phar/phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.1 + @$(INSTALL_DATA) ext/phar/phar.phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.phar.1 + + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) + +/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.re + @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) + +ext/standard/info.lo: ext/standard/../../main/build-defs.h + +ext/standard/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h +$(top_srcdir)/Zend/zend_language_parser.c: +$(top_srcdir)/Zend/zend_language_scanner.c: +ext/tokenizer/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c +# -*- makefile -*- + +peardir=$(PEAR_INSTALLDIR) + +# Skip all php.ini files altogether +PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 + +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` +PEAR_PREFIX = -dp a${program_prefix} +PEAR_SUFFIX = -ds a$(program_suffix) + +install-pear-installer: $(SAPI_CLI_PATH) + @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + +install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" + @if test ! -f pear/install-pear-nozlib.phar; then \ + if test -f /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear-nozlib.phar; then \ + cp /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + else \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P pear/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o pear/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n /Users/c9s/.phpbrew/build/php-5.5.17/pear/fetch.php http://pear.php.net/install-pear-nozlib.phar pear/install-pear-nozlib.phar; \ + fi \ + fi \ + fi + @if test -f pear/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ + $(MAKE) -s install-pear-installer; \ + else \ + cat /Users/c9s/.phpbrew/build/php-5.5.17/pear/install-pear.txt; \ + fi + + +# +# Build environment install +# + +phpincludedir = $(includedir)/php +phpbuilddir = $(libdir)/build + +BUILD_FILES = \ + scripts/phpize.m4 \ + build/mkdep.awk \ + build/scan_makefile_in.awk \ + build/libtool.m4 \ + Makefile.global \ + acinclude.m4 \ + ltmain.sh \ + run-tests.php + +BUILD_FILES_EXEC = \ + build/shtool \ + config.guess \ + config.sub + +bin_SCRIPTS = phpize php-config +man_PAGES = phpize php-config + +install-build: + @echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ + (cd $(top_srcdir) && \ + $(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \ + $(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) + +install-programs: scripts/phpize scripts/php-config + @echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @for prog in $(bin_SCRIPTS); do \ + echo " program: $(program_prefix)$${prog}$(program_suffix)"; \ + $(INSTALL) -m 755 scripts/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \ + done + @echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/" + @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 + @for page in $(man_PAGES); do \ + echo " page: $(program_prefix)$${page}$(program_suffix).1"; \ + $(INSTALL_DATA) scripts/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \ + done + +scripts/phpize: /Users/c9s/.phpbrew/build/php-5.5.17/scripts/phpize.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +scripts/php-config: /Users/c9s/.phpbrew/build/php-5.5.17/scripts/php-config.in $(top_builddir)/config.status + (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status) + +# +# Zend +# + +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.h + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l) + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.y + @$(YACC) -p zend -v -d /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.h: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.y + @$(YACC) -p ini_ -v -d /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.y -o $@ + +/Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.l + @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l) + +Zend/zend_indent.lo Zend/zend_highlight.lo Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.h +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_execute.h /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.h +sapi/cli/php_cli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo +sapi/cli/php_http_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_http_parser.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_http_parser.c -o sapi/cli/php_http_parser.lo +sapi/cli/php_cli_server.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_server.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_server.c -o sapi/cli/php_cli_server.lo +sapi/cli/ps_title.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ps_title.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ps_title.c -o sapi/cli/ps_title.lo +sapi/cli/php_cli_process_title.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_process_title.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cli/php_cli_process_title.c -o sapi/cli/php_cli_process_title.lo +sapi/fpm/fpm/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo +sapi/fpm/fpm/fpm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo +sapi/fpm/fpm/fpm_children.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_children.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo +sapi/fpm/fpm/fpm_cleanup.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_cleanup.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_cleanup.c -o sapi/fpm/fpm/fpm_cleanup.lo +sapi/fpm/fpm/fpm_clock.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_clock.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_clock.c -o sapi/fpm/fpm/fpm_clock.lo +sapi/fpm/fpm/fpm_conf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_conf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_conf.c -o sapi/fpm/fpm/fpm_conf.lo +sapi/fpm/fpm/fpm_env.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_env.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_env.c -o sapi/fpm/fpm/fpm_env.lo +sapi/fpm/fpm/fpm_events.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_events.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_events.c -o sapi/fpm/fpm/fpm_events.lo +sapi/fpm/fpm/fpm_log.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_log.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_log.c -o sapi/fpm/fpm/fpm_log.lo +sapi/fpm/fpm/fpm_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_main.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo +sapi/fpm/fpm/fpm_php.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo +sapi/fpm/fpm/fpm_php_trace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_php_trace.c -o sapi/fpm/fpm/fpm_php_trace.lo +sapi/fpm/fpm/fpm_process_ctl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_process_ctl.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_process_ctl.c -o sapi/fpm/fpm/fpm_process_ctl.lo +sapi/fpm/fpm/fpm_request.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_request.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_request.c -o sapi/fpm/fpm/fpm_request.lo +sapi/fpm/fpm/fpm_shm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_shm.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_shm.c -o sapi/fpm/fpm/fpm_shm.lo +sapi/fpm/fpm/fpm_scoreboard.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_scoreboard.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_scoreboard.c -o sapi/fpm/fpm/fpm_scoreboard.lo +sapi/fpm/fpm/fpm_signals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_signals.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_signals.c -o sapi/fpm/fpm/fpm_signals.lo +sapi/fpm/fpm/fpm_sockets.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_sockets.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_sockets.c -o sapi/fpm/fpm/fpm_sockets.lo +sapi/fpm/fpm/fpm_status.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_status.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_status.c -o sapi/fpm/fpm/fpm_status.lo +sapi/fpm/fpm/fpm_stdio.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_stdio.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_stdio.c -o sapi/fpm/fpm/fpm_stdio.lo +sapi/fpm/fpm/fpm_unix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_unix.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_unix.c -o sapi/fpm/fpm/fpm_unix.lo +sapi/fpm/fpm/fpm_worker_pool.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_worker_pool.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_worker_pool.c -o sapi/fpm/fpm/fpm_worker_pool.lo +sapi/fpm/fpm/zlog.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/zlog.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/zlog.c -o sapi/fpm/fpm/zlog.lo +sapi/fpm/fpm/events/select.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/select.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/select.c -o sapi/fpm/fpm/events/select.lo +sapi/fpm/fpm/events/poll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/poll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/poll.c -o sapi/fpm/fpm/events/poll.lo +sapi/fpm/fpm/events/epoll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/epoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/epoll.c -o sapi/fpm/fpm/events/epoll.lo +sapi/fpm/fpm/events/kqueue.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/kqueue.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/kqueue.c -o sapi/fpm/fpm/events/kqueue.lo +sapi/fpm/fpm/events/devpoll.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/devpoll.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/devpoll.c -o sapi/fpm/fpm/events/devpoll.lo +sapi/fpm/fpm/events/port.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/port.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/events/port.c -o sapi/fpm/fpm/events/port.lo +sapi/fpm/fpm/fpm_trace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace.c -o sapi/fpm/fpm/fpm_trace.lo +sapi/fpm/fpm/fpm_trace_mach.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace_mach.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm -Isapi/fpm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/fpm/fpm/fpm_trace_mach.c -o sapi/fpm/fpm/fpm_trace_mach.lo +sapi/cgi/cgi_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/cgi_main.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cgi/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/cgi_main.c -o sapi/cgi/cgi_main.lo +sapi/cgi/fastcgi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/fastcgi.c + $(LIBTOOL) --mode=compile $(CC) -Isapi/cgi/ -I/Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/sapi/cgi/fastcgi.c -o sapi/cgi/fastcgi.lo +ext/date/php_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/php_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/php_date.c -o ext/date/php_date.lo +ext/date/lib/astro.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/astro.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/astro.c -o ext/date/lib/astro.lo +ext/date/lib/dow.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/dow.c -o ext/date/lib/dow.lo +ext/date/lib/parse_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_date.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo +ext/date/lib/parse_tz.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_tz.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo +ext/date/lib/timelib.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/timelib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/timelib.c -o ext/date/lib/timelib.lo +ext/date/lib/tm2unixtime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/tm2unixtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/tm2unixtime.c -o ext/date/lib/tm2unixtime.lo +ext/date/lib/unixtime2tm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/unixtime2tm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/unixtime2tm.c -o ext/date/lib/unixtime2tm.lo +ext/date/lib/parse_iso_intervals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_iso_intervals.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/parse_iso_intervals.c -o ext/date/lib/parse_iso_intervals.lo +ext/date/lib/interval.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/interval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/date/lib -Iext/date/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/date/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/date/lib/interval.c -o ext/date/lib/interval.lo +ext/ereg/ereg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ereg.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ereg.c -o ext/ereg/ereg.lo +ext/ereg/regex/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regcomp.c -o ext/ereg/regex/regcomp.lo +ext/ereg/regex/regexec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regexec.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regexec.c -o ext/ereg/regex/regexec.lo +ext/ereg/regex/regerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regerror.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regerror.c -o ext/ereg/regex/regerror.lo +ext/ereg/regex/regfree.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regfree.c + $(LIBTOOL) --mode=compile $(CC) -Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp -Iext/ereg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ereg/regex/regfree.c -o ext/ereg/regex/regfree.lo +ext/libxml/libxml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/libxml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/libxml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/libxml/libxml.c -o ext/libxml/libxml.lo +ext/openssl/openssl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/openssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/openssl.c -o ext/openssl/openssl.lo +ext/openssl/xp_ssl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/xp_ssl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/openssl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo +ext/pcre/pcrelib/pcre_chartables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_chartables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo +ext/pcre/pcrelib/pcre_ucd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ucd.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ucd.c -o ext/pcre/pcrelib/pcre_ucd.lo +ext/pcre/pcrelib/pcre_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_compile.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_compile.c -o ext/pcre/pcrelib/pcre_compile.lo +ext/pcre/pcrelib/pcre_config.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_config.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_config.c -o ext/pcre/pcrelib/pcre_config.lo +ext/pcre/pcrelib/pcre_exec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_exec.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_exec.c -o ext/pcre/pcrelib/pcre_exec.lo +ext/pcre/pcrelib/pcre_fullinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_fullinfo.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_fullinfo.c -o ext/pcre/pcrelib/pcre_fullinfo.lo +ext/pcre/pcrelib/pcre_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_get.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_get.c -o ext/pcre/pcrelib/pcre_get.lo +ext/pcre/pcrelib/pcre_globals.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_globals.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_globals.c -o ext/pcre/pcrelib/pcre_globals.lo +ext/pcre/pcrelib/pcre_maketables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_maketables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_maketables.c -o ext/pcre/pcrelib/pcre_maketables.lo +ext/pcre/pcrelib/pcre_newline.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_newline.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_newline.c -o ext/pcre/pcrelib/pcre_newline.lo +ext/pcre/pcrelib/pcre_ord2utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ord2utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_ord2utf8.c -o ext/pcre/pcrelib/pcre_ord2utf8.lo +ext/pcre/pcrelib/pcre_refcount.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_refcount.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_refcount.c -o ext/pcre/pcrelib/pcre_refcount.lo +ext/pcre/pcrelib/pcre_study.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_study.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_study.c -o ext/pcre/pcrelib/pcre_study.lo +ext/pcre/pcrelib/pcre_tables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_tables.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_tables.c -o ext/pcre/pcrelib/pcre_tables.lo +ext/pcre/pcrelib/pcre_valid_utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_valid_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_valid_utf8.c -o ext/pcre/pcrelib/pcre_valid_utf8.lo +ext/pcre/pcrelib/pcre_version.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_version.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_version.c -o ext/pcre/pcrelib/pcre_version.lo +ext/pcre/pcrelib/pcre_xclass.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_xclass.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib/pcre_xclass.c -o ext/pcre/pcrelib/pcre_xclass.lo +ext/pcre/php_pcre.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/php_pcre.c + $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/pcrelib -Iext/pcre/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo +ext/sqlite3/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/sqlite3.c -o ext/sqlite3/sqlite3.lo +ext/sqlite3/libsqlite/sqlite3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite/sqlite3.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=1 -Iext/sqlite3/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo +ext/zlib/zlib.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib.c -o ext/zlib/zlib.lo +ext/zlib/zlib_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo +ext/zlib/zlib_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zlib/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zlib/zlib_filter.c -o ext/zlib/zlib_filter.lo +ext/bcmath/bcmath.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/bcmath.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo +ext/bcmath/libbcmath/src/add.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/add.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/add.c -o ext/bcmath/libbcmath/src/add.lo +ext/bcmath/libbcmath/src/div.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/div.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/div.c -o ext/bcmath/libbcmath/src/div.lo +ext/bcmath/libbcmath/src/init.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/init.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/init.c -o ext/bcmath/libbcmath/src/init.lo +ext/bcmath/libbcmath/src/neg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/neg.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/neg.c -o ext/bcmath/libbcmath/src/neg.lo +ext/bcmath/libbcmath/src/outofmem.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/outofmem.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/outofmem.c -o ext/bcmath/libbcmath/src/outofmem.lo +ext/bcmath/libbcmath/src/raisemod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raisemod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo +ext/bcmath/libbcmath/src/rt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rt.c -o ext/bcmath/libbcmath/src/rt.lo +ext/bcmath/libbcmath/src/sub.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sub.c -o ext/bcmath/libbcmath/src/sub.lo +ext/bcmath/libbcmath/src/compare.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/compare.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/compare.c -o ext/bcmath/libbcmath/src/compare.lo +ext/bcmath/libbcmath/src/divmod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/divmod.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/divmod.c -o ext/bcmath/libbcmath/src/divmod.lo +ext/bcmath/libbcmath/src/int2num.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/int2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/int2num.c -o ext/bcmath/libbcmath/src/int2num.lo +ext/bcmath/libbcmath/src/num2long.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2long.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2long.c -o ext/bcmath/libbcmath/src/num2long.lo +ext/bcmath/libbcmath/src/output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/output.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/output.c -o ext/bcmath/libbcmath/src/output.lo +ext/bcmath/libbcmath/src/recmul.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/recmul.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/recmul.c -o ext/bcmath/libbcmath/src/recmul.lo +ext/bcmath/libbcmath/src/sqrt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sqrt.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/sqrt.c -o ext/bcmath/libbcmath/src/sqrt.lo +ext/bcmath/libbcmath/src/zero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/zero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/zero.c -o ext/bcmath/libbcmath/src/zero.lo +ext/bcmath/libbcmath/src/debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/debug.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/debug.c -o ext/bcmath/libbcmath/src/debug.lo +ext/bcmath/libbcmath/src/doaddsub.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/doaddsub.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/doaddsub.c -o ext/bcmath/libbcmath/src/doaddsub.lo +ext/bcmath/libbcmath/src/nearzero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/nearzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/nearzero.c -o ext/bcmath/libbcmath/src/nearzero.lo +ext/bcmath/libbcmath/src/num2str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2str.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/num2str.c -o ext/bcmath/libbcmath/src/num2str.lo +ext/bcmath/libbcmath/src/raise.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raise.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/raise.c -o ext/bcmath/libbcmath/src/raise.lo +ext/bcmath/libbcmath/src/rmzero.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rmzero.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/rmzero.c -o ext/bcmath/libbcmath/src/rmzero.lo +ext/bcmath/libbcmath/src/str2num.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/str2num.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bcmath/libbcmath/src/str2num.c -o ext/bcmath/libbcmath/src/str2num.lo +ext/bz2/bz2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2.c -o ext/bz2/bz2.lo +ext/bz2/bz2_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/bz2/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo +ext/calendar/calendar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/calendar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/calendar.c -o ext/calendar/calendar.lo +ext/calendar/dow.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/dow.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/dow.c -o ext/calendar/dow.lo +ext/calendar/french.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/french.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/french.c -o ext/calendar/french.lo +ext/calendar/gregor.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/gregor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/gregor.c -o ext/calendar/gregor.lo +ext/calendar/jewish.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/jewish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/jewish.c -o ext/calendar/jewish.lo +ext/calendar/julian.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/julian.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/julian.c -o ext/calendar/julian.lo +ext/calendar/easter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/easter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/easter.c -o ext/calendar/easter.lo +ext/calendar/cal_unix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/cal_unix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/calendar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/calendar/cal_unix.c -o ext/calendar/cal_unix.lo +ext/ctype/ctype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ctype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/ctype/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/ctype/ctype.c -o ext/ctype/ctype.lo +ext/curl/interface.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/interface.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/interface.c -o ext/curl/interface.lo +ext/curl/multi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/multi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/multi.c -o ext/curl/multi.lo +ext/curl/share.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/share.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/share.c -o ext/curl/share.lo +ext/curl/curl_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/curl_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/curl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/curl/curl_file.c -o ext/curl/curl_file.lo +ext/dom/php_dom.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/php_dom.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/php_dom.c -o ext/dom/php_dom.lo +ext/dom/attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/attr.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/attr.c -o ext/dom/attr.lo +ext/dom/document.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/document.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/document.c -o ext/dom/document.lo +ext/dom/domerrorhandler.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerrorhandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerrorhandler.c -o ext/dom/domerrorhandler.lo +ext/dom/domstringlist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domstringlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domstringlist.c -o ext/dom/domstringlist.lo +ext/dom/domexception.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domexception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domexception.c -o ext/dom/domexception.lo +ext/dom/namelist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namelist.c -o ext/dom/namelist.lo +ext/dom/processinginstruction.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/processinginstruction.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/processinginstruction.c -o ext/dom/processinginstruction.lo +ext/dom/cdatasection.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/cdatasection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/cdatasection.c -o ext/dom/cdatasection.lo +ext/dom/documentfragment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documentfragment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documentfragment.c -o ext/dom/documentfragment.lo +ext/dom/domimplementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo +ext/dom/element.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/element.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/element.c -o ext/dom/element.lo +ext/dom/node.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/node.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/node.c -o ext/dom/node.lo +ext/dom/string_extend.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/string_extend.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/string_extend.c -o ext/dom/string_extend.lo +ext/dom/characterdata.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/characterdata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/characterdata.c -o ext/dom/characterdata.lo +ext/dom/documenttype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documenttype.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/documenttype.c -o ext/dom/documenttype.lo +ext/dom/domimplementationlist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationlist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo +ext/dom/entity.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entity.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entity.c -o ext/dom/entity.lo +ext/dom/nodelist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/nodelist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/nodelist.c -o ext/dom/nodelist.lo +ext/dom/text.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/text.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/text.c -o ext/dom/text.lo +ext/dom/comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/comment.c -o ext/dom/comment.lo +ext/dom/domconfiguration.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domconfiguration.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domconfiguration.c -o ext/dom/domconfiguration.lo +ext/dom/domimplementationsource.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationsource.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domimplementationsource.c -o ext/dom/domimplementationsource.lo +ext/dom/entityreference.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entityreference.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/entityreference.c -o ext/dom/entityreference.lo +ext/dom/notation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/notation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/notation.c -o ext/dom/notation.lo +ext/dom/xpath.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/xpath.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/xpath.c -o ext/dom/xpath.lo +ext/dom/dom_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/dom_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/dom_iterators.c -o ext/dom/dom_iterators.lo +ext/dom/typeinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/typeinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/typeinfo.c -o ext/dom/typeinfo.lo +ext/dom/domerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domerror.c -o ext/dom/domerror.lo +ext/dom/domlocator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domlocator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/domlocator.c -o ext/dom/domlocator.lo +ext/dom/namednodemap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namednodemap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/namednodemap.c -o ext/dom/namednodemap.lo +ext/dom/userdatahandler.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/userdatahandler.c + $(LIBTOOL) --mode=compile $(CC) -Iext/dom/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo +ext/exif/exif.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/exif.c + $(LIBTOOL) --mode=compile $(CC) -Iext/exif/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/exif/exif.c -o ext/exif/exif.lo +ext/fileinfo/fileinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/fileinfo.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo +ext/fileinfo/libmagic/apprentice.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apprentice.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo +ext/fileinfo/libmagic/apptype.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apptype.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/apptype.c -o ext/fileinfo/libmagic/apptype.lo +ext/fileinfo/libmagic/ascmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/ascmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/ascmagic.c -o ext/fileinfo/libmagic/ascmagic.lo +ext/fileinfo/libmagic/cdf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf.c -o ext/fileinfo/libmagic/cdf.lo +ext/fileinfo/libmagic/cdf_time.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf_time.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/cdf_time.c -o ext/fileinfo/libmagic/cdf_time.lo +ext/fileinfo/libmagic/compress.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/compress.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/compress.c -o ext/fileinfo/libmagic/compress.lo +ext/fileinfo/libmagic/encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/encoding.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo +ext/fileinfo/libmagic/fsmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/fsmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/fsmagic.c -o ext/fileinfo/libmagic/fsmagic.lo +ext/fileinfo/libmagic/funcs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/funcs.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/funcs.c -o ext/fileinfo/libmagic/funcs.lo +ext/fileinfo/libmagic/is_tar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/is_tar.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/is_tar.c -o ext/fileinfo/libmagic/is_tar.lo +ext/fileinfo/libmagic/magic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/magic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/magic.c -o ext/fileinfo/libmagic/magic.lo +ext/fileinfo/libmagic/print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/print.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/print.c -o ext/fileinfo/libmagic/print.lo +ext/fileinfo/libmagic/readcdf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readcdf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readcdf.c -o ext/fileinfo/libmagic/readcdf.lo +ext/fileinfo/libmagic/readelf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readelf.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/readelf.c -o ext/fileinfo/libmagic/readelf.lo +ext/fileinfo/libmagic/softmagic.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/softmagic.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic -Iext/fileinfo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo +ext/filter/filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/filter.c -o ext/filter/filter.lo +ext/filter/sanitizing_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/sanitizing_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/sanitizing_filters.c -o ext/filter/sanitizing_filters.lo +ext/filter/logical_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/logical_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/logical_filters.c -o ext/filter/logical_filters.lo +ext/filter/callback_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/callback_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/filter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/filter/callback_filter.c -o ext/filter/callback_filter.lo +ext/gettext/gettext.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/gettext.c + $(LIBTOOL) --mode=compile $(CC) -Iext/gettext/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/gettext/gettext.c -o ext/gettext/gettext.lo +ext/hash/hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash.c -o ext/hash/hash.lo +ext/hash/hash_md.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_md.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_md.c -o ext/hash/hash_md.lo +ext/hash/hash_sha.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_sha.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_sha.c -o ext/hash/hash_sha.lo +ext/hash/hash_ripemd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_ripemd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_ripemd.c -o ext/hash/hash_ripemd.lo +ext/hash/hash_haval.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_haval.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_haval.c -o ext/hash/hash_haval.lo +ext/hash/hash_tiger.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_tiger.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_tiger.c -o ext/hash/hash_tiger.lo +ext/hash/hash_gost.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_gost.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_gost.c -o ext/hash/hash_gost.lo +ext/hash/hash_snefru.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_snefru.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_snefru.c -o ext/hash/hash_snefru.lo +ext/hash/hash_whirlpool.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_whirlpool.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_whirlpool.c -o ext/hash/hash_whirlpool.lo +ext/hash/hash_adler32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_adler32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_adler32.c -o ext/hash/hash_adler32.lo +ext/hash/hash_crc32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_crc32.c -o ext/hash/hash_crc32.lo +ext/hash/hash_fnv.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_fnv.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_fnv.c -o ext/hash/hash_fnv.lo +ext/hash/hash_joaat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_joaat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/hash/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/hash/hash_joaat.c -o ext/hash/hash_joaat.lo +ext/intl/php_intl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/php_intl.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/php_intl.c -o ext/intl/php_intl.lo +ext/intl/intl_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_error.c -o ext/intl/intl_error.lo +ext/intl/intl_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convert.c -o ext/intl/intl_convert.lo +ext/intl/intl_convertcpp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convertcpp.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo +ext/intl/collator/collator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo +ext/intl/collator/collator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_class.c -o ext/intl/collator/collator_class.lo +ext/intl/collator/collator_sort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_sort.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo +ext/intl/collator/collator_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_convert.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_convert.c -o ext/intl/collator/collator_convert.lo +ext/intl/collator/collator_locale.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_locale.c -o ext/intl/collator/collator_locale.lo +ext/intl/collator/collator_compare.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_compare.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_compare.c -o ext/intl/collator/collator_compare.lo +ext/intl/collator/collator_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_attr.c -o ext/intl/collator/collator_attr.lo +ext/intl/collator/collator_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_create.c -o ext/intl/collator/collator_create.lo +ext/intl/collator/collator_is_numeric.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_is_numeric.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_is_numeric.c -o ext/intl/collator/collator_is_numeric.lo +ext/intl/collator/collator_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/collator/collator_error.c -o ext/intl/collator/collator_error.lo +ext/intl/common/common_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_error.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_error.c -o ext/intl/common/common_error.lo +ext/intl/common/common_enum.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_enum.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_enum.cpp -o ext/intl/common/common_enum.lo +ext/intl/common/common_date.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_date.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/common/common_date.cpp -o ext/intl/common/common_date.lo +ext/intl/converter/converter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/converter/converter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/converter/converter.c -o ext/intl/converter/converter.lo +ext/intl/formatter/formatter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter.c -o ext/intl/formatter/formatter.lo +ext/intl/formatter/formatter_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_main.c -o ext/intl/formatter/formatter_main.lo +ext/intl/formatter/formatter_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_class.c -o ext/intl/formatter/formatter_class.lo +ext/intl/formatter/formatter_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_attr.c -o ext/intl/formatter/formatter_attr.lo +ext/intl/formatter/formatter_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_data.c -o ext/intl/formatter/formatter_data.lo +ext/intl/formatter/formatter_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_format.c -o ext/intl/formatter/formatter_format.lo +ext/intl/formatter/formatter_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/formatter/formatter_parse.c -o ext/intl/formatter/formatter_parse.lo +ext/intl/normalizer/normalizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer.c -o ext/intl/normalizer/normalizer.lo +ext/intl/normalizer/normalizer_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_class.c -o ext/intl/normalizer/normalizer_class.lo +ext/intl/normalizer/normalizer_normalize.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_normalize.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/normalizer/normalizer_normalize.c -o ext/intl/normalizer/normalizer_normalize.lo +ext/intl/locale/locale.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale.c -o ext/intl/locale/locale.lo +ext/intl/locale/locale_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_class.c -o ext/intl/locale/locale_class.lo +ext/intl/locale/locale_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/locale/locale_methods.c -o ext/intl/locale/locale_methods.lo +ext/intl/dateformat/dateformat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat.c -o ext/intl/dateformat/dateformat.lo +ext/intl/dateformat/dateformat_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_class.c -o ext/intl/dateformat/dateformat_class.lo +ext/intl/dateformat/dateformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attr.c -o ext/intl/dateformat/dateformat_attr.lo +ext/intl/dateformat/dateformat_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_data.c -o ext/intl/dateformat/dateformat_data.lo +ext/intl/dateformat/dateformat_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format.c -o ext/intl/dateformat/dateformat_format.lo +ext/intl/dateformat/dateformat_format_object.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format_object.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_format_object.cpp -o ext/intl/dateformat/dateformat_format_object.lo +ext/intl/dateformat/dateformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_parse.c -o ext/intl/dateformat/dateformat_parse.lo +ext/intl/dateformat/dateformat_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_create.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_create.cpp -o ext/intl/dateformat/dateformat_create.lo +ext/intl/dateformat/dateformat_attrcpp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attrcpp.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_attrcpp.cpp -o ext/intl/dateformat/dateformat_attrcpp.lo +ext/intl/dateformat/dateformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/dateformat/dateformat_helpers.cpp -o ext/intl/dateformat/dateformat_helpers.lo +ext/intl/msgformat/msgformat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat.c -o ext/intl/msgformat/msgformat.lo +ext/intl/msgformat/msgformat_attr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_attr.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_attr.c -o ext/intl/msgformat/msgformat_attr.lo +ext/intl/msgformat/msgformat_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_class.c -o ext/intl/msgformat/msgformat_class.lo +ext/intl/msgformat/msgformat_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_data.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_data.c -o ext/intl/msgformat/msgformat_data.lo +ext/intl/msgformat/msgformat_format.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_format.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_format.c -o ext/intl/msgformat/msgformat_format.lo +ext/intl/msgformat/msgformat_helpers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_helpers.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_helpers.cpp -o ext/intl/msgformat/msgformat_helpers.lo +ext/intl/msgformat/msgformat_parse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_parse.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/msgformat/msgformat_parse.c -o ext/intl/msgformat/msgformat_parse.lo +ext/intl/grapheme/grapheme_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_string.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_string.c -o ext/intl/grapheme/grapheme_string.lo +ext/intl/grapheme/grapheme_util.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_util.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/grapheme/grapheme_util.c -o ext/intl/grapheme/grapheme_util.lo +ext/intl/resourcebundle/resourcebundle.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle.c -o ext/intl/resourcebundle/resourcebundle.lo +ext/intl/resourcebundle/resourcebundle_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_class.c -o ext/intl/resourcebundle/resourcebundle_class.lo +ext/intl/resourcebundle/resourcebundle_iterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_iterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/resourcebundle/resourcebundle_iterator.c -o ext/intl/resourcebundle/resourcebundle_iterator.lo +ext/intl/transliterator/transliterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator.c -o ext/intl/transliterator/transliterator.lo +ext/intl/transliterator/transliterator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_class.c -o ext/intl/transliterator/transliterator_class.lo +ext/intl/transliterator/transliterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_methods.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/transliterator/transliterator_methods.c -o ext/intl/transliterator/transliterator_methods.lo +ext/intl/timezone/timezone_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_class.cpp -o ext/intl/timezone/timezone_class.lo +ext/intl/timezone/timezone_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/timezone/timezone_methods.cpp -o ext/intl/timezone/timezone_methods.lo +ext/intl/calendar/calendar_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_class.cpp -o ext/intl/calendar/calendar_class.lo +ext/intl/calendar/calendar_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/calendar_methods.cpp -o ext/intl/calendar/calendar_methods.lo +ext/intl/calendar/gregoriancalendar_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/gregoriancalendar_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/calendar/gregoriancalendar_methods.cpp -o ext/intl/calendar/gregoriancalendar_methods.lo +ext/intl/breakiterator/breakiterator_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_class.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_class.cpp -o ext/intl/breakiterator/breakiterator_class.lo +ext/intl/breakiterator/breakiterator_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_iterators.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_iterators.cpp -o ext/intl/breakiterator/breakiterator_iterators.lo +ext/intl/breakiterator/breakiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/breakiterator_methods.cpp -o ext/intl/breakiterator/breakiterator_methods.lo +ext/intl/breakiterator/rulebasedbreakiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp -o ext/intl/breakiterator/rulebasedbreakiterator_methods.lo +ext/intl/breakiterator/codepointiterator_internal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_internal.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_internal.cpp -o ext/intl/breakiterator/codepointiterator_internal.lo +ext/intl/breakiterator/codepointiterator_methods.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_methods.cpp + $(LIBTOOL) --mode=compile $(CXX) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/breakiterator/codepointiterator_methods.cpp -o ext/intl/breakiterator/codepointiterator_methods.lo +ext/intl/idn/idn.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/idn/idn.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/idn/idn.c -o ext/intl/idn/idn.lo +ext/intl/spoofchecker/spoofchecker_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_class.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_class.c -o ext/intl/spoofchecker/spoofchecker_class.lo +ext/intl/spoofchecker/spoofchecker.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker.c -o ext/intl/spoofchecker/spoofchecker.lo +ext/intl/spoofchecker/spoofchecker_create.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_create.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_create.c -o ext/intl/spoofchecker/spoofchecker_create.lo +ext/intl/spoofchecker/spoofchecker_main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_main.c + $(LIBTOOL) --mode=compile $(CC) -I/opt/local/include -Wno-write-strings -Iext/intl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/intl/spoofchecker/spoofchecker_main.c -o ext/intl/spoofchecker/spoofchecker_main.lo +ext/json/json.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/json.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/json.c -o ext/json/json.lo +ext/json/utf8_decode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/utf8_decode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/utf8_decode.c -o ext/json/utf8_decode.lo +ext/json/JSON_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/JSON_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/json/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/json/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/json/JSON_parser.c -o ext/json/JSON_parser.lo +ext/mbstring/oniguruma/regcomp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regcomp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo +ext/mbstring/oniguruma/regerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regerror.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo +ext/mbstring/oniguruma/regexec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regexec.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regexec.c -o ext/mbstring/oniguruma/regexec.lo +ext/mbstring/oniguruma/reggnu.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/reggnu.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/reggnu.c -o ext/mbstring/oniguruma/reggnu.lo +ext/mbstring/oniguruma/regparse.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regparse.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo +ext/mbstring/oniguruma/regenc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regenc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regenc.c -o ext/mbstring/oniguruma/regenc.lo +ext/mbstring/oniguruma/regext.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regext.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regext.c -o ext/mbstring/oniguruma/regext.lo +ext/mbstring/oniguruma/regsyntax.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regsyntax.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regsyntax.c -o ext/mbstring/oniguruma/regsyntax.lo +ext/mbstring/oniguruma/regtrav.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regtrav.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regtrav.c -o ext/mbstring/oniguruma/regtrav.lo +ext/mbstring/oniguruma/regversion.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regversion.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/regversion.c -o ext/mbstring/oniguruma/regversion.lo +ext/mbstring/oniguruma/st.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/st.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/st.c -o ext/mbstring/oniguruma/st.lo +ext/mbstring/oniguruma/enc/unicode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/unicode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo +ext/mbstring/oniguruma/enc/ascii.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/ascii.c -o ext/mbstring/oniguruma/enc/ascii.lo +ext/mbstring/oniguruma/enc/utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf8.c -o ext/mbstring/oniguruma/enc/utf8.lo +ext/mbstring/oniguruma/enc/euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_jp.c -o ext/mbstring/oniguruma/enc/euc_jp.lo +ext/mbstring/oniguruma/enc/euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_tw.c -o ext/mbstring/oniguruma/enc/euc_tw.lo +ext/mbstring/oniguruma/enc/euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/euc_kr.c -o ext/mbstring/oniguruma/enc/euc_kr.lo +ext/mbstring/oniguruma/enc/sjis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/sjis.c -o ext/mbstring/oniguruma/enc/sjis.lo +ext/mbstring/oniguruma/enc/iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_1.c -o ext/mbstring/oniguruma/enc/iso8859_1.lo +ext/mbstring/oniguruma/enc/iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_2.c -o ext/mbstring/oniguruma/enc/iso8859_2.lo +ext/mbstring/oniguruma/enc/iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_3.c -o ext/mbstring/oniguruma/enc/iso8859_3.lo +ext/mbstring/oniguruma/enc/iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_4.c -o ext/mbstring/oniguruma/enc/iso8859_4.lo +ext/mbstring/oniguruma/enc/iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_5.c -o ext/mbstring/oniguruma/enc/iso8859_5.lo +ext/mbstring/oniguruma/enc/iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_6.c -o ext/mbstring/oniguruma/enc/iso8859_6.lo +ext/mbstring/oniguruma/enc/iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_7.c -o ext/mbstring/oniguruma/enc/iso8859_7.lo +ext/mbstring/oniguruma/enc/iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_8.c -o ext/mbstring/oniguruma/enc/iso8859_8.lo +ext/mbstring/oniguruma/enc/iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_9.c -o ext/mbstring/oniguruma/enc/iso8859_9.lo +ext/mbstring/oniguruma/enc/iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_10.c -o ext/mbstring/oniguruma/enc/iso8859_10.lo +ext/mbstring/oniguruma/enc/iso8859_11.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_11.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_11.c -o ext/mbstring/oniguruma/enc/iso8859_11.lo +ext/mbstring/oniguruma/enc/iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_13.c -o ext/mbstring/oniguruma/enc/iso8859_13.lo +ext/mbstring/oniguruma/enc/iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_14.c -o ext/mbstring/oniguruma/enc/iso8859_14.lo +ext/mbstring/oniguruma/enc/iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_15.c -o ext/mbstring/oniguruma/enc/iso8859_15.lo +ext/mbstring/oniguruma/enc/iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/iso8859_16.c -o ext/mbstring/oniguruma/enc/iso8859_16.lo +ext/mbstring/oniguruma/enc/koi8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8.c -o ext/mbstring/oniguruma/enc/koi8.lo +ext/mbstring/oniguruma/enc/koi8_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8_r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/koi8_r.c -o ext/mbstring/oniguruma/enc/koi8_r.lo +ext/mbstring/oniguruma/enc/big5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/big5.c -o ext/mbstring/oniguruma/enc/big5.lo +ext/mbstring/oniguruma/enc/utf16_be.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_be.c -o ext/mbstring/oniguruma/enc/utf16_be.lo +ext/mbstring/oniguruma/enc/utf16_le.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf16_le.c -o ext/mbstring/oniguruma/enc/utf16_le.lo +ext/mbstring/oniguruma/enc/utf32_be.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_be.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_be.c -o ext/mbstring/oniguruma/enc/utf32_be.lo +ext/mbstring/oniguruma/enc/utf32_le.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_le.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/oniguruma/enc/utf32_le.c -o ext/mbstring/oniguruma/enc/utf32_le.lo +ext/mbstring/libmbfl/filters/html_entities.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/html_entities.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/html_entities.c -o ext/mbstring/libmbfl/filters/html_entities.lo +ext/mbstring/libmbfl/filters/mbfilter_7bit.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_7bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_7bit.c -o ext/mbstring/libmbfl/filters/mbfilter_7bit.lo +ext/mbstring/libmbfl/filters/mbfilter_ascii.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ascii.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ascii.c -o ext/mbstring/libmbfl/filters/mbfilter_ascii.lo +ext/mbstring/libmbfl/filters/mbfilter_base64.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_base64.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_base64.c -o ext/mbstring/libmbfl/filters/mbfilter_base64.lo +ext/mbstring/libmbfl/filters/mbfilter_big5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_big5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_big5.c -o ext/mbstring/libmbfl/filters/mbfilter_big5.lo +ext/mbstring/libmbfl/filters/mbfilter_byte2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte2.c -o ext/mbstring/libmbfl/filters/mbfilter_byte2.lo +ext/mbstring/libmbfl/filters/mbfilter_byte4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_byte4.c -o ext/mbstring/libmbfl/filters/mbfilter_byte4.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1252.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo +ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp1254.c -o ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo +ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c -o ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo +ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp850.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp850.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp850.c -o ext/mbstring/libmbfl/filters/mbfilter_cp850.lo +ext/mbstring/libmbfl/filters/mbfilter_cp866.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp866.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp866.c -o ext/mbstring/libmbfl/filters/mbfilter_cp866.lo +ext/mbstring/libmbfl/filters/mbfilter_cp932.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp932.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp932.c -o ext/mbstring/libmbfl/filters/mbfilter_cp932.lo +ext/mbstring/libmbfl/filters/mbfilter_cp936.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp936.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_cp936.c -o ext/mbstring/libmbfl/filters/mbfilter_cp936.lo +ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_gb18030.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_gb18030.c -o ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_euc_tw.c -o ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo +ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c -o ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo +ext/mbstring/libmbfl/filters/mbfilter_hz.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_hz.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_hz.c -o ext/mbstring/libmbfl/filters/mbfilter_hz.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.c -o ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo +ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.c -o ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo +ext/mbstring/libmbfl/filters/mbfilter_jis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_jis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_jis.c -o ext/mbstring/libmbfl/filters/mbfilter_jis.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8r.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo +ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_armscii8.c -o ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo +ext/mbstring/libmbfl/filters/mbfilter_qprint.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_qprint.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_qprint.c -o ext/mbstring/libmbfl/filters/mbfilter_qprint.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_open.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo +ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c -o ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo +ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c -o ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs2.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo +ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_ucs4.c -o ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo +ext/mbstring/libmbfl/filters/mbfilter_uhc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uhc.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uhc.c -o ext/mbstring/libmbfl/filters/mbfilter_uhc.lo +ext/mbstring/libmbfl/filters/mbfilter_utf16.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf16.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf16.c -o ext/mbstring/libmbfl/filters/mbfilter_utf16.lo +ext/mbstring/libmbfl/filters/mbfilter_utf32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf32.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf32.c -o ext/mbstring/libmbfl/filters/mbfilter_utf32.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7.lo +ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf7imap.c -o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8.lo +ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c -o ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo +ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_uuencode.c -o ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo +ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/filters/mbfilter_koi8u.c -o ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo +ext/mbstring/libmbfl/mbfl/mbfilter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter.c -o ext/mbstring/libmbfl/mbfl/mbfilter.lo +ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c -o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo +ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_pass.c -o ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo +ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.c -o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo +ext/mbstring/libmbfl/mbfl/mbfl_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_convert.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_convert.c -o ext/mbstring/libmbfl/mbfl/mbfl_convert.lo +ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_encoding.c -o ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo +ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.c -o ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo +ext/mbstring/libmbfl/mbfl/mbfl_ident.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_ident.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_ident.c -o ext/mbstring/libmbfl/mbfl/mbfl_ident.lo +ext/mbstring/libmbfl/mbfl/mbfl_language.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_language.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_language.c -o ext/mbstring/libmbfl/mbfl/mbfl_language.lo +ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.c -o ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo +ext/mbstring/libmbfl/mbfl/mbfl_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_string.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_string.c -o ext/mbstring/libmbfl/mbfl/mbfl_string.lo +ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/mbfl/mbfl_allocators.c -o ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo +ext/mbstring/libmbfl/nls/nls_de.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_de.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_de.c -o ext/mbstring/libmbfl/nls/nls_de.lo +ext/mbstring/libmbfl/nls/nls_en.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_en.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_en.c -o ext/mbstring/libmbfl/nls/nls_en.lo +ext/mbstring/libmbfl/nls/nls_ja.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ja.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ja.c -o ext/mbstring/libmbfl/nls/nls_ja.lo +ext/mbstring/libmbfl/nls/nls_kr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_kr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_kr.c -o ext/mbstring/libmbfl/nls/nls_kr.lo +ext/mbstring/libmbfl/nls/nls_neutral.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_neutral.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_neutral.c -o ext/mbstring/libmbfl/nls/nls_neutral.lo +ext/mbstring/libmbfl/nls/nls_ru.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ru.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ru.c -o ext/mbstring/libmbfl/nls/nls_ru.lo +ext/mbstring/libmbfl/nls/nls_uni.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_uni.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_uni.c -o ext/mbstring/libmbfl/nls/nls_uni.lo +ext/mbstring/libmbfl/nls/nls_zh.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_zh.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_zh.c -o ext/mbstring/libmbfl/nls/nls_zh.lo +ext/mbstring/libmbfl/nls/nls_hy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_hy.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_hy.c -o ext/mbstring/libmbfl/nls/nls_hy.lo +ext/mbstring/libmbfl/nls/nls_tr.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_tr.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_tr.c -o ext/mbstring/libmbfl/nls/nls_tr.lo +ext/mbstring/libmbfl/nls/nls_ua.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ua.c + $(LIBTOOL) --mode=compile $(CC) -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/libmbfl/nls/nls_ua.c -o ext/mbstring/libmbfl/nls/nls_ua.lo +ext/mbstring/mbstring.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mbstring.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo +ext/mbstring/php_unicode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_unicode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_unicode.c -o ext/mbstring/php_unicode.lo +ext/mbstring/mb_gpc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mb_gpc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/mb_gpc.c -o ext/mbstring/mb_gpc.lo +ext/mbstring/php_mbregex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_mbregex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mbstring/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mbstring/php_mbregex.c -o ext/mbstring/php_mbregex.lo +ext/mcrypt/mcrypt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo +ext/mcrypt/mcrypt_filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt_filter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mcrypt/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mcrypt/mcrypt_filter.c -o ext/mcrypt/mcrypt_filter.lo +ext/mysql/php_mysql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/php_mysql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo +ext/mysqli/mysqli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo +ext/mysqli/mysqli_api.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo +ext/mysqli/mysqli_prop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_prop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo +ext/mysqli/mysqli_nonapi.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_nonapi.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo +ext/mysqli/mysqli_fe.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_fe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo +ext/mysqli/mysqli_report.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_report.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo +ext/mysqli/mysqli_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo +ext/mysqli/mysqli_warning.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_warning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo +ext/mysqli/mysqli_exception.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_exception.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo +ext/mysqli/mysqli_result_iterator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_result_iterator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqli/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqli/mysqli_result_iterator.c -o ext/mysqli/mysqli_result_iterator.lo +ext/opcache/ZendAccelerator.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ZendAccelerator.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo +ext/opcache/zend_accelerator_blacklist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_blacklist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_blacklist.c -o ext/opcache/zend_accelerator_blacklist.lo +ext/opcache/zend_accelerator_debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_debug.c -o ext/opcache/zend_accelerator_debug.lo +ext/opcache/zend_accelerator_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_hash.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_hash.c -o ext/opcache/zend_accelerator_hash.lo +ext/opcache/zend_accelerator_module.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_module.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_module.c -o ext/opcache/zend_accelerator_module.lo +ext/opcache/zend_persist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist.c -o ext/opcache/zend_persist.lo +ext/opcache/zend_persist_calc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist_calc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_persist_calc.c -o ext/opcache/zend_persist_calc.lo +ext/opcache/zend_shared_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_shared_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_shared_alloc.c -o ext/opcache/zend_shared_alloc.lo +ext/opcache/zend_accelerator_util_funcs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_util_funcs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/zend_accelerator_util_funcs.c -o ext/opcache/zend_accelerator_util_funcs.lo +ext/opcache/shared_alloc_shm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_shm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_shm.c -o ext/opcache/shared_alloc_shm.lo +ext/opcache/shared_alloc_mmap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_mmap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_mmap.c -o ext/opcache/shared_alloc_mmap.lo +ext/opcache/shared_alloc_posix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/shared_alloc_posix.c -o ext/opcache/shared_alloc_posix.lo +ext/opcache/Optimizer/zend_optimizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/Optimizer/zend_optimizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/opcache/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/opcache/Optimizer/zend_optimizer.c -o ext/opcache/Optimizer/zend_optimizer.lo +$(phplibdir)/opcache.la: ext/opcache/opcache.la + $(LIBTOOL) --mode=install cp ext/opcache/opcache.la $(phplibdir) + +ext/opcache/opcache.la: $(shared_objects_opcache) $(OPCACHE_SHARED_DEPENDENCIES) + $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_opcache) $(OPCACHE_SHARED_LIBADD) + +ext/pcntl/pcntl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/pcntl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/pcntl.c -o ext/pcntl/pcntl.lo +ext/pcntl/php_signal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/php_signal.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pcntl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pcntl/php_signal.c -o ext/pcntl/php_signal.lo +ext/pdo/pdo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo.c -o ext/pdo/pdo.lo +ext/pdo/pdo_dbh.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_dbh.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_dbh.c -o ext/pdo/pdo_dbh.lo +ext/pdo/pdo_stmt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_stmt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_stmt.c -o ext/pdo/pdo_stmt.lo +ext/pdo/pdo_sql_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sql_parser.c -o ext/pdo/pdo_sql_parser.lo +ext/pdo/pdo_sqlstate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sqlstate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pdo/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo +ext/pdo_mysql/pdo_mysql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/pdo_mysql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo +ext/pdo_mysql/mysql_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo +ext/pdo_mysql/mysql_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -I -Iext/pdo_mysql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo +ext/pdo_pgsql/pdo_pgsql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pdo_pgsql.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo +ext/pdo_pgsql/pgsql_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_driver.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_driver.c -o ext/pdo_pgsql/pgsql_driver.lo +ext/pdo_pgsql/pgsql_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_statement.c + $(LIBTOOL) --mode=compile $(CC) -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_pgsql/pgsql_statement.c -o ext/pdo_pgsql/pgsql_statement.lo +ext/pdo_sqlite/pdo_sqlite.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/pdo_sqlite.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo +ext/pdo_sqlite/sqlite_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_driver.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo +ext/pdo_sqlite/sqlite_statement.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_statement.c + $(LIBTOOL) --mode=compile $(CC) -DPDO_SQLITE_BUNDLED=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_THREADSAFE=1 -I/Users/c9s/.phpbrew/build/php-5.5.17/ext -Iext/pdo_sqlite/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo +ext/pgsql/pgsql.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/pgsql.c + $(LIBTOOL) --mode=compile $(CC) -Iext/pgsql/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo +ext/phar/util.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/util.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/util.c -o ext/phar/util.lo +ext/phar/tar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/tar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/tar.c -o ext/phar/tar.lo +ext/phar/zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/zip.c -o ext/phar/zip.lo +ext/phar/stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/stream.c -o ext/phar/stream.lo +ext/phar/func_interceptors.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/func_interceptors.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/func_interceptors.c -o ext/phar/func_interceptors.lo +ext/phar/dirstream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/dirstream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/dirstream.c -o ext/phar/dirstream.lo +ext/phar/phar.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar.c -o ext/phar/phar.lo +ext/phar/phar_object.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_object.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_object.c -o ext/phar/phar_object.lo +ext/phar/phar_path_check.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c + $(LIBTOOL) --mode=compile $(CC) -Iext/phar/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo +ext/posix/posix.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/posix.c + $(LIBTOOL) --mode=compile $(CC) -Iext/posix/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/posix/posix.c -o ext/posix/posix.lo +ext/readline/readline.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline.c -o ext/readline/readline.lo +ext/readline/readline_cli.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline_cli.c + $(LIBTOOL) --mode=compile $(CC) -Iext/readline/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/readline/readline_cli.c -o ext/readline/readline_cli.lo +ext/reflection/php_reflection.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/php_reflection.c + $(LIBTOOL) --mode=compile $(CC) -Iext/reflection/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo +ext/session/mod_user_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user_class.c -o ext/session/mod_user_class.lo +ext/session/session.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/session.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/session.c -o ext/session/session.lo +ext/session/mod_files.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_files.c -o ext/session/mod_files.lo +ext/session/mod_mm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_mm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_mm.c -o ext/session/mod_mm.lo +ext/session/mod_user.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user.c + $(LIBTOOL) --mode=compile $(CC) -Iext/session/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/session/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/session/mod_user.c -o ext/session/mod_user.lo +ext/shmop/shmop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/shmop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/shmop/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/shmop/shmop.c -o ext/shmop/shmop.lo +ext/simplexml/simplexml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/simplexml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo +ext/simplexml/sxe.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/sxe.c + $(LIBTOOL) --mode=compile $(CC) -Iext/simplexml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo +ext/soap/soap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/soap.c -o ext/soap/soap.lo +ext/soap/php_encoding.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_encoding.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo +ext/soap/php_http.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_http.c -o ext/soap/php_http.lo +ext/soap/php_packet_soap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_packet_soap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_packet_soap.c -o ext/soap/php_packet_soap.lo +ext/soap/php_schema.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_schema.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_schema.c -o ext/soap/php_schema.lo +ext/soap/php_sdl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_sdl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_sdl.c -o ext/soap/php_sdl.lo +ext/soap/php_xml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/soap/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/soap/php_xml.c -o ext/soap/php_xml.lo +ext/sockets/sockets.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockets.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockets.c -o ext/sockets/sockets.lo +ext/sockets/multicast.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/multicast.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/multicast.c -o ext/sockets/multicast.lo +ext/sockets/conversions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/conversions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/conversions.c -o ext/sockets/conversions.lo +ext/sockets/sockaddr_conv.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockaddr_conv.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sockaddr_conv.c -o ext/sockets/sockaddr_conv.lo +ext/sockets/sendrecvmsg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sendrecvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sockets/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sockets/sendrecvmsg.c -o ext/sockets/sendrecvmsg.lo +ext/spl/php_spl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/php_spl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/php_spl.c -o ext/spl/php_spl.lo +ext/spl/spl_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_functions.c -o ext/spl/spl_functions.lo +ext/spl/spl_engine.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_engine.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_engine.c -o ext/spl/spl_engine.lo +ext/spl/spl_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_iterators.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_iterators.c -o ext/spl/spl_iterators.lo +ext/spl/spl_array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_array.c -o ext/spl/spl_array.lo +ext/spl/spl_directory.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_directory.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_directory.c -o ext/spl/spl_directory.lo +ext/spl/spl_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_exceptions.c -o ext/spl/spl_exceptions.lo +ext/spl/spl_observer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_observer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_observer.c -o ext/spl/spl_observer.lo +ext/spl/spl_dllist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_dllist.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_dllist.c -o ext/spl/spl_dllist.lo +ext/spl/spl_heap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_heap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_heap.c -o ext/spl/spl_heap.lo +ext/spl/spl_fixedarray.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_fixedarray.c + $(LIBTOOL) --mode=compile $(CC) -Iext/spl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/spl/spl_fixedarray.c -o ext/spl/spl_fixedarray.lo +ext/standard/crypt_freesec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_freesec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_freesec.c -o ext/standard/crypt_freesec.lo +ext/standard/crypt_blowfish.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_blowfish.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_blowfish.c -o ext/standard/crypt_blowfish.lo +ext/standard/crypt_sha512.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha512.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo +ext/standard/crypt_sha256.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha256.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt_sha256.c -o ext/standard/crypt_sha256.lo +ext/standard/php_crypt_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_crypt_r.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo +ext/standard/array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/array.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/array.c -o ext/standard/array.lo +ext/standard/base64.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/base64.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/base64.c -o ext/standard/base64.lo +ext/standard/basic_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/basic_functions.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo +ext/standard/browscap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/browscap.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/browscap.c -o ext/standard/browscap.lo +ext/standard/crc32.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crc32.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crc32.c -o ext/standard/crc32.lo +ext/standard/crypt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/crypt.c -o ext/standard/crypt.lo +ext/standard/cyr_convert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/cyr_convert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/cyr_convert.c -o ext/standard/cyr_convert.lo +ext/standard/datetime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/datetime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/datetime.c -o ext/standard/datetime.lo +ext/standard/dir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dir.c -o ext/standard/dir.lo +ext/standard/dl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dl.c -o ext/standard/dl.lo +ext/standard/dns.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dns.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/dns.c -o ext/standard/dns.lo +ext/standard/exec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/exec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/exec.c -o ext/standard/exec.lo +ext/standard/file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/file.c -o ext/standard/file.lo +ext/standard/filestat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filestat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filestat.c -o ext/standard/filestat.lo +ext/standard/flock_compat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/flock_compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo +ext/standard/formatted_print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/formatted_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/formatted_print.c -o ext/standard/formatted_print.lo +ext/standard/fsock.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/fsock.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/fsock.c -o ext/standard/fsock.lo +ext/standard/head.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/head.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/head.c -o ext/standard/head.lo +ext/standard/html.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/html.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/html.c -o ext/standard/html.lo +ext/standard/image.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/image.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/image.c -o ext/standard/image.lo +ext/standard/info.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/info.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/info.c -o ext/standard/info.lo +ext/standard/iptc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/iptc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/iptc.c -o ext/standard/iptc.lo +ext/standard/lcg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/lcg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/lcg.c -o ext/standard/lcg.lo +ext/standard/link.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/link.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/link.c -o ext/standard/link.lo +ext/standard/mail.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/mail.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/mail.c -o ext/standard/mail.lo +ext/standard/math.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/math.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/math.c -o ext/standard/math.lo +ext/standard/md5.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/md5.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/md5.c -o ext/standard/md5.lo +ext/standard/metaphone.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/metaphone.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/metaphone.c -o ext/standard/metaphone.lo +ext/standard/microtime.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/microtime.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/microtime.c -o ext/standard/microtime.lo +ext/standard/pack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pack.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pack.c -o ext/standard/pack.lo +ext/standard/pageinfo.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pageinfo.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/pageinfo.c -o ext/standard/pageinfo.lo +ext/standard/quot_print.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/quot_print.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/quot_print.c -o ext/standard/quot_print.lo +ext/standard/rand.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/rand.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/rand.c -o ext/standard/rand.lo +ext/standard/soundex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/soundex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/soundex.c -o ext/standard/soundex.lo +ext/standard/string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/string.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/string.c -o ext/standard/string.lo +ext/standard/scanf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/scanf.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/scanf.c -o ext/standard/scanf.lo +ext/standard/syslog.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/syslog.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/syslog.c -o ext/standard/syslog.lo +ext/standard/type.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/type.c -o ext/standard/type.lo +ext/standard/uniqid.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uniqid.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uniqid.c -o ext/standard/uniqid.lo +ext/standard/url.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url.c -o ext/standard/url.lo +ext/standard/var.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var.c -o ext/standard/var.lo +ext/standard/versioning.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/versioning.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/versioning.c -o ext/standard/versioning.lo +ext/standard/assert.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/assert.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/assert.c -o ext/standard/assert.lo +ext/standard/strnatcmp.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/strnatcmp.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/strnatcmp.c -o ext/standard/strnatcmp.lo +ext/standard/levenshtein.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/levenshtein.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/levenshtein.c -o ext/standard/levenshtein.lo +ext/standard/incomplete_class.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/incomplete_class.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/incomplete_class.c -o ext/standard/incomplete_class.lo +ext/standard/url_scanner_ex.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/url_scanner_ex.c -o ext/standard/url_scanner_ex.lo +ext/standard/ftp_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftp_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftp_fopen_wrapper.c -o ext/standard/ftp_fopen_wrapper.lo +ext/standard/http_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http_fopen_wrapper.c -o ext/standard/http_fopen_wrapper.lo +ext/standard/php_fopen_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_fopen_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/php_fopen_wrapper.c -o ext/standard/php_fopen_wrapper.lo +ext/standard/credits.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/credits.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/credits.c -o ext/standard/credits.lo +ext/standard/css.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/css.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/css.c -o ext/standard/css.lo +ext/standard/var_unserializer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/var_unserializer.c -o ext/standard/var_unserializer.lo +ext/standard/ftok.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftok.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ftok.c -o ext/standard/ftok.lo +ext/standard/sha1.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/sha1.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/sha1.c -o ext/standard/sha1.lo +ext/standard/user_filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/user_filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/user_filters.c -o ext/standard/user_filters.lo +ext/standard/uuencode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uuencode.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/uuencode.c -o ext/standard/uuencode.lo +ext/standard/filters.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filters.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/filters.c -o ext/standard/filters.lo +ext/standard/proc_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/proc_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/proc_open.c -o ext/standard/proc_open.lo +ext/standard/streamsfuncs.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/streamsfuncs.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo +ext/standard/http.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/http.c -o ext/standard/http.lo +ext/standard/password.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/standard/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/standard/password.c -o ext/standard/password.lo +ext/sysvmsg/sysvmsg.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/sysvmsg.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvmsg/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.lo +ext/sysvsem/sysvsem.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/sysvsem.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvsem/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvsem/sysvsem.c -o ext/sysvsem/sysvsem.lo +ext/sysvshm/sysvshm.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/sysvshm.c + $(LIBTOOL) --mode=compile $(CC) -Iext/sysvshm/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/sysvshm/sysvshm.c -o ext/sysvshm/sysvshm.lo +ext/tokenizer/tokenizer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo +ext/tokenizer/tokenizer_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/tokenizer/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/tokenizer/tokenizer_data.c -o ext/tokenizer/tokenizer_data.lo +ext/xml/xml.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/xml.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/xml.c -o ext/xml/xml.lo +ext/xml/compat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/compat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xml/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xml/compat.c -o ext/xml/compat.lo +ext/xmlreader/php_xmlreader.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/php_xmlreader.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlreader/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlreader/php_xmlreader.c -o ext/xmlreader/php_xmlreader.lo +ext/xmlwriter/php_xmlwriter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/php_xmlwriter.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xmlwriter/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xmlwriter/php_xmlwriter.c -o ext/xmlwriter/php_xmlwriter.lo +ext/xsl/php_xsl.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/php_xsl.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo +ext/xsl/xsltprocessor.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/xsltprocessor.c + $(LIBTOOL) --mode=compile $(CC) -Iext/xsl/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/xsl/xsltprocessor.c -o ext/xsl/xsltprocessor.lo +ext/zip/php_zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/php_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/php_zip.c -o ext/zip/php_zip.lo +ext/zip/zip_stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/zip_stream.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/zip_stream.c -o ext/zip/zip_stream.lo +ext/zip/lib/zip_add.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add.c -o ext/zip/lib/zip_add.lo +ext/zip/lib/zip_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error.c -o ext/zip/lib/zip_error.lo +ext/zip/lib/zip_fclose.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fclose.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fclose.c -o ext/zip/lib/zip_fclose.lo +ext/zip/lib/zip_fread.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fread.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fread.c -o ext/zip/lib/zip_fread.lo +ext/zip/lib/zip_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_open.c -o ext/zip/lib/zip_open.lo +ext/zip/lib/zip_source_filep.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_filep.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_filep.c -o ext/zip/lib/zip_source_filep.lo +ext/zip/lib/zip_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_strerror.c -o ext/zip/lib/zip_strerror.lo +ext/zip/lib/zip_close.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_close.c -o ext/zip/lib/zip_close.lo +ext/zip/lib/zip_error_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get.c -o ext/zip/lib/zip_error_get.lo +ext/zip/lib/zip_file_error_get.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_get.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_get.c -o ext/zip/lib/zip_file_error_get.lo +ext/zip/lib/zip_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_free.c -o ext/zip/lib/zip_free.lo +ext/zip/lib/zip_rename.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_rename.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_rename.c -o ext/zip/lib/zip_rename.lo +ext/zip/lib/zip_source_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_free.c -o ext/zip/lib/zip_source_free.lo +ext/zip/lib/zip_unchange_all.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_all.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_all.c -o ext/zip/lib/zip_unchange_all.lo +ext/zip/lib/zip_delete.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_delete.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_delete.c -o ext/zip/lib/zip_delete.lo +ext/zip/lib/zip_error_get_sys_type.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get_sys_type.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_get_sys_type.c -o ext/zip/lib/zip_error_get_sys_type.lo +ext/zip/lib/zip_file_get_offset.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_get_offset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_get_offset.c -o ext/zip/lib/zip_file_get_offset.lo +ext/zip/lib/zip_get_name.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_name.c -o ext/zip/lib/zip_get_name.lo +ext/zip/lib/zip_replace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_replace.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_replace.c -o ext/zip/lib/zip_replace.lo +ext/zip/lib/zip_source_function.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_function.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_function.c -o ext/zip/lib/zip_source_function.lo +ext/zip/lib/zip_unchange.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange.c -o ext/zip/lib/zip_unchange.lo +ext/zip/lib/zip_dirent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_dirent.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_dirent.c -o ext/zip/lib/zip_dirent.lo +ext/zip/lib/zip_error_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_strerror.c -o ext/zip/lib/zip_error_strerror.lo +ext/zip/lib/zip_filerange_crc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_filerange_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_filerange_crc.c -o ext/zip/lib/zip_filerange_crc.lo +ext/zip/lib/zip_file_strerror.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_strerror.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_strerror.c -o ext/zip/lib/zip_file_strerror.lo +ext/zip/lib/zip_get_num_files.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_files.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_files.c -o ext/zip/lib/zip_get_num_files.lo +ext/zip/lib/zip_get_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_flag.c -o ext/zip/lib/zip_get_archive_flag.lo +ext/zip/lib/zip_set_archive_flag.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_flag.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_flag.c -o ext/zip/lib/zip_set_archive_flag.lo +ext/zip/lib/zip_set_name.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_name.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_name.c -o ext/zip/lib/zip_set_name.lo +ext/zip/lib/zip_source_zip.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_zip.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_zip.c -o ext/zip/lib/zip_source_zip.lo +ext/zip/lib/zip_unchange_data.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_data.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_data.c -o ext/zip/lib/zip_unchange_data.lo +ext/zip/lib/zip_entry_free.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_free.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_free.c -o ext/zip/lib/zip_entry_free.lo +ext/zip/lib/zip_error_to_str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_to_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_to_str.c -o ext/zip/lib/zip_error_to_str.lo +ext/zip/lib/zip_fopen.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen.c -o ext/zip/lib/zip_fopen.lo +ext/zip/lib/zip_name_locate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_name_locate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_name_locate.c -o ext/zip/lib/zip_name_locate.lo +ext/zip/lib/zip_source_buffer.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_buffer.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_buffer.c -o ext/zip/lib/zip_source_buffer.lo +ext/zip/lib/zip_stat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat.c -o ext/zip/lib/zip_stat.lo +ext/zip/lib/zip_entry_new.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_entry_new.c -o ext/zip/lib/zip_entry_new.lo +ext/zip/lib/zip_err_str.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_err_str.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_err_str.c -o ext/zip/lib/zip_err_str.lo +ext/zip/lib/zip_fopen_index.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index.c -o ext/zip/lib/zip_fopen_index.lo +ext/zip/lib/zip_get_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_archive_comment.c -o ext/zip/lib/zip_get_archive_comment.lo +ext/zip/lib/zip_get_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_comment.c -o ext/zip/lib/zip_get_file_comment.lo +ext/zip/lib/zip_new.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_new.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_new.c -o ext/zip/lib/zip_new.lo +ext/zip/lib/zip_source_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_file.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_file.c -o ext/zip/lib/zip_source_file.lo +ext/zip/lib/zip_stat_index.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_index.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_index.c -o ext/zip/lib/zip_stat_index.lo +ext/zip/lib/zip_set_archive_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_archive_comment.c -o ext/zip/lib/zip_set_archive_comment.lo +ext/zip/lib/zip_set_file_comment.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_comment.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_comment.c -o ext/zip/lib/zip_set_file_comment.lo +ext/zip/lib/zip_unchange_archive.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_archive.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_unchange_archive.c -o ext/zip/lib/zip_unchange_archive.lo +ext/zip/lib/zip_memdup.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_memdup.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_memdup.c -o ext/zip/lib/zip_memdup.lo +ext/zip/lib/zip_stat_init.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_init.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_stat_init.c -o ext/zip/lib/zip_stat_init.lo +ext/zip/lib/zip_add_dir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add_dir.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_add_dir.c -o ext/zip/lib/zip_add_dir.lo +ext/zip/lib/zip_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_error_clear.c -o ext/zip/lib/zip_error_clear.lo +ext/zip/lib/zip_file_error_clear.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_clear.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_file_error_clear.c -o ext/zip/lib/zip_file_error_clear.lo +ext/zip/lib/zip_fdopen.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fdopen.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fdopen.c -o ext/zip/lib/zip_fdopen.lo +ext/zip/lib/zip_fopen_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_encrypted.c -o ext/zip/lib/zip_fopen_encrypted.lo +ext/zip/lib/zip_fopen_index_encrypted.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index_encrypted.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_fopen_index_encrypted.c -o ext/zip/lib/zip_fopen_index_encrypted.lo +ext/zip/lib/zip_get_compression_implementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_compression_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_compression_implementation.c -o ext/zip/lib/zip_get_compression_implementation.lo +ext/zip/lib/zip_get_encryption_implementation.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_encryption_implementation.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_encryption_implementation.c -o ext/zip/lib/zip_get_encryption_implementation.lo +ext/zip/lib/zip_get_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_file_extra.c -o ext/zip/lib/zip_get_file_extra.lo +ext/zip/lib/zip_get_num_entries.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_entries.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_get_num_entries.c -o ext/zip/lib/zip_get_num_entries.lo +ext/zip/lib/zip_set_default_password.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_default_password.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_default_password.c -o ext/zip/lib/zip_set_default_password.lo +ext/zip/lib/zip_set_file_extra.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_extra.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_set_file_extra.c -o ext/zip/lib/zip_set_file_extra.lo +ext/zip/lib/zip_source_close.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_close.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_close.c -o ext/zip/lib/zip_source_close.lo +ext/zip/lib/zip_source_crc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_crc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_crc.c -o ext/zip/lib/zip_source_crc.lo +ext/zip/lib/zip_source_deflate.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_deflate.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_deflate.c -o ext/zip/lib/zip_source_deflate.lo +ext/zip/lib/zip_source_error.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_error.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_error.c -o ext/zip/lib/zip_source_error.lo +ext/zip/lib/zip_source_layered.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_layered.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_layered.c -o ext/zip/lib/zip_source_layered.lo +ext/zip/lib/zip_source_open.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_open.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_open.c -o ext/zip/lib/zip_source_open.lo +ext/zip/lib/zip_source_pkware.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pkware.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pkware.c -o ext/zip/lib/zip_source_pkware.lo +ext/zip/lib/zip_source_pop.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pop.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_pop.c -o ext/zip/lib/zip_source_pop.lo +ext/zip/lib/zip_source_read.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_read.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_read.c -o ext/zip/lib/zip_source_read.lo +ext/zip/lib/zip_source_stat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_stat.c + $(LIBTOOL) --mode=compile $(CC) -Iext/zip/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/zip/lib/zip_source_stat.c -o ext/zip/lib/zip_source_stat.lo +ext/mysqlnd/mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd.c -o ext/mysqlnd/mysqlnd.lo +ext/mysqlnd/mysqlnd_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_alloc.c -o ext/mysqlnd/mysqlnd_alloc.lo +ext/mysqlnd/mysqlnd_bt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_bt.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_bt.c -o ext/mysqlnd/mysqlnd_bt.lo +ext/mysqlnd/mysqlnd_charset.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_charset.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_charset.c -o ext/mysqlnd/mysqlnd_charset.lo +ext/mysqlnd/mysqlnd_wireprotocol.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_wireprotocol.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_wireprotocol.c -o ext/mysqlnd/mysqlnd_wireprotocol.lo +ext/mysqlnd/mysqlnd_loaddata.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_loaddata.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_loaddata.c -o ext/mysqlnd/mysqlnd_loaddata.lo +ext/mysqlnd/mysqlnd_reverse_api.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_reverse_api.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_reverse_api.c -o ext/mysqlnd/mysqlnd_reverse_api.lo +ext/mysqlnd/mysqlnd_net.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_net.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_net.c -o ext/mysqlnd/mysqlnd_net.lo +ext/mysqlnd/mysqlnd_statistics.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_statistics.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_statistics.c -o ext/mysqlnd/mysqlnd_statistics.lo +ext/mysqlnd/mysqlnd_driver.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_driver.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_driver.c -o ext/mysqlnd/mysqlnd_driver.lo +ext/mysqlnd/mysqlnd_ext_plugin.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ext_plugin.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ext_plugin.c -o ext/mysqlnd/mysqlnd_ext_plugin.lo +ext/mysqlnd/mysqlnd_auth.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_auth.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_auth.c -o ext/mysqlnd/mysqlnd_auth.lo +ext/mysqlnd/mysqlnd_result.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result.c -o ext/mysqlnd/mysqlnd_result.lo +ext/mysqlnd/mysqlnd_result_meta.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result_meta.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_result_meta.c -o ext/mysqlnd/mysqlnd_result_meta.lo +ext/mysqlnd/mysqlnd_debug.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_debug.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_debug.c -o ext/mysqlnd/mysqlnd_debug.lo +ext/mysqlnd/mysqlnd_block_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_block_alloc.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_block_alloc.c -o ext/mysqlnd/mysqlnd_block_alloc.lo +ext/mysqlnd/mysqlnd_plugin.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_plugin.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_plugin.c -o ext/mysqlnd/mysqlnd_plugin.lo +ext/mysqlnd/php_mysqlnd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/php_mysqlnd.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/php_mysqlnd.c -o ext/mysqlnd/php_mysqlnd.lo +ext/mysqlnd/mysqlnd_ps.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps.c -o ext/mysqlnd/mysqlnd_ps.lo +ext/mysqlnd/mysqlnd_ps_codec.lo: /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps_codec.c + $(LIBTOOL) --mode=compile $(CC) -Iext/mysqlnd/ -I/Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo +TSRM/TSRM.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/TSRM.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/TSRM.c -o TSRM/TSRM.lo +TSRM/tsrm_strtok_r.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_strtok_r.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r.lo +TSRM/tsrm_virtual_cwd.lo: /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_virtual_cwd.c + $(LIBTOOL) --mode=compile $(CC) -ITSRM/ -I/Users/c9s/.phpbrew/build/php-5.5.17/TSRM/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/TSRM/tsrm_virtual_cwd.c -o TSRM/tsrm_virtual_cwd.lo +main/main.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/main.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/main.c -o main/main.lo +main/snprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/snprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/snprintf.c -o main/snprintf.lo +main/spprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/spprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/spprintf.c -o main/spprintf.lo +main/php_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_sprintf.c -o main/php_sprintf.lo +main/fopen_wrappers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/fopen_wrappers.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/fopen_wrappers.c -o main/fopen_wrappers.lo +main/alloca.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/alloca.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/alloca.c -o main/alloca.lo +main/php_scandir.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_scandir.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_scandir.c -o main/php_scandir.lo +main/php_ini.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ini.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ini.c -o main/php_ini.lo +main/SAPI.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/SAPI.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/SAPI.c -o main/SAPI.lo +main/rfc1867.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/rfc1867.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/rfc1867.c -o main/rfc1867.lo +main/php_content_types.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_content_types.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_content_types.c -o main/php_content_types.lo +main/strlcpy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcpy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcpy.c -o main/strlcpy.lo +main/strlcat.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcat.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/strlcat.c -o main/strlcat.lo +main/mergesort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/mergesort.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/mergesort.c -o main/mergesort.lo +main/reentrancy.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/reentrancy.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/reentrancy.c -o main/reentrancy.lo +main/php_variables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_variables.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_variables.c -o main/php_variables.lo +main/php_ticks.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ticks.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_ticks.c -o main/php_ticks.lo +main/network.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/network.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/network.c -o main/network.lo +main/php_open_temporary_file.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/php_open_temporary_file.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo +main/output.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/output.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/output.c -o main/output.lo +main/getopt.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/getopt.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/getopt.c -o main/getopt.lo +main/streams/streams.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/streams.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/streams.c -o main/streams/streams.lo +main/streams/cast.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/cast.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/cast.c -o main/streams/cast.lo +main/streams/memory.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/memory.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/memory.c -o main/streams/memory.lo +main/streams/filter.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/filter.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/filter.c -o main/streams/filter.lo +main/streams/plain_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/plain_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/plain_wrapper.c -o main/streams/plain_wrapper.lo +main/streams/userspace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/userspace.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/userspace.c -o main/streams/userspace.lo +main/streams/transports.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/transports.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/transports.c -o main/streams/transports.lo +main/streams/xp_socket.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/xp_socket.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/xp_socket.c -o main/streams/xp_socket.lo +main/streams/mmap.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/mmap.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/mmap.c -o main/streams/mmap.lo +main/streams/glob_wrapper.lo: /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/glob_wrapper.c + $(LIBTOOL) --mode=compile $(CC) -Imain/streams/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/streams/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/main/streams/glob_wrapper.c -o main/streams/glob_wrapper.lo +main/internal_functions.lo: main/internal_functions.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions.c -o main/internal_functions.lo +main/internal_functions_cli.lo: main/internal_functions_cli.c + $(LIBTOOL) --mode=compile $(CC) -Imain/ -I/Users/c9s/.phpbrew/build/php-5.5.17/main/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c main/internal_functions_cli.c -o main/internal_functions_cli.lo +Zend/zend_language_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo +Zend/zend_language_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo +Zend/zend_ini_parser.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo +Zend/zend_ini_scanner.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo +Zend/zend_alloc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_alloc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_alloc.c -o Zend/zend_alloc.lo +Zend/zend_compile.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_compile.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_compile.c -o Zend/zend_compile.lo +Zend/zend_constants.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_constants.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_constants.c -o Zend/zend_constants.lo +Zend/zend_dynamic_array.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dynamic_array.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dynamic_array.c -o Zend/zend_dynamic_array.lo +Zend/zend_dtrace.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dtrace.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_dtrace.c -o Zend/zend_dtrace.lo +Zend/zend_execute_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo +Zend/zend_highlight.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_highlight.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_highlight.c -o Zend/zend_highlight.lo +Zend/zend_llist.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_llist.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_llist.c -o Zend/zend_llist.lo +Zend/zend_vm_opcodes.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_vm_opcodes.c -o Zend/zend_vm_opcodes.lo +Zend/zend_opcode.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_opcode.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_opcode.c -o Zend/zend_opcode.lo +Zend/zend_operators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_operators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_operators.c -o Zend/zend_operators.lo +Zend/zend_ptr_stack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ptr_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ptr_stack.c -o Zend/zend_ptr_stack.lo +Zend/zend_stack.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stack.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stack.c -o Zend/zend_stack.lo +Zend/zend_variables.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_variables.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_variables.c -o Zend/zend_variables.lo +Zend/zend.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend.c -o Zend/zend.lo +Zend/zend_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_API.c -o Zend/zend_API.lo +Zend/zend_extensions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_extensions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_extensions.c -o Zend/zend_extensions.lo +Zend/zend_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_hash.c -o Zend/zend_hash.lo +Zend/zend_list.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_list.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_list.c -o Zend/zend_list.lo +Zend/zend_indent.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_indent.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_indent.c -o Zend/zend_indent.lo +Zend/zend_builtin_functions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_builtin_functions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_builtin_functions.c -o Zend/zend_builtin_functions.lo +Zend/zend_sprintf.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_sprintf.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_sprintf.c -o Zend/zend_sprintf.lo +Zend/zend_ini.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ini.c -o Zend/zend_ini.lo +Zend/zend_qsort.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_qsort.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_qsort.c -o Zend/zend_qsort.lo +Zend/zend_multibyte.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_multibyte.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_multibyte.c -o Zend/zend_multibyte.lo +Zend/zend_ts_hash.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ts_hash.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_ts_hash.c -o Zend/zend_ts_hash.lo +Zend/zend_stream.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stream.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_stream.c -o Zend/zend_stream.lo +Zend/zend_iterators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_iterators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_iterators.c -o Zend/zend_iterators.lo +Zend/zend_interfaces.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_interfaces.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_interfaces.c -o Zend/zend_interfaces.lo +Zend/zend_exceptions.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_exceptions.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_exceptions.c -o Zend/zend_exceptions.lo +Zend/zend_strtod.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_strtod.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_strtod.c -o Zend/zend_strtod.lo +Zend/zend_gc.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_gc.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_gc.c -o Zend/zend_gc.lo +Zend/zend_closures.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_closures.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_closures.c -o Zend/zend_closures.lo +Zend/zend_float.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_float.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_float.c -o Zend/zend_float.lo +Zend/zend_string.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_string.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_string.c -o Zend/zend_string.lo +Zend/zend_signal.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_signal.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_signal.c -o Zend/zend_signal.lo +Zend/zend_generators.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_generators.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_generators.c -o Zend/zend_generators.lo +Zend/zend_objects.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects.c -o Zend/zend_objects.lo +Zend/zend_object_handlers.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_object_handlers.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo +Zend/zend_objects_API.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects_API.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo +Zend/zend_default_classes.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_default_classes.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo +Zend/zend_execute.lo: /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute.c + $(LIBTOOL) --mode=compile $(CC) -IZend/ -I/Users/c9s/.phpbrew/build/php-5.5.17/Zend/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /Users/c9s/.phpbrew/build/php-5.5.17/Zend/zend_execute.c -o Zend/zend_execute.lo diff --git a/tests/fixtures/php/5.5.17/Makefile.global b/tests/fixtures/php/5.5.17/Makefile.global new file mode 100644 index 000000000..05c5d151b --- /dev/null +++ b/tests/fixtures/php/5.5.17/Makefile.global @@ -0,0 +1,134 @@ +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h + rm -f php5.spec main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/mysqlnd/php_mysqlnd_config.h + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +.PHONY: all clean install distclean test +.NOEXPORT: diff --git a/tests/fixtures/php/5.5.17/configure b/tests/fixtures/php/5.5.17/configure new file mode 100755 index 000000000..d4bcea983 --- /dev/null +++ b/tests/fixtures/php/5.5.17/configure @@ -0,0 +1,115114 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +tagnames=${tagnames+${tagnames},}CXX + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= +PACKAGE_URL= + +ac_unique_file="README.GIT-RULES" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_list= +ac_subst_vars='LTLIBOBJS +LIBTOOL +NMEDIT +DSYMUTIL +STRIP +AR +ECHO +PHP_VERSION_ID +PHP_VERSION +PHP_LIBS +PHP_LDFLAGS +PEAR_INSTALLDIR +NATIVE_RPATHS +INSTALL_IT +EXTRA_INCLUDES +INCLUDES +ZEND_EXTRA_LIBS +EXTRA_LIBS +EXTRA_LDFLAGS_PROGRAM +EXTRA_LDFLAGS +EXTENSION_DIR +DEBUG_CFLAGS +program_suffix +program_prefix +php_abs_top_srcdir +php_abs_top_builddir +abs_srcdir +abs_builddir +PHP_INSTALLED_SAPIS +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR +EXPANDED_PHP_CONFIG_FILE_PATH +EXPANDED_LOCALSTATEDIR +EXPANDED_SYSCONFDIR +EXPANDED_DATADIR +EXPANDED_LIBDIR +EXPANDED_MANDIR +EXPANDED_SBINDIR +EXPANDED_BINDIR +EXPANDED_EXTENSION_DIR +EXPANDED_PEAR_INSTALLDIR +INCLUDE_PATH +INLINE_CFLAGS +RANLIB +SNMP_CONFIG +PDO_OCI_VERSION +PDO_OCI_DIR +PDO_OCI_SHARED_LIBADD +PDO_MYSQL_MODULE_TYPE +ODBC_TYPE +ODBC_LFLAGS +ODBC_LIBS +ODBC_INCLUDE +OCI8_ORACLE_VERSION +OCI8_DIR +OCI8_SHARED_LIBADD +MYSQL_INCLUDE +MYSQL_LIBS +MYSQL_MODULE_TYPE +CXXCPP +ac_ct_CXX +CXXFLAGS +CXX +ICU_CONFIG +OPENSSL_INCDIR_OPT +KRB5_CONFIG +LTP_GENHTML +LTP +ALLOCA +LIBOBJS +PROG_SENDMAIL +php_fpm_prefix +php_fpm_localstatedir +php_fpm_sysconfdir +php_fpm_group +php_fpm_user +php_fpm_systemd +PKG_CONFIG +SHLIB_DL_SUFFIX_NAME +SHLIB_SUFFIX_NAME +RE2C +YFLAGS +YACC +AWK +LN_S +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +CONFIGURE_OPTIONS +CONFIGURE_COMMAND +SED +EGREP +GREP +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_libdir +enable_rpath +enable_re2c_cgoto +enable_ +with_aolserver +with_apxs +with_apache +enable_mod_charset +with_apxs2filter +with_apxs2 +with_apache_hooks +with_apache_hooks_static +with_caudium +enable_cli +with_continuity +enable_embed +enable_fpm +with_fpm_user +with_fpm_group +with_fpm_systemd +with_isapi +with_litespeed +with_milter +with_nsapi +with_phttpd +with_pi3web +with_roxen +enable_roxen_zts +with_thttpd +with_tux +with_webjames +enable_cgi +enable_gcov +enable_debug +with_layout +with_config_file_path +with_config_file_scan_dir +enable_sigchild +enable_libgcc +enable_short_tags +enable_dmalloc +enable_ipv6 +enable_dtrace +enable_fd_setsize +enable_all +with_regex +enable_libxml +with_libxml_dir +with_openssl +with_kerberos +with_pcre_regex +with_sqlite3 +with_zlib +with_zlib_dir +enable_bcmath +with_bz2 +enable_calendar +enable_ctype +with_curl +enable_dba +with_qdbm +with_gdbm +with_ndbm +with_db4 +with_db3 +with_db2 +with_db1 +with_dbm +with_tcadb +with_cdb +enable_inifile +enable_flatfile +enable_dom +with_enchant +enable_exif +enable_fileinfo +enable_filter +with_pcre_dir +enable_ftp +with_openssl_dir +with_gd +with_vpx_dir +with_jpeg_dir +with_png_dir +with_xpm_dir +with_freetype_dir +with_t1lib +enable_gd_native_ttf +enable_gd_jis_conv +with_gettext +with_gmp +with_mhash +enable_hash +with_iconv +with_imap +with_imap_ssl +with_interbase +enable_intl +with_icu_dir +enable_json +with_ldap +with_ldap_sasl +enable_mbstring +enable_mbregex +enable_mbregex_backtrack +with_libmbfl +with_onig +with_mcrypt +with_mssql +with_mysql +with_mysql_sock +with_mysqli +enable_embedded_mysqli +with_oci8 +with_adabas +with_sapdb +with_solid +with_ibm_db2 +with_ODBCRouter +with_empress +with_empress_bcs +with_birdstep +with_custom_odbc +with_iodbc +with_esoob +with_unixODBC +with_dbmaker +enable_opcache +enable_pcntl +enable_pdo +with_pdo_dblib +with_pdo_firebird +with_pdo_mysql +with_pdo_oci +with_pdo_odbc +with_pdo_pgsql +with_pdo_sqlite +with_pgsql +enable_phar +enable_posix +with_pspell +with_libedit +with_readline +with_recode +enable_session +with_mm +enable_shmop +enable_simplexml +with_snmp +enable_soap +enable_sockets +with_sybase_ct +enable_sysvmsg +enable_sysvsem +enable_sysvshm +with_tidy +enable_tokenizer +enable_wddx +with_libexpat_dir +enable_xml +enable_xmlreader +with_xmlrpc +with_iconv_dir +enable_xmlwriter +with_xsl +enable_zip +enable_mysqlnd +enable_mysqlnd_compression_support +with_pear +with_zend_vm +enable_maintainer_zts +enable_inline_optimization +enable_zend_signals +with_tsrm_pth +with_tsrm_st +with_tsrm_pthreads +enable_shared +enable_static +enable_fast_install +with_gnu_ld +enable_libtool_lock +with_pic +with_tags +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +YACC +YFLAGS +CXX +CXXFLAGS +CCC +CXXCPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features and Packages: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-libdir=NAME Look for libraries in .../NAME rather than .../lib + --disable-rpath Disable passing additional runtime library + search paths + --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension + +SAPI modules: + + --with-aolserver=DIR Specify path to the installed AOLserver + --with-apxs=FILE Build shared Apache 1.x module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache=DIR Build Apache 1.x module. DIR is the top-level Apache + build directory /usr/local/apache + --enable-mod-charset APACHE: Enable transfer tables for mod_charset (Rus Apache) + --with-apxs2filter=FILE + EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache-hooks=FILE + EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional + pathname to the Apache apxs tool apxs + --with-apache-hooks-static=DIR + EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache + build directory /usr/local/apache + --enable-mod-charset APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache) + --with-caudium=DIR Build PHP as a Pike module for use with Caudium. + DIR is the Caudium server dir /usr/local/caudium/server + --disable-cli Disable building CLI version of PHP + (this forces --without-pear) + --with-continuity=DIR Build PHP as Continuity Server module. + DIR is path to the installed Continuity Server root + --enable-embed=TYPE EXPERIMENTAL: Enable building of embedded SAPI library + TYPE is either 'shared' or 'static'. TYPE=shared + --enable-fpm Enable building of the fpm SAPI executable + --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) + --with-fpm-group=GRP Set the group for php-fpm to run as. For a system user, this + should usually be set to match the fpm username (default: nobody) + --with-fpm-systemd Activate systemd integration + --with-isapi=DIR Build PHP as an ISAPI module for use with Zeus + --with-litespeed Build PHP as litespeed module + --with-milter=DIR Build PHP as Milter application + --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver + --with-phttpd=DIR Build PHP as phttpd module + --with-pi3web=DIR Build PHP as Pi3Web module + --with-roxen=DIR Build PHP as a Pike module. DIR is the base Roxen + directory, normally /usr/local/roxen/server + --enable-roxen-zts ROXEN: Build the Roxen module using Zend Thread Safety + --with-thttpd=SRCDIR Build PHP as thttpd module + --with-tux=MODULEDIR Build PHP as a TUX module (Linux only) + --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only) + --disable-cgi Disable building CGI version of PHP + +General settings: + + --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!! + --enable-debug Compile with debugging symbols + --with-layout=TYPE Set how installed files will be laid out. Type can + be either PHP or GNU [PHP] + --with-config-file-path=PATH + Set the path in which to look for php.ini [PREFIX/lib] + --with-config-file-scan-dir=PATH + Set the path where to scan for configuration files + --enable-sigchild Enable PHP's own SIGCHLD handler + --enable-libgcc Enable explicitly linking against libgcc + --disable-short-tags Disable the short-form = 0.9.6) + --with-kerberos=DIR OPENSSL: Include Kerberos support + --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support. + DIR is the PCRE install prefix BUNDLED + --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to + SQLite3 installation directory. + --with-zlib=DIR Include ZLIB support (requires zlib >= 1.0.9) + --with-zlib-dir= Define the location of zlib install directory + --enable-bcmath Enable bc style precision math functions + --with-bz2=DIR Include BZip2 support + --enable-calendar Enable support for calendar conversion + --disable-ctype Disable ctype functions + --with-curl=DIR Include cURL support + --enable-dba Build DBA with bundled modules. To build shared DBA + extension use --enable-dba=shared + --with-qdbm=DIR DBA: QDBM support + --with-gdbm=DIR DBA: GDBM support + --with-ndbm=DIR DBA: NDBM support + --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support + --with-db3=DIR DBA: Oracle Berkeley DB 3.x support + --with-db2=DIR DBA: Oracle Berkeley DB 2.x support + --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation + --with-dbm=DIR DBA: DBM support + --with-tcadb=DIR DBA: Tokyo Cabinet abstract DB support + --without-cdb=DIR DBA: CDB support (bundled) + --disable-inifile DBA: INI support (bundled) + --disable-flatfile DBA: FlatFile support (bundled) + --disable-dom Disable DOM support + --with-libxml-dir=DIR DOM: libxml2 install prefix + --with-enchant=DIR Include enchant support. + GNU Aspell version 1.1.3 or higher required. + --enable-exif Enable EXIF (metadata from images) support + --disable-fileinfo Disable fileinfo support + --disable-filter Disable input filter support + --with-pcre-dir FILTER: pcre install prefix + --enable-ftp Enable FTP support + --with-openssl-dir=DIR FTP: openssl install prefix + --with-gd=DIR Include GD support. DIR is the GD library base + install directory BUNDLED + --with-vpx-dir=DIR GD: Set the path to libvpx install prefix + --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix + --with-png-dir=DIR GD: Set the path to libpng install prefix + --with-zlib-dir=DIR GD: Set the path to libz install prefix + --with-xpm-dir=DIR GD: Set the path to libXpm install prefix + --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix + --with-t1lib=DIR GD: Include T1lib support. T1lib version >= 5.0.0 required + --enable-gd-native-ttf GD: Enable TrueType string function + --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support + --with-gettext=DIR Include GNU gettext support + --with-gmp=DIR Include GNU MP support + --with-mhash=DIR Include mhash support + --disable-hash Disable hash support + --without-iconv=DIR Exclude iconv support + --with-imap=DIR Include IMAP support. DIR is the c-client install prefix + --with-kerberos=DIR IMAP: Include Kerberos support. DIR is the Kerberos install prefix + --with-imap-ssl=DIR IMAP: Include SSL support. DIR is the OpenSSL install prefix + --with-interbase=DIR Include InterBase support. DIR is the InterBase base + install directory /usr/interbase + --enable-intl Enable internationalization support + --with-icu-dir=DIR Specify where ICU libraries and headers can be found + --disable-json Disable JavaScript Object Serialization support + --with-ldap=DIR Include LDAP support + --with-ldap-sasl=DIR LDAP: Include Cyrus SASL support + --enable-mbstring Enable multibyte string support + --disable-mbregex MBSTRING: Disable multibyte regex support + --disable-mbregex-backtrack + MBSTRING: Disable multibyte regex backtrack check + --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base + install directory BUNDLED + --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. + If DIR is not set, the bundled oniguruma will be used + --with-mcrypt=DIR Include mcrypt support + --with-mssql=DIR Include MSSQL-DB support. DIR is the FreeTDS home + directory /usr/local/freetds + --with-mysql=DIR Include MySQL support. DIR is the MySQL base + directory, if no DIR is passed or the value is + mysqlnd the MySQL native driver will be used + --with-mysql-sock=SOCKPATH + MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. + If unspecified, the default locations are searched + --with-zlib-dir=DIR MySQL: Set the path to libz install prefix + --with-mysqli=FILE Include MySQLi support. FILE is the path + to mysql_config. If no value or mysqlnd is passed + as FILE, the MySQL native driver will be used + --enable-embedded-mysqli + MYSQLi: Enable embedded support + Note: Does not work with MySQL native driver! + --with-oci8=DIR Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME. + Use --with-oci8=instantclient,/path/to/instant/client/lib + to use an Oracle Instant Client installation + --with-adabas=DIR Include Adabas D support /usr/local + --with-sapdb=DIR Include SAP DB support /usr/local + --with-solid=DIR Include Solid support /usr/local/solid + --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib + --with-ODBCRouter=DIR Include ODBCRouter.com support /usr + --with-empress=DIR Include Empress support \$EMPRESSPATH + (Empress Version >= 8.60 required) + --with-empress-bcs=DIR + Include Empress Local Access support \$EMPRESSPATH + (Empress Version >= 8.60 required) + --with-birdstep=DIR Include Birdstep support /usr/local/birdstep + --with-custom-odbc=DIR Include user defined ODBC support. DIR is ODBC install base + directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and + have some odbc.h in your include dirs. f.e. you should define + following for Sybase SQL Anywhere 5.5.00 on QNX, prior to + running this configure script: + CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\" + LDFLAGS=-lunix + CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\" + --with-iodbc=DIR Include iODBC support /usr/local + --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client + --with-unixODBC=DIR Include unixODBC support /usr/local + --with-dbmaker=DIR Include DBMaker support + --enable-opcache Enable Zend OPcache support + --enable-pcntl Enable pcntl support (CLI/CGI only) + --disable-pdo Disable PHP Data Objects support + --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory + --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base + install directory /opt/firebird + --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory + If no value or mysqlnd is passed as DIR, the + MySQL native driver will be used + --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix + --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME. + Use --with-pdo-oci=instantclient,prefix,version + for an Oracle Instant Client SDK. + For example on Linux with 11.2 RPMs use: + --with-pdo-oci=instantclient,/usr,11.2 + With 10.2 RPMs use: + --with-pdo-oci=instantclient,/usr,10.2.0.4 + --with-pdo-odbc=flavour,dir + PDO: Support for 'flavour' ODBC driver. + include and lib dirs are looked for under 'dir'. + + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic + If ',dir' part is omitted, default for the flavour + you have selected will be used. e.g.: + + --with-pdo-odbc=unixODBC + + will check for unixODBC under /usr/local. You may attempt + to use an otherwise unsupported driver using the \"generic\" + flavour. The syntax for generic ODBC support is: + + --with-pdo-odbc=generic,dir,libname,ldflags,cflags + + When built as 'shared' the extension filename is always pdo_odbc.so + --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base + install directory or the path to pg_config + --without-pdo-sqlite=DIR + PDO: sqlite 3 support. DIR is the sqlite base + install directory BUNDLED + --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL + base install directory or the path to pg_config + --disable-phar Disable phar support + --disable-posix Disable POSIX-like functions + --with-pspell=DIR Include PSPELL support. + GNU Aspell version 0.50.0 or higher required + --with-libedit=DIR Include libedit readline replacement (CLI/CGI only) + --with-readline=DIR Include readline support (CLI/CGI only) + --with-recode=DIR Include recode support + --disable-session Disable session support + --with-mm=DIR SESSION: Include mm support for session storage + --enable-shmop Enable shmop support + --disable-simplexml Disable SimpleXML support + --with-libxml-dir=DIR SimpleXML: libxml2 install prefix + --with-snmp=DIR Include SNMP support + --with-openssl-dir=DIR SNMP: openssl install prefix + --enable-soap Enable SOAP support + --with-libxml-dir=DIR SOAP: libxml2 install prefix + --enable-sockets Enable sockets support + --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home + directory /home/sybase + --enable-sysvmsg Enable sysvmsg support + --enable-sysvsem Enable System V semaphore support + --enable-sysvshm Enable the System V shared memory support + --with-tidy=DIR Include TIDY support + --disable-tokenizer Disable tokenizer support + --enable-wddx Enable WDDX support + --with-libxml-dir=DIR WDDX: libxml2 install prefix + --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated) + --disable-xml Disable XML support + --with-libxml-dir=DIR XML: libxml2 install prefix + --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated) + --disable-xmlreader Disable XMLReader support + --with-libxml-dir=DIR XMLReader: libxml2 install prefix + --with-xmlrpc=DIR Include XMLRPC-EPI support + --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix + --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated) + --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI + --disable-xmlwriter Disable XMLWriter support + --with-libxml-dir=DIR XMLWriter: libxml2 install prefix + --with-xsl=DIR Include XSL support. DIR is the libxslt base + install directory (libxslt >= 1.1.0 required) + --enable-zip Include Zip read/write support + --with-zlib-dir=DIR ZIP: Set the path to libz install prefix + --with-pcre-dir ZIP: pcre install prefix + --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions + --disable-mysqlnd-compression-support + Disable support for the MySQL compressed protocol in mysqlnd + --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix + +PEAR: + + --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] + --without-pear Do not install PEAR + +Zend: + + --with-zend-vm=TYPE Set virtual machine dispatch method. Type is + one of "CALL", "SWITCH" or "GOTO" TYPE=CALL + --enable-maintainer-zts Enable thread safety - for code maintainers only!! + --disable-inline-optimization + If building zend_execute.lo fails, try this switch + --enable-zend-signals Use zend signal handling + +TSRM: + + --with-tsrm-pth=pth-config + Use GNU Pth + --with-tsrm-st Use SGI's State Threads + --with-tsrm-pthreads Use POSIX threads (default) + +Libtool: + + --enable-shared=PKGS Build shared libraries default=yes + --enable-static=PKGS Build static libraries default=yes + --enable-fast-install=PKGS + Optimize for fast installation default=yes + --with-gnu-ld Assume the C compiler uses GNU ld default=no + --disable-libtool-lock Avoid locking (might break parallel builds) + --with-pic Try to use only PIC/non-PIC objects default=use both + --with-tags=TAGS Include additional configurations automatic + + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + YACC The `Yet Another Compiler Compiler' implementation to use. + Defaults to the first program found out of: `bison -y', `byacc', + `yacc'. + YFLAGS The list of arguments that will be passed by default to $YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +configure +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " utime.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${lt_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + +fi + +SED=$lt_cv_path_SED +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } + + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SED" + + + + test -f config.nice && mv config.nice config.nice.old + rm -f config.nice.old + cat >config.nice<> config.nice + fi + done + + echo "'$0' \\" >> config.nice + if test `expr -- $0 : "'.*"` = 0; then + CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'" + else + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0" + fi + for arg in $ac_configure_args; do + if test `expr -- $arg : "'.*"` = 0; then + if test `expr -- $arg : "--.*"` = 0; then + break; + fi + echo "'$arg' \\" >> config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'" + else + if test `expr -- $arg : "'--.*"` = 0; then + break; + fi + echo "$arg \\" >> config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg" + fi + done + echo '"$@"' >> config.nice + chmod +x config.nice + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS" + + + + + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set!" "$LINENO" 5 + fi + + +ac_config_headers="$ac_config_headers main/php_config.h" + + + + +PHP_MAJOR_VERSION=5 +PHP_MINOR_VERSION=5 +PHP_RELEASE_VERSION=17 +PHP_EXTRA_VERSION="" +PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" +PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION" + + + + +echo "/* automatically generated by configure */" > php_version.h.new +echo "/* edit configure.in to change version number */" >> php_version.h.new +echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new +echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new +echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new +echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new +cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 +if test $? -ne 0 ; then + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' +else + rm -f php_version.h.new +fi + + + +if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then + as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5 +fi + +if test -n "$with_apache" && test -n "$with_apxs"; then + as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5 +fi + +if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then + as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5 +fi + + + +cwd=`pwd` + +php_shtool=$srcdir/build/shtool +T_MD=`$php_shtool echo -n -e %B` +T_ME=`$php_shtool echo -n -e %b` + + +test -d include || $php_shtool mkdir include +> Makefile.objects +> Makefile.fragments +pattern=define +$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null + + +test -z "$CFLAGS" && auto_cflags=1 + +abs_srcdir=`(cd $srcdir; pwd)` +abs_builddir=`pwd` + +php_abs_top_srcdir=$abs_srcdir +php_abs_top_builddir=$abs_builddir + + +$php_shtool mkdir -p libs +rm -f libs/* + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in cc gcc + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cc gcc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 +$as_echo_n "checking for icc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__INTEL_COMPILER +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + ICC="yes" + GCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + + + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 +$as_echo_n "checking for suncc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__SUNPRO_C +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then : + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + SUNCC="yes" + GCC="no" + test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + GCC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + +php_with_libdir=lib + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 +$as_echo_n "checking for system library directory... " >&6; } + +# Check whether --with-libdir was given. +if test "${with_libdir+set}" = set; then : + withval=$with_libdir; PHP_LIBDIR=$withval +else + + PHP_LIBDIR=lib + + +fi + + +ext_output=$PHP_LIBDIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_rpath=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 +$as_echo_n "checking whether to enable runpaths... " >&6; } +# Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; PHP_RPATH=$enableval +else + + PHP_RPATH=yes + + +fi + + +ext_output=$PHP_RPATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 +$as_echo_n "checking if compiler supports -R... " >&6; } +if ${php_cv_cc_dashr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-R /usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_dashr=yes +else + php_cv_cc_dashr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 +$as_echo "$php_cv_cc_dashr" >&6; } +if test $php_cv_cc_dashr = "yes"; then + ld_runpath_switch=-R +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 +$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } + if ${php_cv_cc_rpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_rpath=yes +else + php_cv_cc_rpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 +$as_echo "$php_cv_cc_rpath" >&6; } + if test $php_cv_cc_rpath = "yes"; then + ld_runpath_switch=-Wl,-rpath, + else + ld_runpath_switch=-L + fi +fi +if test "$PHP_RPATH" = "no"; then + ld_runpath_switch= +fi + + + + for ac_prog in gawk nawk awk mawk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/xpg4/bin/:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done +test -n "$AWK" || AWK="bork" + + case "$AWK" in + *mawk) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 +$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} + ;; + *gawk) + ;; + bork) + as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 +$as_echo_n "checking if $AWK is broken... " >&6; } + if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + as_fn_error $? "You should install GNU awk" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST AWK" + + + + for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_YACC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + + + # we only support certain bison versions + bison_version_list="2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7" + + # for standalone build of Zend Engine + test -z "$SED" && SED=sed + + bison_version=none + if test "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } +if ${php_cv_bison_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z` + php_cv_bison_version=invalid + if test -n "$bison_version_vars"; then + set $bison_version_vars + bison_version="${1}.${2}" + for bison_check_version in $bison_version_list; do + if test "$bison_version" = "$bison_check_version"; then + php_cv_bison_version="$bison_check_version (ok)" + break + fi + done + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5 +$as_echo "$php_cv_bison_version" >&6; } + fi + case $php_cv_bison_version in + ""|invalid) + bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5 +$as_echo "$as_me: WARNING: $bison_msg" >&2;} + YACC="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST YACC" + + + + # Extract the first word of "re2c", so it can be a program name with args. +set dummy re2c; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RE2C+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RE2C"; then + ac_cv_prog_RE2C="$RE2C" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RE2C="re2c" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RE2C=$ac_cv_prog_RE2C +if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 +$as_echo "$RE2C" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 +$as_echo_n "checking for re2c version... " >&6; } +if ${php_cv_re2c_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + re2c_vernum=`$RE2C --vernum 2>/dev/null` + if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then + php_cv_re2c_version=invalid + else + php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)" + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5 +$as_echo "$php_cv_re2c_version" >&6; } + fi + case $php_cv_re2c_version in + ""|invalid) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5 +$as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;} + RE2C="exit 0;" + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C" + + + +case $php_cv_bison_version in + ""|invalid) + if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then + as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5 + fi + ;; +esac + + +php_enable_re2c_cgoto=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 +$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; } +# Check whether --enable-re2c-cgoto was given. +if test "${enable_re2c_cgoto+set}" = set; then : + enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval +else + + PHP_RE2C_CGOTO=no + + +fi + + +ext_output=$PHP_RE2C_CGOTO +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RE2C_CGOTO" = "no"; then + RE2C_FLAGS="" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 +$as_echo_n "checking whether re2c -g works... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +int main(int argc, const char **argv) +{ + argc = argc; + argv = argv; +label1: +label2: + static void *adr[] = { &&label1, &&label2}; + goto *adr[0]; + return 0; +} + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + RE2C_FLAGS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + RE2C_FLAGS="-g" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS" + + + +case $host_cpu in + alpha*) + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -mieee" + else + CFLAGS="$CFLAGS -ieee" + fi + ;; + sparc*) + if test "$SUNCC" = "yes"; then + CFLAGS="$CFLAGS -xmemalign=8s" + fi + ;; +esac + +if test "$GCC" = "yes"; then + case $host_alias in + *darwin*) + GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'` + ;; + *) + GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'` + ;; + esac + if test $GCC_MAJOR_VERSION -ge 4; then + CFLAGS="$CFLAGS -fvisibility=hidden" + fi +fi + +case $host_alias in + *solaris*) + CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then + enable_libgcc=yes + fi + ;; + *dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" + ;; + *darwin*|*rhapsody*) + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5 +$as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; } +if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -no-cpp-precomp -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5 +$as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_no_cpp_precomp=yes + else + : + + fi + + if test "$gcc_no_cpp_precomp" = "yes"; then + CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + fi + fi + php_multiple_shlib_versions_ok=yes + ;; + *beos*) + beos_threads=1 + LIBS="$LIBS -lbe -lroot" + ;; + *mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV" + ;; + *hpux*) + if test "$GCC" = "yes"; then + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" + fi + ;; + *netware*) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + + + case /main in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in internal_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; } +case $host_alias in + i?86-*-linux*|i?86-*-freebsd*) + if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then + with_pic=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 +$as_echo_n "checking whether /dev/urandom exists... " >&6; } +if test -r "/dev/urandom" && test -c "/dev/urandom"; then + +$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/arandom exists" >&5 +$as_echo_n "checking whether /dev/arandom exists... " >&6; } + if test -r "/dev/arandom" && test -c "/dev/arandom"; then + +$as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + + + + + + + + + + + + + + + + + + + + + + + + +if test "$beos_threads" = "1"; then + pthreads_working="yes" + ac_cv_pthreads_cflags="" +else + save_CFLAGS=$CFLAGS + save_LIBS=$LIBS + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$save_LIBS + CFLAGS=$save_CFLAGS + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_pthreads_cflags= + if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "$pthreads_working" = "yes"; then + threads_result="POSIX-Threads found" +else + threads_result="POSIX-Threads not found" +fi + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME" + + + + SHLIB_SUFFIX_NAME=so + SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME + case $host_alias in + *hpux*) + SHLIB_SUFFIX_NAME=sl + SHLIB_DL_SUFFIX_NAME=sl + ;; + *darwin*) + SHLIB_SUFFIX_NAME=dylib + SHLIB_DL_SUFFIX_NAME=so + ;; + esac + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + +PHP_SAPI=none + + + +SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME +SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a +SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 +$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; } + + + + + +php_with_aolserver=no + + + +# Check whether --with-aolserver was given. +if test "${with_aolserver+set}" = set; then : + withval=$with_aolserver; PHP_AOLSERVER=$withval +else + + PHP_AOLSERVER=no + + +fi + + +ext_output=$PHP_AOLSERVER + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver support" >&5 +$as_echo_n "checking for AOLserver support... " >&6; } + +if test "$PHP_AOLSERVER" != "no"; then + if test -d "$PHP_AOLSERVER/include"; then + PHP_AOLSERVER_SRC=$PHP_AOLSERVER + fi + if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then + as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5 + fi + if test ! -d $PHP_AOLSERVER/bin ; then + as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5 + fi + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then + + if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_AOLSERVER_SRC/include + else + + ep_dir=`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_AOLSERVER_SRC/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_AOLSERVER 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES aolserver" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=aolserver + fi + + + + BUILD_DIR="$BUILD_DIR sapi/aolserver" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS aolserver" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/aolserver in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in aolserver.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_AOLSERVER" >&6; } + + + + + +php_with_apxs=no + + + +# Check whether --with-apxs was given. +if test "${with_apxs+set}" = set; then : + withval=$with_apxs; PHP_APXS=$withval +else + + PHP_APXS=no + + +fi + + +ext_output=$PHP_APXS + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS" != "no"; then + if test "$PHP_APXS" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS + else + + ep_dir=`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5 +$as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5 +$as_echo "1. Perl is not installed;" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5 +$as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5 +$as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 +$as_echo "The output of $APXS follows" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APACHE_INCLUDE=-I$APXS_INCLUDEDIR + + # Test that we're trying to configure with apache 1.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -ge 2000000; then + as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2" "$LINENO" 5 + fi + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_AIX_LDFLAGS="-Wl,-brtl" + build_type=shared + ;; + *darwin*) + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + + PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS" + + SAPI_SHARED=libs/libphp5.so + build_type=bundle + ;; + *) + build_type=shared + ;; + esac + + + if test "$build_type" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "$build_type" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null 2>&1 + + if test "$?" != "0"; then + APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option + else + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5 $SAPI_SHARED" + fi + fi + + if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then + PHP_APXS_BROKEN=yes + fi + STRONGHOLD= + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +php_with_apache=no + + + +# Check whether --with-apache was given. +if test "${with_apache+set}" = set; then : + withval=$with_apache; PHP_APACHE=$withval +else + + PHP_APACHE=no + + +fi + + +ext_output=$PHP_APACHE + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support" >&5 +$as_echo_n "checking for Apache 1.x module support... " >&6; } + +if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then + + if test "$PHP_APACHE" = "yes"; then + # Apache's default directory + PHP_APACHE=/usr/local/apache + fi + + APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module" + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + APACHE_MODULE=yes + + if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then + PHP_APACHE=$PHP_APACHE + else + + ep_dir=`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_APACHE="$ep_realdir"/`basename "$PHP_APACHE"` + fi + + # For Apache 1.2.x + if test -f $PHP_APACHE/src/httpd.h; then + APACHE_INCLUDE=-I$PHP_APACHE/src + APACHE_TARGET=$PHP_APACHE/src + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.2.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + # For Apache 2.0.x + elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + # For Apache 1.3.x + elif test -f $PHP_APACHE/src/main/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # Also for Apache 1.3.x + elif test -f $PHP_APACHE/src/include/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # For StrongHold 2.2 + elif test -f $PHP_APACHE/apache/httpd.h; then + APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include" + APACHE_TARGET=$PHP_APACHE/apache + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - StrongHold" >&6; } + if test -f $PHP_APACHE/apache/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE/src/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE/src/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# compatibility +if test -z "$enable_mod_charset" && test "$with_mod_charset"; then + enable_mod_charset=$with_mod_charset +fi + + +php_enable_mod_charset=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5 +$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; } +# Check whether --enable-mod-charset was given. +if test "${enable_mod_charset+set}" = set; then : + enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval +else + + PHP_MOD_CHARSET=no + + +fi + + +ext_output=$PHP_MOD_CHARSET +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MOD_CHARSET" = "yes"; then + +$as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h + +fi + +if test "$APACHE_MODULE" = "yes"; then + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + $php_shtool mkdir -p sapi/apache + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module" + +fi + +if test -n "$APACHE_INSTALL"; then + if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then + APXS_EXP=-bE:sapi/apache/mod_php5.exp + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 +$as_echo_n "checking for member fd in BUFF *... " >&6; } +if ${ac_cv_php_fd_in_buff+:} false; then : + $as_echo_n "(cached) " >&6 +else + + save=$CPPFLAGS + if test -n "$APXS_INCLUDEDIR"; then + CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR" + else + CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +conn_rec *c; int fd = c->client->fd; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_php_fd_in_buff=yes +else + ac_cv_php_fd_in_buff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS=$save + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5 +$as_echo "$ac_cv_php_fd_in_buff" >&6; } +if test "$ac_cv_php_fd_in_buff" = "yes"; then + +$as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h + +fi + + INSTALL_IT=$APACHE_INSTALL + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD" + +fi + + + + +php_with_apxs2filter=no + + + +# Check whether --with-apxs2filter was given. +if test "${with_apxs2filter+set}" = set; then : + withval=$with_apxs2filter; PHP_APXS2FILTER=$withval +else + + PHP_APXS2FILTER=no + + +fi + + +ext_output=$PHP_APXS2FILTER + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 filter-module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2FILTER" != "no"; then + if test "$PHP_APXS2FILTER" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2FILTER + else + + ep_dir=`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2FILTER"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + # Pick up ap[ru]-N-config if using httpd >=2.1 + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" + + # Test that we're trying to configure with apache 2.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -le 2000000; then + as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5 + elif test "$APACHE_VERSION" -lt 2000040; then + as_fn_error $? "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2filter" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2filter + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2filter" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +php_with_apxs2=no + + + +# Check whether --with-apxs2 was given. +if test "${with_apxs2+set}" = set; then : + withval=$with_apxs2; PHP_APXS2=$withval +else + + PHP_APXS2=no + + +fi + + +ext_output=$PHP_APXS2 + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2" != "no"; then + if test "$PHP_APXS2" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2 + else + + ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + # Pick up ap[ru]-N-config if using httpd >=2.1 + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" + + # Test that we're trying to configure with apache 2.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -le 2000000; then + as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5 + elif test "$APACHE_VERSION" -lt 2000044; then + as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2handler" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2handler + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2handler" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2handler in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_with_apache_hooks=no + + + +# Check whether --with-apache-hooks was given. +if test "${with_apache_hooks+set}" = set; then : + withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval +else + + PHP_APACHE_HOOKS=no + + +fi + + +ext_output=$PHP_APACHE_HOOKS + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; } + +if test "$PHP_APACHE_HOOKS" != "no"; then + if test "$PHP_APACHE_HOOKS" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then + APXS=$PHP_APACHE_HOOKS + else + + ep_dir=`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APACHE_HOOKS"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5 +$as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5 +$as_echo "1. Perl is not installed;" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5 +$as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5 +$as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 +$as_echo "The output of $APXS follows" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APACHE_INCLUDE=-I$APXS_INCLUDEDIR + + # Test that we're trying to configure with apache 1.x + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -ge 2000000; then + as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2" "$LINENO" 5 + fi + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_AIX_LDFLAGS="-Wl,-brtl" + build_type=shared + ;; + *darwin*) + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + + PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS" + + SAPI_SHARED=libs/libphp5.so + build_type=bundle + ;; + *) + build_type=shared + ;; + esac + + + if test "$build_type" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "$build_type" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null 2>&1 + + if test "$?" != "0"; then + APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option + else + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5 $SAPI_SHARED" + fi + fi + + if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then + PHP_APXS_BROKEN=yes + fi + STRONGHOLD= + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + +$as_echo "#define HAVE_APACHE_HOOKS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +php_with_apache_hooks_static=no + + + +# Check whether --with-apache-hooks-static was given. +if test "${with_apache_hooks_static+set}" = set; then : + withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval +else + + PHP_APACHE_HOOKS_STATIC=no + + +fi + + +ext_output=$PHP_APACHE_HOOKS_STATIC + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support" >&5 +$as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; } + +if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then + + if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then + # Apache's default directory + PHP_APACHE_HOOKS_STATIC=/usr/local/apache + fi + + APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module" + + +$as_echo "#define HAVE_APACHE 1" >>confdefs.h + + APACHE_HOOKS_MODULE=yes + + if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then + PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC + else + + ep_dir=`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_APACHE_HOOKS_STATIC="$ep_realdir"/`basename "$PHP_APACHE_HOOKS_STATIC"` + fi + + # For Apache 1.2.x + if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then + APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.2.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + # For Apache 2.0.x + elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + # For Apache 1.3.x + elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # Also for Apache 1.3.x + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - Apache 1.3.x" >&6; } + STRONGHOLD= + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + # For StrongHold 2.2 + elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then + APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include" + APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache_hooks" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache_hooks + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache_hooks" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache_hooks in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sapi_apache.c mod_php5.c php_apache.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes - StrongHold" >&6; } + if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then + +$as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h + + fi + if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then + +$as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h + + if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + fi + elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then + +$as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# compatibility +if test -z "$enable_mod_charset" && test "$with_mod_charset"; then + enable_mod_charset=$with_mod_charset +fi + + +php_enable_mod_charset=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5 +$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; } +# Check whether --enable-mod-charset was given. +if test "${enable_mod_charset+set}" = set; then : + enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval +else + + PHP_MOD_CHARSET=no + + +fi + + +ext_output=$PHP_MOD_CHARSET +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MOD_CHARSET" = "yes"; then + +$as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h + +fi + +if test "$APACHE_HOOKS_MODULE" = "yes"; then + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + $php_shtool mkdir -p sapi/apache_hooks + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module" + +fi + +if test -n "$APACHE_HOOKS_INSTALL"; then + if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then + APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 +$as_echo_n "checking for member fd in BUFF *... " >&6; } +if ${ac_cv_php_fd_in_buff+:} false; then : + $as_echo_n "(cached) " >&6 +else + + save=$CPPFLAGS + if test -n "$APXS_INCLUDEDIR"; then + CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR" + else + CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +conn_rec *c; int fd = c->client->fd; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_php_fd_in_buff=yes +else + ac_cv_php_fd_in_buff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS=$save + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5 +$as_echo "$ac_cv_php_fd_in_buff" >&6; } +if test "$ac_cv_php_fd_in_buff" = "yes"; then + +$as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h + +fi + + INSTALL_IT=$APACHE_HOOKS_INSTALL + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD" + +fi + + + +RESULT=no + +php_with_caudium=no + + + +# Check whether --with-caudium was given. +if test "${with_caudium+set}" = set; then : + withval=$with_caudium; PHP_CAUDIUM=$withval +else + + PHP_CAUDIUM=no + + +fi + + +ext_output=$PHP_CAUDIUM + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Caudium support" >&5 +$as_echo_n "checking for Caudium support... " >&6; } + +if test "$PHP_CAUDIUM" != "no"; then + if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi + if test ! -d $PHP_CAUDIUM ; then + if test "$prefix" = "NONE"; then + PHP_CAUDIUM=/usr/local/caudium/server/ + else + PHP_CAUDIUM=$prefix/caudium/server/ + fi + fi + if test -f $PHP_CAUDIUM/bin/caudium; then + PIKE=$PHP_CAUDIUM/bin/caudium + elif test -f $PHP_CAUDIUM/bin/pike; then + PIKE=$PHP_CAUDIUM/bin/pike + else + as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5 + fi + if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then + PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` + PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' ` + if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PIKE=`echo $PIKE | pike -e 'int tries=100; + string orig,pike=Stdio.File("stdin")->read()-"\n"; + orig=pike; + if(search(orig, "/")) + orig = combine_path(getcwd(), orig); + while(!catch(pike=readlink(pike)) && tries--) + ; + write(combine_path(dirname(orig), pike)); '` + + if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PIKE_INCLUDE_DIR + else + + ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + if test "$prefix" != "NONE"; then + PIKE_C_INCLUDE=$prefix/include/`basename $PIKE` + else + PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C includes in $PIKE_C_INCLUDE" >&5 +$as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; } + if test -f $PIKE_C_INCLUDE/version.h; then + PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'` + ###### VERSION MATCH CHECK ####### + PMAJOR="^#define PIKE_MAJOR_VERSION" + PMINOR="^#define PIKE_MINOR_VERSION" + PBUILD="^#define PIKE_BUILD_VERSION" + + PIKE_CMAJOR_VERSION=0 + PIKE_CMINOR_VERSION=0 + PIKE_CBUILD_VERSION=0 + + PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + if test -z "$PIKE_CMAJOR_VERSION"; then + if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then + PIKE_CMAJOR_VERSION=6 + fi + else + PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'` + fi + + if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then + + if test "$PIKE_C_INCLUDE" != "/usr/include"; then + + if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PIKE_C_INCLUDE + else + + ep_dir=`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_C_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version mismatch" >&5 +$as_echo "version mismatch" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + fi + else + as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5 + fi + PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'` + +$as_echo "#define HAVE_CAUDIUM 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES caudium" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=caudium + fi + + + + BUILD_DIR="$BUILD_DIR sapi/caudium" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS caudium" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/caudium in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in caudium.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$RESULT" >&6; } + + + + +php_enable_cli=yes + + +# Check whether --enable-cli was given. +if test "${enable_cli+set}" = set; then : + enableval=$enable_cli; PHP_CLI=$enableval +else + + PHP_CLI=yes + + +fi + + +ext_output=$PHP_CLI + + + + + +for ac_func in setproctitle +do : + ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SETPROCTITLE 1 +_ACEOF + +fi +done + + +for ac_header in sys/pstat.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_pstat_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_PSTAT_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 +$as_echo_n "checking for PS_STRINGS... " >&6; } +if ${cli_cv_var_PS_STRINGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +PS_STRINGS->ps_nargvstr = 1; +PS_STRINGS->ps_argvstr = "foo"; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cli_cv_var_PS_STRINGS=yes +else + cli_cv_var_PS_STRINGS=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 +$as_echo "$cli_cv_var_PS_STRINGS" >&6; } +if test "$cli_cv_var_PS_STRINGS" = yes ; then + +$as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 +$as_echo_n "checking for CLI build... " >&6; } +if test "$PHP_CLI" != "no"; then + + src=$abs_srcdir/sapi/cli/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_CLI_PATH=sapi/cli/php + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cli" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cli + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cli" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cli" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS" + + + case sapi/cli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + else + BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + fi + ;; + *darwin*) + BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + *netware*) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)" + ;; + *) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + esac + + PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1" + + + + + for header_file in sapi/cli/cli.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 +$as_echo "$PHP_CLI" >&6; } + + + +php_with_continuity=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity support" >&5 +$as_echo_n "checking for Continuity support... " >&6; } + +# Check whether --with-continuity was given. +if test "${with_continuity+set}" = set; then : + withval=$with_continuity; PHP_CONTINUITY=$withval +else + + PHP_CONTINUITY=no + + +fi + + +ext_output=$PHP_CONTINUITY +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONTINUITY" != "no"; then + if test ! -d $PHP_CONTINUITY; then + as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5 +$as_echo_n "checking for Continuity include files... " >&6; } + if test -d $PHP_CONTINUITY/include ; then + CAPI_INCLUDE=$PHP_CONTINUITY/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5 +$as_echo "Continuity Binary Distribution" >&6; } + else + as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5 + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES continuity" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=continuity + fi + + + + BUILD_DIR="$BUILD_DIR sapi/continuity" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS continuity" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/continuity in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in capi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null ; then + ai_p=$CAPI_INCLUDE + else + + ep_dir=`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CAPI_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_CONTINUITY 1" >>confdefs.h + + INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/" +fi + + + + +php_enable_embed=no + + +# Check whether --enable-embed was given. +if test "${enable_embed+set}" = set; then : + enableval=$enable_embed; PHP_EMBED=$enableval +else + + PHP_EMBED=no + + +fi + + +ext_output=$PHP_EMBED + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 +$as_echo_n "checking for embedded SAPI library support... " >&6; } + +if test "$PHP_EMBED" != "no"; then + case "$PHP_EMBED" in + yes|shared) + PHP_EMBED_TYPE=shared + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + static) + PHP_EMBED_TYPE=static + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + *) + PHP_EMBED_TYPE=no + ;; + esac + if test "$PHP_EMBED_TYPE" != "no"; then + + if test "$PHP_EMBED_TYPE" = "program"; then + PHP_BINARIES="$PHP_BINARIES embed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=embed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/embed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed" + + + case "$PHP_EMBED_TYPE" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/embed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_embed.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_EMBED_TYPE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +php_enable_fpm=no + + +# Check whether --enable-fpm was given. +if test "${enable_fpm+set}" = set; then : + enableval=$enable_fpm; PHP_FPM=$enableval +else + + PHP_FPM=no + + +fi + + +ext_output=$PHP_FPM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 +$as_echo_n "checking for FPM build... " >&6; } +if test "$PHP_FPM" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 +$as_echo "$PHP_FPM" >&6; } + + + for ac_func in setenv clearenv setproctitle +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +for ac_lib in '' socket; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_socket+:} false; then : + break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else + ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +$as_echo_n "checking for library containing inet_addr... " >&6; } +if ${ac_cv_search_inet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_addr (); +int +main () +{ +return inet_addr (); + ; + return 0; +} +_ACEOF +for ac_lib in '' nsl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_inet_addr=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_inet_addr+:} false; then : + break +fi +done +if ${ac_cv_search_inet_addr+:} false; then : + +else + ac_cv_search_inet_addr=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +$as_echo "$ac_cv_search_inet_addr" >&6; } +ac_res=$ac_cv_search_inet_addr +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + + for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in sys/select.h sys/socket.h sys/time.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in arpa/inet.h netinet/in.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in sysexits.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" +if test "x$ac_cv_header_sysexits_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSEXITS_H 1 +_ACEOF + +fi + +done + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 +$as_echo_n "checking for prctl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +prctl(0, 0, 0, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PRCTL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + have_clock_gettime=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 +$as_echo_n "checking for clock_gettime... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +$as_echo_n "checking for clock_gettime in -lrt... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lrt" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test "$have_clock_gettime" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h + + fi + + have_clock_get_time=no + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 +$as_echo_n "checking for clock_get_time... " >&6; } + + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include + #include + #include + + int main() + { + kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime; + ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock); + + if (ret != KERN_SUCCESS) { + return 1; + } + + ret = clock_get_time(aClock, &aTime); + if (ret != KERN_SUCCESS) { + return 2; + } + + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_clock_get_time=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_clock_get_time" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h + + fi + + + have_ptrace=no + have_broken_ptrace=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 +$as_echo_n "checking for ptrace... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include +int +main () +{ +ptrace(0, 0, (void *) 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 +$as_echo_n "checking whether ptrace works... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5 +$as_echo "skipped (cross compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + #include + + #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH) + #define PTRACE_ATTACH PT_ATTACH + #endif + + #if !defined(PTRACE_DETACH) && defined(PT_DETACH) + #define PTRACE_DETACH PT_DETACH + #endif + + #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D) + #define PTRACE_PEEKDATA PT_READ_D + #endif + + int main() + { + long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */ + long v2; + pid_t child; + int status; + + if ( (child = fork()) ) { /* parent */ + int ret = 0; + + if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) { + return 2; + } + + waitpid(child, &status, 0); + + #ifdef PT_IO + struct ptrace_io_desc ptio = { + .piod_op = PIOD_READ_D, + .piod_offs = &v1, + .piod_addr = &v2, + .piod_len = sizeof(v1) + }; + + if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) { + ret = 3; + } + #else + errno = 0; + + v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0); + + if (errno) { + ret = 4; + } + #endif + ptrace(PTRACE_DETACH, child, (void *) 1, 0); + + kill(child, SIGKILL); + + return ret ? ret : (v1 != v2); + } + else { /* child */ + sleep(10); + return 0; + } + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_ptrace=no + have_broken_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_ptrace" = "yes"; then + +$as_echo "#define HAVE_PTRACE 1" >>confdefs.h + + fi + + have_mach_vm_read=no + + if test "$have_broken_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 +$as_echo_n "checking for mach_vm_read... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include + #include + +int +main () +{ + + mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_mach_vm_read=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$have_mach_vm_read" = "yes"; then + +$as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h + + fi + + proc_mem_file="" + + if test -r /proc/$$/mem ; then + proc_mem_file="mem" + else + if test -r /proc/$$/as ; then + proc_mem_file="as" + fi + fi + + if test -n "$proc_mem_file" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 +$as_echo_n "checking for proc mem file... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5 +$as_echo "skipped (cross compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #define _FILE_OFFSET_BITS 64 + #include + #include + #include + #include + #include + #include + int main() + { + long v1 = (unsigned int) -1, v2 = 0; + char buf[128]; + int fd; + sprintf(buf, "/proc/%d/$proc_mem_file", getpid()); + fd = open(buf, O_RDONLY); + if (0 > fd) { + return 1; + } + if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) { + close(fd); + return 1; + } + close(fd); + return v1 != v2; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 +$as_echo "$proc_mem_file" >&6; } + +else + + proc_mem_file="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -n "$proc_mem_file"; then + +cat >>confdefs.h <<_ACEOF +#define PROC_MEM_FILE "$proc_mem_file" +_ACEOF + + fi + + fpm_trace_type="" + + if test "$have_ptrace" = "yes"; then + fpm_trace_type=ptrace + + elif test -n "$proc_mem_file"; then + fpm_trace_type=pread + + elif test "$have_mach_vm_read" = "yes" ; then + fpm_trace_type=mach + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 +$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 +$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + int variable = 1; + return (__sync_bool_compare_and_swap(&variable, 1, 2) + && __sync_add_and_fetch(&variable, 1)) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + have_lq=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 +$as_echo_n "checking for TCP_INFO... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct tcp_info ti; int x = TCP_INFO; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=tcp_info + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h + + fi + + if test "$have_lq" = "no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 +$as_echo_n "checking for SO_LISTENQLEN... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=so_listenq + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 +$as_echo_n "checking for sysconf... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +sysconf(_SC_CLK_TCK); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5 +$as_echo_n "checking for times... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ +struct tms t; times(&t); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_TIMES 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 +$as_echo_n "checking for kqueue... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + int kfd; + struct kevent k; + kfd = kqueue(); + /* 0 -> STDIN_FILENO */ + EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 +$as_echo_n "checking for port framework... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int port; + + port = port_create(); + if (port < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 +$as_echo_n "checking for /dev/poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + int n, dp; + struct dvpoll dvp; + dp = 0; + dvp.dp_fds = NULL; + dvp.dp_nfds = 0; + dvp.dp_timeout = 0; + n = ioctl(dp, DP_POLL, &dvp) + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 +$as_echo_n "checking for epoll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int epollfd; + struct epoll_event e; + + epollfd = epoll_create(1); + if (epollfd < 0) { + return 1; + } + + e.events = EPOLLIN | EPOLLET; + e.data.fd = 0; + + if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) { + return 1; + } + + e.events = 0; + if (epoll_wait(epollfd, &e, 1, 1) < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5 +$as_echo_n "checking for poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + struct pollfd fds[2]; + + fds[0].fd = 0; + fds[0].events = POLLIN; + + fds[1].fd = 0; + fds[1].events = POLLIN; + + poll(fds, 2, 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_POLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 +$as_echo_n "checking for select... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* According to POSIX.1-2001 */ + #include + + /* According to earlier standards */ + #include + #include + #include + +int +main () +{ + + fd_set fds; + struct timeval t; + t.tv_sec = 0; + t.tv_usec = 42; + FD_ZERO(&fds); + /* 0 -> STDIN_FILENO */ + FD_SET(0, &fds); + select(FD_SETSIZE, &fds, NULL, NULL, &t); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SELECT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + +php_with_fpm_user=nobody + + + +# Check whether --with-fpm-user was given. +if test "${with_fpm_user+set}" = set; then : + withval=$with_fpm_user; PHP_FPM_USER=$withval +else + + PHP_FPM_USER=nobody + + +fi + + +ext_output=$PHP_FPM_USER + + + + + + +php_with_fpm_group=nobody + + + +# Check whether --with-fpm-group was given. +if test "${with_fpm_group+set}" = set; then : + withval=$with_fpm_group; PHP_FPM_GROUP=$withval +else + + PHP_FPM_GROUP=nobody + + +fi + + +ext_output=$PHP_FPM_GROUP + + + + + + +php_with_fpm_systemd=no + + + +# Check whether --with-fpm-systemd was given. +if test "${with_fpm_systemd+set}" = set; then : + withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval +else + + PHP_FPM_SYSTEMD=no + + +fi + + +ext_output=$PHP_FPM_SYSTEMD + + + + + + if test "$PHP_FPM_SYSTEMD" != "no" ; then + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + unset SYSTEMD_LIBS + unset SYSTEMD_INCS + + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 +$as_echo_n "checking for libsystemd... " >&6; } + SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd` + SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd` + SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5 +$as_echo "version $SYSTEMD_VERS" >&6; } + + elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd-daemon; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 +$as_echo_n "checking for libsystemd-daemon... " >&6; } + SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd-daemon` + SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd-daemon` + SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd-daemon` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5 +$as_echo "version $SYSTEMD_VERS" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd-daemon" >&5 +$as_echo_n "checking for sd_notify in -lsystemd-daemon... " >&6; } +if ${ac_cv_lib_systemd_daemon_sd_notify+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsystemd-daemon $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sd_notify (); +int +main () +{ +return sd_notify (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_systemd_daemon_sd_notify=yes +else + ac_cv_lib_systemd_daemon_sd_notify=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5 +$as_echo "$ac_cv_lib_systemd_daemon_sd_notify" >&6; } +if test "x$ac_cv_lib_systemd_daemon_sd_notify" = xyes; then : + SYSTEMD_LIBS="-lsystemd-daemon" +fi + + fi + + for ac_header in systemd/sd-daemon.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSTEMD_SD_DAEMON_H 1 +_ACEOF + HAVE_SD_DAEMON_H="yes" +else + HAVE_SD_DAEMON_H="no" +fi + +done + + if test $HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then + as_fn_error $? "Your system does not support systemd." "$LINENO" 5 + else + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + + PHP_FPM_SD_FILES="fpm/fpm_systemd.c" + + for ac_i in $SYSTEMD_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + + for ac_i in $SYSTEMD_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + php_fpm_systemd=notify + fi + else + php_fpm_systemd=simple + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd" + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_SYSTEMD "$php_fpm_systemd" +_ACEOF + + + if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then + php_fpm_user="nobody" + else + php_fpm_user="$PHP_FPM_USER" + fi + + if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then + php_fpm_group="nobody" + else + php_fpm_group="$PHP_FPM_GROUP" + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group" + + + + php_fpm_sysconfdir=`eval echo $sysconfdir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir" + + + + php_fpm_localstatedir=`eval echo $localstatedir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir" + + + + php_fpm_prefix=`eval echo $prefix` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_USER "$php_fpm_user" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_GROUP "$php_fpm_group" +_ACEOF + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm" + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html" + + + src=$abs_srcdir/sapi/fpm/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_FPM_PATH=sapi/fpm/php-fpm + + if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then + PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c" + fi + + PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm" + + PHP_FPM_FILES="fpm/fastcgi.c \ + fpm/fpm.c \ + fpm/fpm_children.c \ + fpm/fpm_cleanup.c \ + fpm/fpm_clock.c \ + fpm/fpm_conf.c \ + fpm/fpm_env.c \ + fpm/fpm_events.c \ + fpm/fpm_log.c \ + fpm/fpm_main.c \ + fpm/fpm_php.c \ + fpm/fpm_php_trace.c \ + fpm/fpm_process_ctl.c \ + fpm/fpm_request.c \ + fpm/fpm_shm.c \ + fpm/fpm_scoreboard.c \ + fpm/fpm_signals.c \ + fpm/fpm_sockets.c \ + fpm/fpm_status.c \ + fpm/fpm_stdio.c \ + fpm/fpm_unix.c \ + fpm/fpm_worker_pool.c \ + fpm/zlog.c \ + fpm/events/select.c \ + fpm/events/poll.c \ + fpm/events/epoll.c \ + fpm/events/kqueue.c \ + fpm/events/devpoll.c \ + fpm/events/port.c \ + " + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES fpm" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=fpm + fi + + + + BUILD_DIR="$BUILD_DIR sapi/fpm" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-fpm" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS" + + + case sapi/fpm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *darwin*) + BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *) + BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM" + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_with_isapi=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zeus ISAPI support" >&5 +$as_echo_n "checking for Zeus ISAPI support... " >&6; } + +# Check whether --with-isapi was given. +if test "${with_isapi+set}" = set; then : + withval=$with_isapi; PHP_ISAPI=$withval +else + + PHP_ISAPI=no + + +fi + + +ext_output=$PHP_ISAPI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ISAPI" != "no"; then + if test "$PHP_ISAPI" = "yes"; then + ZEUSPATH=/usr/local/zeus # the default + else + ZEUSPATH=$PHP_ISAPI + fi + test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5 + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define WITH_ZEUS 1" >>confdefs.h + + + if test "$ZEUSPATH/web/include" != "/usr/include"; then + + if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then + ai_p=$ZEUSPATH/web/include + else + + ep_dir=`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZEUSPATH/web/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES isapi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=isapi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/isapi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS isapi" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/isapi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php5isapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for LiteSpeed support... " >&6; } + + +php_with_litespeed=no + + + +# Check whether --with-litespeed was given. +if test "${with_litespeed+set}" = set; then : + withval=$with_litespeed; PHP_LITESPEED=$withval +else + + PHP_LITESPEED=no + test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LITESPEED in +shared,*) + PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'` + ;; +shared) + PHP_LITESPEED=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test "$PHP_LITESPEED" != "no"; then + + src=$abs_srcdir/sapi/litespeed/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/litespeed + ac_builddir=sapi/litespeed + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + SAPI_LITESPEED_PATH=sapi/litespeed/php + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES litespeed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=litespeed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/litespeed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-litespeed" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS" + + + case sapi/litespeed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in lsapi_main.c lsapilib.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_LITESPEED" >&6; } + + + +php_with_milter=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Milter support" >&5 +$as_echo_n "checking for Milter support... " >&6; } + +# Check whether --with-milter was given. +if test "${with_milter+set}" = set; then : + withval=$with_milter; PHP_MILTER=$withval +else + + PHP_MILTER=no + + +fi + + +ext_output=$PHP_MILTER +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MILTER" != "no"; then + if test "$PHP_MILTER" = "yes"; then + if test -f /usr/lib/libmilter.a ; then + MILTERPATH=/usr/lib + else + if test -f /usr/lib/libmilter/libmilter.a ; then + MILTERPATH=/usr/lib/libmilter + else + as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5 + fi + fi + else + MILTERPATH=$PHP_MILTER + fi + + SAPI_MILTER_PATH=sapi/milter/php-milter + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + src=$abs_srcdir/sapi/milter/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/milter + ac_builddir=sapi/milter + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES milter" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=milter + fi + + + + BUILD_DIR="$BUILD_DIR sapi/milter" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS milter" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-milter" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MILTER_OBJS" + + + case sapi/milter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_milter.c getopt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_MILTER_OBJS="$PHP_MILTER_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects</dev/null ; then + ai_p=$MILTERPATH + else + + ep_dir=`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MILTERPATH"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case milter in + c|c_r|pthread*) ;; + *) + LIBS="-lmilter $LIBS" + ;; + esac + + + + + BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_MILTER_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER" + +fi + + + +php_with_nsapi=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI support" >&5 +$as_echo_n "checking for NSAPI support... " >&6; } + +# Check whether --with-nsapi was given. +if test "${with_nsapi+set}" = set; then : + withval=$with_nsapi; PHP_NSAPI=$withval +else + + PHP_NSAPI=no + + +fi + + +ext_output=$PHP_NSAPI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_NSAPI" != "no"; then + if test ! -d $PHP_NSAPI/bin ; then + as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5 +$as_echo_n "checking for NSAPI include files... " >&6; } + if test -d $PHP_NSAPI/include ; then + NSAPI_INC_DIR="$PHP_NSAPI/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape 3.x / Sun 7.x style" >&5 +$as_echo "Netscape 3.x / Sun 7.x style" >&6; } + for ac_header in $NSAPI_INC_DIR/nsapi.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + NSAPI_INCLUDE="-I$NSAPI_INC_DIR" + fi + if test -d $PHP_NSAPI/plugins/include ; then + NSAPI_INC_DIR="$PHP_NSAPI/plugins/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / Sun 6.x style" >&5 +$as_echo "iPlanet 4.x / Sun 6.x style" >&6; } + for ac_header in $NSAPI_INC_DIR/nsapi.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR" + fi + if test -z "$NSAPI_INCLUDE"; then + as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5 + fi + + + for ac_i in $NSAPI_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_NSAPI 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES nsapi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=nsapi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/nsapi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS nsapi" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/nsapi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in nsapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for PHTTPD support... " >&6; } + +# Check whether --with-phttpd was given. +if test "${with_phttpd+set}" = set; then : + withval=$with_phttpd; PHP_PHTTPD=$withval +else + + PHP_PHTTPD=no + + +fi + + +ext_output=$PHP_PHTTPD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHTTPD" != "no"; then + if test ! -d $PHP_PHTTPD ; then + as_fn_error $? "You did not specify a directory" "$LINENO" 5 + fi + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + + if test "$PHP_PHTTPD/include" != "/usr/include"; then + + if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_PHTTPD/include + else + + ep_dir=`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_PHTTPD/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_PHTTPD 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES phttpd" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=phttpd + fi + + + + BUILD_DIR="$BUILD_DIR sapi/phttpd" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phttpd" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/phttpd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in phttpd.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for Pi3Web support... " >&6; } + +# Check whether --with-pi3web was given. +if test "${with_pi3web+set}" = set; then : + withval=$with_pi3web; PHP_PI3WEB=$withval +else + + PHP_PI3WEB=no + + +fi + + +ext_output=$PHP_PI3WEB +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PI3WEB" != "no"; then + if test "$PHP_PI3WEB" = "yes"; then + PI3PATH=../.. # the default + else + PI3PATH=$PHP_PI3WEB + fi + test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5 + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + +$as_echo "#define WITH_PI3WEB 1" >>confdefs.h + + + if test "$PI3PATH/PiAPI" != "/usr/include"; then + + if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/PiAPI + else + + ep_dir=`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/PiAPI"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/Pi2API" != "/usr/include"; then + + if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/Pi2API + else + + ep_dir=`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/Pi2API"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/Pi3API" != "/usr/include"; then + + if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/Pi3API + else + + ep_dir=`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/Pi3API"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PI3PATH/PHP5" != "/usr/include"; then + + if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then + ai_p=$PI3PATH/PHP5 + else + + ep_dir=`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PI3PATH/PHP5"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES pi3web" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=pi3web + fi + + + + BUILD_DIR="$BUILD_DIR sapi/pi3web" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS pi3web" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/pi3web in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pi3web_sapi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking whether Roxen module is build using ZTS... " >&6; } +# Check whether --enable-roxen-zts was given. +if test "${enable_roxen_zts+set}" = set; then : + enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval +else + + PHP_ROXEN_ZTS=no + + +fi + + +ext_output=$PHP_ROXEN_ZTS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +RESULT= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Roxen/Pike support" >&5 +$as_echo_n "checking for Roxen/Pike support... " >&6; } +if test "$PHP_ROXEN" != "no"; then + if test ! -d $PHP_ROXEN ; then + as_fn_error $? "You did not specify a directory" "$LINENO" 5 + fi + if test -f $PHP_ROXEN/bin/roxen; then + PIKE=$PHP_ROXEN/bin/roxen + elif test -f $PHP_ROXEN/bin/pike; then + PIKE=$PHP_ROXEN/bin/pike + else + as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5 + fi + + if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then + PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` + PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'` + if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 + fi + else + as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5 + fi + + + if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PIKE_INCLUDE_DIR + else + + ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_ROXEN 1" >>confdefs.h + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES roxen" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=roxen + fi + + + + BUILD_DIR="$BUILD_DIR sapi/roxen" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS roxen" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/roxen in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in roxen.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5 +$as_echo "$RESULT" >&6; } + + + + +php_with_thttpd=no + + + +# Check whether --with-thttpd was given. +if test "${with_thttpd+set}" = set; then : + withval=$with_thttpd; PHP_THTTPD=$withval +else + + PHP_THTTPD=no + + +fi + + +ext_output=$PHP_THTTPD + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thttpd" >&5 +$as_echo_n "checking for thttpd... " >&6; } + +if test "$PHP_THTTPD" != "no"; then + if test ! -d $PHP_THTTPD; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: thttpd directory does not exist ($PHP_THTTPD)" >&5 +$as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; } + fi + + + if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then + THTTPD=$PHP_THTTPD + else + + ep_dir=`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + THTTPD="$ep_realdir"/`basename "$PHP_THTTPD"` + fi + + + if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then + patch="test -f $THTTPD/php_patched || \ + (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)" + + elif grep Premium $PHP_THTTPD/version.h >/dev/null; then + patch= + else + as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5 + fi + + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_rdynamic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 +$as_echo_n "checking whether $CC supports -rdynamic... " >&6; } +if ${ac_cv_gcc_arg_rdynamic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -rdynamic -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5 +$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_rdynamic=yes + else + : + + fi + + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi + + INSTALL_IT="\ + echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \ + echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \ + echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \ + rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \ + \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \ + \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\ + $patch" + PHP_THTTPD="yes, using $THTTPD" + + if test "$THTTPD" != "/usr/include"; then + + if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then + ai_p=$THTTPD + else + + ep_dir=`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THTTPD"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES thttpd" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=thttpd + fi + + + + BUILD_DIR="$BUILD_DIR sapi/thttpd" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS thttpd" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_THTTPD" >&5 +$as_echo "$PHP_THTTPD" >&6; } + + + +php_with_tux=no + + + +# Check whether --with-tux was given. +if test "${with_tux+set}" = set; then : + withval=$with_tux; PHP_TUX=$withval +else + + PHP_TUX=no + + +fi + + +ext_output=$PHP_TUX + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TUX" >&5 +$as_echo_n "checking for TUX... " >&6; } +if test "$PHP_TUX" != "no"; then + INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so" + for ac_header in tuxmodule.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default" +if test "x$ac_cv_header_tuxmodule_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TUXMODULE_H 1 +_ACEOF + : +else + as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5 +fi + +done + + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES tux" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=tux + fi + + + + BUILD_DIR="$BUILD_DIR sapi/tux" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS tux" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/tux in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_tux.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_TUX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_with_webjames=no + + + +# Check whether --with-webjames was given. +if test "${with_webjames+set}" = set; then : + withval=$with_webjames; PHP_WEBJAMES=$withval +else + + PHP_WEBJAMES=no + + +fi + + +ext_output=$PHP_WEBJAMES + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for webjames" >&5 +$as_echo_n "checking for webjames... " >&6; } + +if test "$PHP_WEBJAMES" != "no"; then + + if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then + PHP_WEBJAMES=$PHP_WEBJAMES + else + + ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PHP_WEBJAMES="$ep_realdir"/`basename "$PHP_WEBJAMES"` + fi + + INSTALL_IT="\ + echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \ + echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \ + echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;" + + if test "$PHP_WEBJAMES" != "/usr/include"; then + + if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then + ai_p=$PHP_WEBJAMES + else + + ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_WEBJAMES"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "static" = "program"; then + PHP_BINARIES="$PHP_BINARIES webjames" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=webjames + fi + + + + BUILD_DIR="$BUILD_DIR sapi/webjames" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS webjames" + + + case "static" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/webjames in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in webjames.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "yes, using $PHP_WEBJAMES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +php_enable_cgi=yes + + +# Check whether --enable-cgi was given. +if test "${enable_cgi+set}" = set; then : + enableval=$enable_cgi; PHP_CGI=$enableval +else + + PHP_CGI=yes + + +fi + + +ext_output=$PHP_CGI + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5 +$as_echo_n "checking for CGI build... " >&6; } +if test "$PHP_CGI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5 +$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "socklen_t" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 +$as_echo_n "checking for sun_len in sys/un.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sun_len" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 +$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; } + case "`uname -sr`" in + IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_LOCKING 1" >>confdefs.h + + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + + src=$abs_srcdir/sapi/cgi/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + case $host_alias in + *cygwin* ) + SAPI_CGI_PATH=sapi/cgi/php-cgi.exe + ;; + * ) + SAPI_CGI_PATH=sapi/cgi/php-cgi + ;; + esac + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cgi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cgi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cgi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cgi" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS" + + + case sapi/cgi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in cgi_main.c fastcgi.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + else + BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + fi + ;; + *darwin*) + BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + *) + BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 +$as_echo_n "checking for chosen SAPI module... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 +$as_echo "$PHP_SAPI" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 +$as_echo_n "checking for executable SAPI binaries... " >&6; } +if test "$PHP_BINARIES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 +$as_echo "$PHP_BINARIES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + +if test -z "$PHP_INSTALLED_SAPIS"; then + as_fn_error $? "Nothing to build." "$LINENO" 5 +fi + +if test "$enable_maintainer_zts" = "yes"; then + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 + fi + case $host_alias in + *solaris*) + PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";; + *freebsd*) + PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";; + *linux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *aix*) + PTHREAD_FLAGS=-D_THREAD_SAFE;; + *irix*) + PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;; + *hpux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *sco*) + PTHREAD_FLAGS=-D_REENTRANT;; + esac + + if test -n "$PTHREAD_FLAGS"; then + CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS" + fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 +$as_echo "${T_MD}Running system checks${T_ME}" >&6; } + + + + PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib + # Extract the first word of "sendmail", so it can be a program name with args. +set dummy sendmail; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PROG_SENDMAIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PROG_SENDMAIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:$PHP_ALT_PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL +if test -n "$PROG_SENDMAIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 +$as_echo "$PROG_SENDMAIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL" + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 +$as_echo_n "checking whether system uses EBCDIC... " >&6; } +if ${ac_cv_ebcdic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_ebcdic=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { + return (unsigned char)'A' != (unsigned char)0xC1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_ebcdic=yes + +else + + ac_cv_ebcdic=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 +$as_echo "$ac_cv_ebcdic" >&6; } + if test "$ac_cv_ebcdic" = "yes"; then + +$as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 +$as_echo_n "checking whether writing to stdout works... " >&6; } +if ${ac_cv_write_stdout+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_write_stdout=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_UNISTD_H +#include +#endif + +#define TEXT "This is the test message -- " + +main() +{ + int n; + + n = write(1, TEXT, sizeof(TEXT)-1); + return (!(n == sizeof(TEXT)-1)); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_write_stdout=yes + +else + + ac_cv_write_stdout=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 +$as_echo "$ac_cv_write_stdout" >&6; } + if test "$ac_cv_write_stdout" = "yes"; then + +$as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h + + fi + + +if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib" +fi +test -d /usr/ucblib && + if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then + + if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then + ai_p=/usr/ucblib + else + + ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "/usr/ucblib"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + + + + unset ac_cv_func_socket + unset ac_cv_func___socket + unset found + + ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" +if test "x$ac_cv_func___socket" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + ;; + + *) + + unset ac_cv_lib_socket_socket + unset ac_cv_lib_socket___socket + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 +$as_echo_n "checking for __socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socket (); +int +main () +{ +return __socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socket=yes +else + ac_cv_lib_socket___socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 +$as_echo "$ac_cv_lib_socket___socket" >&6; } +if test "x$ac_cv_lib_socket___socket" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_socketpair + unset ac_cv_func___socketpair + unset found + + ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" +if test "x$ac_cv_func_socketpair" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" +if test "x$ac_cv_func___socketpair" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + ac_cv_func_socketpair=yes + ;; + + *) + + unset ac_cv_lib_socket_socketpair + unset ac_cv_lib_socket___socketpair + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 +$as_echo_n "checking for socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socketpair (); +int +main () +{ +return socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socketpair=yes +else + ac_cv_lib_socket_socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 +$as_echo "$ac_cv_lib_socket_socketpair" >&6; } +if test "x$ac_cv_lib_socket_socketpair" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 +$as_echo_n "checking for __socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socketpair (); +int +main () +{ +return __socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socketpair=yes +else + ac_cv_lib_socket___socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 +$as_echo "$ac_cv_lib_socket___socketpair" >&6; } +if test "x$ac_cv_lib_socket___socketpair" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socketpair=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_htonl + unset ac_cv_func___htonl + unset found + + ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" +if test "x$ac_cv_func_htonl" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" +if test "x$ac_cv_func___htonl" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + ac_cv_func_htonl=yes + ;; + + *) + + unset ac_cv_lib_socket_htonl + unset ac_cv_lib_socket___htonl + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 +$as_echo_n "checking for htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket_htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char htonl (); +int +main () +{ +return htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_htonl=yes +else + ac_cv_lib_socket_htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 +$as_echo "$ac_cv_lib_socket_htonl" >&6; } +if test "x$ac_cv_lib_socket_htonl" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 +$as_echo_n "checking for __htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket___htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __htonl (); +int +main () +{ +return __htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___htonl=yes +else + ac_cv_lib_socket___htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 +$as_echo "$ac_cv_lib_socket___htonl" >&6; } +if test "x$ac_cv_lib_socket___htonl" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_htonl=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostname + unset ac_cv_func___gethostname + unset found + + ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" +if test "x$ac_cv_func_gethostname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" +if test "x$ac_cv_func___gethostname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + ac_cv_func_gethostname=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostname + unset ac_cv_lib_nsl___gethostname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 +$as_echo_n "checking for gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostname (); +int +main () +{ +return gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostname=yes +else + ac_cv_lib_nsl_gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostname" >&6; } +if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 +$as_echo_n "checking for __gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostname (); +int +main () +{ +return __gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostname=yes +else + ac_cv_lib_nsl___gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 +$as_echo "$ac_cv_lib_nsl___gethostname" >&6; } +if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostname=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostbyaddr + unset ac_cv_func___gethostbyaddr + unset found + + ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" +if test "x$ac_cv_func___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostbyaddr + unset ac_cv_lib_nsl___gethostbyaddr + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyaddr=yes +else + ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostbyaddr (); +int +main () +{ +return __gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostbyaddr=yes +else + ac_cv_lib_nsl___gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_yp_get_default_domain + unset ac_cv_func___yp_get_default_domain + unset found + + ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" +if test "x$ac_cv_func_yp_get_default_domain" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain" +if test "x$ac_cv_func___yp_get_default_domain" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h + + ac_cv_func_yp_get_default_domain=yes + ;; + + *) + + unset ac_cv_lib_nsl_yp_get_default_domain + unset ac_cv_lib_nsl___yp_get_default_domain + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5 +$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char yp_get_default_domain (); +int +main () +{ +return yp_get_default_domain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_yp_get_default_domain=yes +else + ac_cv_lib_nsl_yp_get_default_domain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5 +$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; } +if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5 +$as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __yp_get_default_domain (); +int +main () +{ +return __yp_get_default_domain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___yp_get_default_domain=yes +else + ac_cv_lib_nsl___yp_get_default_domain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5 +$as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; } +if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_yp_get_default_domain=yes + else + + : + + fi + + ;; + + esac + + + + unset ac_cv_func_dlopen + unset ac_cv_func___dlopen + unset found + + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" +if test "x$ac_cv_func___dlopen" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + ac_cv_func_dlopen=yes + ;; + + *) + + unset ac_cv_lib_dl_dlopen + unset ac_cv_lib_dl___dlopen + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 +$as_echo_n "checking for __dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlopen (); +int +main () +{ +return __dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlopen=yes +else + ac_cv_lib_dl___dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 +$as_echo "$ac_cv_lib_dl___dlopen" >&6; } +if test "x$ac_cv_lib_dl___dlopen" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlopen=yes + else + + : + + fi + + ;; + + esac + +if test "$ac_cv_func_dlopen" = "yes"; then + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + + + unset ac_cv_func_inet_aton + unset ac_cv_func___inet_aton + unset found + + ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" +if test "x$ac_cv_func_inet_aton" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" +if test "x$ac_cv_func___inet_aton" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + ;; + + *) + + unset ac_cv_lib_resolv_inet_aton + unset ac_cv_lib_resolv___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_inet_aton=yes +else + ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 +$as_echo_n "checking for __inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___inet_aton=yes +else + ac_cv_lib_resolv___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } +if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + + unset ac_cv_lib_bind_inet_aton + unset ac_cv_lib_bind___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 +$as_echo_n "checking for inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_inet_aton=yes +else + ac_cv_lib_bind_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 +$as_echo "$ac_cv_lib_bind_inet_aton" >&6; } +if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 +$as_echo_n "checking for __inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___inet_aton=yes +else + ac_cv_lib_bind___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 +$as_echo "$ac_cv_lib_bind___inet_aton" >&6; } +if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + : + + fi + + + fi + + ;; + + esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } +if eval \${$as_ac_Header+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include <$ac_hdr> + +int +main () +{ +if ((DIR *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_ac_Header=yes" +else + eval "$as_ac_Header=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_ac_Header + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 +_ACEOF + +ac_header_dirent=$ac_hdr; break +fi + +done +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' dir; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' x; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + +for ac_header in \ +inttypes.h \ +stdint.h \ +dirent.h \ +ApplicationServices/ApplicationServices.h \ +sys/param.h \ +sys/types.h \ +sys/time.h \ +netinet/in.h \ +alloca.h \ +arpa/inet.h \ +arpa/nameser.h \ +assert.h \ +crypt.h \ +dns.h \ +fcntl.h \ +grp.h \ +ieeefp.h \ +langinfo.h \ +limits.h \ +locale.h \ +monetary.h \ +netdb.h \ +pwd.h \ +resolv.h \ +signal.h \ +stdarg.h \ +stdlib.h \ +string.h \ +syslog.h \ +sysexits.h \ +sys/ioctl.h \ +sys/file.h \ +sys/mman.h \ +sys/mount.h \ +sys/poll.h \ +sys/resource.h \ +sys/select.h \ +sys/socket.h \ +sys/stat.h \ +sys/statfs.h \ +sys/statvfs.h \ +sys/vfs.h \ +sys/sysexits.h \ +sys/varargs.h \ +sys/wait.h \ +sys/loadavg.h \ +termios.h \ +unistd.h \ +unix.h \ +utime.h \ +sys/utsname.h \ +sys/ipc.h \ +dlfcn.h \ +assert.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" +if test "x$ac_cv_func_fopencookie" = xyes; then : + have_glibc_fopencookie=yes +fi + + + if test "$have_glibc_fopencookie" = "yes"; then +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_cookie_io_functions_t" = "yes"; then + cookie_io_functions_t=cookie_io_functions_t + have_fopen_cookie=yes + +if test "$cross_compiling" = yes; then : + + cookie_io_functions_use_off64_t=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +struct cookiedata { + __off64_t pos; +}; + +__ssize_t reader(void *cookie, char *buffer, size_t size) +{ return size; } +__ssize_t writer(void *cookie, const char *buffer, size_t size) +{ return size; } +int closer(void *cookie) +{ return 0; } +int seeker(void *cookie, __off64_t *position, int whence) +{ ((struct cookiedata*)cookie)->pos = *position; return 0; } + +cookie_io_functions_t funcs = {reader, writer, seeker, closer}; + +main() { + struct cookiedata g = { 0 }; + FILE *fp = fopencookie(&g, "r", funcs); + + if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192) + exit(0); + exit(1); +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + cookie_io_functions_use_off64_t=yes + +else + + cookie_io_functions_use_off64_t=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ + _IO_cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_IO_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$have_cookie_io_functions_t" = "yes" ; then + cookie_io_functions_t=_IO_cookie_io_functions_t + have_fopen_cookie=yes + fi + fi + + if test "$have_fopen_cookie" = "yes" ; then + +$as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h + + +cat >>confdefs.h <<_ACEOF +#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t +_ACEOF + + if test "$cookie_io_functions_use_off64_t" = "yes" ; then + +$as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h + + fi + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 +$as_echo_n "checking for broken getcwd... " >&6; } + os=`uname -sr 2>/dev/null` + case $os in + SunOS*) + +$as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; };; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5 +$as_echo_n "checking for broken libc stdio... " >&6; } + if ${_cv_have_broken_glibc_fopen_append+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#if !__GLIBC_PREREQ(2,2) +choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + _cv_have_broken_glibc_fopen_append=yes +else + _cv_have_broken_glibc_fopen_append=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(int argc, char *argv[]) +{ + FILE *fp; + long position; + char *filename = tmpnam(NULL); + + fp = fopen(filename, "w"); + if (fp == NULL) { + perror("fopen"); + exit(2); + } + fputs("foobar", fp); + fclose(fp); + + fp = fopen(filename, "a+"); + position = ftell(fp); + fclose(fp); + unlink(filename); + if (position == 0) + return 1; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + _cv_have_broken_glibc_fopen_append=no +else + _cv_have_broken_glibc_fopen_append=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi + + + if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include +#include <$ac_cv_struct_tm> + +" +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_ZONE 1 +_ACEOF + + +fi + +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h + +else + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" +if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_TZNAME $ac_have_decl +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +$as_echo_n "checking for tzname... " >&6; } +if ${ac_cv_var_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if !HAVE_DECL_TZNAME +extern char *tzname[]; +#endif + +int +main () +{ +return tzname[0][0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_var_tzname=yes +else + ac_cv_var_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +$as_echo "$ac_cv_var_tzname" >&6; } + if test $ac_cv_var_tzname = yes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + fi +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5 +$as_echo_n "checking for missing declarations of reentrant functions... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = localtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = gmtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = asctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = ctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = strtok_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 +$as_echo_n "checking for fclose declaration... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int (*func)() = fclose + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + +$as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +$as_echo "missing" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 +$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } +if ${ac_cv_struct_tm_gmtoff+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include <$ac_cv_struct_tm> +int +main () +{ +struct tm tm; tm.tm_gmtoff; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm_gmtoff=yes +else + ac_cv_struct_tm_gmtoff=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5 +$as_echo "$ac_cv_struct_tm_gmtoff" >&6; } + +if test "$ac_cv_struct_tm_gmtoff" = yes; then + +$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 +$as_echo_n "checking for struct flock... " >&6; } +if ${ac_cv_struct_flock+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +struct flock x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_struct_flock=yes + +else + + ac_cv_struct_flock=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 +$as_echo "$ac_cv_struct_flock" >&6; } +if test "$ac_cv_struct_flock" = "yes" ; then + +$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 +$as_echo_n "checking for socklen_t... " >&6; } +if ${ac_cv_socklen_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + +socklen_t x; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_socklen_t=yes + +else + + ac_cv_socklen_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5 +$as_echo "$ac_cv_socklen_t" >&6; } +if test "$ac_cv_socklen_t" = "yes"; then + +$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h + +fi + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +$as_echo_n "checking size of size_t... " >&6; } +if ${ac_cv_sizeof_size_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_size_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (size_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_size_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +$as_echo "$ac_cv_sizeof_size_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 +$as_echo_n "checking size of long long int... " >&6; } +if ${ac_cv_sizeof_long_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 +$as_echo_n "checking size of intmax_t... " >&6; } + + php_cache_value=php_cv_sizeof_intmax_t + if ${php_cv_sizeof_intmax_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(intmax_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTMAX_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 +$as_echo "$php_cv_sizeof_intmax_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 +$as_echo_n "checking size of ssize_t... " >&6; } + + php_cache_value=php_cv_sizeof_ssize_t + if ${php_cv_sizeof_ssize_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ssize_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 +$as_echo "$php_cv_sizeof_ssize_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +$as_echo_n "checking size of ptrdiff_t... " >&6; } + + php_cache_value=php_cv_sizeof_ptrdiff_t + if ${php_cv_sizeof_ptrdiff_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ptrdiff_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_PTRDIFF_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 +$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; } + + +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h + +fi + + +if test "`uname -s 2>/dev/null`" != "QNX"; then + ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" fileblocks.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" + ;; +esac + +fi + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5 +$as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;} + WARNING_LEVEL=0 +fi +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_RDEV 1 +_ACEOF + + +$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h + +fi + + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 +$as_echo_n "checking for struct sockaddr_storage... " >&6; } +if ${ac_cv_sockaddr_storage+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +struct sockaddr_storage s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_storage=yes +else + ac_cv_sockaddr_storage=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 +$as_echo "$ac_cv_sockaddr_storage" >&6; } + if test "$ac_cv_sockaddr_storage" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 +$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } +if ${ac_cv_sockaddr_sa_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +static struct sockaddr sa; int n = (int) sa.sa_len; return n; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_sa_len=yes +else + ac_cv_sockaddr_sa_len=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 +$as_echo "$ac_cv_sockaddr_sa_len" >&6; } + if test "$ac_cv_sockaddr_sa_len" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +$as_echo_n "checking for IPv6 support... " >&6; } +if ${ac_cv_ipv6_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +#include +#include +int +main () +{ +struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_ipv6_support=yes +else + ac_cv_ipv6_support=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 +$as_echo "$ac_cv_ipv6_support" >&6; } + + +for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = xyes; then : + +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + +for ac_func in alphasort \ +asctime_r \ +chroot \ +ctime_r \ +cuserid \ +crypt \ +flock \ +ftok \ +funopen \ +gai_strerror \ +gcvt \ +getloadavg \ +getlogin \ +getprotobyname \ +getprotobynumber \ +getservbyname \ +getservbyport \ +gethostname \ +getrusage \ +gettimeofday \ +gmtime_r \ +getpwnam_r \ +getgrnam_r \ +getpwuid_r \ +grantpt \ +inet_ntoa \ +inet_ntop \ +inet_pton \ +isascii \ +link \ +localtime_r \ +lockf \ +lchown \ +lrand48 \ +memcpy \ +memmove \ +mkstemp \ +mmap \ +nl_langinfo \ +perror \ +poll \ +ptsname \ +putenv \ +realpath \ +random \ +rand_r \ +scandir \ +setitimer \ +setlocale \ +localeconv \ +setenv \ +setpgid \ +setsockopt \ +setvbuf \ +shutdown \ +sin \ +snprintf \ +srand48 \ +srandom \ +statfs \ +statvfs \ +std_syslog \ +strcasecmp \ +strcoll \ +strdup \ +strerror \ +strftime \ +strnlen \ +strptime \ +strstr \ +strtok_r \ +symlink \ +tempnam \ +tzset \ +unlockpt \ +unsetenv \ +usleep \ +utime \ +vsnprintf \ +vasprintf \ +asprintf \ +nanosleep \ + +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + unset ac_cv_lib_rt_nanosleep + unset ac_cv_lib_rt___nanosleep + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 +$as_echo_n "checking for nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt_nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nanosleep (); +int +main () +{ +return nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_nanosleep=yes +else + ac_cv_lib_rt_nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 +$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } +if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 +$as_echo_n "checking for __nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt___nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __nanosleep (); +int +main () +{ +return __nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___nanosleep=yes +else + ac_cv_lib_rt___nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 +$as_echo "$ac_cv_lib_rt___nanosleep" >&6; } +if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_nanosleep=yes + else + + : + + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +$as_echo_n "checking for getaddrinfo... " >&6; } +if ${ac_cv_func_getaddrinfo+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_func_getaddrinfo=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifndef AF_INET +# include +#endif +int main(void) { + struct addrinfo *ai, *pai, hints; + + memset(&hints, 0, sizeof(hints)); + hints.ai_flags = AI_NUMERICHOST; + + if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { + exit(1); + } + + if (ai == 0) { + exit(1); + } + + pai = ai; + + while (pai) { + if (pai->ai_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + if (pai->ai_addr->sa_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + pai = pai->ai_next; + } + freeaddrinfo(ai); + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_getaddrinfo=yes +else + ac_cv_func_getaddrinfo=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + ac_cv_func_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 +$as_echo "$ac_cv_func_getaddrinfo" >&6; } +if test "$ac_cv_func_getaddrinfo" = yes; then + +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 +$as_echo_n "checking for __sync_fetch_and_add... " >&6; } +if ${ac_cv_func_sync_fetch_and_add+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int x;__sync_fetch_and_add(&x,1); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_sync_fetch_and_add=yes +else + ac_cv_func_sync_fetch_and_add=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5 +$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; } +if test "$ac_cv_func_sync_fetch_and_add" = yes; then + +$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes; then : + $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcat.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" +if test "x$ac_cv_func_strlcpy" = xyes; then : + $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcpy.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes; then : + $as_echo "#define HAVE_GETOPT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" getopt.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS getopt.$ac_objext" + ;; +esac + +fi + + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 +$as_echo_n "checking whether utime accepts a null argument... " >&6; } +if ${ac_cv_func_utime_null+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.data; >conftest.data +# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. +if test "$cross_compiling" = yes; then : + ac_cv_func_utime_null='guessing yes' +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + #ifdef HAVE_UTIME_H + # include + #endif +int +main () +{ +struct stat s, t; + return ! (stat ("conftest.data", &s) == 0 + && utime ("conftest.data", 0) == 0 + && stat ("conftest.data", &t) == 0 + && t.st_mtime >= s.st_mtime + && t.st_mtime - s.st_mtime < 120); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_utime_null=yes +else + ac_cv_func_utime_null=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 +$as_echo "$ac_cv_func_utime_null" >&6; } +if test "x$ac_cv_func_utime_null" != xno; then + ac_cv_func_utime_null=yes + +$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h + +fi +rm -f conftest.data + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5 +$as_echo_n "checking for declared timezone... " >&6; } +if ${ac_cv_declared_timezone+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifdef HAVE_SYS_TIME_H +#include +#endif + +int +main () +{ + + time_t foo = (time_t) timezone; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_declared_timezone=yes + +else + + ac_cv_declared_timezone=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5 +$as_echo "$ac_cv_declared_timezone" >&6; } + if test "$ac_cv_declared_timezone" = "yes"; then + +$as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 +$as_echo_n "checking for type of reentrant time-related functions... " >&6; } +if ${ac_cv_time_r_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +main() { +char buf[27]; +struct tm t; +time_t old = 0; +int r, s; + +s = gmtime_r(&old, &t); +r = (int) asctime_r(&t, buf, 26); +if (r == s && s == 0) return (0); +return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=hpux + +else + + if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +main() { + struct tm t, *s; + time_t old = 0; + char buf[27], *p; + + s = gmtime_r(&old, &t); + p = asctime_r(&t, buf, 26); + if (p == buf && s == &t) return (0); + return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=irix + +else + + ac_cv_time_r_type=POSIX + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 +$as_echo "$ac_cv_time_r_type" >&6; } + case $ac_cv_time_r_type in + hpux) +$as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h + ;; + irix) +$as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h + ;; + esac + + + ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r" +if test "x$ac_cv_func_readdir_r" = xyes; then : + ac_cv_func_readdir_r=yes +else + ac_cv_func_readdir=no +fi + + if test "$ac_cv_func_readdir_r" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5 +$as_echo_n "checking for type of readdir_r... " >&6; } +if ${ac_cv_what_readdir_r+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_what_readdir_r=none + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT +#include +#include + +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + +main() { + DIR *dir; + char entry[sizeof(struct dirent)+PATH_MAX]; + struct dirent *pentry = (struct dirent *) &entry; + + dir = opendir("/"); + if (!dir) + exit(1); + if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0) + exit(0); + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_what_readdir_r=POSIX + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT +#include +#include +int readdir_r(DIR *, struct dirent *); + +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + + ac_cv_what_readdir_r=old-style + +else + + ac_cv_what_readdir_r=none + +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5 +$as_echo "$ac_cv_what_readdir_r" >&6; } + case $ac_cv_what_readdir_r in + POSIX) + +$as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h +;; + old-style) + +$as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h +;; + esac + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 +$as_echo_n "checking for in_addr_t... " >&6; } +if ${ac_cv_type_in_addr_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + ac_cv_type_in_addr_t=yes +else + ac_cv_type_in_addr_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 +$as_echo "$ac_cv_type_in_addr_t" >&6; } +if test $ac_cv_type_in_addr_t = no; then + +$as_echo "#define in_addr_t u_int" >>confdefs.h + +fi + + +for ac_func in crypt_r +do : + ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" +if test "x$ac_cv_func_crypt_r" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CRYPT_R 1 +_ACEOF + php_crypt_r="1" +else + php_crypt_r="0" +fi +done + +if test "x$php_crypt_r" = "x1"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +$as_echo_n "checking which data struct is used by crypt_r... " >&6; } +if ${php_cv_crypt_r_style+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_crypt_r_style=none + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +CRYPTD buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=cryptd +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#define _GNU_SOURCE +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data_gnu_source +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +$as_echo "$php_cv_crypt_r_style" >&6; } + + if test "$php_cv_crypt_r_style" = "cryptd"; then + +$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "none"; then + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 + fi + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 +$as_echo "${T_MD}General settings${T_ME}" >&6; } + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + +php_enable_gcov=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 +$as_echo_n "checking whether to include gcov symbols... " >&6; } +# Check whether --enable-gcov was given. +if test "${enable_gcov+set}" = set; then : + enableval=$enable_gcov; PHP_GCOV=$enableval +else + + PHP_GCOV=no + + +fi + + +ext_output=$PHP_GCOV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GCOV" = "yes"; then + + if test "$GCC" != "yes"; then + as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 + fi + + case `$php_shtool path $CC` in + *ccache*) gcc_ccache=yes;; + *) gcc_ccache=no;; + esac + + if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then + as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 + fi + + ltp_version_list="1.5 1.6 1.7 1.9 1.10" + + # Extract the first word of "lcov", so it can be a program name with args. +set dummy lcov; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LTP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LTP"; then + ac_cv_prog_LTP="$LTP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LTP="lcov" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LTP=$ac_cv_prog_LTP +if test -n "$LTP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5 +$as_echo "$LTP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "genhtml", so it can be a program name with args. +set dummy genhtml; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LTP_GENHTML+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LTP_GENHTML"; then + ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LTP_GENHTML="genhtml" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LTP_GENHTML=$ac_cv_prog_LTP_GENHTML +if test -n "$LTP_GENHTML"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5 +$as_echo "$LTP_GENHTML" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LTP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML" + + + if test "$LTP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5 +$as_echo_n "checking for ltp version... " >&6; } +if ${php_cv_ltp_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_ltp_version=invalid + ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'` + for ltp_check_version in $ltp_version_list; do + if test "$ltp_version" = "$ltp_check_version"; then + php_cv_ltp_version="$ltp_check_version (ok)" + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5 +$as_echo "$php_cv_ltp_version" >&6; } + else + ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list" + as_fn_error $? "$ltp_msg" "$LINENO" 5 + fi + + case $php_cv_ltp_version in + ""|invalid) + ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)." + as_fn_error $? "$ltp_msg" "$LINENO" 5 + LTP="exit 0;" + ;; + esac + + if test -z "$LTP_GENHTML"; then + as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_GCOV 1" >>confdefs.h + + + src=$abs_srcdir/Makefile.gcov + ac_srcdir=$abs_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + + + CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" +fi + + +php_enable_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 +$as_echo_n "checking whether to include debugging symbols... " >&6; } +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; PHP_DEBUG=$enableval +else + + PHP_DEBUG=no + + +fi + + +ext_output=$PHP_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DEBUG" = "yes"; then + PHP_DEBUG=1 + ZEND_DEBUG=yes + + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + + if test "$GCC" = "yes" || test "$ICC" = "yes"; then + CFLAGS="$CFLAGS -O0" + CXXFLAGS="$CXXFLAGS -g -O0" + fi + if test "$SUNCC" = "yes"; then + if test -n "$auto_cflags"; then + CFLAGS="-g" + CXXFLAGS="-g" + else + CFLAGS="$CFLAGS -g" + CXXFLAGS="$CFLAGS -g" + fi + fi +else + PHP_DEBUG=0 + ZEND_DEBUG=no +fi + + +php_with_layout=PHP + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 +$as_echo_n "checking layout of installed files... " >&6; } + +# Check whether --with-layout was given. +if test "${with_layout+set}" = set; then : + withval=$with_layout; PHP_LAYOUT=$withval +else + + PHP_LAYOUT=PHP + + +fi + + +ext_output=$PHP_LAYOUT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +case $PHP_LAYOUT in + GNU) + oldstyleextdir=no + ;; + *) + oldstyleextdir=yes + ;; +esac + + +php_with_config_file_path=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 +$as_echo_n "checking path to configuration file... " >&6; } + +# Check whether --with-config-file-path was given. +if test "${with_config_file_path+set}" = set; then : + withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval +else + + PHP_CONFIG_FILE_PATH=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_PATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then + case $PHP_LAYOUT in + GNU) + PHP_CONFIG_FILE_PATH=$sysconfdir + ;; + *) + PHP_CONFIG_FILE_PATH=$libdir + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 +$as_echo_n "checking where to scan for configuration files... " >&6; } + +php_with_config_file_scan_dir=DEFAULT + + + +# Check whether --with-config-file-scan-dir was given. +if test "${with_config_file_scan_dir+set}" = set; then : + withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval +else + + PHP_CONFIG_FILE_SCAN_DIR=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_SCAN_DIR + + + + +if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then + PHP_CONFIG_FILE_SCAN_DIR= +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 +$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + + +php_enable_sigchild=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 +$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; } +# Check whether --enable-sigchild was given. +if test "${enable_sigchild+set}" = set; then : + enableval=$enable_sigchild; PHP_SIGCHILD=$enableval +else + + PHP_SIGCHILD=no + + +fi + + +ext_output=$PHP_SIGCHILD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIGCHILD" = "yes"; then + +$as_echo "#define PHP_SIGCHILD 1" >>confdefs.h + +else + +$as_echo "#define PHP_SIGCHILD 0" >>confdefs.h + +fi + + +php_enable_libgcc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 +$as_echo_n "checking whether to explicitly link against libgcc... " >&6; } +# Check whether --enable-libgcc was given. +if test "${enable_libgcc+set}" = set; then : + enableval=$enable_libgcc; PHP_LIBGCC=$enableval +else + + PHP_LIBGCC=no + + +fi + + +ext_output=$PHP_LIBGCC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBGCC" = "yes"; then + + + libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'` + + + if test -z "$libgcc_libpath"; then + as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 + fi + + if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then + + if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then + ai_p=$libgcc_libpath + else + + ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$libgcc_libpath"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case gcc in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgcc" + ;; + esac + + +fi + + +php_enable_short_tags=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 +$as_echo_n "checking whether to enable short tags by default... " >&6; } +# Check whether --enable-short-tags was given. +if test "${enable_short_tags+set}" = set; then : + enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval +else + + PHP_SHORT_TAGS=yes + + +fi + + +ext_output=$PHP_SHORT_TAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHORT_TAGS" = "yes"; then + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h + +else + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h + +fi + + +php_enable_dmalloc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 +$as_echo_n "checking whether to enable dmalloc... " >&6; } +# Check whether --enable-dmalloc was given. +if test "${enable_dmalloc+set}" = set; then : + enableval=$enable_dmalloc; PHP_DMALLOC=$enableval +else + + PHP_DMALLOC=no + + +fi + + +ext_output=$PHP_DMALLOC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DMALLOC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 +$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } +if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldmalloc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dmalloc_error (); +int +main () +{ +return dmalloc_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dmalloc_dmalloc_error=yes +else + ac_cv_lib_dmalloc_dmalloc_error=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 +$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : + + + + case dmalloc in + c|c_r|pthread*) ;; + *) + LIBS="-ldmalloc $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DMALLOC 1" >>confdefs.h + + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + +else + + as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 + +fi + +fi + + +php_enable_ipv6=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 +$as_echo_n "checking whether to enable IPv6 support... " >&6; } +# Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : + enableval=$enable_ipv6; PHP_IPV6=$enableval +else + + PHP_IPV6=yes + + +fi + + +ext_output=$PHP_IPV6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then + +$as_echo "#define HAVE_IPV6 1" >>confdefs.h + +fi + + +php_enable_dtrace=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 +$as_echo_n "checking whether to enable DTrace support... " >&6; } +# Check whether --enable-dtrace was given. +if test "${enable_dtrace+set}" = set; then : + enableval=$enable_dtrace; PHP_DTRACE=$enableval +else + + PHP_DTRACE=no + + +fi + + +ext_output=$PHP_DTRACE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DTRACE" = "yes"; then + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + case "" in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;; + /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;; + *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";; + esac + + ac_provsrc=Zend/zend_dtrace.d + old_IFS=$IFS + IFS=. + set $ac_provsrc + ac_provobj=$1 + IFS=$old_IFS + + ac_hdrobj=Zend/zend_dtrace_gen.h + + case $host_alias in + *freebsd*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o" + PHP_LDFLAGS="$PHP_LDFLAGS -lelf" + ;; + *solaris*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + *linux*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + esac + + old_IFS=$IFS + for ac_src in main/main.c Zend/zend_API.c \ + Zend/zend_execute.c Zend/zend_exceptions.c \ + Zend/zend_dtrace.c Zend/zend.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + case $php_sapi_module in + shared) + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + ;; + *) + dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + ;; + esac + + cat>>Makefile.objects< \$@ + +\$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + + ;; + *) +cat>>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS" + + +else + + as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 + +fi + +done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 +$as_echo_n "checking how big to make fd sets... " >&6; } + +php_enable_fd_setsize=no + + +# Check whether --enable-fd-setsize was given. +if test "${enable_fd_setsize+set}" = set; then : + enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval +else + + PHP_FD_SETSIZE=no + + +fi + + +ext_output=$PHP_FD_SETSIZE + + + + + +if test "$PHP_FD_SETSIZE" != "no"; then + if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then + CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 +$as_echo "using $PHP_FD_SETSIZE" >&6; } + else + as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 +$as_echo "using system default" >&6; } +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 +$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; } + + + +# Check whether --enable-all was given. +if test "${enable_all+set}" = set; then : + enableval=$enable_all; + PHP_ENABLE_ALL=$enableval + +fi + + +# reading config stubs + + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 +$as_echo_n "checking for int32_t... " >&6; } +if ${ac_cv_int_type_int32_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#elif HAVE_STDINT_H +# include +#endif +int +main () +{ +if ((int32_t *) 0) + return 0; +if (sizeof (int32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_int_type_int32_t=yes +else + ac_cv_int_type_int32_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_int32_t" >&5 +$as_echo "$ac_cv_int_type_int32_t" >&6; } +if test "$ac_cv_int_type_int32_t" = "yes"; then + +$as_echo "#define HAVE_INT32_T 1" >>confdefs.h + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 +$as_echo_n "checking for uint32_t... " >&6; } +if ${ac_cv_int_type_uint32_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#elif HAVE_STDINT_H +# include +#endif +int +main () +{ +if ((uint32_t *) 0) + return 0; +if (sizeof (uint32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_int_type_uint32_t=yes +else + ac_cv_int_type_uint32_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_uint32_t" >&5 +$as_echo "$ac_cv_int_type_uint32_t" >&6; } +if test "$ac_cv_int_type_uint32_t" = "yes"; then + +$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h + +fi + + +for ac_header in \ +sys/types.h \ +inttypes.h \ +stdint.h \ +string.h \ +stdlib.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_func in strtoll atoll strftime +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + +PHP_DATE_CFLAGS="-I@ext_builddir@/lib" +timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c + lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" + + + ext_builddir=ext/date + ext_srcdir=$abs_srcdir/ext/date + + ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_DATE_SHARED=no + + + case ext/date in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DATE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_DATE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/date in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_builddir/lib + else + + ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_srcdir/lib" != "/usr/include"; then + + if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/lib + else + + ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + header_path=ext/date + for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + +cat > $ext_builddir/lib/timelib_config.h < +#endif +EOF + + + +php_with_regex=php + + + +# Check whether --with-regex was given. +if test "${with_regex+set}" = set; then : + withval=$with_regex; PHP_REGEX=$withval +else + + PHP_REGEX=php + + +fi + + +ext_output=$PHP_REGEX + + + + + +case $PHP_REGEX in + system) + if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then + REGEX_TYPE=php + else + REGEX_TYPE=system + fi + ;; + yes | php) + REGEX_TYPE=php + ;; + *) + REGEX_TYPE=php + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid regex library type selected. Using default value: php" >&5 +$as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;} + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which regex library to use" >&5 +$as_echo_n "checking which regex library to use... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REGEX_TYPE" >&5 +$as_echo "$REGEX_TYPE" >&6; } + +if test "$REGEX_TYPE" = "php"; then + ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c" + ereg_regex_headers="regex/" + PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp" +fi + + + ext_builddir=ext/ereg + ext_srcdir=$abs_srcdir/ext/ereg + + ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_EREG_SHARED=no + + + case ext/ereg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ereg.c $ereg_regex_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EREG 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_EREG_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ereg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ereg.c $ereg_regex_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +$as_echo "#define HSREGEX 1" >>confdefs.h + + +$as_echo "#define REGEX 1" >>confdefs.h + + + + $php_shtool mkdir -p $ext_builddir/regex + + + + if test "$ext_srcdir/regex" != "/usr/include"; then + + if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/regex + else + + ep_dir=`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/regex"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + +elif test "$REGEX_TYPE" = "system"; then + +$as_echo "#define REGEX 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5 +$as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; } +if ${ac_cv_regex_t_re_magic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +regex_t rt; rt.re_magic; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_regex_t_re_magic=yes +else + ac_cv_regex_t_re_magic=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_regex_t_re_magic" >&5 +$as_echo "$ac_cv_regex_t_re_magic" >&6; } + if test "$ac_cv_regex_t_re_magic" = "yes"; then + +$as_echo "#define HAVE_REGEX_T_RE_MAGIC " >>confdefs.h + + fi +fi + + + +php_enable_libxml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5 +$as_echo_n "checking whether to enable LIBXML support... " >&6; } +# Check whether --enable-libxml was given. +if test "${enable_libxml+set}" = set; then : + enableval=$enable_libxml; PHP_LIBXML=$enableval +else + + PHP_LIBXML=yes + test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBXML in +shared,*) + PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_LIBXML" != "no"; then + + ext_shared=no + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $LIBXML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + ext_builddir=ext/libxml + ext_srcdir=$abs_srcdir/ext/libxml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LIBXML_SHARED=no + + + case ext/libxml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LIBXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LIBXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/libxml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for OpenSSL support... " >&6; } + +# Check whether --with-openssl was given. +if test "${with_openssl+set}" = set; then : + withval=$with_openssl; PHP_OPENSSL=$withval +else + + PHP_OPENSSL=no + test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPENSSL in +shared,*) + PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPENSSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 +$as_echo_n "checking for Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPENSSL" != "no"; then + + ext_builddir=ext/openssl + ext_srcdir=$abs_srcdir/ext/openssl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OPENSSL_SHARED=no + + + case ext/openssl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPENSSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OPENSSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/openssl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no" + ;; +esac +fi +KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG +if test -n "$KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 +$as_echo "$KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then + KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi` + KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi` + + if test -n "$KERBEROS_LIBS"; then + found_kerberos=yes + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_kerberos" = "no"; then + + if test "$PHP_KERBEROS" = "yes"; then + PHP_KERBEROS="/usr/kerberos /usr/local /usr" + fi + + for i in $PHP_KERBEROS; do + if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + PHP_KERBEROS_DIR=$i + break + fi + done + + if test "$PHP_KERBEROS_DIR"; then + found_kerberos=yes + + if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5" + else + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgssapi_krb5" + ;; + esac + + + fi + ;; + esac + + + + + case krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5" + else + + + case krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lkrb5" + ;; + esac + + + fi + ;; + esac + + + + + case k5crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto" + else + + + case k5crypto in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lk5crypto" + ;; + esac + + + fi + ;; + esac + + + + + case com_err in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err" + else + + + case com_err in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lcom_err" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then + + if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/include + else + + ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + fi + + if test "$found_kerberos" = "yes"; then +: + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5 +$as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; } +if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char DSA_get_default_method (); +int +main () +{ +return DSA_get_default_method (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_DSA_get_default_method=yes +else + ac_cv_lib_ssl_DSA_get_default_method=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5 +$as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; } +if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5 +$as_echo_n "checking for X509_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_X509_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char X509_free (); +int +main () +{ +return X509_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_X509_free=yes +else + ac_cv_lib_crypto_X509_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5 +$as_echo "$ac_cv_lib_crypto_X509_free" >&6; } +if test "x$ac_cv_lib_crypto_X509_free" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + + +$as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 + + fi + +fi + + + + +php_with_pcre_regex=yes + + + +# Check whether --with-pcre-regex was given. +if test "${with_pcre_regex+set}" = set; then : + withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval +else + + PHP_PCRE_REGEX=yes + + +fi + + +ext_output=$PHP_PCRE_REGEX + + + + + + if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE headers location" >&5 +$as_echo_n "checking for PCRE headers location... " >&6; } + for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do + test -f $i/pcre.h && PCRE_INCDIR=$i + done + + if test -z "$PCRE_INCDIR"; then + as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5 +$as_echo "$PCRE_INCDIR" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5 +$as_echo_n "checking for PCRE library location... " >&6; } + for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do + test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j + done + + if test -z "$PCRE_LIBDIR" ; then + as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5 +$as_echo "$PCRE_LIBDIR" >&6; } + + + pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'` + + pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'` + if test "$pcre_minor_length" -eq 2 ; then + pcre_minor="$pcre_minor"0 + fi + pcre_version=$pcre_major$pcre_minor + if test "$pcre_version" -lt 660; then + as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5 + fi + + + + if test -n "$PCRE_LIBDIR"; then + + if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then + + if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PCRE_LIBDIR + else + + ep_dir=`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PCRE_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pcre in + c|c_r|pthread*) ;; + *) + LIBS="-lpcre $LIBS" + ;; + esac + + + + + + +$as_echo "#define HAVE_PCRE 1" >>confdefs.h + + + if test "$PCRE_INCDIR" != "/usr/include"; then + + if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PCRE_INCDIR + else + + ep_dir=`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PCRE_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PCRE library to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 +$as_echo "bundled" >&6; } + pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \ + pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \ + pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \ + pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \ + pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \ + pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \ + pcrelib/pcre_version.c pcrelib/pcre_xclass.c" + PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib" + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + + ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcre in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + fi + + + +php_with_sqlite3=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 +$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; } + +# Check whether --with-sqlite3 was given. +if test "${with_sqlite3+set}" = set; then : + withval=$with_sqlite3; PHP_SQLITE3=$withval +else + + PHP_SQLITE3=yes + test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SQLITE3 in +shared,*) + PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'` + ;; +shared) + PHP_SQLITE3=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test $PHP_SQLITE3 != "no"; then + sqlite3_extra_sources="" + PHP_SQLITE3_CFLAGS="" + + if test -z "$enable_maintainer_zts"; then + if test -f "$phpincludedir/main/php_config.h"; then + ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'` + if test "$ZTS" -eq "1"; then + enable_maintainer_zts="yes" + fi + fi + fi + + if test $PHP_SQLITE3 != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5 +$as_echo_n "checking for sqlite3 files in default path... " >&6; } + for i in $PHP_SQLITE3 /usr/local /usr; do + if test -r $i/include/sqlite3.h; then + SQLITE3_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + + if test -z "$SQLITE3_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5 +$as_echo_n "checking for SQLite 3.3.9+... " >&6; } + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$SQLITE3_DIR/$PHP_LIBDIR -lm + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_prepare_v2 (); +int +main () +{ +return sqlite3_prepare_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_prepare_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD" + if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then + + if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then + + if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sqlite3 in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlite3 $LIBS" + ;; + esac + + + + + fi + + + + if test "$SQLITE3_DIR/include" != "/usr/include"; then + + if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$SQLITE3_DIR/include + else + + ep_dir=`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_prepare_v2 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_key (); +int +main () +{ +return sqlite3_key (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_key=yes +else + ac_cv_lib_sqlite3_sqlite3_key=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_key + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_column_table_name (); +int +main () +{ +return sqlite3_column_table_name (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_column_table_name=yes +else + ac_cv_lib_sqlite3_sqlite3_column_table_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define SQLITE_ENABLE_COLUMN_METADATA 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_column_table_name + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_load_extension (); +int +main () +{ +return sqlite3_load_extension (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_load_extension=yes +else + ac_cv_lib_sqlite3_sqlite3_load_extension=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_load_extension + +$as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h + + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5 +$as_echo_n "checking bundled sqlite3 library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + sqlite3_extra_sources="libsqlite/sqlite3.c" + + if test "$enable_maintainer_zts" = "yes"; then + threadsafe_flags="-DSQLITE_THREADSAFE=1" + else + threadsafe_flags="-DSQLITE_THREADSAFE=0" + fi + + if test "$ZEND_DEBUG" = "yes"; then + debug_flags="-DSQLITE_DEBUG=1" + fi + + other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1" + + if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then + other_flags="$other_flags -DSQLITE_ENABLE_ICU=1" + fi + + PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" + + + for header_file in ext/sqlite3/libsqlite/sqlite3.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi + + +$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h + + + sqlite3_sources="sqlite3.c $sqlite3_extra_sources" + + + ext_builddir=ext/sqlite3 + ext_srcdir=$abs_srcdir/ext/sqlite3 + + ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SQLITE3_SHARED=no + + + case ext/sqlite3 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $sqlite3_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SQLITE3 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SQLITE3_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sqlite3 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $sqlite3_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ZLIB support... " >&6; } + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; PHP_ZLIB=$withval +else + + PHP_ZLIB=no + test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZLIB in +shared,*) + PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5 +$as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then + + ext_builddir=ext/zlib + ext_srcdir=$abs_srcdir/ext/zlib + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZLIB_SHARED=no + + + case ext/zlib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/zlib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 1.2.0.4" >&5 +$as_echo_n "checking for zlib version >= 1.2.0.4... " >&6; } + ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[^0-9\.]//g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5 +$as_echo "$ZLIB_VERSION" >&6; } + if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then + as_fn_error $? "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ac_extra + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 +$as_echo_n "checking for gzgets in -lz... " >&6; } +if ${ac_cv_lib_z_gzgets+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gzgets (); +int +main () +{ +return gzgets (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_gzgets=yes +else + ac_cv_lib_z_gzgets=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 +$as_echo "$ac_cv_lib_z_gzgets" >&6; } +if test "x$ac_cv_lib_z_gzgets" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ZLIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_z_gzgets + + as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5 + + +fi + + + + if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + PHP_ZLIB_DIR=$ZLIB_DIR + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$ZLIB_INCDIR" != "/usr/include"; then + + if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ZLIB_INCDIR + else + + ep_dir=`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ZLIB_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +fi + + + +php_enable_bcmath=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5 +$as_echo_n "checking whether to enable bc style precision math functions... " >&6; } +# Check whether --enable-bcmath was given. +if test "${enable_bcmath+set}" = set; then : + enableval=$enable_bcmath; PHP_BCMATH=$enableval +else + + PHP_BCMATH=no + test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BCMATH in +shared,*) + PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'` + ;; +shared) + PHP_BCMATH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BCMATH" != "no"; then + + ext_builddir=ext/bcmath + ext_srcdir=$abs_srcdir/ext/bcmath + + ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BCMATH_SHARED=no + + + case ext/bcmath in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BCMATH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BCMATH_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/bcmath in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_with_bz2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 +$as_echo_n "checking for BZip2 support... " >&6; } + +# Check whether --with-bz2 was given. +if test "${with_bz2+set}" = set; then : + withval=$with_bz2; PHP_BZ2=$withval +else + + PHP_BZ2=no + test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BZ2 in +shared,*) + PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'` + ;; +shared) + PHP_BZ2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BZ2" != "no"; then + if test -r $PHP_BZ2/include/bzlib.h; then + BZIP_DIR=$PHP_BZ2 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 +$as_echo_n "checking for BZip2 in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/bzlib.h; then + BZIP_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$BZIP_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$BZIP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 +$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } +if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbz2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char BZ2_bzerror (); +int +main () +{ +return BZ2_bzerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bz2_BZ2_bzerror=yes +else + ac_cv_lib_bz2_BZ2_bzerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 +$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$BZIP_DIR/include" != "/usr/include"; then + + if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/include + else + + ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD" + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD" + test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case bz2 in + c|c_r|pthread*) ;; + *) + LIBS="-lbz2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BZ2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_bz2_BZ2_bzerror + + as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/bz2 + ext_srcdir=$abs_srcdir/ext/bz2 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BZ2_SHARED=no + + + case ext/bz2 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BZ2 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BZ2_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/bz2 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable calendar conversion support... " >&6; } +# Check whether --enable-calendar was given. +if test "${enable_calendar+set}" = set; then : + enableval=$enable_calendar; PHP_CALENDAR=$enableval +else + + PHP_CALENDAR=no + test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CALENDAR in +shared,*) + PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_CALENDAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CALENDAR" = "yes"; then + +$as_echo "#define HAVE_CALENDAR 1" >>confdefs.h + + + ext_builddir=ext/calendar + ext_srcdir=$abs_srcdir/ext/calendar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CALENDAR_SHARED=no + + + case ext/calendar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CALENDAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CALENDAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/calendar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable ctype functions... " >&6; } +# Check whether --enable-ctype was given. +if test "${enable_ctype+set}" = set; then : + enableval=$enable_ctype; PHP_CTYPE=$enableval +else + + PHP_CTYPE=yes + test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CTYPE in +shared,*) + PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'` + ;; +shared) + PHP_CTYPE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CTYPE" != "no"; then + +$as_echo "#define HAVE_CTYPE 1" >>confdefs.h + + + ext_builddir=ext/ctype + ext_srcdir=$abs_srcdir/ext/ctype + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CTYPE_SHARED=no + + + case ext/ctype in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CTYPE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CTYPE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ctype in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for cURL support... " >&6; } + +# Check whether --with-curl was given. +if test "${with_curl+set}" = set; then : + withval=$with_curl; PHP_CURL=$withval +else + + PHP_CURL=no + test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CURL in +shared,*) + PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'` + ;; +shared) + PHP_CURL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CURL" != "no"; then + if test -r $PHP_CURL/include/curl/easy.h; then + CURL_DIR=$PHP_CURL + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5 +$as_echo_n "checking for cURL in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/curl/easy.h; then + CURL_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$CURL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the libcurl distribution - + easy.h should be in /include/curl/" "$LINENO" 5 + fi + + CURL_CONFIG="curl-config" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.10.5 or greater" >&5 +$as_echo_n "checking for cURL 7.10.5 or greater... " >&6; } + + if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/bin/curl-config + else + if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then + CURL_CONFIG=${CURL_DIR}/curl-config + fi + fi + + curl_version_full=`$CURL_CONFIG --version` + curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test "$curl_version" -ge 7010005; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5 +$as_echo "$curl_version_full" >&6; } + CURL_LIBS=`$CURL_CONFIG --libs` + else + as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5 + fi + + + if test "$CURL_DIR/include" != "/usr/include"; then + + if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/include + else + + ep_dir=`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $CURL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD" + if test -n "$CURL_DIR/$PHP_LIBDIR"; then + + if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$CURL_DIR/$PHP_LIBDIR"; then + + if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$CURL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case curl in + c|c_r|pthread*) ;; + *) + LIBS="-lcurl $LIBS" + ;; + esac + + + + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 +$as_echo_n "checking for SSL support in libcurl... " >&6; } + CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL` + if test "$CURL_SSL" = "SSL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h + + + save_CFLAGS="$CFLAGS" + CFLAGS="`$CURL_CONFIG --cflags`" + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5 +$as_echo_n "checking for openssl support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + for ac_header in openssl/crypto.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OPENSSL_CRYPTO_H 1 +_ACEOF + + +$as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h + + +fi + +done + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5 +$as_echo_n "checking for gnutls support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" +if test "x$ac_cv_header_gcrypt_h" = xyes; then : + + +$as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h + + +fi + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + CFLAGS="$save_CFLAGS" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 +$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_perform (); +int +main () +{ +return curl_easy_perform (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_perform=yes +else + ac_cv_lib_curl_curl_easy_perform=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_perform + + as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5 +$as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_strerror (); +int +main () +{ +return curl_easy_strerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_strerror=yes +else + ac_cv_lib_curl_curl_easy_strerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_strerror + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5 +$as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_multi_strerror (); +int +main () +{ +return curl_multi_strerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_multi_strerror=yes +else + ac_cv_lib_curl_curl_multi_strerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5 +$as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; } +if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_multi_strerror + + +fi + + + + ext_builddir=ext/curl + ext_srcdir=$abs_srcdir/ext/curl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CURL_SHARED=no + + + case ext/curl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CURL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CURL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/curl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 +$as_echo_n "checking for dpopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dpopen (); +int +main () +{ +return dpopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define QDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_QDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dpopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=QDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# GDBM +if test "$PHP_GDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=GDBM + if test -n "gdbm"; then + THIS_FULL_NAME="gdbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-gdbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_GDBM /usr/local /usr; do + if test -f "$i/include/gdbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 +$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } +if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdbm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdbm_open (); +int +main () +{ +return gdbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gdbm_gdbm_open=yes +else + ac_cv_lib_gdbm_gdbm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 +$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define GDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_GDBM 1" >>confdefs.h + + THIS_LIBS=gdbm + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gdbm_gdbm_open + + +fi + + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=GDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# NDBM +if test "$PHP_NDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_NDBM /usr/local /usr; do + if test -f "$i/include/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/ndbm.h + break + elif test -f "$i/include/db1/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/ndbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in ndbm db1 c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 +$as_echo_n "checking for dbm_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbm_open (); +int +main () +{ +return dbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define NDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_NDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbm_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=NDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_TCADB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_TCADB /usr/local /usr; do + if test -f "$i/include/tcadb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/tcadb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in tokyocabinet; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 +$as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tcadbopen (); +int +main () +{ +return tcadbopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define TCADB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_TCADB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_tcadbopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=TCADB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + + + +# DB4 +if test "$PHP_DB4" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + dbdp4="/usr/local/BerkeleyDB.4." + dbdp5="/usr/local/BerkeleyDB.5." + for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do + if test -f "$i/db5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db5/db.h + break + elif test -f "$i/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h + break + elif test -f "$i/include/db5.0/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.0/db.h + break + elif test -f "$i/include/db4.8/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.8/db.h + break + elif test -f "$i/include/db4.7/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.7/db.h + break + elif test -f "$i/include/db4.6/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.6/db.h + break + elif test -f "$i/include/db4.5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.5/db.h + break + elif test -f "$i/include/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4/db.h + break + elif test -f "$i/include/db/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db4.h + break + elif test -f "$i/include/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 +$as_echo_n "checking for DB4 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "4" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB4 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB4_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB4_LIBS=$THIS_LIBS + DB4_PREFIX=$THIS_PREFIX + DB4_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB4 + if test -n "Berkeley DB4"; then + THIS_FULL_NAME="Berkeley DB4" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB3 +if test "$PHP_DB3" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db3 with --with-db4"; then + as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db3.h + break + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 +$as_echo_n "checking for DB3 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "3" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB3 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB3_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB3_LIBS=$THIS_LIBS + DB3_PREFIX=$THIS_PREFIX + DB3_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB2 +if test "$PHP_DB2" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then + as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do + if test -f "$i/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db2/db.h + break + elif test -f "$i/include/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2/db.h + break + elif test -f "$i/include/db/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db2.h + break + elif test -f "$i/include/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-2 db2 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_appinit("", NULL, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 +$as_echo_n "checking for DB2 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "2" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB2 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB2_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB2_LIBS=$THIS_LIBS + DB2_PREFIX=$THIS_PREFIX + DB2_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DB1 +if test "$PHP_DB1" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 +$as_echo_n "checking for DB1 in library... " >&6; } + if test "$HAVE_DB4" = "1"; then + THIS_VERSION=4 + THIS_LIBS=$DB4_LIBS + THIS_PREFIX=$DB4_PREFIX + elif test "$HAVE_DB3" = "1"; then + THIS_LIBS=$DB3_LIBS + THIS_PREFIX=$DB3_PREFIX + elif test "$HAVE_DB2" = "1"; then + THIS_VERSION=2 + THIS_LIBS=$DB2_LIBS + THIS_PREFIX=$DB2_PREFIX + fi + if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION" +_ACEOF + + for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do + if test -f "$THIS_PREFIX/$i"; then + THIS_INCLUDE=$THIS_PREFIX/$i + break + fi + done + else + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Unknown DB1" +_ACEOF + + for i in $PHP_DB1 /usr/local /usr; do + if test -f "$i/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db1/db.h + break + elif test -f "$i/include/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/db.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + THIS_LIBS=db + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 +$as_echo "$THIS_LIBS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 +$as_echo_n "checking for DB1 in header... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 +$as_echo "$THIS_INCLUDE" >&6; } + if test -n "$THIS_INCLUDE"; then + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$THIS_LIBS $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + DB * dbp = dbopen("", 0, 0, DB_HASH, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define DB1_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_DB1 1" >>confdefs.h + + THIS_RESULT=yes + +else + + THIS_RESULT=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + fi + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DB1 + if test -n "DB1"; then + THIS_FULL_NAME="DB1" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# DBM +if test "$PHP_DBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=DBM + if test -n "dbm"; then + THIS_FULL_NAME="dbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-dbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DBM /usr/local /usr; do + if test -f "$i/include/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/dbm.h + break + elif test -f "$i/include/gdbm/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm/dbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in dbm c gdbm; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 +$as_echo_n "checking for dbminit in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbminit (); +int +main () +{ +return dbminit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 +$as_echo_n "checking for DBM using GDBM... " >&6; } + +cat >>confdefs.h <<_ACEOF +#define DBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + if test "$LIB" = "gdbm"; then + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "GDBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "DBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + +$as_echo "#define DBA_DBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbminit + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then + php_dba_enable=yes +else + php_dba_enable=no +fi + + +php_with_cdb=$php_dba_enable + + + +# Check whether --with-cdb was given. +if test "${with_cdb+set}" = set; then : + withval=$with_cdb; PHP_CDB=$withval +else + + PHP_CDB=$php_dba_enable + + +fi + + +ext_output=$PHP_CDB + + + + + + +php_enable_inifile=$php_dba_enable + + +# Check whether --enable-inifile was given. +if test "${enable_inifile+set}" = set; then : + enableval=$enable_inifile; PHP_INIFILE=$enableval +else + + PHP_INIFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_INIFILE + + + + + + +php_enable_flatfile=$php_dba_enable + + +# Check whether --enable-flatfile was given. +if test "${enable_flatfile+set}" = set; then : + enableval=$enable_flatfile; PHP_FLATFILE=$enableval +else + + PHP_FLATFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_FLATFILE + + + + + +# CDB +if test "$PHP_CDB" = "yes"; then + +$as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h + + +$as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" + THIS_RESULT="builtin" +elif test "$PHP_CDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_CDB /usr/local /usr; do + if test -f "$i/include/cdb.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/cdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in cdb c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 +$as_echo_n "checking for cdb_read in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cdb_read (); +int +main () +{ +return cdb_read (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define CDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_cdb_read + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=CDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# INIFILE +if test "$PHP_INIFILE" != "no"; then + +$as_echo "#define DBA_INIFILE 1" >>confdefs.h + + ini_sources="libinifile/inifile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=INIFILE + if test -n "INI File"; then + THIS_FULL_NAME="INI File" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +# FLATFILE +if test "$PHP_FLATFILE" != "no"; then + +$as_echo "#define DBA_FLATFILE 1" >>confdefs.h + + flat_sources="libflatfile/flatfile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=FLATFILE + if test -n "FlatFile"; then + THIS_FULL_NAME="FlatFile" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 +$as_echo_n "checking whether to enable DBA interface... " >&6; } +if test "$HAVE_DBA" = "1"; then + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 +$as_echo "yes, shared" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + +$as_echo "#define HAVE_DBA 1" >>confdefs.h + + + ext_builddir=ext/dba + ext_srcdir=$abs_srcdir/ext/dba + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DBA_SHARED=no + + + case ext/dba in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DBA 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DBA_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/dba in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "no" >&6; } +fi + + + +php_enable_dom=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 +$as_echo_n "checking whether to enable DOM support... " >&6; } +# Check whether --enable-dom was given. +if test "${enable_dom+set}" = set; then : + enableval=$enable_dom; PHP_DOM=$enableval +else + + PHP_DOM=yes + test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DOM in +shared,*) + PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'` + ;; +shared) + PHP_DOM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_DOM" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $DOM_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_DOM 1" >>confdefs.h + + + ext_builddir=ext/dom + ext_srcdir=$abs_srcdir/ext/dom + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DOM_SHARED=no + + + case ext/dom in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DOM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DOM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/dom in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ENCHANT support... " >&6; } + +# Check whether --with-enchant was given. +if test "${with_enchant+set}" = set; then : + withval=$with_enchant; PHP_ENCHANT=$withval +else + + PHP_ENCHANT=no + test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ENCHANT in +shared,*) + PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'` + ;; +shared) + PHP_ENCHANT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ENCHANT" != "no"; then + + ext_builddir=ext/enchant + ext_srcdir=$abs_srcdir/ext/enchant + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ENCHANT_SHARED=no + + + case ext/enchant in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ENCHANT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ENCHANT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/enchant in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD" + + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD" + if test -n "$ENCHANT_LIBDIR"; then + + if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then + + if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_LIBDIR + else + + ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ENCHANT_LIBDIR"; then + + if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then + + if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_LIBDIR + else + + ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case enchant in + c|c_r|pthread*) ;; + *) + LIBS="-lenchant $LIBS" + ;; + esac + + + + + fi + + + + if test "$ENCHANT_INCDIR" != "/usr/include"; then + + if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ENCHANT_INCDIR + else + + ep_dir=`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ENCHANT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 +$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_broker_set_param (); +int +main () +{ +return enchant_broker_set_param (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_broker_set_param=yes +else + ac_cv_lib_enchant_enchant_broker_set_param=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h + + +$as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_broker_set_param + + +fi + + +fi + + + +php_enable_exif=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5 +$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; } +# Check whether --enable-exif was given. +if test "${enable_exif+set}" = set; then : + enableval=$enable_exif; PHP_EXIF=$enableval +else + + PHP_EXIF=no + test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EXIF in +shared,*) + PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'` + ;; +shared) + PHP_EXIF=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_EXIF" != "no"; then + +$as_echo "#define HAVE_EXIF 1" >>confdefs.h + + + ext_builddir=ext/exif + ext_srcdir=$abs_srcdir/ext/exif + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_EXIF_SHARED=no + + + case ext/exif in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EXIF 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_EXIF_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/exif in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for fileinfo support... " >&6; } +# Check whether --enable-fileinfo was given. +if test "${enable_fileinfo+set}" = set; then : + enableval=$enable_fileinfo; PHP_FILEINFO=$enableval +else + + PHP_FILEINFO=yes + test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILEINFO in +shared,*) + PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILEINFO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ + libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \ + libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \ + libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \ + libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c" + + + ext_builddir=ext/fileinfo + ext_srcdir=$abs_srcdir/ext/fileinfo + + ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILEINFO_SHARED=no + + + case ext/fileinfo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILEINFO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILEINFO_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/fileinfo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + +php_enable_filter=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 +$as_echo_n "checking whether to enable input filter support... " >&6; } +# Check whether --enable-filter was given. +if test "${enable_filter+set}" = set; then : + enableval=$enable_filter; PHP_FILTER=$enableval +else + + PHP_FILTER=yes + test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILTER in +shared,*) + PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_pcre_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5 +$as_echo_n "checking pcre install prefix... " >&6; } + +# Check whether --with-pcre-dir was given. +if test "${with_pcre_dir+set}" = set; then : + withval=$with_pcre_dir; PHP_PCRE_DIR=$withval +else + + PHP_PCRE_DIR=no + + +fi + + +ext_output=$PHP_PCRE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILTER" != "no"; then + + if test -n "$PHP_VERSION"; then + ext_shared=no + else + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=yes + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=pecl + +else + + PHP_PCRE_REGEX=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + fi + + + ext_builddir=ext/filter + ext_srcdir=$abs_srcdir/ext/filter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILTER_SHARED=no + + + case ext/filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILTER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILTER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/filter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable FTP support... " >&6; } +# Check whether --enable-ftp was given. +if test "${enable_ftp+set}" = set; then : + enableval=$enable_ftp; PHP_FTP=$enableval +else + + PHP_FTP=no + test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FTP in +shared,*) + PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'` + ;; +shared) + PHP_FTP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5 +$as_echo_n "checking OpenSSL dir for FTP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FTP" = "yes"; then + +$as_echo "#define HAVE_FTP 1" >>confdefs.h + + + ext_builddir=ext/ftp + ext_srcdir=$abs_srcdir/ext/ftp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FTP_SHARED=no + + + case ext/ftp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FTP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FTP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ftp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + +: + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD" + + fi +fi + + + + +php_with_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 +$as_echo_n "checking for GD support... " >&6; } + +# Check whether --with-gd was given. +if test "${with_gd+set}" = set; then : + withval=$with_gd; PHP_GD=$withval +else + + PHP_GD=no + test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GD in +shared,*) + PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'` + ;; +shared) + PHP_GD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +if test -z "$PHP_VPX_DIR"; then + +php_with_vpx_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libvpx" >&5 +$as_echo_n "checking for the location of libvpx... " >&6; } + +# Check whether --with-vpx-dir was given. +if test "${with_vpx_dir+set}" = set; then : + withval=$with_vpx_dir; PHP_VPX_DIR=$withval +else + + PHP_VPX_DIR=no + + +fi + + +ext_output=$PHP_VPX_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_JPEG_DIR"; then + +php_with_jpeg_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5 +$as_echo_n "checking for the location of libjpeg... " >&6; } + +# Check whether --with-jpeg-dir was given. +if test "${with_jpeg_dir+set}" = set; then : + withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval +else + + PHP_JPEG_DIR=no + + +fi + + +ext_output=$PHP_JPEG_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_PNG_DIR"; then + +php_with_png_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5 +$as_echo_n "checking for the location of libpng... " >&6; } + +# Check whether --with-png-dir was given. +if test "${with_png_dir+set}" = set; then : + withval=$with_png_dir; PHP_PNG_DIR=$withval +else + + PHP_PNG_DIR=no + + +fi + + +ext_output=$PHP_PNG_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_xpm_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5 +$as_echo_n "checking for the location of libXpm... " >&6; } + +# Check whether --with-xpm-dir was given. +if test "${with_xpm_dir+set}" = set; then : + withval=$with_xpm_dir; PHP_XPM_DIR=$withval +else + + PHP_XPM_DIR=no + + +fi + + +ext_output=$PHP_XPM_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_freetype_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 +$as_echo_n "checking for FreeType 2... " >&6; } + +# Check whether --with-freetype-dir was given. +if test "${with_freetype_dir+set}" = set; then : + withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval +else + + PHP_FREETYPE_DIR=no + + +fi + + +ext_output=$PHP_FREETYPE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_t1lib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1lib support" >&5 +$as_echo_n "checking for T1lib support... " >&6; } + +# Check whether --with-t1lib was given. +if test "${with_t1lib+set}" = set; then : + withval=$with_t1lib; PHP_T1LIB=$withval +else + + PHP_T1LIB=no + + +fi + + +ext_output=$PHP_T1LIB +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_native_ttf=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable truetype string function in GD" >&5 +$as_echo_n "checking whether to enable truetype string function in GD... " >&6; } +# Check whether --enable-gd-native-ttf was given. +if test "${enable_gd_native_ttf+set}" = set; then : + enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval +else + + PHP_GD_NATIVE_TTF=no + + +fi + + +ext_output=$PHP_GD_NATIVE_TTF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_jis_conv=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 +$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } +# Check whether --enable-gd-jis-conv was given. +if test "${enable_gd_jis_conv+set}" = set; then : + enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval +else + + PHP_GD_JIS_CONV=no + + +fi + + +ext_output=$PHP_GD_JIS_CONV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + + + + + + + + + + + + + + + + + + + + +if test "$PHP_GD" != "no"; then + + test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes + + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + + if test "$PHP_GD_NATIVE_TTF" = "yes"; then + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + fi + + + if test "$PHP_VPX_DIR" != "no"; then + + for i in $PHP_VPX_DIR /usr/local /usr; do + test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break + done + + if test -z "$GD_VPX_DIR"; then + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_VPX_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 +$as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvpx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char vpx_codec_destroy (); +int +main () +{ +return vpx_codec_destroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_vpx_vpx_codec_destroy=yes +else + ac_cv_lib_vpx_vpx_codec_destroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 +$as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_VPX_DIR/include" != "/usr/include"; then + + if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/include + else + + ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case pthread in + c|c_r|pthread*) ;; + *) + LIBS="-lpthread $LIBS" + ;; + esac + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD" + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case vpx in + c|c_r|pthread*) ;; + *) + LIBS="-lvpx $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_vpx_vpx_codec_destroy + + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=" >&5 +$as_echo "If configure fails try --with-vpx-dir=" >&6; } + fi + + + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_JPEG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_JPEG_DIR/include" != "/usr/include"; then + + if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/include + else + + ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD" + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case jpeg in + c|c_r|pthread*) ;; + *) + LIBS="-ljpeg $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_jpeg_jpeg_read_header + + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=" >&5 +$as_echo "If configure fails try --with-jpeg-dir=" >&6; } + fi + + + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + as_fn_error $? "png.h not found." "$LINENO" 5 + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 +$as_echo_n "checking for png_write_image in -lpng... " >&6; } +if ${ac_cv_lib_png_png_write_image+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char png_write_image (); +int +main () +{ +return png_write_image (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_png_png_write_image=yes +else + ac_cv_lib_png_png_write_image=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 +$as_echo "$ac_cv_lib_png_png_write_image" >&6; } +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_PNG_DIR/include" != "/usr/include"; then + + if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/include + else + + ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD" + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case png in + c|c_r|pthread*) ;; + *) + LIBS="-lpng $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_png_png_write_image + + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir= and --with-zlib-dir=" >&5 +$as_echo "If configure fails try --with-png-dir= and --with-zlib-dir=" >&6; } + fi + + + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + as_fn_error $? "xpm.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 +$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXpm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XpmFreeXpmImage (); +int +main () +{ +return XpmFreeXpmImage (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Xpm_XpmFreeXpmImage=yes +else + ac_cv_lib_Xpm_XpmFreeXpmImage=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 +$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_XPM_INC" != "/usr/include"; then + + if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_INC + else + + ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case Xpm in + c|c_r|pthread*) ;; + *) + LIBS="-lXpm $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case X11 in + c|c_r|pthread*) ;; + *) + LIBS="-lX11 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_Xpm_XpmFreeXpmImage + + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=" >&5 +$as_echo "If configure fails try --with-xpm-dir=" >&6; } + fi + + + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + as_fn_error $? "freetype-config not found." "$LINENO" 5 + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=" >&5 +$as_echo "If configure fails try --with-freetype-dir=" >&6; } + fi + + + if test "$PHP_T1LIB" != "no"; then + + for i in $PHP_T1LIB /usr/local /usr; do + test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break + done + + if test -z "$GD_T1_DIR"; then + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_T1_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 +$as_echo_n "checking for T1_StrError in -lt1... " >&6; } +if ${ac_cv_lib_t1_T1_StrError+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lt1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char T1_StrError (); +int +main () +{ +return T1_StrError (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_t1_T1_StrError=yes +else + ac_cv_lib_t1_T1_StrError=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 +$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBT1 1" >>confdefs.h + + + if test "$GD_T1_DIR/include" != "/usr/include"; then + + if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/include + else + + ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD" + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case t1 in + c|c_r|pthread*) ;; + *) + LIBS="-lt1 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_t1_T1_StrError + + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + if test "$PHP_GD_JIS_CONV" = "yes"; then + USE_GD_JIS_CONV=1 + fi + +fi + +if test "$PHP_GD" = "yes"; then + GD_MODULE_TYPE=builtin + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c" + + for ac_func in fabsf floorf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + +$as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h + + + GDLIB_CFLAGS="-DHAVE_LIBPNG" + + + if test -n "$GD_VPX_DIR"; then + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX" + fi + + if test -n "$GD_JPEG_DIR"; then + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG" + fi + + if test -n "$GD_XPM_DIR"; then + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM" + fi + + if test -n "$FREETYPE2_DIR"; then + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF" + fi + + if test -n "$USE_GD_JIS_CONV"; then + +$as_echo "#define USE_GD_JISX0208 1" >>confdefs.h + + GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" + fi + +else + + if test "$PHP_GD" != "no"; then + GD_MODULE_TYPE=external + extra_sources="gd_compat.c" + + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + + if test "$PHP_GD_NATIVE_TTF" = "yes"; then + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + fi + + + if test "$PHP_VPX_DIR" != "no"; then + + for i in $PHP_VPX_DIR /usr/local /usr; do + test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break + done + + if test -z "$GD_VPX_DIR"; then + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_VPX_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 +$as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvpx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char vpx_codec_destroy (); +int +main () +{ +return vpx_codec_destroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_vpx_vpx_codec_destroy=yes +else + ac_cv_lib_vpx_vpx_codec_destroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 +$as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_VPX_DIR/include" != "/usr/include"; then + + if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/include + else + + ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case pthread in + c|c_r|pthread*) ;; + *) + LIBS="-lpthread $LIBS" + ;; + esac + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD" + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then + + if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_VPX_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case vpx in + c|c_r|pthread*) ;; + *) + LIBS="-lvpx $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_vpx_vpx_codec_destroy + + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=" >&5 +$as_echo "If configure fails try --with-vpx-dir=" >&6; } + fi + + + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_JPEG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 +$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_read_header (); +int +main () +{ +return jpeg_read_header (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_jpeg_jpeg_read_header=yes +else + ac_cv_lib_jpeg_jpeg_read_header=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_JPEG_DIR/include" != "/usr/include"; then + + if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/include + else + + ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD" + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then + + if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_JPEG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case jpeg in + c|c_r|pthread*) ;; + *) + LIBS="-ljpeg $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_jpeg_jpeg_read_header + + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=" >&5 +$as_echo "If configure fails try --with-jpeg-dir=" >&6; } + fi + + + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + as_fn_error $? "png.h not found." "$LINENO" 5 + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 +$as_echo_n "checking for png_write_image in -lpng... " >&6; } +if ${ac_cv_lib_png_png_write_image+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char png_write_image (); +int +main () +{ +return png_write_image (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_png_png_write_image=yes +else + ac_cv_lib_png_png_write_image=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 +$as_echo "$ac_cv_lib_png_png_write_image" >&6; } +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_PNG_DIR/include" != "/usr/include"; then + + if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/include + else + + ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD" + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then + + if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_PNG_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case png in + c|c_r|pthread*) ;; + *) + LIBS="-lpng $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_png_png_write_image + + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir= and --with-zlib-dir=" >&5 +$as_echo "If configure fails try --with-png-dir= and --with-zlib-dir=" >&6; } + fi + + + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + as_fn_error $? "xpm.h not found." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 +$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXpm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char XpmFreeXpmImage (); +int +main () +{ +return XpmFreeXpmImage (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Xpm_XpmFreeXpmImage=yes +else + ac_cv_lib_Xpm_XpmFreeXpmImage=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 +$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$GD_XPM_INC" != "/usr/include"; then + + if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_INC + else + + ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case Xpm in + c|c_r|pthread*) ;; + *) + LIBS="-lXpm $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD" + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then + + if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_XPM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case X11 in + c|c_r|pthread*) ;; + *) + LIBS="-lX11 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_Xpm_XpmFreeXpmImage + + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=" >&5 +$as_echo "If configure fails try --with-xpm-dir=" >&6; } + fi + + + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + as_fn_error $? "freetype-config not found." "$LINENO" 5 + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=" >&5 +$as_echo "If configure fails try --with-freetype-dir=" >&6; } + fi + + + if test "$PHP_T1LIB" != "no"; then + + for i in $PHP_T1LIB /usr/local /usr; do + test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break + done + + if test -z "$GD_T1_DIR"; then + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GD_T1_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 +$as_echo_n "checking for T1_StrError in -lt1... " >&6; } +if ${ac_cv_lib_t1_T1_StrError+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lt1 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char T1_StrError (); +int +main () +{ +return T1_StrError (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_t1_T1_StrError=yes +else + ac_cv_lib_t1_T1_StrError=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 +$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBT1 1" >>confdefs.h + + + if test "$GD_T1_DIR/include" != "/usr/include"; then + + if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/include + else + + ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD" + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then + + if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GD_T1_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case t1 in + c|c_r|pthread*) ;; + *) + LIBS="-lt1 $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_t1_T1_StrError + + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + for i in include/gd include gd ""; do + test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i" + done + + if test -z "$GD_INCLUDE"; then + as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5 + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_GD/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdSetErrorMethod in -lgd" >&5 +$as_echo_n "checking for gdSetErrorMethod in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdSetErrorMethod+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdSetErrorMethod (); +int +main () +{ +return gdSetErrorMethod (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdSetErrorMethod=yes +else + ac_cv_lib_gd_gdSetErrorMethod=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdSetErrorMethod" >&5 +$as_echo "$ac_cv_lib_gd_gdSetErrorMethod" >&6; } +if test "x$ac_cv_lib_gd_gdSetErrorMethod" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD" + if test -n "$PHP_GD/$PHP_LIBDIR"; then + + if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GD/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_GD/$PHP_LIBDIR"; then + + if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GD/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gd in + c|c_r|pthread*) ;; + *) + LIBS="-lgd $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBGD 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdSetErrorMethod + + as_fn_error $? "Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromPng (); +int +main () +{ +return gdImageCreateFromPng (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromPng=yes +else + ac_cv_lib_gd_gdImageCreateFromPng=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromPng + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromWebp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromWebp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromWebp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromWebp (); +int +main () +{ +return gdImageCreateFromWebp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromWebp=yes +else + ac_cv_lib_gd_gdImageCreateFromWebp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromWebp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromWebp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromWebp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromWebp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromJpeg (); +int +main () +{ +return gdImageCreateFromJpeg (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromJpeg=yes +else + ac_cv_lib_gd_gdImageCreateFromJpeg=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromJpeg + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromXpm (); +int +main () +{ +return gdImageCreateFromXpm (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromXpm=yes +else + ac_cv_lib_gd_gdImageCreateFromXpm=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromXpm + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5 +$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageStringFT+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageStringFT (); +int +main () +{ +return gdImageStringFT (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageStringFT=yes +else + ac_cv_lib_gd_gdImageStringFT=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5 +$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; } +if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageStringFT + + +fi + + + + + if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then + GD_INCLUDE=$GD_INCLUDE + else + + ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + GD_INCLUDE="$ep_realdir"/`basename "$GD_INCLUDE"` + fi + + fi +fi + +if test "$PHP_GD" != "no"; then + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + + ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case ext/gd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<conftest.$ac_ext +/* end confdefs.h. */ + + char foobar () {} + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +else + + LIBS=$old_LIBS + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + GD_HEADER_DIRS="ext/gd/" + GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" + + if test "$GD_INCLUDE" != "/usr/include"; then + + if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$GD_INCLUDE + else + + ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GD_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 +$as_echo_n "checking for gdImageCreate in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreate (); +int +main () +{ +return gdImageCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreate=yes +else + ac_cv_lib_gd_gdImageCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreate + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi + + fi + + + + for header_file in $GD_HEADER_DIRS; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD" + +fi + + + +php_with_gettext=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 +$as_echo_n "checking for GNU gettext support... " >&6; } + +# Check whether --with-gettext was given. +if test "${with_gettext+set}" = set; then : + withval=$with_gettext; PHP_GETTEXT=$withval +else + + PHP_GETTEXT=no + test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GETTEXT in +shared,*) + PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'` + ;; +shared) + PHP_GETTEXT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GETTEXT" != "no"; then + for i in $PHP_GETTEXT /usr/local /usr; do + test -r $i/include/libintl.h && GETTEXT_DIR=$i && break + done + + if test -z "$GETTEXT_DIR"; then + as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5 + fi + + GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR + GETTEXT_INCDIR=$GETTEXT_DIR/include + + O_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 +$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } +if ${ac_cv_lib_intl_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_bindtextdomain=yes +else + ac_cv_lib_intl_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : + + GETTEXT_LIBS=intl + GETTEXT_CHECK_IN_LIB=intl + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 +$as_echo_n "checking for bindtextdomain in -lc... " >&6; } +if ${ac_cv_lib_c_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_bindtextdomain=yes +else + ac_cv_lib_c_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } +if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : + + GETTEXT_LIBS= + GETTEXT_CHECK_IN_LIB=c + +else + + as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 + +fi + + +fi + + LDFLAGS=$O_LDFLAGS + + +$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h + + + ext_builddir=ext/gettext + ext_srcdir=$abs_srcdir/ext/gettext + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GETTEXT_SHARED=no + + + case ext/gettext in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GETTEXT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GETTEXT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gettext in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $GETTEXT_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$GETTEXT_LIBS $LIBS" + ;; + esac + + + + + fi + + + fi + + + if test "$GETTEXT_INCDIR" != "/usr/include"; then + + if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_INCDIR + else + + ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ngettext (); +int +main () +{ +return ngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dngettext (); +int +main () +{ +return dngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dcngettext (); +int +main () +{ +return dcngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind_textdomain_codeset (); +int +main () +{ +return bind_textdomain_codeset (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h + +fi + + +fi + + + +php_with_gmp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 +$as_echo_n "checking for GNU MP support... " >&6; } + +# Check whether --with-gmp was given. +if test "${with_gmp+set}" = set; then : + withval=$with_gmp; PHP_GMP=$withval +else + + PHP_GMP=no + test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GMP in +shared,*) + PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_GMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GMP" != "no"; then + + for i in $PHP_GMP /usr/local /usr; do + test -f $i/include/gmp.h && GMP_DIR=$i && break + done + + if test -z "$GMP_DIR"; then + as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GMP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5 +$as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmp_randinit_lc_2exp_size (); +int +main () +{ +return __gmp_randinit_lc_2exp_size (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes +else + ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5 +$as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; } +if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$GMP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5 +$as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; } +if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gmp_randinit_lc_2exp_size (); +int +main () +{ +return gmp_randinit_lc_2exp_size (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes +else + ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5 +$as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; } +if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size + + as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5 + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + if test -n "$GMP_DIR/$PHP_LIBDIR"; then + + if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GMP_DIR/$PHP_LIBDIR"; then + + if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + + + fi + + + + if test "$GMP_DIR/include" != "/usr/include"; then + + if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$GMP_DIR/include + else + + ep_dir=`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GMP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/gmp + ext_srcdir=$abs_srcdir/ext/gmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GMP_SHARED=no + + + case ext/gmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/gmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_with_mhash=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 +$as_echo_n "checking for mhash support... " >&6; } + +# Check whether --with-mhash was given. +if test "${with_mhash+set}" = set; then : + withval=$with_mhash; PHP_MHASH=$withval +else + + PHP_MHASH=no + test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MHASH in +shared,*) + PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_MHASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_hash=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5 +$as_echo_n "checking whether to enable hash support... " >&6; } +# Check whether --enable-hash was given. +if test "${enable_hash+set}" = set; then : + enableval=$enable_hash; PHP_HASH=$enableval +else + + PHP_HASH=yes + test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_HASH in +shared,*) + PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_HASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MHASH" != "no"; then + if test "$PHP_HASH" = "no"; then + PHP_HASH="yes" + fi + + +$as_echo "#define PHP_MHASH_BC 1" >>confdefs.h + +fi + +if test "$PHP_HASH" != "no"; then + +$as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + + EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c hash_fnv.c hash_joaat.c" + EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ + php_hash_fnv.h php_hash_joaat.h php_hash_types.h" + + + ext_builddir=ext/hash + ext_srcdir=$abs_srcdir/ext/hash + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_HASH_SHARED=no + + + case ext/hash in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_HASH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_HASH_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/hash in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for iconv support... " >&6; } + +# Check whether --with-iconv was given. +if test "${with_iconv+set}" = set; then : + withval=$with_iconv; PHP_ICONV=$withval +else + + PHP_ICONV=yes + test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ICONV in +shared,*) + PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'` + ;; +shared) + PHP_ICONV=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ICONV" != "no"; then + + + found_iconv=no + unset ICONV_DIR + + # Create the directories for a VPATH build: + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + iconv_avail="yes"; + +else + iconv_avail="no"; + + fi + + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break + fi + done + if test -z "$PHP_ICONV_PREFIX"; then + PHP_ICONV_PREFIX="/usr" + fi + else + PHP_ICONV_PREFIX="$ICONV_DIR" + fi + + CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" + LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" + + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" + else + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 +$as_echo_n "checking if iconv is glibc's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +gnu_get_libc_version(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="glibc" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 +$as_echo_n "checking if using GNU libiconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +int main() { + printf("%d", _libiconv_version); + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="gnu_libiconv" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 +$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +iconv_ccs_init(NULL, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="bsd" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 +$as_echo_n "checking if using IBM iconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +cstoccsid(""); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="ibm" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_ibm_iconv.h + + case "$iconv_impl_name" in + gnu_libiconv ) + + echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD" + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iconv in + c|c_r|pthread*) ;; + *) + LIBS="-liconv $LIBS" + ;; + esac + + + + + fi + + + ;; + + bsd ) + + echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h + + +$as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h + + ;; + + glibc ) + + echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h + + +$as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h + + ;; + ibm ) + + echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h + + +$as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h + + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 +$as_echo_n "checking if iconv supports errno... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd; + cd = iconv_open( "*blahblah*", "*blahblah*" ); + if (cd == (iconv_t)(-1)) { + if (errno == EINVAL) { + return 0; + } else { + return 1; + } + } + iconv_close( cd ); + return 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5 +$as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define FOO <$PHP_ICONV_H_PATH> +#include FOO + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h + + +cat >>confdefs.h <<_ACEOF +#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH> +_ACEOF + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/iconv + ext_srcdir=$abs_srcdir/ext/iconv + + ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ICONV_SHARED=no + + + case ext/iconv in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ICONV 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ICONV_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/iconv in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for IMAP support... " >&6; } + +# Check whether --with-imap was given. +if test "${with_imap+set}" = set; then : + withval=$with_imap; PHP_IMAP=$withval +else + + PHP_IMAP=no + test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IMAP in +shared,*) + PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_IMAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 +$as_echo_n "checking for IMAP Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_imap_ssl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 +$as_echo_n "checking for IMAP SSL support... " >&6; } + +# Check whether --with-imap-ssl was given. +if test "${with_imap_ssl+set}" = set; then : + withval=$with_imap_ssl; PHP_IMAP_SSL=$withval +else + + PHP_IMAP_SSL=no + + +fi + + +ext_output=$PHP_IMAP_SSL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +if test "$PHP_IMAP" != "no"; then + + PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD" + + + ext_builddir=ext/imap + ext_srcdir=$abs_srcdir/ext/imap + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_IMAP_SHARED=no + + + case ext/imap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_IMAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_IMAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/imap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + for i in $PHP_IMAP /usr/local /usr; do + if test -r "$i/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i + break + elif test -r "$i/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i + break + + elif test -r "$i/include/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/c-client + break + elif test -r "$i/include/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/c-client + break + + elif test -r "$i/include/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/imap + break + elif test -r "$i/include/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/imap + break + + elif test -r "$i/include/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include + break + elif test -r "$i/include/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include + break + + elif test -r "$i/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/imap + break + elif test -r "$i/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/imap + break + + elif test -r "$i/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/c-client + break + elif test -r "$i/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/c-client + break + + fi + done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/mail.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2004 1" >>confdefs.h + + +fi +rm -f conftest* + + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 +$as_echo_n "checking for utf8_mime2text signature... " >&6; } +if ${ac_cv_utf8_mime2text+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + + SIZEDTEXT *src, *dst; + utf8_mime2text(src, dst); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_utf8_mime2text=old + +else + + ac_cv_utf8_mime2text=new + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 +$as_echo "$ac_cv_utf8_mime2text" >&6; } + if test "$ac_cv_utf8_mime2text" = "new"; then + +$as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h + + fi + CFLAGS=$old_CFLAGS + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 +$as_echo_n "checking for U8T_DECOMPOSE... " >&6; } +if ${ac_cv_u8t_canonical+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + + int i = U8T_CANONICAL; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_u8t_decompose=yes + +else + + ac_cv_u8t_decompose=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_canonical" >&5 +$as_echo "$ac_cv_u8t_canonical" >&6; } + CFLAGS=$old_CFLAGS + + if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then + as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then + as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$IMAP_INC_DIR + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "imap4r1.h" +#if defined(IMAPSSLPORT) + this_is_true +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "this_is_true" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2001 1" >>confdefs.h + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 +$as_echo_n "checking for pam_start in -lpam... " >&6; } +if ${ac_cv_lib_pam_pam_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpam $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pam_start (); +int +main () +{ +return pam_start (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pam_pam_start=yes +else + ac_cv_lib_pam_pam_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +$as_echo "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case pam in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD" + else + + + case pam in + c|c_r|pthread*) ;; + *) + LIBS="-lpam $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBPAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_pam_pam_start + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD" + else + + + case crypt in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypt_crypt + + +fi + + + + if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then + IMAP_DIR=$IMAP_DIR + else + + ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"` + fi + + + if test -z "$IMAP_DIR"; then + as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 + fi + + if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then + ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then + ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 + fi + + for lib in c-client4 c-client imap; do + IMAP_LIB=$lib + + str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2 + done + + + str="$IMAP_DIR/c-client/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2 + done + + done + + if test -z "$IMAP_LIBDIR"; then + as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 + fi + + + if test "$IMAP_INC_DIR" != "/usr/include"; then + + if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_INC_DIR + else + + ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD" + else + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + DLIBS="-l$IMAP_LIB $DLIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then + + if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_LIBDIR + else + + ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + if test "$PHP_KERBEROS" != "no"; then + + found_kerberos=no + unset KERBEROS_CFLAGS + unset KERBEROS_LIBS + + if test -z "$KRB5_CONFIG"; then + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no" + ;; +esac +fi +KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG +if test -n "$KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 +$as_echo "$KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then + KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi` + KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi` + + if test -n "$KERBEROS_LIBS"; then + found_kerberos=yes + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_kerberos" = "no"; then + + if test "$PHP_KERBEROS" = "yes"; then + PHP_KERBEROS="/usr/kerberos /usr/local /usr" + fi + + for i in $PHP_KERBEROS; do + if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + PHP_KERBEROS_DIR=$i + break + fi + done + + if test "$PHP_KERBEROS_DIR"; then + found_kerberos=yes + + if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5" + else + + + case gssapi_krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgssapi_krb5" + ;; + esac + + + fi + ;; + esac + + + + + case krb5 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5" + else + + + case krb5 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lkrb5" + ;; + esac + + + fi + ;; + esac + + + + + case k5crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto" + else + + + case k5crypto in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lk5crypto" + ;; + esac + + + fi + ;; + esac + + + + + case com_err in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err" + else + + + case com_err in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lcom_err" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then + + if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_KERBEROS_DIR/include + else + + ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + fi + + if test "$found_kerberos" = "yes"; then + + +$as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h + + +else + as_fn_error $? "Kerberos libraries not found. + + Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) + " "$LINENO" 5 + + fi + + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "auth_gss" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with Kerberos support. + + Add --with-kerberos to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + if test "$PHP_IMAP_SSL" != "no"; then + if test "$PHP_OPENSSL" = ""; then + PHP_OPENSSL='no' + fi + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + + +$as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL libraries not found. + + Check the path given to --with-openssl-dir and output in config.log) + " "$LINENO" 5 + + fi + + elif test -f "$IMAP_INC_DIR/linkage.c"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.c> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with SSL support. + + Add --with-imap-ssl to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD" + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char auth_gssapi_valid(); + int main() { + auth_gssapi_valid(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char utf8_to_mutf7(); + int main() { + utf8_to_mutf7(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 +$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; } + + old_LIBS=$LIBS + LIBS=" + $TST_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + void rfc822_output_address_list(void); + void (*f)(void); + char foobar () {f = rfc822_output_address_list;} + + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 +$as_echo_n "checking whether build with IMAP works... " >&6; } + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char mail_newbody(); + int main() { + mail_newbody(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi + + +php_with_interbase=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for InterBase support" >&5 +$as_echo_n "checking for InterBase support... " >&6; } + +# Check whether --with-interbase was given. +if test "${with_interbase+set}" = set; then : + withval=$with_interbase; PHP_INTERBASE=$withval +else + + PHP_INTERBASE=no + test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTERBASE in +shared,*) + PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTERBASE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTERBASE" != "no"; then + if test "$PHP_INTERBASE" = "yes"; then + IBASE_INCDIR=/usr/interbase/include + IBASE_LIBDIR=/usr/interbase/lib + else + IBASE_INCDIR=$PHP_INTERBASE/include + IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$IBASE_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + IBASE_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD" + if test -n "$IBASE_LIBDIR"; then + + if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then + + if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_LIBDIR + else + + ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$IBASE_LIBDIR"; then + + if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then + + if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_LIBDIR + else + + ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $IBASE_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$IBASE_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$IBASE_INCDIR" != "/usr/include"; then + + if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$IBASE_INCDIR + else + + ep_dir=`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IBASE_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_IBASE 1" >>confdefs.h + + + ext_builddir=ext/interbase + ext_srcdir=$abs_srcdir/ext/interbase + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTERBASE_SHARED=no + + + case ext/interbase in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTERBASE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTERBASE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/interbase in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable internationalization support... " >&6; } +# Check whether --enable-intl was given. +if test "${enable_intl+set}" = set; then : + enableval=$enable_intl; PHP_INTL=$enableval +else + + PHP_INTL=no + test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTL in +shared,*) + PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTL" != "no"; then + + +php_with_icu_dir=DEFAULT + + + +# Check whether --with-icu-dir was given. +if test "${with_icu_dir+set}" = set; then : + withval=$with_icu_dir; PHP_ICU_DIR=$withval +else + + PHP_ICU_DIR=DEFAULT + + +fi + + +ext_output=$PHP_ICU_DIR + + + + + + if test "$PHP_ICU_DIR" = "no"; then + PHP_ICU_DIR=DEFAULT + fi + + if test "$PHP_ICU_DIR" = "DEFAULT"; then + # Extract the first word of "icu-config", so it can be a program name with args. +set dummy icu-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ICU_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ICU_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/local/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no" + ;; +esac +fi +ICU_CONFIG=$ac_cv_path_ICU_CONFIG +if test -n "$ICU_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5 +$as_echo "$ICU_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5 +$as_echo_n "checking for location of ICU headers and libraries... " >&6; } + + icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null` + if test "$?" != "0" || test -z "$icu_install_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5 +$as_echo "$icu_install_prefix" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 4.0 or greater" >&5 +$as_echo_n "checking for ICU 4.0 or greater... " >&6; } + icu_version_full=`$ICU_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $icu_version_full + IFS=$ac_IFS + icu_version=`expr $1 \* 1000 + $2` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5 +$as_echo "found $icu_version_full" >&6; } + + if test "$icu_version" -lt "4000"; then + as_fn_error $? "ICU version 4.0 or later is required" "$LINENO" 5 + fi + + ICU_VERSION=$icu_version + ICU_INCS=`$ICU_CONFIG --cppflags-searchpath` + ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio` + + for ac_i in $ICU_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ICU_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD" + + + if test -z "$php_cxx_done"; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + case stdc++ in + c|c_r|pthread*) ;; + *) + LIBS="-lstdc++ $LIBS" + ;; + esac + + + php_cxx_done=yes + fi + + if test "$icu_version" -ge "4002"; then + icu_spoof_src=" spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c" + else + icu_spoof_src="" + fi + + ext_builddir=ext/intl + ext_srcdir=$abs_srcdir/ext/intl + + ac_extra=`echo "$ICU_INCS -Wno-write-strings"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTL_SHARED=no + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + intl_convertcpp.cpp \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + common/common_enum.cpp \ + common/common_date.cpp \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_format_object.cpp \ + dateformat/dateformat_parse.c \ + dateformat/dateformat_create.cpp \ + dateformat/dateformat_attrcpp.cpp \ + dateformat/dateformat_helpers.cpp \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_helpers.cpp \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + timezone/timezone_class.cpp \ + timezone/timezone_methods.cpp \ + calendar/calendar_class.cpp \ + calendar/calendar_methods.cpp \ + calendar/gregoriancalendar_methods.cpp \ + breakiterator/breakiterator_class.cpp \ + breakiterator/breakiterator_iterators.cpp \ + breakiterator/breakiterator_methods.cpp \ + breakiterator/rulebasedbreakiterator_methods.cpp \ + breakiterator/codepointiterator_internal.cpp \ + breakiterator/codepointiterator_methods.cpp \ + idn/idn.c \ + $icu_spoof_src; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + intl_convertcpp.cpp \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + common/common_enum.cpp \ + common/common_date.cpp \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_format_object.cpp \ + dateformat/dateformat_parse.c \ + dateformat/dateformat_create.cpp \ + dateformat/dateformat_attrcpp.cpp \ + dateformat/dateformat_helpers.cpp \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_helpers.cpp \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + timezone/timezone_class.cpp \ + timezone/timezone_methods.cpp \ + calendar/calendar_class.cpp \ + calendar/calendar_methods.cpp \ + calendar/gregoriancalendar_methods.cpp \ + breakiterator/breakiterator_class.cpp \ + breakiterator/breakiterator_iterators.cpp \ + breakiterator/breakiterator_methods.cpp \ + breakiterator/rulebasedbreakiterator_methods.cpp \ + breakiterator/codepointiterator_internal.cpp \ + breakiterator/codepointiterator_methods.cpp \ + idn/idn.c \ + $icu_spoof_src; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; } +# Check whether --enable-json was given. +if test "${enable_json+set}" = set; then : + enableval=$enable_json; PHP_JSON=$enableval +else + + PHP_JSON=yes + test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_JSON in +shared,*) + PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'` + ;; +shared) + PHP_JSON=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_JSON" != "no"; then + +$as_echo "#define HAVE_JSON 1 " >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + + + + ext_builddir=ext/json + ext_srcdir=$abs_srcdir/ext/json + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_JSON_SHARED=no + + + case ext/json in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c utf8_decode.c JSON_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_JSON 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_JSON_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/json in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c utf8_decode.c JSON_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for LDAP support... " >&6; } + +# Check whether --with-ldap was given. +if test "${with_ldap+set}" = set; then : + withval=$with_ldap; PHP_LDAP=$withval +else + + PHP_LDAP=no + test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LDAP in +shared,*) + PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_LDAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_ldap_sasl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5 +$as_echo_n "checking for LDAP Cyrus SASL support... " >&6; } + +# Check whether --with-ldap-sasl was given. +if test "${with_ldap_sasl+set}" = set; then : + withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval +else + + PHP_LDAP_SASL=no + + +fi + + +ext_output=$PHP_LDAP_SASL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LDAP" != "no"; then + + + ext_builddir=ext/ldap + ext_srcdir=$abs_srcdir/ext/ldap + + ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LDAP_SHARED=no + + + case ext/ldap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LDAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LDAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/ldap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4"; then + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$i + elif test -f $i/sdk/include/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$i/sdk/include + LDAP_LIBDIR=$i + fi + fi + + done + else + + if test -f $PHP_LDAP/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include/umich-ldap + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/ldap/public/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/ldap/public + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4"; then + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$PHP_LDAP + elif test -f $PHP_LDAP/sdk/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/sdk/include + LDAP_LIBDIR=$PHP_LDAP + fi + fi + + fi + + if test -z "$LDAP_DIR"; then + as_fn_error $? "Cannot find ldap.h" "$LINENO" 5 + fi + + + if test `uname` = "Linux"; then + LDAP_PTHREAD=pthread + else + LDAP_PTHREAD= + fi + + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case lber in + c|c_r|pthread*) ;; + *) + LIBS="-llber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case nspr4 in + c|c_r|pthread*) ;; + *) + LIBS="-lnspr4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plc4 in + c|c_r|pthread*) ;; + *) + LIBS="-lplc4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plds4 in + c|c_r|pthread*) ;; + *) + LIBS="-lplds4 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ssldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lssldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case prldap50 in + c|c_r|pthread*) ;; + *) + LIBS="-lprldap50 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ssl3 in + c|c_r|pthread*) ;; + *) + LIBS="-lssl3 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case nspr3 in + c|c_r|pthread*) ;; + *) + LIBS="-lnspr3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plc3 in + c|c_r|pthread*) ;; + *) + LIBS="-lplc3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case plds3 in + c|c_r|pthread*) ;; + *) + LIBS="-lplds3 $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldapssl41 in + c|c_r|pthread*) ;; + *) + LIBS="-lldapssl41 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldapssl30 in + c|c_r|pthread*) ;; + *) + LIBS="-lldapssl30 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then + if test -n "$LDAP_PTHREAD"; then + + + case $LDAP_PTHREAD in + c|c_r|pthread*) ;; + *) + LIBS="-l$LDAP_PTHREAD $LIBS" + ;; + esac + + + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap30 in + c|c_r|pthread*) ;; + *) + LIBS="-lldap30 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_NSLDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case umich_lber in + c|c_r|pthread*) ;; + *) + LIBS="-lumich_lber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case umich_ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lumich_ldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_12 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_11 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + +$as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h + + + else + as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 + fi + + + if test "$LDAP_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_INCDIR + else + + ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD" + + +$as_echo "#define HAVE_LDAP 1" >>confdefs.h + + + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LIBS="$LIBS $LDAP_SHARED_LIBADD" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 +$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } +if ${ac_cv_3arg_setrebindproc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +ldap_set_rebind_proc(0,0,0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_3arg_setrebindproc=yes +else + ac_cv_3arg_setrebindproc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 +$as_echo "$ac_cv_3arg_setrebindproc" >&6; } + if test "$ac_cv_3arg_setrebindproc" = yes; then + +$as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h + + fi + + for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + if test "$PHP_LDAP_SASL" != "no"; then + + if test "$PHP_LDAP_SASL" = "yes"; then + SEARCH_DIRS="/usr/local /usr" + else + SEARCH_DIRS=$PHP_LDAP_SASL + fi + + for i in $SEARCH_DIRS; do + if test -f $i/include/sasl/sasl.h; then + LDAP_SASL_DIR=$i + +$as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h + + break + elif test -f $i/include/sasl.h; then + LDAP_SASL_DIR=$i + +$as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h + + break + fi + done + + if test "$LDAP_SASL_DIR"; then + LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include + LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR + else + as_fn_error $? "sasl.h not found!" "$LINENO" 5 + fi + + if test "$PHP_LDAP_SASL" = "yes"; then + SASL_LIB="-lsasl2" + else + SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2" + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LDAP_SHARED_LIBADD $SASL_LIB + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5 +$as_echo_n "checking for sasl_version in -lsasl2... " >&6; } +if ${ac_cv_lib_sasl2_sasl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsasl2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sasl_version (); +int +main () +{ +return sasl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sasl2_sasl_version=yes +else + ac_cv_lib_sasl2_sasl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5 +$as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; } +if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$LDAP_SASL_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_INCDIR + else + + ep_dir=`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD" + if test -n "$LDAP_SASL_LIBDIR"; then + + if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_LIBDIR + else + + ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_SASL_LIBDIR"; then + + if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_SASL_LIBDIR + else + + ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sasl2 in + c|c_r|pthread*) ;; + *) + LIBS="-lsasl2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sasl2_sasl_version + + as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + fi + + ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" +if test "x$ac_cv_func_ldap_bind_s" = xyes; then : + +else + + as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 + +fi + + + CPPFLAGS=$_SAVE_CPPFLAGS + LIBS=$_SAVE_LIBS +fi + + + + + + + + + + + + + + + + + + + + + + + + +php_enable_mbstring=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 +$as_echo_n "checking whether to enable multibyte string support... " >&6; } +# Check whether --enable-mbstring was given. +if test "${enable_mbstring+set}" = set; then : + enableval=$enable_mbstring; PHP_MBSTRING=$enableval +else + + PHP_MBSTRING=no + test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MBSTRING in +shared,*) + PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'` + ;; +shared) + PHP_MBSTRING=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5 +$as_echo_n "checking whether to enable multibyte regex support... " >&6; } +# Check whether --enable-mbregex was given. +if test "${enable_mbregex+set}" = set; then : + enableval=$enable_mbregex; PHP_MBREGEX=$enableval +else + + PHP_MBREGEX=yes + + +fi + + +ext_output=$PHP_MBREGEX +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex_backtrack=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5 +$as_echo_n "checking whether to check multibyte regex backtrack... " >&6; } +# Check whether --enable-mbregex_backtrack was given. +if test "${enable_mbregex_backtrack+set}" = set; then : + enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval +else + + PHP_MBREGEX_BACKTRACK=yes + + +fi + + +ext_output=$PHP_MBREGEX_BACKTRACK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_libmbfl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libmbfl" >&5 +$as_echo_n "checking for external libmbfl... " >&6; } + +# Check whether --with-libmbfl was given. +if test "${with_libmbfl+set}" = set; then : + withval=$with_libmbfl; PHP_LIBMBFL=$withval +else + + PHP_LIBMBFL=no + + +fi + + +ext_output=$PHP_LIBMBFL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_onig=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5 +$as_echo_n "checking for external oniguruma... " >&6; } + +# Check whether --with-onig was given. +if test "${with_onig+set}" = set; then : + withval=$with_onig; PHP_ONIG=$withval +else + + PHP_ONIG=no + + +fi + + +ext_output=$PHP_ONIG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MBSTRING" != "no"; then + +$as_echo "#define HAVE_MBSTRING 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c" + + + if test "$PHP_MBREGEX" != "no"; then + + if test "$PHP_MBREGEX" = "yes"; then + if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then + if test "$PHP_MBREGEX_BACKTRACK" != "no"; then + +$as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 +$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } +if ${php_cv_mbstring_stdarg+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + case $host_alias in + *netware*) + php_cv_mbstring_stdarg=yes + ;; + *) + php_cv_mbstring_stdarg=no + ;; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int foo(int x, ...) { + va_list va; + va_start(va, x); + va_arg(va, int); + va_arg(va, char *); + va_arg(va, double); + return 0; +} +int main() { return foo(10, "", 3.14); } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + php_cv_mbstring_stdarg=yes +else + php_cv_mbstring_stdarg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5 +$as_echo "$php_cv_mbstring_stdarg" >&6; } + + for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if ${ac_cv_func_memcmp_working+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" + ;; +esac + + + ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes; then : + + +$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h + + +fi + + + +$as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_ONIG 1" >>confdefs.h + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma" + + + PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h" + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + oniguruma/regcomp.c + oniguruma/regerror.c + oniguruma/regexec.c + oniguruma/reggnu.c + oniguruma/regparse.c + oniguruma/regenc.c + oniguruma/regext.c + oniguruma/regsyntax.c + oniguruma/regtrav.c + oniguruma/regversion.c + oniguruma/st.c + oniguruma/enc/unicode.c + oniguruma/enc/ascii.c + oniguruma/enc/utf8.c + oniguruma/enc/euc_jp.c + oniguruma/enc/euc_tw.c + oniguruma/enc/euc_kr.c + oniguruma/enc/sjis.c + oniguruma/enc/iso8859_1.c + oniguruma/enc/iso8859_2.c + oniguruma/enc/iso8859_3.c + oniguruma/enc/iso8859_4.c + oniguruma/enc/iso8859_5.c + oniguruma/enc/iso8859_6.c + oniguruma/enc/iso8859_7.c + oniguruma/enc/iso8859_8.c + oniguruma/enc/iso8859_9.c + oniguruma/enc/iso8859_10.c + oniguruma/enc/iso8859_11.c + oniguruma/enc/iso8859_13.c + oniguruma/enc/iso8859_14.c + oniguruma/enc/iso8859_15.c + oniguruma/enc/iso8859_16.c + oniguruma/enc/koi8.c + oniguruma/enc/koi8_r.c + oniguruma/enc/big5.c + oniguruma/enc/utf16_be.c + oniguruma/enc/utf16_le.c + oniguruma/enc/utf32_be.c + oniguruma/enc/utf32_le.c + " + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h" + + else + if test ! -f "$PHP_ONIG/include/oniguruma.h"; then + as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5 + fi + + if test "$PHP_ONIG/include" != "/usr/include"; then + + if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/include + else + + ep_dir=`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ONIG/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5 +$as_echo_n "checking for onig_init in -lonig... " >&6; } +if ${ac_cv_lib_onig_onig_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lonig $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char onig_init (); +int +main () +{ +return onig_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_onig_onig_init=yes +else + ac_cv_lib_onig_onig_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5 +$as_echo "$ac_cv_lib_onig_onig_init" >&6; } +if test "x$ac_cv_lib_onig_onig_init" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD" + if test -n "$PHP_ONIG/$PHP_LIBDIR"; then + + if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ONIG/$PHP_LIBDIR"; then + + if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ONIG/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case onig in + c|c_r|pthread*) ;; + *) + LIBS="-lonig $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ONIG 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_onig_onig_init + + as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + + for ac_i in $MBSTRING_SHARED_LIBADD; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 +$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +return (int)(ONIG_ENCODING_KOI8 + 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_old_LDFLAGS + fi + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1" + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar" + + + +$as_echo "#define HAVE_MBREGEX 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h" + + fi + + fi + + + if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h" + + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + libmbfl/filters/html_entities.c + libmbfl/filters/mbfilter_7bit.c + libmbfl/filters/mbfilter_ascii.c + libmbfl/filters/mbfilter_base64.c + libmbfl/filters/mbfilter_big5.c + libmbfl/filters/mbfilter_byte2.c + libmbfl/filters/mbfilter_byte4.c + libmbfl/filters/mbfilter_cp1251.c + libmbfl/filters/mbfilter_cp1252.c + libmbfl/filters/mbfilter_cp1254.c + libmbfl/filters/mbfilter_cp5022x.c + libmbfl/filters/mbfilter_cp51932.c + libmbfl/filters/mbfilter_cp850.c + libmbfl/filters/mbfilter_cp866.c + libmbfl/filters/mbfilter_cp932.c + libmbfl/filters/mbfilter_cp936.c + libmbfl/filters/mbfilter_gb18030.c + libmbfl/filters/mbfilter_euc_cn.c + libmbfl/filters/mbfilter_euc_jp.c + libmbfl/filters/mbfilter_euc_jp_2004.c + libmbfl/filters/mbfilter_euc_jp_win.c + libmbfl/filters/mbfilter_euc_kr.c + libmbfl/filters/mbfilter_euc_tw.c + libmbfl/filters/mbfilter_htmlent.c + libmbfl/filters/mbfilter_hz.c + libmbfl/filters/mbfilter_iso2022_jp_ms.c + libmbfl/filters/mbfilter_iso2022jp_2004.c + libmbfl/filters/mbfilter_iso2022jp_mobile.c + libmbfl/filters/mbfilter_iso2022_kr.c + libmbfl/filters/mbfilter_iso8859_1.c + libmbfl/filters/mbfilter_iso8859_10.c + libmbfl/filters/mbfilter_iso8859_13.c + libmbfl/filters/mbfilter_iso8859_14.c + libmbfl/filters/mbfilter_iso8859_15.c + libmbfl/filters/mbfilter_iso8859_16.c + libmbfl/filters/mbfilter_iso8859_2.c + libmbfl/filters/mbfilter_iso8859_3.c + libmbfl/filters/mbfilter_iso8859_4.c + libmbfl/filters/mbfilter_iso8859_5.c + libmbfl/filters/mbfilter_iso8859_6.c + libmbfl/filters/mbfilter_iso8859_7.c + libmbfl/filters/mbfilter_iso8859_8.c + libmbfl/filters/mbfilter_iso8859_9.c + libmbfl/filters/mbfilter_jis.c + libmbfl/filters/mbfilter_koi8r.c + libmbfl/filters/mbfilter_armscii8.c + libmbfl/filters/mbfilter_qprint.c + libmbfl/filters/mbfilter_sjis.c + libmbfl/filters/mbfilter_sjis_open.c + libmbfl/filters/mbfilter_sjis_mobile.c + libmbfl/filters/mbfilter_sjis_mac.c + libmbfl/filters/mbfilter_sjis_2004.c + libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + libmbfl/filters/mbfilter_ucs2.c + libmbfl/filters/mbfilter_ucs4.c + libmbfl/filters/mbfilter_uhc.c + libmbfl/filters/mbfilter_utf16.c + libmbfl/filters/mbfilter_utf32.c + libmbfl/filters/mbfilter_utf7.c + libmbfl/filters/mbfilter_utf7imap.c + libmbfl/filters/mbfilter_utf8.c + libmbfl/filters/mbfilter_utf8_mobile.c + libmbfl/filters/mbfilter_uuencode.c + libmbfl/filters/mbfilter_koi8u.c + libmbfl/mbfl/mbfilter.c + libmbfl/mbfl/mbfilter_8bit.c + libmbfl/mbfl/mbfilter_pass.c + libmbfl/mbfl/mbfilter_wchar.c + libmbfl/mbfl/mbfl_convert.c + libmbfl/mbfl/mbfl_encoding.c + libmbfl/mbfl/mbfl_filter_output.c + libmbfl/mbfl/mbfl_ident.c + libmbfl/mbfl/mbfl_language.c + libmbfl/mbfl/mbfl_memory_device.c + libmbfl/mbfl/mbfl_string.c + libmbfl/mbfl/mbfl_allocators.c + libmbfl/nls/nls_de.c + libmbfl/nls/nls_en.c + libmbfl/nls/nls_ja.c + libmbfl/nls/nls_kr.c + libmbfl/nls/nls_neutral.c + libmbfl/nls/nls_ru.c + libmbfl/nls/nls_uni.c + libmbfl/nls/nls_zh.c + libmbfl/nls/nls_hy.c + libmbfl/nls/nls_tr.c + libmbfl/nls/nls_ua.c + " + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h" + + else + for inc in include include/mbfl-1.0 include/mbfl; do + if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then + PHP_LIBMBFL_INCLUDE="$inc" + break + fi + done + + if test -z "$PHP_LIBMBFL_INCLUDE"; then + as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5 + else + + if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then + + if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL_INCLUDE + else + + ep_dir=`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_LIBMBFL/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5 +$as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; } +if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmbfl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mbfl_buffer_converter_new (); +int +main () +{ +return mbfl_buffer_converter_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes +else + ac_cv_lib_mbfl_mbfl_buffer_converter_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5 +$as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; } +if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD" + if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then + + if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then + + if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_LIBMBFL/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mbfl in + c|c_r|pthread*) ;; + *) + LIBS="-lmbfl $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mbfl_mbfl_buffer_converter_new + + as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5 + + +fi + + fi + + + + ext_builddir=ext/mbstring + ext_srcdir=$abs_srcdir/ext/mbstring + + ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MBSTRING_SHARED=no + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MBSTRING 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MBSTRING_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_srcdir/$dir + else + + ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_builddir/$dir" != "/usr/include"; then + + if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then + ai_p=$ext_builddir/$dir + else + + ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + done + + if test "$ext_shared" = "no"; then + + + case ext/mbstring in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects< $ext_builddir/$cfg <&5 +$as_echo_n "checking for mcrypt support... " >&6; } + +# Check whether --with-mcrypt was given. +if test "${with_mcrypt+set}" = set; then : + withval=$with_mcrypt; PHP_MCRYPT=$withval +else + + PHP_MCRYPT=no + test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MCRYPT in +shared,*) + PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'` + ;; +shared) + PHP_MCRYPT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MCRYPT" != "no"; then + for i in $PHP_MCRYPT /usr/local /usr; do + test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break + done + + if test -z "$MCRYPT_DIR"; then + as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5 + fi + + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$MCRYPT_DIR/include + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmcrypt version" >&5 +$as_echo_n "checking for libmcrypt version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if MCRYPT_API_VERSION >= 20021217 + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 2.5.6" >&5 +$as_echo ">= 2.5.6" >&6; } + +else + + as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 +$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mcrypt_module_open (); +int +main () +{ +return mcrypt_module_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mcrypt_mcrypt_module_open=yes +else + ac_cv_lib_mcrypt_mcrypt_module_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 +$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case ltdl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD" + else + + + case ltdl in + c|c_r|pthread*) ;; + *) + LIBS="-lltdl $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mcrypt_mcrypt_module_open + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MCRYPT_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 +$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mcrypt_module_open (); +int +main () +{ +return mcrypt_module_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mcrypt_mcrypt_module_open=yes +else + ac_cv_lib_mcrypt_mcrypt_module_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 +$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_mcrypt_mcrypt_module_open + + as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5 + + +fi + + + +fi + + + + + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD" + if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then + + if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then + + if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mcrypt in + c|c_r|pthread*) ;; + *) + LIBS="-lmcrypt $LIBS" + ;; + esac + + + + + fi + + + + if test "$MCRYPT_DIR/include" != "/usr/include"; then + + if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MCRYPT_DIR/include + else + + ep_dir=`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD" + + + ext_builddir=ext/mcrypt + ext_srcdir=$abs_srcdir/ext/mcrypt + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MCRYPT_SHARED=no + + + case ext/mcrypt in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mcrypt.c mcrypt_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MCRYPT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MCRYPT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mcrypt in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mcrypt.c mcrypt_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MSSQL support via FreeTDS... " >&6; } + +# Check whether --with-mssql was given. +if test "${with_mssql+set}" = set; then : + withval=$with_mssql; PHP_MSSQL=$withval +else + + PHP_MSSQL=no + test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MSSQL in +shared,*) + PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_MSSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MSSQL" != "no"; then + + if test "$PHP_MSSQL" = "yes"; then + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$i + FREETDS_INCLUDE_DIR=$i/include/freetds + break + fi + done + + if test -z "$FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_MSSQL" != "no"; then + + if test -f $PHP_MSSQL/include/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include + elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then + FREETDS_INSTALLATION_DIR=$PHP_MSSQL + FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds + else + as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD" + if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + ext_builddir=ext/mssql + ext_srcdir=$abs_srcdir/ext/mssql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MSSQL_SHARED=no + + + case ext/mssql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mssql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MSSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MSSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mssql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mssql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_MSSQL 1" >>confdefs.h + + +$as_echo "#define HAVE_FREETDS 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD" + +fi + + + + + + + + +php_with_mysql=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5 +$as_echo_n "checking for MySQL support... " >&6; } + +# Check whether --with-mysql was given. +if test "${with_mysql+set}" = set; then : + withval=$with_mysql; PHP_MYSQL=$withval +else + + PHP_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQL in +shared,*) + PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mysql_sock=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 +$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; } + +# Check whether --with-mysql-sock was given. +if test "${with_mysql_sock+set}" = set; then : + withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval +else + + PHP_MYSQL_SOCK=no + + +fi + + +ext_output=$PHP_MYSQL_SOCK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQL" != "no"; then + MYSQL_DIR= + MYSQL_INC_DIR= + + if test -r $PHP_MYSQL/include/mysql/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include/mysql + break + elif test -r $PHP_MYSQL/include/mysql.h; then + MYSQL_DIR=$PHP_MYSQL + MYSQL_INC_DIR=$PHP_MYSQL/include + break + fi + + if test -z "$MYSQL_DIR"; then + as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL. +Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 + fi + + if test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIBNAME=mysqlclient_r + else + MYSQL_LIBNAME=mysqlclient + fi + case $host_alias in + *netware*) + MYSQL_LIBNAME=mysql + ;; + esac + + if test -z "$PHP_LIBDIR"; then + PHP_LIBDIR=lib + fi + + for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do + + str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/$i + break 2 + fi + done + + done + + if test -z "$MYSQL_LIB_DIR"; then + + str="$MYSQL_DIR/lib/x86_64-linux-gnu/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/lib/x86_64-linux-gnu + break 2 + fi + done + + fi + if test -z "$MYSQL_LIB_DIR"; then + + str="$MYSQL_DIR/lib/i386-linux-gnu/lib$MYSQL_LIBNAME.*" + for j in `echo $str`; do + if test -r $j; then + MYSQL_LIB_DIR=$MYSQL_DIR/lib/i386-linux-gnu + break 2 + fi + done + + fi + + if test -z "$MYSQL_LIB_DIR"; then + as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. +Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_close (); +int +main () +{ +return mysql_close (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_error (); +int +main () +{ +return mysql_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error + + as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_errno (); +int +main () +{ +return mysql_errno (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + MYSQL_LIBS="-lz" + fi + + +fi + + + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD" + if test -n "$MYSQL_LIB_DIR"; then + + if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then + + if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_LIB_DIR + else + + ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MYSQL_LIB_DIR"; then + + if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then + + if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_LIB_DIR + else + + ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $MYSQL_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$MYSQL_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$MYSQL_INC_DIR + else + + ep_dir=`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + MYSQL_MODULE_TYPE=external + MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS" + MYSQL_INCLUDE=-I$MYSQL_INC_DIR + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE" + + + +fi + +if test "$PHP_MYSQL" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + ext_builddir=ext/mysql + ext_srcdir=$abs_srcdir/ext/mysql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQL_SHARED=no + + + case ext/mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mysql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_mysql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + fi +fi + + + +php_with_mysqli=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5 +$as_echo_n "checking for MySQLi support... " >&6; } + +# Check whether --with-mysqli was given. +if test "${with_mysqli+set}" = set; then : + withval=$with_mysqli; PHP_MYSQLI=$withval +else + + PHP_MYSQLI=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLI in +shared,*) + PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_embedded_mysqli=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5 +$as_echo_n "checking whether to enable embedded MySQLi support... " >&6; } +# Check whether --enable-embedded_mysqli was given. +if test "${enable_embedded_mysqli+set}" = set; then : + enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval +else + + PHP_EMBEDDED_MYSQLI=no + + +fi + + +ext_output=$PHP_EMBEDDED_MYSQLI +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQLI" != "no"; then + + MYSQL_CONFIG=$PHP_MYSQLI + + MYSQL_LIB_NAME='mysqlclient' + if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then + +$as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h + + MYSQL_LIB_CFG='--libmysqld-libs' + mysqli_extra_sources="mysqli_embedded.c" + elif test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIB_CFG='--libs_r' + MYSQL_LIB_NAME='mysqlclient_r' + else + MYSQL_LIB_CFG='--libs' + fi + + if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then + MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"` + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5 +$as_echo "mysql_config not found" >&6; } + as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_server_option (); +int +main () +{ +return mysql_set_server_option (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $MYSQLI_INCLINE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $MYSQLI_LIBLINE; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$MYSQLI_LIBLINE" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_character_set (); +int +main () +{ +return mysql_set_character_set (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set + + as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 + + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option + + as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_stmt_next_result (); +int +main () +{ +return mysql_stmt_next_result (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result + + + +fi + +fi + +if test "$PHP_MYSQLI" != "no"; then + mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ + mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \ + mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources" + + ext_builddir=ext/mysqli + ext_srcdir=$abs_srcdir/ext/mysqli + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLI_SHARED=no + + + case ext/mysqli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLI_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysqli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + for header_file in ext/mysqli/mysqli_mysqlnd.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + else + + + for header_file in ext/mysqli/mysqli_libmysql.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi +fi + + +if test -z "$SED"; then + PHP_OCI8_SED="sed"; +else + PHP_OCI8_SED="$SED"; +fi + +PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null` +if test "$PHP_OCI8_TAIL1" = "a"; then + PHP_OCI8_TAIL1="tail -n1" +else + PHP_OCI8_TAIL1="tail -1" +fi + + + + + + + + + + + +php_with_oci8=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 +$as_echo_n "checking for Oracle Database OCI8 support... " >&6; } + +# Check whether --with-oci8 was given. +if test "${with_oci8+set}" = set; then : + withval=$with_oci8; PHP_OCI8=$withval +else + + PHP_OCI8=no + test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OCI8 in +shared,*) + PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'` + ;; +shared) + PHP_OCI8=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OCI8" != "no"; then + + if test -z "$PHP_OCI8"; then + as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 +$as_echo_n "checking PHP version... " >&6; } + + tmp_version=$PHP_VERSION + if test -z "$tmp_version"; then + if test -z "$PHP_CONFIG"; then + as_fn_error $? "php-config not found" "$LINENO" 5 + fi + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + else + php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + fi + + if test -z "$php_version"; then + as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5 + fi + + ac_IFS=$IFS + IFS="." + set $php_version + IFS=$ac_IFS + oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3` + + if test "$oci8_php_version" -lt "4003009"; then + as_fn_error $? "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 + elif test "$oci8_php_version" -ge "6000000"; then + as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 +$as_echo "$php_version, ok" >&6; } + fi + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_OH_LIBDIR=lib32 + PHP_OCI8_IC_LIBDIR_SUFFIX="" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_OH_LIBDIR=lib + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + fi + + + PHP_OCI8_INSTANT_CLIENT="no" + + if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} + PHP_OCI8=instantclient + fi + + if test "`echo $PHP_OCI8`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="yes" + elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + fi + + if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 +$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; } + + if test "$PHP_OCI8" = "yes"; then + OCI8_DIR=$ORACLE_HOME + else + OCI8_DIR=$PHP_OCI8 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 +$as_echo "$OCI8_DIR" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 +$as_echo_n "checking ORACLE_HOME library validity... " >&6; } + if test ! -d "$OCI8_DIR"; then + as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 + fi + if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib + elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib32 + elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR + else + if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then + as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 + else + as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 +$as_echo "$OCI8_LIB_DIR" >&6; } + + + if test -d "$OCI8_DIR/rdbms/public"; then + + if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/public + else + + ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" + fi + if test -d "$OCI8_DIR/rdbms/demo"; then + + if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/demo + else + + ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" + fi + if test -d "$OCI8_DIR/network/public"; then + + if test "$OCI8_DIR/network/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/network/public + else + + ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" + fi + if test -d "$OCI8_DIR/plsql/public"; then + + if test "$OCI8_DIR/plsql/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/plsql/public + else + + ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" + fi + + if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 +$as_echo_n "checking Oracle library version compatibility... " >&6; } + OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3 + elif test -f "$OCI8_LCS"; then + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $OCI8_LCS_BASE.9.0; then + OCI8_ORACLE_VERSION=9.0 + elif test -f $OCI8_LCS_BASE.8.0; then + OCI8_ORACLE_VERSION=8.1 + elif test -f $OCI8_LCS_BASE.1.0; then + OCI8_ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then + if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then + OCI8_ORACLE_VERSION=8.0 + else + OCI8_ORACLE_VERSION=8.1 + fi + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + case $OCI8_ORACLE_VERSION in + 7.3|8.0|8.1) + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + ;; + + 9.0) + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + OCI8_ORACLE_VERSION=9.2 + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + + +fi + + ;; + + *) + +$as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h + + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then + + if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/$OCI8_LIB_DIR + else + + ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_DIR "$OCI8_DIR" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD" +_ACEOF + + + else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 +$as_echo_n "checking Oracle Instant Client directory... " >&6; } + + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then + as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 +$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; } + + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 +$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; } + + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include + + OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'` + + if test -f "$OCISDKRPMINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKRPMINC + elif test -f "$OCISDKZIPINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKZIPINC + elif test -f "$OCISDKMANINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKMANINC + else + as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5 + fi + + OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` + if test -f "$OCISYSLIBLIST"; then + + for ac_i in `cat $OCISYSLIBLIST`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 +$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; } + OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc + OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` + if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then + if test ! -f "$OCI8_LCS_BASE"; then + as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 + fi + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + else + as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then + + if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then + ai_p=$PHP_OCI8_INSTANT_CLIENT + else + + ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + +$as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h + + +$as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h + + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/oci8 in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + fi +fi + + + + + + + + + + + + +if test -z "$ODBC_TYPE"; then + +php_with_adabas=no + + + +# Check whether --with-adabas was given. +if test "${with_adabas+set}" = set; then : + withval=$with_adabas; PHP_ADABAS=$withval +else + + PHP_ADABAS=no + test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ADABAS in +shared,*) + PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'` + ;; +shared) + PHP_ADABAS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ADABAS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 +$as_echo_n "checking for Adabas support... " >&6; } + if test "$PHP_ADABAS" = "yes"; then + PHP_ADABAS=/usr/local + fi + + if test "$PHP_ADABAS/incl" != "/usr/include"; then + + if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/incl + else + + ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a" + ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a" + $srcdir/build/shtool mkdir -f -p ext/odbc + rm -f "$ODBC_LIB" + cp "$ODBC_OBJS" "$ODBC_LIB" + + + case sqlptc in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlptc $LIBS" + ;; + esac + + + + + case sqlrte in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlrte $LIBS" + ;; + esac + + + + + if test -n "$abs_builddir/ext/odbc"; then + + if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then + + if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then + ai_p=$abs_builddir/ext/odbc + else + + ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case odbc_adabas in + c|c_r|pthread*) ;; + *) + LIBS="-lodbc_adabas $LIBS" + ;; + esac + + + + + ODBC_TYPE=adabas + ODBC_INCDIR=$PHP_ADABAS/incl + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_ADABAS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_sapdb=no + + + +# Check whether --with-sapdb was given. +if test "${with_sapdb+set}" = set; then : + withval=$with_sapdb; PHP_SAPDB=$withval +else + + PHP_SAPDB=no + test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SAPDB in +shared,*) + PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'` + ;; +shared) + PHP_SAPDB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_SAPDB" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 +$as_echo_n "checking for SAP DB support... " >&6; } + if test "$PHP_SAPDB" = "yes"; then + PHP_SAPDB=/usr/local + fi + + if test "$PHP_SAPDB/incl" != "/usr/include"; then + + if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/incl + else + + ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case sqlod in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlod $LIBS" + ;; + esac + + + ODBC_TYPE=sapdb + +$as_echo "#define HAVE_SAPDB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_solid=no + + + +# Check whether --with-solid was given. +if test "${with_solid+set}" = set; then : + withval=$with_solid; PHP_SOLID=$withval +else + + PHP_SOLID=no + test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOLID in +shared,*) + PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOLID=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_SOLID" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 +$as_echo_n "checking for Solid support... " >&6; } + if test "$PHP_SOLID" = "yes"; then + PHP_SOLID=/usr/local/solid + fi + ODBC_INCDIR=$PHP_SOLID/include + ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=solid + if test -f $ODBC_LIBDIR/soc*35.a; then + +$as_echo "#define HAVE_SOLID_35 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*30.a; then + +$as_echo "#define HAVE_SOLID_30 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*23.a; then + +$as_echo "#define HAVE_SOLID 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 +$as_echo_n "checking Solid library file... " >&6; } + ac_solid_uname_r=`uname -r 2>/dev/null` + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only + HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10 + IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only + Linux) + if ldd -v /bin/sh | grep GLIBC > /dev/null; then + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=l2x + else + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=lux + fi;; + SunOS) + ac_solid_os=ssx;; # should we deal with SunOS 4? + FreeBSD) + if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fex + else + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fbx + fi;; + esac + + if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then + ac_solid_version=35 + ac_solid_prefix=soc + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then + ac_solid_version=30 + ac_solid_prefix=scl + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then + ac_solid_version=23 + ac_solid_prefix=scl + fi + +# +# Check for the library files, and setup the ODBC_LIBS path... +# +if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \ + ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then + # + # we have an error and should bail out, as we can't find the libs! + # + echo "" + echo "*********************************************************************" + echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* Please correct this by creating the following links and reconfiguring:" + echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so" + echo "*********************************************************************" +else + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_ibm_db2=no + + + +# Check whether --with-ibm-db2 was given. +if test "${with_ibm_db2+set}" = set; then : + withval=$with_ibm_db2; PHP_IBM_DB2=$withval +else + + PHP_IBM_DB2=no + test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IBM_DB2 in +shared,*) + PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'` + ;; +shared) + PHP_IBM_DB2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_IBM_DB2" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 +$as_echo_n "checking for IBM DB2 support... " >&6; } + if test "$PHP_IBM_DB2" = "yes"; then + ODBC_INCDIR=/home/db2inst1/sqllib/include + ODBC_LIBDIR=/home/db2inst1/sqllib/lib + else + ODBC_INCDIR=$PHP_IBM_DB2/include + ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR + fi + + +if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 +fi + + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=ibm-db2 + ODBC_LIBS=-ldb2 + + + old_LIBS=$LIBS + LIBS=" + $ODBC_LFLAGS $ODBC_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char SQLExecute(); + int main() { + SQLExecute(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IBMDB2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? " +build test failed. Please check the config.log for details. +You need to source your DB2 environment before running PHP configure: +# . \$IBM_DB2/db2profile +" "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_odbcrouter=no + + + +# Check whether --with-ODBCRouter was given. +if test "${with_ODBCRouter+set}" = set; then : + withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval +else + + PHP_ODBCROUTER=no + test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ODBCROUTER in +shared,*) + PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_ODBCROUTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ODBCROUTER" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBCRouter.com support" >&5 +$as_echo_n "checking for ODBCRouter.com support... " >&6; } + if test "$PHP_ODBCROUTER" = "yes"; then + PHP_ODBCROUTER=/usr + fi + ODBC_INCDIR=$PHP_ODBCROUTER/include + ODBC_LIBDIR=$PHP_ODBCROUTER/lib + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbcsdk + ODBC_TYPE=ODBCRouter + +$as_echo "#define HAVE_ODBC_ROUTER 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress=no + + + +# Check whether --with-empress was given. +if test "${with_empress+set}" = set; then : + withval=$with_empress; PHP_EMPRESS=$withval +else + + PHP_EMPRESS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS in +shared,*) + PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_EMPRESS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 +$as_echo_n "checking for Empress support... " >&6; } + if test "$PHP_EMPRESS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS/shlib + fi + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=empress + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 +$as_echo_n "checking Empress library file... " >&6; } + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + if test ! -f $ODBC_LIBS; then + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress_bcs=no + + + +# Check whether --with-empress-bcs was given. +if test "${with_empress_bcs+set}" = set; then : + withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval +else + + PHP_EMPRESS_BCS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS_BCS in +shared,*) + PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS_BCS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_EMPRESS_BCS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 +$as_echo_n "checking for Empress local access support... " >&6; } + if test "$PHP_EMPRESS_BCS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib + fi + CC="empocc -bcs";export CC; + LD="empocc -bcs";export LD; + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + LIST=`empocc -listlines -bcs -o a a.c` + + NEWLIST= + for I in $LIST + do + case $I in + $EMPRESSPATH/odbccl/lib/* | \ + $EMPRESSPATH/rdbms/lib/* | \ + $EMPRESSPATH/common/lib/*) + NEWLIST="$NEWLIST $I" + ;; + esac + done + ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" + ODBC_TYPE=empress-bcs + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 +$as_echo_n "checking Empress local access library file... " >&6; } + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + if test ! -f $ODBCBCS_LIBS; then + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } + + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_birdstep=no + + + +# Check whether --with-birdstep was given. +if test "${with_birdstep+set}" = set; then : + withval=$with_birdstep; PHP_BIRDSTEP=$withval +else + + PHP_BIRDSTEP=no + test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BIRDSTEP in +shared,*) + PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'` + ;; +shared) + PHP_BIRDSTEP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_BIRDSTEP" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Birdstep support" >&5 +$as_echo_n "checking for Birdstep support... " >&6; } + if test "$PHP_BIRDSTEP" = "yes"; then + ODBC_INCDIR=/usr/local/birdstep/include + ODBC_LIBDIR=/usr/local/birdstep/lib + else + ODBC_INCDIR=$PHP_BIRDSTEP/include + ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR + fi + + case $host_alias in + *aix*) + +$as_echo "#define AIX 1" >>confdefs.h +;; + *hpux*) + +$as_echo "#define HPUX 1" >>confdefs.h +;; + *linux*) + +$as_echo "#define LINUX 1" >>confdefs.h +;; + *qnx*) + +$as_echo "#define NEUTRINO 1" >>confdefs.h +;; + i?86-*-solaris*) + +$as_echo "#define ISOLARIS 1" >>confdefs.h +;; + sparc-*-solaris*) + +$as_echo "#define SOLARIS 1" >>confdefs.h +;; + *unixware*) + +$as_echo "#define UNIXWARE 1" >>confdefs.h +;; + esac + + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_TYPE=birdstep + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil" + + if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil" + elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then + ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil" + fi + + +$as_echo "#define HAVE_BIRDSTEP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_custom_odbc=no + + + +# Check whether --with-custom-odbc was given. +if test "${with_custom_odbc+set}" = set; then : + withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval +else + + PHP_CUSTOM_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CUSTOM_ODBC in +shared,*) + PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_CUSTOM_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_CUSTOM_ODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 +$as_echo_n "checking for a custom ODBC support... " >&6; } + if test "$PHP_CUSTOM_ODBC" = "yes"; then + PHP_CUSTOM_ODBC=/usr/local + fi + ODBC_INCDIR=$PHP_CUSTOM_ODBC/include + ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=$CUSTOM_ODBC_LIBS + ODBC_TYPE=custom-odbc + +$as_echo "#define HAVE_CODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_iodbc=no + + + +# Check whether --with-iodbc was given. +if test "${with_iodbc+set}" = set; then : + withval=$with_iodbc; PHP_IODBC=$withval +else + + PHP_IODBC=no + test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IODBC in +shared,*) + PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_IODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_IODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5 +$as_echo_n "checking for iODBC support... " >&6; } + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then + + + if test -n "$PHP_IODBC/$PHP_LIBDIR"; then + + if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iodbc in + c|c_r|pthread*) ;; + *) + LIBS="-liodbc $LIBS" + ;; + esac + + + + + ODBC_TYPE=iodbc + ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc` + ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc` + ODBC_LIBS=`$PKG_CONFIG --libs-only-l libiodbc` + + for ac_i in $ODBC_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + if test "$PHP_IODBC" = "yes"; then + PHP_IODBC=/usr/local + fi + + + if test -n "$PHP_IODBC/$PHP_LIBDIR"; then + + if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iodbc in + c|c_r|pthread*) ;; + *) + LIBS="-liodbc $LIBS" + ;; + esac + + + + + + if test "$PHP_IODBC/include" != "/usr/include"; then + + if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_IODBC/include + else + + ep_dir=`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_IODBC/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test "1"; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_TYPE=iodbc + ODBC_INCLUDE=-I$PHP_IODBC/include + ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR + ODBC_LIBS=-liodbc + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_esoob=no + + + +# Check whether --with-esoob was given. +if test "${with_esoob+set}" = set; then : + withval=$with_esoob; PHP_ESOOB=$withval +else + + PHP_ESOOB=no + test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ESOOB in +shared,*) + PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ESOOB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_ESOOB" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 +$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } + if test "$PHP_ESOOB" = "yes"; then + PHP_ESOOB=/usr/local/easysoft/oob/client + fi + ODBC_INCDIR=$PHP_ESOOB/include + ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lesoobclient + ODBC_TYPE=esoob + +$as_echo "#define HAVE_ESOOB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_unixodbc=no + + + +# Check whether --with-unixODBC was given. +if test "${with_unixODBC+set}" = set; then : + withval=$with_unixODBC; PHP_UNIXODBC=$withval +else + + PHP_UNIXODBC=no + test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_UNIXODBC in +shared,*) + PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_UNIXODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_UNIXODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5 +$as_echo_n "checking for unixODBC support... " >&6; } + if test "$PHP_UNIXODBC" = "yes"; then + PHP_UNIXODBC=/usr/local + fi + ODBC_INCDIR=$PHP_UNIXODBC/include + ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + ODBC_TYPE=unixODBC + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_dbmaker=no + + + +# Check whether --with-dbmaker was given. +if test "${with_dbmaker+set}" = set; then : + withval=$with_dbmaker; PHP_DBMAKER=$withval +else + + PHP_DBMAKER=no + test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DBMAKER in +shared,*) + PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'` + ;; +shared) + PHP_DBMAKER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + if test "$PHP_DBMAKER" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 +$as_echo_n "checking for DBMaker support... " >&6; } + if test "$PHP_DBMAKER" = "yes"; then + # find dbmaker's home directory + DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` + + # check DBMaker version (from 5.0 to 2.0) + DBMAKER_VERSION=5.0 + + while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do + DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'` + MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'` + MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'` + DBMAKER_VERSION=$MAJOR_V.$MINOR_V + done + + if test "$DBMAKER_VERSION" = "2.9"; then + PHP_DBMAKER=$DBMAKER_HOME + else + PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION + fi + fi + + ODBC_INCDIR=$PHP_DBMAKER/include + ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_INCLUDE=-I$ODBC_INCDIR + ODBC_LIBS="-ldmapic -lc" + ODBC_TYPE=dbmaker + + +$as_echo "#define HAVE_DBMAKER 1" >>confdefs.h + + + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 +$as_echo "yes (shared)" >&6; } + ODBC_LIBS="-ldmapic -lc -lm" + ODBC_SHARED="odbc.la" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 +$as_echo "yes (static)" >&6; } + + + if test -n "$ODBC_LIBDIR"; then + + if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then + + if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_LIBDIR + else + + ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dmapic in + c|c_r|pthread*) ;; + *) + LIBS="-ldmapic $LIBS" + ;; + esac + + + + + + if test "$ODBC_INCDIR" != "/usr/include"; then + + if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_INCDIR + else + + ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_STATIC="libphpext_odbc.la" + fi + fi +fi + +if test -n "$ODBC_TYPE"; then + if test "$ODBC_TYPE" != "dbmaker"; then + + for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then + +$as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h + + fi + fi + + +$as_echo "#define HAVE_UODBC 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE" + + + + + + ext_builddir=ext/odbc + ext_srcdir=$abs_srcdir/ext/odbc + + ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ODBC_SHARED=no + + + case ext/odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable Zend OPcache support... " >&6; } +# Check whether --enable-opcache was given. +if test "${enable_opcache+set}" = set; then : + enableval=$enable_opcache; PHP_OPCACHE=$enableval +else + + PHP_OPCACHE=yes + test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPCACHE in +shared,*) + PHP_OPCACHE=`echo "$PHP_OPCACHE"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPCACHE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPCACHE" != "no"; then + + ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" +if test "x$ac_cv_func_mprotect" = xyes; then : + + +$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 +$as_echo_n "checking for sysvipc shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include + +int main() { + pid_t pid; + int status; + int ipc_id; + char *shm; + struct shmid_ds shmbuf; + + ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W)); + if (ipc_id == -1) { + return 1; + } + + shm = shmat(ipc_id, NULL, 0); + if (shm == (void *)-1) { + shmctl(ipc_id, IPC_RMID, NULL); + return 2; + } + + if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 3; + } + + shmbuf.shm_perm.uid = getuid(); + shmbuf.shm_perm.gid = getgid(); + shmbuf.shm_perm.mode = 0600; + + if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 4; + } + + shmctl(ipc_id, IPC_RMID, NULL); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 +$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + char *shm; + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + if (shm == MAP_FAILED) { + return 1; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using /dev/zero shared memory support" >&5 +$as_echo_n "checking for mmap() using /dev/zero shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + + fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 1; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 2; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ZERO 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 +$as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + shm_unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + shm_unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using regular file shared memory support" >&5 +$as_echo_n "checking for mmap() using regular file shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_FILE 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + +flock_type=unknown +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is linux ordered\"" >&5 +$as_echo_n "checking \"whether flock struct is linux ordered\"... " >&6; } +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) { + return 0; + } + return 1; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + flock_type=linux + +$as_echo "#define HAVE_FLOCK_LINUX /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 +$as_echo "\"yes\"" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 +$as_echo "\"no\"" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is BSD ordered\"" >&5 +$as_echo_n "checking \"whether flock struct is BSD ordered\"... " >&6; } +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + struct flock lock = { 1, 2, 3, 4, 5 }; + int main() { + if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) { + return 0; + } + return 1; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + flock_type=bsd + +$as_echo "#define HAVE_FLOCK_BSD /**/" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 +$as_echo "\"yes\"" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 +$as_echo "\"no\"" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +if test "$flock_type" == "unknown"; then + as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5 +fi + + + ext_builddir=ext/opcache + ext_srcdir=$abs_srcdir/ext/opcache + + ac_extra= + + if test "shared" != "shared" && test "shared" != "yes" && test "" != "cli"; then + PHP_OPCACHE_SHARED=no + + + case ext/opcache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/opcache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/opcache/"; ac_bdir="ext/opcache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPCACHE 1 +_ACEOF + + fi + fi + + if test "shared" != "shared" && test "shared" != "yes" && test "" = "cli"; then + PHP_OPCACHE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/opcache in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/opcache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/opcache/"; ac_bdir="ext/opcache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable pcntl support... " >&6; } +# Check whether --enable-pcntl was given. +if test "${enable_pcntl+set}" = set; then : + enableval=$enable_pcntl; PHP_PCNTL=$enableval +else + + PHP_PCNTL=no + test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PCNTL in +shared,*) + PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PCNTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PCNTL" != "no"; then + for ac_func in fork +do : + ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" +if test "x$ac_cv_func_fork" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FORK 1 +_ACEOF + +$as_echo "#define HAVE_FORK 1" >>confdefs.h + +else + as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in waitpid +do : + ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" +if test "x$ac_cv_func_waitpid" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITPID 1 +_ACEOF + +$as_echo "#define HAVE_WAITPID 1" >>confdefs.h + +else + as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h + +else + as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + ext_builddir=ext/pcntl + ext_srcdir=$abs_srcdir/ext/pcntl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_PCNTL_SHARED=no + + + case ext/pcntl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCNTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_PCNTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pcntl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PDO support... " >&6; } +# Check whether --enable-pdo was given. +if test "${enable_pdo+set}" = set; then : + enableval=$enable_pdo; PHP_PDO=$enableval +else + + PHP_PDO=yes + test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO in +shared,*) + PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO" != "no"; then + + PHP_PDO=yes + + + pdo_running_under_pear=0 + case `pwd` in + /var/tmp/pear-build-*) + pdo_running_under_pear=1 + ;; + esac + + if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then + # we're running in an environment that smells like pear, + # and the PHP_PEAR_VERSION env var is not set. That implies + # that we're running under a slightly broken pear installer + as_fn_error $? " +PDO requires that you upgrade your PEAR installer tools. Please +do so now by running: + + % sudo pear upgrade pear + +or by manually downloading and installing PEAR version 1.3.5 or higher. + +Once you've upgraded, please re-try your PDO install. + " "$LINENO" 5 + fi + + + if test "$ext_shared" = "yes" ; then + case $host_alias in + *darwin*) + as_fn_error $? " +Due to the way that loadable modules work on OSX/Darwin, you need to +compile the PDO package statically into the PHP core. + +Please follow the instructions at: http://netevil.org/node.php?nid=202 +for more detail on this issue. + " "$LINENO" 5 + ext_shared=no + ;; + esac + fi + + ext_builddir=ext/pdo + ext_srcdir=$abs_srcdir/ext/pdo + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SHARED=no + + + case ext/pdo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + +php_with_pdo_dblib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 +$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; } + +# Check whether --with-pdo-dblib was given. +if test "${with_pdo_dblib+set}" = set; then : + withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval +else + + PHP_PDO_DBLIB=no + test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_DBLIB in +shared,*) + PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_DBLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_DBLIB" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_DBLIB" = "yes"; then + + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include/freetds + break; + fi + done + + if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_PDO_DBLIB" != "no"; then + + if test -f $PHP_PDO_DBLIB/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include + elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds + else + as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test "x$PHP_LIBDIR" = "x" ; then + PHP_LIBDIR=lib + fi + + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD" + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\"" + + ext_builddir=ext/pdo_dblib + ext_srcdir=$abs_srcdir/ext/pdo_dblib + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_DBLIB_SHARED=no + + + case ext/pdo_dblib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_DBLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_DBLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_dblib in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h + + +$as_echo "#define HAVE_FREETDS 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD" + + + + + am_i_shared=$PHP_PDO_DBLIB_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_dblib to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_dblib shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_dblib, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + + +fi + + +php_with_pdo_firebird=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 +$as_echo_n "checking for Firebird support for PDO... " >&6; } + +# Check whether --with-pdo-firebird was given. +if test "${with_pdo_firebird+set}" = set; then : + withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval +else + + PHP_PDO_FIREBIRD=no + test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_FIREBIRD in +shared,*) + PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_FIREBIRD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_FIREBIRD" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_FIREBIRD" = "yes"; then + FIREBIRD_INCDIR= + FIREBIRD_LIBDIR= + FIREBIRD_LIBDIR_FLAG= + else + FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include + FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR + FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD" + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $FIREBIRD_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$FIREBIRD_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$FIREBIRD_INCDIR" != "/usr/include"; then + + if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_INCDIR + else + + ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h + + + ext_builddir=ext/pdo_firebird + ext_srcdir=$abs_srcdir/ext/pdo_firebird + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + + + case ext/pdo_firebird in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_FIREBIRD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_firebird in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MySQL support for PDO... " >&6; } + +# Check whether --with-pdo-mysql was given. +if test "${with_pdo_mysql+set}" = set; then : + withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval +else + + PHP_PDO_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_MYSQL in +shared,*) + PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_PDO_MYSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then + if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then + PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL + else + if test -d "$PHP_PDO_MYSQL" ; then + if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then + PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config" + else + PDO_MYSQL_DIR="$PHP_PDO_MYSQL" + fi + fi + fi + fi + + if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +$as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h + + else + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 +$as_echo_n "checking for mysql_config... " >&6; } + if test -n "$PDO_MYSQL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 +$as_echo "$PDO_MYSQL_CONFIG" >&6; } + if test "x$SED" = "x"; then + # Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SED in + [\\/]* | ?:[\\/]*) + ac_cv_path_SED="$SED" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test "$enable_maintainer_zts" = "yes"; then + PDO_MYSQL_LIBNAME=mysqlclient_r + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` + else + PDO_MYSQL_LIBNAME=mysqlclient + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` + fi + PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + elif test -n "$PDO_MYSQL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 +$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } + if test -r $PDO_MYSQL_DIR/include/mysql; then + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql + else + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include + fi + if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql + else + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR + fi + + if test -r "$PDO_MYSQL_LIB_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 +$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 +$as_echo "can not find it" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_MYSQL_INC_DIR + else + + ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $PDO_MYSQL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_query (); +int +main () +{ +return mysql_query (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz" + fi + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +fi + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + if test -n "$PDO_MYSQL_CONFIG"; then + PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` + +cat >>confdefs.h <<_ACEOF +#define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET" +_ACEOF + + fi + + + ext_builddir=ext/pdo_mysql + ext_srcdir=$abs_srcdir/ext/pdo_mysql + + ac_extra=`echo "-I$pdo_cv_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_MYSQL_SHARED=no + + + case ext/pdo_mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_mysql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking Oracle OCI support for PDO... " >&6; } + +# Check whether --with-pdo-oci was given. +if test "${with_pdo_oci+set}" = set; then : + withval=$with_pdo_oci; PHP_PDO_OCI=$withval +else + + PHP_PDO_OCI=no + test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_OCI in +shared,*) + PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_OCI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_OCI" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 +$as_echo_n "checking Oracle Install-Dir... " >&6; } + if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then + PDO_OCI_DIR=$ORACLE_HOME + else + PDO_OCI_DIR=$PHP_PDO_OCI + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 +$as_echo "$PHP_PDO_OCI" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 +$as_echo_n "checking if that is sane... " >&6; } + if test -z "$PDO_OCI_DIR"; then + as_fn_error $? " +You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME. +" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + + if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + if test "$ac_cv_sizeof_long_int" = "4" ; then + PDO_OCI_CLIENT_DIR="client" + else + PDO_OCI_CLIENT_DIR="client64" + fi + PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`" + PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`" + if test -n "$PDO_OCI_IC_VERS"; then + PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`" + if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then + # From 11.1.0.7 the RPM path only has an X.Y component + PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 +$as_echo_n "checking for oci.h... " >&6; } + if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" || echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/sdk/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/sdk/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; } + elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then + + if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include + else + + ep_dir=`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5 +$as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; } + else + as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 + fi + if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib" + elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then + PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX" + else + as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5 + fi + PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 +$as_echo_n "checking OCI8 libraries dir... " >&6; } + if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR + else + as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 +$as_echo "$PDO_OCI_LIB_DIR" >&6; } + + + if test -d "$PDO_OCI_DIR/rdbms/public"; then + + if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/public + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public" + fi + if test -d "$PDO_OCI_DIR/rdbms/demo"; then + + if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/demo + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo" + fi + if test -d "$PDO_OCI_DIR/network/public"; then + + if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/network/public + else + + ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public" + fi + if test -d "$PDO_OCI_DIR/plsql/public"; then + + if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/plsql/public + else + + ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public" + fi + if test -d "$PDO_OCI_DIR/include"; then + + if test "$PDO_OCI_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/include + else + + ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include" + fi + + if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then + + for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then + + for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + for OCI_VER in $SUPPORTED_LIB_VERS; do + if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then + PDO_OCI_VERSION="$OCI_VER" + fi + done + if test -z "$PDO_OCI_VERSION"; then + as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + fi + + case $PDO_OCI_VERSION in + 9.0|10.1|10.2|11.1|11.2|12.1) + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + ;; + + *) + as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5 + ;; + esac + + + if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then + + if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_LIB_DIR + else + + ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvCreate (); +int +main () +{ +return OCIEnvCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvCreate=yes +else + ac_cv_lib_clntsh_OCIEnvCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5 +$as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCILobIsTemporary (); +int +main () +{ +return OCILobIsTemporary (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCILobIsTemporary=yes +else + ac_cv_lib_clntsh_OCILobIsTemporary=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5 +$as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; } +if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCILobIsTemporary + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5 +$as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; } +if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-locijdbc8 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCILobIsTemporary (); +int +main () +{ +return OCILobIsTemporary (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes +else + ac_cv_lib_ocijdbc8_OCILobIsTemporary=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5 +$as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; } +if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case ocijdbc8 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8" + else + + + case ocijdbc8 in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -locijdbc8" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ocijdbc8_OCILobIsTemporary + + +fi + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5 +$as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCICollAssign (); +int +main () +{ +return OCICollAssign (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCICollAssign=yes +else + ac_cv_lib_clntsh_OCICollAssign=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5 +$as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; } +if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCICollAssign + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 +$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIStmtFetch2 (); +int +main () +{ +return OCIStmtFetch2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIStmtFetch2=yes +else + ac_cv_lib_clntsh_OCIStmtFetch2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIStmtFetch2 + + +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + ext_builddir=ext/pdo_oci + ext_srcdir=$abs_srcdir/ext/pdo_oci + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_OCI_SHARED=no + + + case ext/pdo_oci in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_OCI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_OCI_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_oci in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION" +_ACEOF + +fi + + + + + + +php_with_pdo_odbc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 +$as_echo_n "checking for ODBC v3 support for PDO... " >&6; } + +# Check whether --with-pdo-odbc was given. +if test "${with_pdo_odbc+set}" = set; then : + withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval +else + + PHP_PDO_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_ODBC in +shared,*) + PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + +if test "$PHP_PDO_ODBC" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 +$as_echo_n "checking for selected PDO ODBC flavour... " >&6; } + + pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" + pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" + + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then + pdo_odbc_dir= + fi + + case $pdo_odbc_flavour in + ibm-db2) + pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib + pdo_odbc_def_incdir=/home/db2inst1/sqllib/include + pdo_odbc_def_lib=db2 + ;; + + iODBC|iodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=iodbc + ;; + + unixODBC|unixodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=odbc + ;; + + ODBCRouter|odbcrouter) + pdo_odbc_def_libdir=/usr/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/include + pdo_odbc_def_lib=odbcsdk + ;; + + generic) + pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`" + pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`" + pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`" + pdo_odbc_flavour="generic-$pdo_odbc_def_lib" + ;; + + *) + as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour + include and lib dirs are looked for under 'dir'. + + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic + If ',dir' part is omitted, default for the flavour + you have selected will be used. e.g.: + + --with-pdo-odbc=unixODBC + + will check for unixODBC under /usr/local. You may attempt + to use an otherwise unsupported driver using the \"generic\" + flavour. The syntax for generic ODBC support is: + + --with-pdo-odbc=generic,dir,libname,ldflags,cflags + + When built as 'shared' the extension filename is always pdo_odbc.so" "$LINENO" 5 + ;; + esac + + if test -n "$pdo_odbc_dir"; then + PDO_ODBC_INCDIR="$pdo_odbc_dir/include" + PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR" + else + PDO_ODBC_INCDIR="$pdo_odbc_def_incdir" + PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&5 +$as_echo "$pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&6; } + + if test ! -d "$PDO_ODBC_LIBDIR" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 +$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_IODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + if test "$php_pdo_have_header" != "yes"; then + as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 + fi + + PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" + PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib" + + + for ac_i in $PDO_ODBC_LDFLAGS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLBindCol (); +int +main () +{ +return SQLBindCol (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle + + as_fn_error $? " +Your ODBC library does not appear to be ODBC 3 compatible. +You should consider using iODBC or unixODBC instead, and loading your +libraries as a driver in that environment; it will emulate the +functions required for PDO support. +" "$LINENO" 5 + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol + + as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/pdo_odbc + ext_srcdir=$abs_srcdir/ext/pdo_odbc + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_ODBC_SHARED=no + + + case ext/pdo_odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_odbc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support for PDO... " >&6; } + +# Check whether --with-pdo-pgsql was given. +if test "${with_pdo_pgsql+set}" = set; then : + withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval +else + + PHP_PDO_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_PGSQL in +shared,*) + PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_PGSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PDO_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5 +$as_echo_n "checking for openssl dependencies... " >&6; } + grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1 + if test $? -eq 0 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags` + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +else + + echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required" + exit 1 + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + + ext_builddir=ext/pdo_pgsql + ext_srcdir=$abs_srcdir/ext/pdo_pgsql + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_PGSQL_SHARED=no + + + case ext/pdo_pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sqlite 3 support for PDO... " >&6; } + +# Check whether --with-pdo-sqlite was given. +if test "${with_pdo_sqlite+set}" = set; then : + withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval +else + + PHP_PDO_SQLITE=$PHP_PDO + test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_SQLITE in +shared,*) + PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_SQLITE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_SQLITE" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$prefix/include/php/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c" + + if test "$PHP_PDO_SQLITE" != "yes"; then + SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this + SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this + if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter + PDO_SQLITE_DIR=$PHP_PDO_SQLITE + else # search default path list + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5 +$as_echo_n "checking for sqlite3 files in default path... " >&6; } + for i in $SEARCH_PATH ; do + if test -r $i/$SEARCH_FOR; then + PDO_SQLITE_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + fi + done + fi + if test -z "$PDO_SQLITE_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5 + fi + + + if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then + + if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/include + else + + ep_dir=`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + LIBNAME=sqlite3 + LIBSYMBOL=sqlite3_open + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5 +$as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $LIBSYMBOL (); +int +main () +{ +return $LIBSYMBOL (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD" + if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then + + if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then + + if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$LIBNAME $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIBNAME_$LIBSYMBOL + + as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_key (); +int +main () +{ +return sqlite3_key (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_key=yes +else + ac_cv_lib_sqlite3_sqlite3_key=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_key + + +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD" + + + ext_builddir=ext/pdo_sqlite + ext_srcdir=$abs_srcdir/ext/pdo_sqlite + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SQLITE_SHARED=no + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pdo_sqlite in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $php_pdo_sqlite_sources_core; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$abs_srcdir/ext/sqlite3/libsqlite + else + + ep_dir=`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_srcdir/ext/sqlite3/libsqlite"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_func in usleep nanosleep +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in time.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" +if test "x$ac_cv_header_time_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TIME_H 1 +_ACEOF + +fi + +done + + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5 +$as_echo_n "checking for fdatasync in -lrt... " >&6; } +if ${ac_cv_lib_rt_fdatasync+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fdatasync (); +int +main () +{ +return fdatasync (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_fdatasync=yes +else + ac_cv_lib_rt_fdatasync=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5 +$as_echo "$ac_cv_lib_rt_fdatasync" >&6; } +if test "x$ac_cv_lib_rt_fdatasync" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case rt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD" + else + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_rt_fdatasync + + +fi + + + + + am_i_shared=$PHP_PDO_SQLITE_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_sqlite to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_sqlite shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_sqlite, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + + +fi + + + +php_with_pgsql=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5 +$as_echo_n "checking for PostgreSQL support... " >&6; } + +# Check whether --with-pgsql was given. +if test "${with_pgsql+set}" = set; then : + withval=$with_pgsql; PHP_PGSQL=$withval +else + + PHP_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PGSQL in +shared,*) + PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PGSQL" != "no"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PGSQL 1" >>confdefs.h + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5 +$as_echo_n "checking for PQescapeString in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeString (); +int +main () +{ +return PQescapeString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeString=yes +else + ac_cv_lib_pq_PQescapeString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeString" >&6; } +if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5 +$as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQunescapeBytea (); +int +main () +{ +return PQunescapeBytea (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQunescapeBytea=yes +else + ac_cv_lib_pq_PQunescapeBytea=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5 +$as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; } +if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then : + +$as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5 +$as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetnonblocking (); +int +main () +{ +return PQsetnonblocking (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetnonblocking=yes +else + ac_cv_lib_pq_PQsetnonblocking=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5 +$as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; } +if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then : + +$as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5 +$as_echo_n "checking for PQcmdTuples in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQcmdTuples+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQcmdTuples (); +int +main () +{ +return PQcmdTuples (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQcmdTuples=yes +else + ac_cv_lib_pq_PQcmdTuples=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5 +$as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; } +if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then : + +$as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5 +$as_echo_n "checking for PQoidValue in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQoidValue+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQoidValue (); +int +main () +{ +return PQoidValue (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQoidValue=yes +else + ac_cv_lib_pq_PQoidValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5 +$as_echo "$ac_cv_lib_pq_PQoidValue" >&6; } +if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then : + +$as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5 +$as_echo_n "checking for PQclientEncoding in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQclientEncoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQclientEncoding (); +int +main () +{ +return PQclientEncoding (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQclientEncoding=yes +else + ac_cv_lib_pq_PQclientEncoding=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5 +$as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; } +if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then : + +$as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5 +$as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprotocolVersion (); +int +main () +{ +return PQprotocolVersion (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprotocolVersion=yes +else + ac_cv_lib_pq_PQprotocolVersion=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5 +$as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; } +if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then : + +$as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5 +$as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQtransactionStatus (); +int +main () +{ +return PQtransactionStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQtransactionStatus=yes +else + ac_cv_lib_pq_PQtransactionStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; } +if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then : + +$as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + +$as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 +$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecPrepared (); +int +main () +{ +return PQexecPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecPrepared=yes +else + ac_cv_lib_pq_PQexecPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : + +$as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5 +$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQresultErrorField+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQresultErrorField (); +int +main () +{ +return PQresultErrorField (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQresultErrorField=yes +else + ac_cv_lib_pq_PQresultErrorField=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5 +$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; } +if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then : + +$as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5 +$as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryParams (); +int +main () +{ +return PQsendQueryParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryParams=yes +else + ac_cv_lib_pq_PQsendQueryParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5 +$as_echo_n "checking for PQsendPrepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendPrepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendPrepare (); +int +main () +{ +return PQsendPrepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendPrepare=yes +else + ac_cv_lib_pq_PQsendPrepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5 +$as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; } +if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then : + +$as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 +$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryPrepared (); +int +main () +{ +return PQsendQueryPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryPrepared=yes +else + ac_cv_lib_pq_PQsendQueryPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5 +$as_echo_n "checking for PQputCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyData (); +int +main () +{ +return PQputCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyData=yes +else + ac_cv_lib_pq_PQputCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5 +$as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyEnd (); +int +main () +{ +return PQputCopyEnd (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyEnd=yes +else + ac_cv_lib_pq_PQputCopyEnd=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5 +$as_echo_n "checking for PQgetCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQgetCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQgetCopyData (); +int +main () +{ +return PQgetCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQgetCopyData=yes +else + ac_cv_lib_pq_PQgetCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then : + +$as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5 +$as_echo_n "checking for PQfreemem in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQfreemem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQfreemem (); +int +main () +{ +return PQfreemem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQfreemem=yes +else + ac_cv_lib_pq_PQfreemem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5 +$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; } +if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then : + +$as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5 +$as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetErrorVerbosity (); +int +main () +{ +return PQsetErrorVerbosity (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetErrorVerbosity=yes +else + ac_cv_lib_pq_PQsetErrorVerbosity=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5 +$as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; } +if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then : + +$as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5 +$as_echo_n "checking for PQftable in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQftable+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQftable (); +int +main () +{ +return PQftable (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQftable=yes +else + ac_cv_lib_pq_PQftable=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5 +$as_echo "$ac_cv_lib_pq_PQftable" >&6; } +if test "x$ac_cv_lib_pq_PQftable" = xyes; then : + +$as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5 +$as_echo_n "checking for lo_create in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_create (); +int +main () +{ +return lo_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_create=yes +else + ac_cv_lib_pq_lo_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5 +$as_echo "$ac_cv_lib_pq_lo_create" >&6; } +if test "x$ac_cv_lib_pq_lo_create" = xyes; then : + +$as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5 +$as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_import_with_oid (); +int +main () +{ +return lo_import_with_oid (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_import_with_oid=yes +else + ac_cv_lib_pq_lo_import_with_oid=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5 +$as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; } +if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then : + +$as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5 +$as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeLiteral (); +int +main () +{ +return PQescapeLiteral (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeLiteral=yes +else + ac_cv_lib_pq_PQescapeLiteral=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; } +if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then : + +$as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h + +fi + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/pgsql + ext_srcdir=$abs_srcdir/ext/pgsql + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PGSQL_SHARED=no + + + case ext/pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pgsql in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar archive support... " >&6; } +# Check whether --enable-phar was given. +if test "${enable_phar+set}" = set; then : + enableval=$enable_phar; PHP_PHAR=$enableval +else + + PHP_PHAR=yes + test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHAR in +shared,*) + PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHAR" != "no"; then + + ext_builddir=ext/phar + ext_srcdir=$abs_srcdir/ext/phar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PHAR_SHARED=no + + + case ext/phar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/phar in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar openssl support... " >&6; } + if test "$PHP_HASH_SHARED" != "yes"; then + if test "$PHP_HASH" != "no"; then + +$as_echo "#define PHAR_HASH_OK 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5 +$as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;} + fi + if test "$PHP_OPENSSL_SHARED" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 +$as_echo "no (shared openssl)" >&6; } + else + if test "$PHP_OPENSSL" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_HASH_SHARED + is_it_enabled=$PHP_HASH + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension hash, which you've configured to build shared. +You either need to build phar shared or build hash statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension hash, +but you've either not enabled hash, or have disabled it. +" "$LINENO" 5 + fi + + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_SPL_SHARED + is_it_enabled=$PHP_SPL + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension spl, which you've configured to build shared. +You either need to build phar shared or build spl statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension spl, +but you've either not enabled spl, or have disabled it. +" "$LINENO" 5 + fi + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + + header_path=ext/phar + for header_file in php_phar.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1" + +fi + + + +php_enable_posix=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 +$as_echo_n "checking whether to enable POSIX-like functions... " >&6; } +# Check whether --enable-posix was given. +if test "${enable_posix+set}" = set; then : + enableval=$enable_posix; PHP_POSIX=$enableval +else + + PHP_POSIX=yes + test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_POSIX in +shared,*) + PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'` + ;; +shared) + PHP_POSIX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_POSIX" = "yes"; then + +$as_echo "#define HAVE_POSIX 1" >>confdefs.h + + + ext_builddir=ext/posix + ext_srcdir=$abs_srcdir/ext/posix + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_POSIX_SHARED=no + + + case ext/posix in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_POSIX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_POSIX_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/posix in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define HAVE_SYS_MKDEV_H 1 +_ACEOF + +fi + +done + + + for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 +$as_echo_n "checking for working ttyname_r() implementation... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + char buf[64]; + + return ttyname_r(0, buf, 64) ? 1 : 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 +$as_echo_n "checking for utsname.domainname... " >&6; } +if ${ac_cv_have_utsname_domainname+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #include + +int +main () +{ + + return sizeof(((struct utsname *)0)->domainname); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_have_utsname_domainname=yes + +else + + ac_cv_have_utsname_domainname=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 +$as_echo "$ac_cv_have_utsname_domainname" >&6; } + if test "$ac_cv_have_utsname_domainname" = yes; then + +$as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h + + fi +fi + + + +php_with_pspell=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 +$as_echo_n "checking for PSPELL support... " >&6; } + +# Check whether --with-pspell was given. +if test "${with_pspell+set}" = set; then : + withval=$with_pspell; PHP_PSPELL=$withval +else + + PHP_PSPELL=no + test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PSPELL in +shared,*) + PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PSPELL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PSPELL" != "no"; then + + ext_builddir=ext/pspell + ext_srcdir=$abs_srcdir/ext/pspell + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PSPELL_SHARED=no + + + case ext/pspell in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PSPELL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PSPELL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/pspell in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pspell in + c|c_r|pthread*) ;; + *) + LIBS="-lpspell $LIBS" + ;; + esac + + + + + fi + + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PSPELL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 +$as_echo_n "checking for new_aspell_config in -laspell... " >&6; } +if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laspell $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char new_aspell_config (); +int +main () +{ +return new_aspell_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_aspell_new_aspell_config=yes +else + ac_cv_lib_aspell_new_aspell_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 +$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD" + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case aspell in + c|c_r|pthread*) ;; + *) + LIBS="-laspell $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_aspell_new_aspell_config + + +fi + + + + if test "$PSPELL_INCDIR" != "/usr/include"; then + + if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_INCDIR + else + + ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD" + + +$as_echo "#define HAVE_PSPELL 1" >>confdefs.h + +fi + + + +php_with_libedit=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 +$as_echo_n "checking for libedit readline replacement... " >&6; } + +# Check whether --with-libedit was given. +if test "${with_libedit+set}" = set; then : + withval=$with_libedit; PHP_LIBEDIT=$withval +else + + PHP_LIBEDIT=no + test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBEDIT in +shared,*) + PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBEDIT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBEDIT" = "no"; then + +php_with_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 +$as_echo_n "checking for readline support... " >&6; } + +# Check whether --with-readline was given. +if test "${with_readline+set}" = set; then : + withval=$with_readline; PHP_READLINE=$withval +else + + PHP_READLINE=no + test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_READLINE in +shared,*) + PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'` + ;; +shared) + PHP_READLINE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +else + php_with_readline=no +fi + +if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do + test -f $i/include/readline/readline.h && READLINE_DIR=$i && break + done + + if test -z "$READLINE_DIR"; then + as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$READLINE_DIR/include" != "/usr/include"; then + + if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/include + else + + ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_READLINE_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 +$as_echo_n "checking for readline in -lreadline... " >&6; } +if ${ac_cv_lib_readline_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_readline=yes +else + ac_cv_lib_readline_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 +$as_echo "$ac_cv_lib_readline_readline" >&6; } +if test "x$ac_cv_lib_readline_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD" + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case readline in + c|c_r|pthread*) ;; + *) + LIBS="-lreadline $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_readline + + as_fn_error $? "readline library not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 +$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_pending_input+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_pending_input (); +int +main () +{ +return rl_pending_input (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_pending_input=yes +else + ac_cv_lib_readline_rl_pending_input=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 +$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_pending_input + + as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_callback_read_char=yes +else + ac_cv_lib_readline_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h + + +elif test "$PHP_LIBEDIT" != "no"; then + + for i in $PHP_LIBEDIT /usr/local /usr; do + test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break + done + + if test -z "$LIBEDIT_DIR"; then + as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$LIBEDIT_DIR/include" != "/usr/include"; then + + if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/include + else + + ep_dir=`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 +$as_echo_n "checking for readline in -ledit... " >&6; } +if ${ac_cv_lib_edit_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_readline=yes +else + ac_cv_lib_edit_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 +$as_echo "$ac_cv_lib_edit_readline" >&6; } +if test "x$ac_cv_lib_edit_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD" + if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then + + if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then + + if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LIBEDIT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case edit in + c|c_r|pthread*) ;; + *) + LIBS="-ledit $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_readline + + as_fn_error $? "edit library required by readline not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 +$as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_callback_read_char=yes +else + ac_cv_lib_edit_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + +$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h + +fi + +if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then + for ac_func in rl_completion_matches +do : + ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" +if test "x$ac_cv_func_rl_completion_matches" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RL_COMPLETION_MATCHES 1 +_ACEOF + +fi +done + + + ext_builddir=ext/readline + ext_srcdir=$abs_srcdir/ext/readline + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_READLINE_SHARED=no + + + case ext/readline in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_READLINE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_READLINE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/readline in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for recode support... " >&6; } + +# Check whether --with-recode was given. +if test "${with_recode+set}" = set; then : + withval=$with_recode; PHP_RECODE=$withval +else + + PHP_RECODE=no + test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_RECODE in +shared,*) + PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'` + ;; +shared) + PHP_RECODE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RECODE" != "no"; then + RECODE_LIST="$PHP_RECODE /usr/local /usr /opt" + + for i in $RECODE_LIST; do + if test -f $i/include/recode.h; then + RECODE_DIR=$i + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + if test -f $i/include/recode/recode.h; then + RECODE_DIR=$i + RECODE_INC=include/recode + RECODE_LIB=$PHP_LIBDIR/recode + fi + if test -f $i/recode/include/recode.h; then + RECODE_DIR=$i/recode + RECODE_INC=include + RECODE_LIB=$PHP_LIBDIR + fi + test -n "$RECODE_DIR" && break + done + + if test -z "$RECODE_DIR"; then + as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$RECODE_DIR/$RECODE_LIB + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5 +$as_echo_n "checking for recode_format_table in -lrecode... " >&6; } +if ${ac_cv_lib_recode_recode_format_table+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrecode $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char recode_format_table (); +int +main () +{ +return recode_format_table (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_recode_recode_format_table=yes +else + ac_cv_lib_recode_recode_format_table=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5 +$as_echo "$ac_cv_lib_recode_recode_format_table" >&6; } +if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD" + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case recode in + c|c_r|pthread*) ;; + *) + LIBS="-lrecode $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_recode_recode_format_table + + old_LDFLAGS=$LDFLAGS + old_LIBS=$LIBS + LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB" + LIBS="$LIBS -lrecode" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +char *program_name; + +int +main () +{ + +recode_format_table(); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD" + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + if test "$ext_shared" = "yes"; then + RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$RECODE_DIR/$RECODE_LIB"; then + + if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then + + if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_LIB + else + + ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case recode in + c|c_r|pthread*) ;; + *) + DLIBS="-lrecode $DLIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h + + +else + + as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + +fi + + + +$as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h + + + if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then + + if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then + ai_p=$RECODE_DIR/$RECODE_INC + else + + ep_dir=`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_INC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD" + + for ac_header in stdbool.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" +if test "x$ac_cv_header_stdbool_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDBOOL_H 1 +_ACEOF + +fi + +done + + + ext_builddir=ext/recode + ext_srcdir=$abs_srcdir/ext/recode + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_RECODE_SHARED=no + + + case ext/recode in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in recode.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_RECODE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_RECODE_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/recode in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in recode.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + ext_builddir=ext/reflection + ext_srcdir=$abs_srcdir/ext/reflection + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_REFLECTION_SHARED=no + + + case ext/reflection in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_REFLECTION 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_REFLECTION_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/reflection in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PHP sessions... " >&6; } +# Check whether --enable-session was given. +if test "${enable_session+set}" = set; then : + enableval=$enable_session; PHP_SESSION=$enableval +else + + PHP_SESSION=yes + test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SESSION in +shared,*) + PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'` + ;; +shared) + PHP_SESSION=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 +$as_echo_n "checking for mm support... " >&6; } + +# Check whether --with-mm was given. +if test "${with_mm+set}" = set; then : + withval=$with_mm; PHP_MM=$withval +else + + PHP_MM=no + + +fi + + +ext_output=$PHP_MM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SESSION" != "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 +$as_echo_n "checking whether pwrite works... " >&6; } +if ${ac_cv_pwrite+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "no"; then + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pwrite(int, void *, size_t, off64_t); + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "yes"; then + ac_cv_pwrite=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 +$as_echo "$ac_cv_pwrite" >&6; } + + if test "$ac_cv_pwrite" != "no"; then + +$as_echo "#define HAVE_PWRITE 1" >>confdefs.h + + if test "$ac_cv_pwrite" = "64"; then + +$as_echo "#define PHP_PWRITE_64 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 +$as_echo_n "checking whether pread works... " >&6; } +if ${ac_cv_pread+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "no"; then + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pread(int, void *, size_t, off64_t); + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "yes"; then + ac_cv_pread=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 +$as_echo "$ac_cv_pread" >&6; } + + if test "$ac_cv_pread" != "no"; then + +$as_echo "#define HAVE_PREAD 1" >>confdefs.h + + if test "$ac_cv_pread" = "64"; then + +$as_echo "#define PHP_PREAD_64 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/session + ext_srcdir=$abs_srcdir/ext/session + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SESSION_SHARED=no + + + case ext/session in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SESSION 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SESSION_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/session in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + +if test "$PHP_MM" != "no"; then + for i in $PHP_MM /usr/local /usr; do + test -f "$i/include/mm.h" && MM_DIR=$i && break + done + + if test -z "$MM_DIR" ; then + as_fn_error $? "cannot find mm library" "$LINENO" 5 + fi + + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD" + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mm in + c|c_r|pthread*) ;; + *) + LIBS="-lmm $LIBS" + ;; + esac + + + + + fi + + + + if test "$MM_DIR/include" != "/usr/include"; then + + if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/include + else + + ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + for header_file in ext/session/mod_mm.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + +$as_echo "#define HAVE_LIBMM 1" >>confdefs.h + +fi + + +php_enable_shmop=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 +$as_echo_n "checking whether to enable shmop support... " >&6; } +# Check whether --enable-shmop was given. +if test "${enable_shmop+set}" = set; then : + enableval=$enable_shmop; PHP_SHMOP=$enableval +else + + PHP_SHMOP=no + test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SHMOP in +shared,*) + PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SHMOP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHMOP" != "no"; then + +$as_echo "#define HAVE_SHMOP 1" >>confdefs.h + + + ext_builddir=ext/shmop + ext_srcdir=$abs_srcdir/ext/shmop + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SHMOP_SHARED=no + + + case ext/shmop in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SHMOP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SHMOP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/shmop in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SimpleXML support... " >&6; } +# Check whether --enable-simplexml was given. +if test "${enable_simplexml+set}" = set; then : + enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval +else + + PHP_SIMPLEXML=yes + test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SIMPLEXML in +shared,*) + PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_SIMPLEXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_SIMPLEXML" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $SIMPLEXML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h + + + ext_builddir=ext/simplexml + ext_srcdir=$abs_srcdir/ext/simplexml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SIMPLEXML_SHARED=no + + + case ext/simplexml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SIMPLEXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SIMPLEXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/simplexml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for SNMP support... " >&6; } + +# Check whether --with-snmp was given. +if test "${with_snmp+set}" = set; then : + withval=$with_snmp; PHP_SNMP=$withval +else + + PHP_SNMP=no + test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SNMP in +shared,*) + PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SNMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5 +$as_echo_n "checking OpenSSL dir for SNMP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SNMP" != "no"; then + + if test "$PHP_SNMP" = "yes"; then + # Extract the first word of "net-snmp-config", so it can be a program name with args. +set dummy net-snmp-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SNMP_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SNMP_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/local/bin:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG +if test -n "$SNMP_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 +$as_echo "$SNMP_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config" + fi + + if test -x "$SNMP_CONFIG"; then + SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs` + SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`" + SNMP_PREFIX=`$SNMP_CONFIG --prefix` + snmp_full_version=`$SNMP_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $snmp_full_version + IFS=$ac_IFS + SNMP_VERSION=`expr $1 \* 1000 + $2` + if test "$SNMP_VERSION" -ge "5003"; then + if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then + + if test "${SNMP_PREFIX}/include" != "/usr/include"; then + + if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then + ai_p=${SNMP_PREFIX}/include + else + + ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $SNMP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + SNMP_LIBNAME=netsnmp + else + as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 + fi + else + as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 + fi + else + as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char init_snmp (); +int +main () +{ +return init_snmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SNMP 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_init_snmp + + as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shutdown_snmp_logging (); +int +main () +{ +return shutdown_snmp_logging (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging + + +fi + + + + ext_builddir=ext/snmp + ext_srcdir=$abs_srcdir/ext/snmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SNMP_SHARED=no + + + case ext/snmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SNMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SNMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/snmp in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SOAP support... " >&6; } +# Check whether --enable-soap was given. +if test "${enable_soap+set}" = set; then : + enableval=$enable_soap; PHP_SOAP=$enableval +else + + PHP_SOAP=no + test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOAP in +shared,*) + PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_SOAP" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $SOAP_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_SOAP 1" >>confdefs.h + + + ext_builddir=ext/soap + ext_srcdir=$abs_srcdir/ext/soap + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOAP_SHARED=no + + + case ext/soap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/soap in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable sockets support... " >&6; } +# Check whether --enable-sockets was given. +if test "${enable_sockets+set}" = set; then : + enableval=$enable_sockets; PHP_SOCKETS=$enableval +else + + PHP_SOCKETS=no + test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOCKETS in +shared,*) + PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOCKETS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOCKETS" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5 +$as_echo_n "checking for struct cmsghdr... " >&6; } +if ${ac_cv_cmsghdr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +int +main () +{ +struct cmsghdr s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_cmsghdr=yes +else + ac_cv_cmsghdr=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5 +$as_echo "$ac_cv_cmsghdr" >&6; } + + if test "$ac_cv_cmsghdr" = yes; then + +$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h + + fi + + for ac_func in hstrerror socketpair if_nametoindex if_indextoname +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +static struct msghdr tp; int n = (int) tp.msg_flags; return n + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + +$as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 +$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } +if ${ac_cv_ss_family+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ss_family=yes +else + ac_cv_ss_family=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 +$as_echo "$ac_cv_ss_family" >&6; } + + if test "$ac_cv_ss_family" = yes; then + +$as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 +$as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } +if ${ac_cv_gai_ai_v4mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_V4MAPPED; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_v4mapped=yes +else + ac_cv_gai_ai_v4mapped=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 +$as_echo "$ac_cv_gai_ai_v4mapped" >&6; } + + if test "$ac_cv_gai_ai_v4mapped" = yes; then + +$as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h + + fi + + + ext_builddir=ext/sockets + ext_srcdir=$abs_srcdir/ext/sockets + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOCKETS_SHARED=no + + + case ext/sockets in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOCKETS 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOCKETS_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sockets in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether zend_object_value is packed... " >&6; } + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" + if test "$cross_compiling" = yes; then : + + ac_result=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "Zend/zend_types.h" +int main(int argc, char **argv) { + return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_result=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + ac_result=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CPPFLAGS=$old_CPPFLAGS + +cat >>confdefs.h <<_ACEOF +#define HAVE_PACKED_OBJECT_VALUE $ac_result +_ACEOF + + +$as_echo "#define HAVE_SPL 1" >>confdefs.h + + + ext_builddir=ext/spl + ext_srcdir=$abs_srcdir/ext/spl + + ac_extra= + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_SPL_SHARED=no + + + case ext/spl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SPL 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_SPL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/spl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } +if ${ac_cv_flush_io+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_flush_io=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char **argv) +{ + char *filename = tmpnam(NULL); + char buffer[64]; + int result = 0; + + FILE *fp = fopen(filename, "wb"); + if (NULL == fp) + return 0; + fputs("line 1\n", fp); + fputs("line 2\n", fp); + fclose(fp); + + fp = fopen(filename, "rb+"); + if (NULL == fp) + return 0; + fgets(buffer, sizeof(buffer), fp); + fputs("line 3\n", fp); + rewind(fp); + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 1\n")) + result = 1; + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 3\n")) + result = 1; + fclose(fp); + unlink(filename); + + exit(result); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_flush_io=no + +else + + ac_cv_flush_io=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 +$as_echo "$ac_cv_flush_io" >&6; } +if test "$ac_cv_flush_io" = "yes"; then + +$as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h + +fi + +if test "$ac_cv_func_crypt" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LIBS="-lcrypt $LIBS -lcrypt" + +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h + + +fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +$as_echo_n "checking for standard DES crypt... " >&6; } +if ${ac_cv_crypt_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_des=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_des=yes + +else + + ac_cv_crypt_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +$as_echo "$ac_cv_crypt_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +$as_echo_n "checking for extended DES crypt... " >&6; } +if ${ac_cv_crypt_ext_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_ext_des=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_ext_des=yes + +else + + ac_cv_crypt_ext_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 +$as_echo "$ac_cv_crypt_ext_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 +$as_echo_n "checking for MD5 crypt... " >&6; } +if ${ac_cv_crypt_md5+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_md5=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[15], answer[40]; + + salt[0]='$'; salt[1]='1'; salt[2]='$'; + salt[3]='r'; salt[4]='a'; salt[5]='s'; + salt[6]='m'; salt[7]='u'; salt[8]='s'; + salt[9]='l'; salt[10]='e'; salt[11]='$'; + salt[12]='\0'; + strcpy(answer,salt); + strcat(answer,"rISCgZzpwk3UhDidwXvin0"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_md5=yes + +else + + ac_cv_crypt_md5=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 +$as_echo "$ac_cv_crypt_md5" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 +$as_echo_n "checking for Blowfish crypt... " >&6; } +if ${ac_cv_crypt_blowfish+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_blowfish=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[30], answer[70]; + + salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; + strcat(salt,"rasmuslerd............"); + strcpy(answer,salt); + strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_blowfish=yes + +else + + ac_cv_crypt_blowfish=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 +$as_echo "$ac_cv_crypt_blowfish" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 +$as_echo_n "checking for SHA512 crypt... " >&6; } +if ${ac_cv_crypt_SHA512+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_SHA512=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+86]; + + strcpy(salt,"\$6\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_SHA512=yes + +else + + ac_cv_crypt_SHA512=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA512" >&5 +$as_echo "$ac_cv_crypt_SHA512" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 +$as_echo_n "checking for SHA256 crypt... " >&6; } +if ${ac_cv_crypt_SHA256+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_SHA256=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + char salt[21], answer[21+43]; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); + +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_SHA256=yes + +else + + ac_cv_crypt_SHA256=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA256" >&5 +$as_echo "$ac_cv_crypt_SHA256" >&6; } + + +if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 +$as_echo_n "checking whether the compiler supports __alignof__... " >&6; } +if ${ac_cv_alignof_exists+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + int align = __alignof__(int); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_alignof_exists=yes + +else + + ac_cv_alignof_exists=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 +$as_echo "$ac_cv_alignof_exists" >&6; } + if test "$ac_cv_alignof_exists" = "yes"; then + +$as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 +$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } +if ${ac_cv_attribute_aligned+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_attribute_aligned=yes + +else + + ac_cv_attribute_aligned=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 +$as_echo "$ac_cv_attribute_aligned" >&6; } + if test "$ac_cv_attribute_aligned" = "yes"; then + +$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h + + fi + + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_STD_DES_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_BLOWFISH_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_EXT_DES_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_MD5_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA512_CRYPT 1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA256_CRYPT 1 +_ACEOF + + + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_STD_DES_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_blowfish" = "yes"; then + ac_result=1 + ac_crypt_blowfish=1 + else + ac_result=0 + ac_crypt_blowfish=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_BLOWFISH_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_ext_des" = "yes"; then + ac_result=1 + ac_crypt_edes=1 + else + ac_result=0 + ac_crypt_edes=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_EXT_DES_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_md5" = "yes"; then + ac_result=1 + ac_crypt_md5=1 + else + ac_result=0 + ac_crypt_md5=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_MD5_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_sha512" = "yes"; then + ac_result=1 + ac_crypt_sha512=1 + else + ac_result=0 + ac_crypt_sha512=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA512_CRYPT $ac_result +_ACEOF + + + if test "$ac_cv_crypt_sha256" = "yes"; then + ac_result=1 + ac_crypt_sha256=1 + else + ac_result=0 + ac_crypt_sha256=0 + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA256_CRYPT $ac_result +_ACEOF + + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 0 +_ACEOF + +fi + +for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 +$as_echo_n "checking for working POSIX fnmatch... " >&6; } +if ${ac_cv_func_fnmatch_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Some versions of Solaris, SCO, and the GNU C Library + # have a broken or incompatible fnmatch. + # So we run a test program. If we are cross-compiling, take no chance. + # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. + if test "$cross_compiling" = yes; then : + ac_cv_func_fnmatch_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +# define y(a, b, c) (fnmatch (a, b, c) == 0) +# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) + +int +main () +{ +return + (!(y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && 1)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fnmatch_works=yes +else + ac_cv_func_fnmatch_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 +$as_echo "$ac_cv_func_fnmatch_works" >&6; } +if test $ac_cv_func_fnmatch_works = yes; then : + +$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h + +fi + + + +for ac_func in fork CreateProcess +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + + php_can_support_proc_open=yes + break + +else + + php_can_support_proc_open=no + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 +$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; } +if test "$php_can_support_proc_open" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +PHP_ENABLE_CHROOT_FUNC=no +case "$PHP_SAPI" in + embed) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + none) + for PROG in $PHP_BINARIES; do + case "$PROG" in + cgi|cli) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + *) + PHP_ENABLE_CHROOT_FUNC=no + break + ;; + esac + done + ;; +esac + +if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then + +$as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h + +fi + + + unset ac_cv_func_res_nsearch + unset ac_cv_func___res_nsearch + unset found + + ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" +if test "x$ac_cv_func_res_nsearch" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" +if test "x$ac_cv_func___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_nsearch + unset ac_cv_lib_resolv___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 +$as_echo_n "checking for res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_nsearch=yes +else + ac_cv_lib_resolv_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 +$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_nsearch=yes +else + ac_cv_lib_resolv___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_bind_res_nsearch + unset ac_cv_lib_bind___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 +$as_echo_n "checking for res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_nsearch=yes +else + ac_cv_lib_bind_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } +if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 +$as_echo_n "checking for __res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_nsearch=yes +else + ac_cv_lib_bind___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } +if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_socket_res_nsearch + unset ac_cv_lib_socket___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 +$as_echo_n "checking for res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_nsearch=yes +else + ac_cv_lib_socket_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } +if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 +$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_nsearch=yes +else + ac_cv_lib_socket___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } +if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dns_search + unset ac_cv_func___dns_search + unset found + + ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" +if test "x$ac_cv_func_dns_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" +if test "x$ac_cv_func___dns_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + ac_cv_func_dns_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_dns_search + unset ac_cv_lib_resolv___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 +$as_echo_n "checking for dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dns_search=yes +else + ac_cv_lib_resolv_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 +$as_echo "$ac_cv_lib_resolv_dns_search" >&6; } +if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 +$as_echo_n "checking for __dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dns_search=yes +else + ac_cv_lib_resolv___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 +$as_echo "$ac_cv_lib_resolv___dns_search" >&6; } +if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_bind_dns_search + unset ac_cv_lib_bind___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 +$as_echo_n "checking for dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dns_search=yes +else + ac_cv_lib_bind_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 +$as_echo "$ac_cv_lib_bind_dns_search" >&6; } +if test "x$ac_cv_lib_bind_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 +$as_echo_n "checking for __dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dns_search=yes +else + ac_cv_lib_bind___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 +$as_echo "$ac_cv_lib_bind___dns_search" >&6; } +if test "x$ac_cv_lib_bind___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_socket_dns_search + unset ac_cv_lib_socket___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 +$as_echo_n "checking for dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dns_search=yes +else + ac_cv_lib_socket_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 +$as_echo "$ac_cv_lib_socket_dns_search" >&6; } +if test "x$ac_cv_lib_socket_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 +$as_echo_n "checking for __dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dns_search=yes +else + ac_cv_lib_socket___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 +$as_echo "$ac_cv_lib_socket___dns_search" >&6; } +if test "x$ac_cv_lib_socket___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_expand + unset ac_cv_func___dn_expand + unset found + + ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" +if test "x$ac_cv_func_dn_expand" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" +if test "x$ac_cv_func___dn_expand" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_expand + unset ac_cv_lib_resolv___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 +$as_echo_n "checking for dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_expand=yes +else + ac_cv_lib_resolv_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } +if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 +$as_echo_n "checking for __dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_expand=yes +else + ac_cv_lib_resolv___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } +if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_bind_dn_expand + unset ac_cv_lib_bind___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 +$as_echo_n "checking for dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_expand=yes +else + ac_cv_lib_bind_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 +$as_echo "$ac_cv_lib_bind_dn_expand" >&6; } +if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 +$as_echo_n "checking for __dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_expand=yes +else + ac_cv_lib_bind___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 +$as_echo "$ac_cv_lib_bind___dn_expand" >&6; } +if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_socket_dn_expand + unset ac_cv_lib_socket___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 +$as_echo_n "checking for dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_expand=yes +else + ac_cv_lib_socket_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 +$as_echo "$ac_cv_lib_socket_dn_expand" >&6; } +if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 +$as_echo_n "checking for __dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_expand=yes +else + ac_cv_lib_socket___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 +$as_echo "$ac_cv_lib_socket___dn_expand" >&6; } +if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_skipname + unset ac_cv_func___dn_skipname + unset found + + ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" +if test "x$ac_cv_func_dn_skipname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" +if test "x$ac_cv_func___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_skipname + unset ac_cv_lib_resolv___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 +$as_echo_n "checking for dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_skipname=yes +else + ac_cv_lib_resolv_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 +$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_skipname=yes +else + ac_cv_lib_resolv___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_bind_dn_skipname + unset ac_cv_lib_bind___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 +$as_echo_n "checking for dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_skipname=yes +else + ac_cv_lib_bind_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } +if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 +$as_echo_n "checking for __dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_skipname=yes +else + ac_cv_lib_bind___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } +if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_socket_dn_skipname + unset ac_cv_lib_socket___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 +$as_echo_n "checking for dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_skipname=yes +else + ac_cv_lib_socket_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } +if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 +$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_skipname=yes +else + ac_cv_lib_socket___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } +if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + + + unset ac_cv_func_res_search + unset ac_cv_func___res_search + unset found + + ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" +if test "x$ac_cv_func_res_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" +if test "x$ac_cv_func___res_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + ac_cv_func_res_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_search + unset ac_cv_lib_resolv___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 +$as_echo_n "checking for res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_search=yes +else + ac_cv_lib_resolv_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 +$as_echo "$ac_cv_lib_resolv_res_search" >&6; } +if test "x$ac_cv_lib_resolv_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 +$as_echo_n "checking for __res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_search=yes +else + ac_cv_lib_resolv___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 +$as_echo "$ac_cv_lib_resolv___res_search" >&6; } +if test "x$ac_cv_lib_resolv___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_bind_res_search + unset ac_cv_lib_bind___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 +$as_echo_n "checking for res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_search=yes +else + ac_cv_lib_bind_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 +$as_echo "$ac_cv_lib_bind_res_search" >&6; } +if test "x$ac_cv_lib_bind_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 +$as_echo_n "checking for __res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_search=yes +else + ac_cv_lib_bind___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 +$as_echo "$ac_cv_lib_bind___res_search" >&6; } +if test "x$ac_cv_lib_bind___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_socket_res_search + unset ac_cv_lib_socket___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 +$as_echo_n "checking for res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_search=yes +else + ac_cv_lib_socket_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 +$as_echo "$ac_cv_lib_socket_res_search" >&6; } +if test "x$ac_cv_lib_socket_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 +$as_echo_n "checking for __res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_search=yes +else + ac_cv_lib_socket___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 +$as_echo "$ac_cv_lib_socket___res_search" >&6; } +if test "x$ac_cv_lib_socket___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5 +$as_echo_n "checking whether atof() accepts NAN... " >&6; } +if ${ac_cv_atof_accept_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_nan=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isnan(atof("NAN")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_nan=yes + +else + + ac_cv_atof_accept_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5 +$as_echo "$ac_cv_atof_accept_nan" >&6; } +if test "$ac_cv_atof_accept_nan" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5 +$as_echo_n "checking whether atof() accepts INF... " >&6; } +if ${ac_cv_atof_accept_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_inf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_inf=yes + +else + + ac_cv_atof_accept_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5 +$as_echo "$ac_cv_atof_accept_inf" >&6; } +if test "$ac_cv_atof_accept_inf" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5 +$as_echo_n "checking whether HUGE_VAL == INF... " >&6; } +if ${ac_cv_huge_val_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_inf=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(HUGE_VAL) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_inf=yes + +else + + ac_cv_huge_val_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5 +$as_echo "$ac_cv_huge_val_inf" >&6; } +if test "$ac_cv_huge_val_inf" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5 +$as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; } +if ${ac_cv_huge_val_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_nan=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ +#if defined(__sparc__) && !(__GNUC__ >= 3) + /* prevent bug #27830 */ + return 1; +#else + return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1; +#endif +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_nan=yes + +else + + ac_cv_huge_val_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5 +$as_echo "$ac_cv_huge_val_nan" >&6; } +if test "$ac_cv_huge_val_nan" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 +$as_echo_n "checking whether strptime() declaration fails... " >&6; } +if ${ac_cv_strptime_decl_fails+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#ifndef HAVE_STRPTIME +#error no strptime() on this platform +#else +/* use invalid strptime() declaration to see if it fails to compile */ +int strptime(const char *s, const char *format, struct tm *tm); +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_strptime_decl_fails=no + +else + + ac_cv_strptime_decl_fails=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 +$as_echo "$ac_cv_strptime_decl_fails" >&6; } +if test "$ac_cv_strptime_decl_fails" = "yes"; then + +$as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h + +fi + +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + +fi + +done + +for ac_func in mblen +do : + ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" +if test "x$ac_cv_func_mblen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MBLEN 1 +_ACEOF + +fi +done + +for ac_func in mbrlen mbsinit +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if ${ac_cv_type_mbstate_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_WCHAR_H +# include +#endif + +int +main () +{ + +int __tmp__() { mbstate_t a; } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_mbstate_t=yes + +else + + ac_cv_type_mbstate_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } +if test "$ac_cv_type_mbstate_t" = "yes"; then + +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + +fi + +for ac_header in atomic.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" +if test "x$ac_cv_header_atomic_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ATOMIC_H 1 +_ACEOF + +fi + +done + + + + ext_builddir=ext/standard + ext_srcdir=$abs_srcdir/ext/standard + + ac_extra= + + if test "" != "shared" && test "" != "yes" && test "" != "cli"; then + PHP_STANDARD_SHARED=no + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_STANDARD 1 +_ACEOF + + fi + fi + + if test "" != "shared" && test "" != "yes" && test "" = "cli"; then + PHP_STANDARD_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + + for header_file in ext/standard/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + +php_with_sybase_ct=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sybase-CT support" >&5 +$as_echo_n "checking for Sybase-CT support... " >&6; } + +# Check whether --with-sybase-ct was given. +if test "${with_sybase_ct+set}" = set; then : + withval=$with_sybase_ct; PHP_SYBASE_CT=$withval +else + + PHP_SYBASE_CT=no + test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYBASE_CT in +shared,*) + PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYBASE_CT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYBASE_CT" != "no"; then + + if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then + as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_SYBASE_CT 1" >>confdefs.h + + + ext_builddir=ext/sybase_ct + ext_srcdir=$abs_srcdir/ext/sybase_ct + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYBASE_CT_SHARED=no + + + case ext/sybase_ct in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_sybase_ct.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYBASE_CT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYBASE_CT_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sybase_ct in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_sybase_ct.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 +$as_echo_n "checking size of long int... " >&6; } +if ${ac_cv_sizeof_long_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 +$as_echo "$ac_cv_sizeof_long_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5 +$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long_int" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_SYBASE_64=no + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_SYBASE_64=yes + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ctpublic.h" >&5 +$as_echo_n "checking Checking for ctpublic.h... " >&6; } + if test -f $SYBASE_CT_INCDIR/ctpublic.h; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SYBASE_CT_INCDIR" >&5 +$as_echo "found in $SYBASE_CT_INCDIR" >&6; } + + if test "$SYBASE_CT_INCDIR" != "/usr/include"; then + + if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$SYBASE_CT_INCDIR + else + + ep_dir=`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SYBASE_CT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + else + as_fn_error $? "ctpublic.h missing!" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5 +$as_echo_n "checking Checking Sybase libdir... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have $SYBASE_CT_LIBDIR" >&5 +$as_echo "Have $SYBASE_CT_LIBDIR" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Sybase platform libraries" >&5 +$as_echo_n "checking Checking for Sybase platform libraries... " >&6; } + + + if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then + + if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$SYBASE_CT_LIBDIR + else + + ep_dir=`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$SYBASE_CT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then + + + case ct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" + else + + + case ct in + c|c_r|pthread*) ;; + *) + LIBS="-lct $LIBS" + ;; + esac + + + fi + ;; + esac + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeTDS: $SYBASE_CT_LIBS" >&5 +$as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; } + elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then + + + case sybcs64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcs64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcs64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybct64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybct64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybct64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybcomn64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcomn64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcomn64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybintl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybintl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybintl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + *OSF*) ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define + *) CFLAGS="${CFLAGS} -DSYB_LP64" ;; # + esac + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase64: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5 +$as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; } +if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsybtcl64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sybtcl64_netg_errstr=yes +else + ac_cv_lib_sybtcl64_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5 +$as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; } +if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sybtcl64_netg_errstr + + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl64 in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5 +$as_echo_n "checking for insck__getVdate in -linsck64... " >&6; } +if ${ac_cv_lib_insck64_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck64_insck__getVdate=yes +else + ac_cv_lib_insck64_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" + else + + + case insck64 in + c|c_r|pthread*) ;; + *) + LIBS="-linsck64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck64_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5 +$as_echo_n "checking for bsd_tcp in -linsck64... " >&6; } +if ${ac_cv_lib_insck64_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck64 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck64_bsd_tcp=yes +else + ac_cv_lib_insck64_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck64 in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" + else + + + case insck64 in + c|c_r|pthread*) ;; + *) + LIBS="-linsck64 $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck64_bsd_tcp + + +fi + + elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then + + + case sybcs in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcs in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcs $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD" + else + + + case sybct in + c|c_r|pthread*) ;; + *) + LIBS="-lsybct $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybcomn in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD" + else + + + case sybcomn in + c|c_r|pthread*) ;; + *) + LIBS="-lsybcomn $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case sybintl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybintl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybintl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5 +$as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; } +if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsybtcl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sybtcl_netg_errstr=yes +else + ac_cv_lib_sybtcl_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5 +$as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; } +if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sybtcl_netg_errstr + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 +$as_echo_n "checking for insck__getVdate in -linsck... " >&6; } +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_insck__getVdate=yes +else + ac_cv_lib_insck_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 +$as_echo_n "checking for bsd_tcp in -linsck... " >&6; } +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_bsd_tcp=yes +else + ac_cv_lib_insck_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_bsd_tcp + + +fi + + else + + + case cs in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD" + else + + + case cs in + c|c_r|pthread*) ;; + *) + LIBS="-lcs $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case ct in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" + else + + + case ct in + c|c_r|pthread*) ;; + *) + LIBS="-lct $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case comn in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD" + else + + + case comn in + c|c_r|pthread*) ;; + *) + LIBS="-lcomn $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case intl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD" + else + + + case intl in + c|c_r|pthread*) ;; + *) + LIBS="-lintl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 default: $SYBASE_CT_LIBS" >&5 +$as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; } + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SYBASE_CT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5 +$as_echo_n "checking for netg_errstr in -ltcl... " >&6; } +if ${ac_cv_lib_tcl_netg_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltcl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char netg_errstr (); +int +main () +{ +return netg_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tcl_netg_errstr=yes +else + ac_cv_lib_tcl_netg_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5 +$as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; } +if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case tcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD" + else + + + case tcl in + c|c_r|pthread*) ;; + *) + LIBS="-ltcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tcl_netg_errstr + + + + case sybtcl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" + else + + + case sybtcl in + c|c_r|pthread*) ;; + *) + LIBS="-lsybtcl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 +$as_echo_n "checking for insck__getVdate in -linsck... " >&6; } +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char insck__getVdate (); +int +main () +{ +return insck__getVdate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_insck__getVdate=yes +else + ac_cv_lib_insck_insck__getVdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 +$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_insck__getVdate + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$SYBASE_CT_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 +$as_echo_n "checking for bsd_tcp in -linsck... " >&6; } +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linsck $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bsd_tcp (); +int +main () +{ +return bsd_tcp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_insck_bsd_tcp=yes +else + ac_cv_lib_insck_bsd_tcp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 +$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case insck in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" + else + + + case insck in + c|c_r|pthread*) ;; + *) + LIBS="-linsck $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_insck_bsd_tcp + + +fi + + fi +fi + + + +php_enable_sysvmsg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 +$as_echo_n "checking whether to enable System V IPC support... " >&6; } +# Check whether --enable-sysvmsg was given. +if test "${enable_sysvmsg+set}" = set; then : + enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval +else + + PHP_SYSVMSG=no + test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVMSG in +shared,*) + PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVMSG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVMSG" != "no"; then + ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_msg_h" = xyes; then : + +else + as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + +fi + + + + +$as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h + + + ext_builddir=ext/sysvmsg + ext_srcdir=$abs_srcdir/ext/sysvmsg + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVMSG_SHARED=no + + + case ext/sysvmsg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVMSG 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVMSG_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvmsg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable System V semaphore support... " >&6; } +# Check whether --enable-sysvsem was given. +if test "${enable_sysvsem+set}" = set; then : + enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval +else + + PHP_SYSVSEM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSEM in +shared,*) + PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSEM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSEM" != "no"; then + + ext_builddir=ext/sysvsem + ext_srcdir=$abs_srcdir/ext/sysvsem + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSEM_SHARED=no + + + case ext/sysvsem in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSEM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSEM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvsem in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 +$as_echo_n "checking for union semun... " >&6; } +if ${php_cv_semun+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +union semun x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + php_cv_semun=yes + +else + + php_cv_semun=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 +$as_echo "$php_cv_semun" >&6; } + if test "$php_cv_semun" = "yes"; then + +$as_echo "#define HAVE_SEMUN 1" >>confdefs.h + + else + +$as_echo "#define HAVE_SEMUN 0" >>confdefs.h + + fi +fi + + + +php_enable_sysvshm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 +$as_echo_n "checking whether to enable System V shared memory support... " >&6; } +# Check whether --enable-sysvshm was given. +if test "${enable_sysvshm+set}" = set; then : + enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval +else + + PHP_SYSVSHM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSHM in +shared,*) + PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSHM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSHM" != "no"; then + +$as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h + + + ext_builddir=ext/sysvshm + ext_srcdir=$abs_srcdir/ext/sysvshm + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSHM_SHARED=no + + + case ext/sysvshm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSHM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSHM_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/sysvshm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for TIDY support... " >&6; } + +# Check whether --with-tidy was given. +if test "${with_tidy+set}" = set; then : + withval=$with_tidy; PHP_TIDY=$withval +else + + PHP_TIDY=no + test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TIDY in +shared,*) + PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'` + ;; +shared) + PHP_TIDY=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TIDY" != "no"; then + + if test "$PHP_TIDY" != "yes"; then + TIDY_SEARCH_DIRS=$PHP_TIDY + else + TIDY_SEARCH_DIRS="/usr/local /usr" + fi + + for i in $TIDY_SEARCH_DIRS; do + if test -f $i/include/tidy/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include/tidy + elif test -f $i/include/tidy.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include + fi + done + + if test -z "$TIDY_DIR"; then + as_fn_error $? "Cannot find libtidy" "$LINENO" 5 + fi + + TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR + + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD" + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD" + test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case tidy in + c|c_r|pthread*) ;; + *) + LIBS="-ltidy $LIBS" + ;; + esac + + + + + fi + + + + if test "$TIDY_INCDIR" != "/usr/include"; then + + if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_INCDIR + else + + ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5 +$as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; } +if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltidy $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tidy_tidyOptGetDoc=yes +else + ac_cv_lib_tidy_tidyOptGetDoc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5 +$as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; } +if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tidy_tidyOptGetDoc + + +fi + + + + + ext_builddir=ext/tidy + ext_srcdir=$abs_srcdir/ext/tidy + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TIDY_SHARED=no + + + case ext/tidy in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TIDY 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TIDY_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/tidy in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + +php_enable_tokenizer=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 +$as_echo_n "checking whether to enable tokenizer support... " >&6; } +# Check whether --enable-tokenizer was given. +if test "${enable_tokenizer+set}" = set; then : + enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval +else + + PHP_TOKENIZER=yes + test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TOKENIZER in +shared,*) + PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'` + ;; +shared) + PHP_TOKENIZER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TOKENIZER" != "no"; then + + ext_builddir=ext/tokenizer + ext_srcdir=$abs_srcdir/ext/tokenizer + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TOKENIZER_SHARED=no + + + case ext/tokenizer in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TOKENIZER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TOKENIZER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/tokenizer in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + +php_enable_wddx=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5 +$as_echo_n "checking whether to enable WDDX support... " >&6; } +# Check whether --enable-wddx was given. +if test "${enable_wddx+set}" = set; then : + enableval=$enable_wddx; PHP_WDDX=$enableval +else + + PHP_WDDX=no + test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_WDDX in +shared,*) + PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'` + ;; +shared) + PHP_WDDX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5 +$as_echo_n "checking libexpat dir for WDDX... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_WDDX" != "no"; then + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $WDDX_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<" "$LINENO" 5 + + fi + + fi + + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 + fi + + + if test "$EXPAT_DIR/include" != "/usr/include"; then + + if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/include + else + + ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD" + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_WDDX 1" >>confdefs.h + + + ext_builddir=ext/wddx + ext_srcdir=$abs_srcdir/ext/wddx + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_WDDX_SHARED=no + + + case ext/wddx in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in wddx.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_WDDX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_WDDX_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/wddx in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in wddx.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XML support... " >&6; } +# Check whether --enable-xml was given. +if test "${enable_xml+set}" = set; then : + enableval=$enable_xml; PHP_XML=$enableval +else + + PHP_XML=yes + test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XML in +shared,*) + PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'` + ;; +shared) + PHP_XML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5 +$as_echo_n "checking libexpat install dir... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XML" != "no"; then + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XML_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + xml_extra_sources="compat.c" + + am_i_shared=$PHP_XML_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xml to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xml shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xml, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + else + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + fi +else + as_fn_error $? "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 + + fi + + fi + + if test "$PHP_LIBEXPAT_DIR" != "no"; then + for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do + if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then + EXPAT_DIR=$i + break + fi + done + + if test -z "$EXPAT_DIR"; then + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 + fi + + + if test "$EXPAT_DIR/include" != "/usr/include"; then + + if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/include + else + + ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD" + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then + + if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$EXPAT_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + fi + + + ext_builddir=ext/xml + ext_srcdir=$abs_srcdir/ext/xml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XML_SHARED=no + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XML_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + +php_enable_xmlreader=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 +$as_echo_n "checking whether to enable XMLReader support... " >&6; } +# Check whether --enable-xmlreader was given. +if test "${enable_xmlreader+set}" = set; then : + enableval=$enable_xmlreader; PHP_XMLREADER=$enableval +else + + PHP_XMLREADER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLREADER in +shared,*) + PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLREADER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_XMLREADER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLREADER_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_XMLREADER 1" >>confdefs.h + + + ext_builddir=ext/xmlreader + ext_srcdir=$abs_srcdir/ext/xmlreader + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLREADER_SHARED=no + + + case ext/xmlreader in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLREADER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLREADER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlreader in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XMLRPC-EPI support... " >&6; } + +# Check whether --with-xmlrpc was given. +if test "${with_xmlrpc+set}" = set; then : + withval=$with_xmlrpc; PHP_XMLRPC=$withval +else + + PHP_XMLRPC=no + test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLRPC in +shared,*) + PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLRPC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_libexpat_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5 +$as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-libexpat-dir was given. +if test "${with_libexpat_dir+set}" = set; then : + withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval +else + + PHP_LIBEXPAT_DIR=no + + +fi + + +ext_output=$PHP_LIBEXPAT_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_iconv_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5 +$as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-iconv-dir was given. +if test "${with_iconv_dir+set}" = set; then : + withval=$with_iconv_dir; PHP_ICONV_DIR=$withval +else + + PHP_ICONV_DIR=no + + +fi + + +ext_output=$PHP_ICONV_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLRPC" != "no"; then + + + am_i_shared=$PHP_XMLRPC_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xmlrpc to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xmlrpc shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xmlrpc, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD" + + +$as_echo "#define HAVE_XMLRPC 1" >>confdefs.h + + + if test "$PHP_LIBEXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLRPC_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<" "$LINENO" 5 + + fi + + else + testval=no + for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do + if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD" + if test -n "$i/$PHP_LIBDIR"; then + + if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$i/$PHP_LIBDIR + else + + ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$i/$PHP_LIBDIR"; then + + if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$i/$PHP_LIBDIR + else + + ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case expat in + c|c_r|pthread*) ;; + *) + LIBS="-lexpat $LIBS" + ;; + esac + + + + + fi + + + + if test "$i/include" != "/usr/include"; then + + if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then + ai_p=$i/include + else + + ep_dir=`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$i/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + testval=yes + break + fi + done + + if test "$testval" = "no"; then + as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir= (deprecated!)" "$LINENO" 5 + fi + fi + + if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then + + if test "$PHP_ICONV_DIR" != "no"; then + PHP_ICONV=$PHP_ICONV_DIR + fi + + if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi + + + found_iconv=no + unset ICONV_DIR + + # Create the directories for a VPATH build: + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + +else + as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 + + fi + + fi +fi + +if test "$PHP_XMLRPC" = "yes"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + + + + + +$as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 +$as_echo_n "checking size of char... " >&6; } +if ${ac_cv_sizeof_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_char" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (char) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_char=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 +$as_echo "$ac_cv_sizeof_char" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_CHAR $ac_cv_sizeof_char +_ACEOF + + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + + + +# Standard XMLRPC list +for ac_func in \ + strtoul strtoull snprintf \ + strstr strpbrk strerror\ + memcpy memmove +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + + ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XMLRPC-EPI in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/xmlrpc.h; then + XMLRPC_DIR=$i/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$XMLRPC_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 + fi + + + if test "$XMLRPC_DIR" != "/usr/include"; then + + if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR + else + + ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD" + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case xmlrpc in + c|c_r|pthread*) ;; + *) + LIBS="-lxmlrpc $LIBS" + ;; + esac + + + + + fi + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlrpc in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XMLWriter support... " >&6; } +# Check whether --enable-xmlwriter was given. +if test "${enable_xmlwriter+set}" = set; then : + enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval +else + + PHP_XMLWRITER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLWRITER in +shared,*) + PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLWRITER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_LIBXML_DIR"; then + +php_with_libxml_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5 +$as_echo_n "checking libxml2 install dir... " >&6; } + +# Check whether --with-libxml-dir was given. +if test "${with_libxml_dir+set}" = set; then : + withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval +else + + PHP_LIBXML_DIR=no + + +fi + + +ext_output=$PHP_LIBXML_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_XMLWRITER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 +$as_echo_n "checking for xml2-config path... " >&6; } +if ${ac_cv_php_xml2_config_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + for i in $PHP_LIBXML_DIR /usr/local /usr; do + if test -x "$i/bin/xml2-config"; then + ac_cv_php_xml2_config_path="$i/bin/xml2-config" + break + fi + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5 +$as_echo "$ac_cv_php_xml2_config_path" >&6; } + + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" + libxml_full_version=`$XML2_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxml_full_version + IFS=$ac_IFS + LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXML_VERSION" -ge "2006011"; then + LIBXML_LIBS=`$XML2_CONFIG --libs` + LIBXML_INCS=`$XML2_CONFIG --cflags` + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 +$as_echo_n "checking whether libxml build works... " >&6; } +if ${php_cv_libxml_build_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + old_LIBS=$LIBS + LIBS=" + $XMLWRITER_SHARED_LIBADD + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char xmlInitParser(); + int main() { + xmlInitParser(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + php_cv_libxml_build_works=yes + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5 +$as_echo "$php_cv_libxml_build_works" >&6; } + if test "$php_cv_libxml_build_works" = "yes"; then + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + fi + + +$as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h + + + ext_builddir=ext/xmlwriter + ext_srcdir=$abs_srcdir/ext/xmlwriter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLWRITER_SHARED=no + + + case ext/xmlwriter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLWRITER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLWRITER_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xmlwriter in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for XSL support... " >&6; } + +# Check whether --with-xsl was given. +if test "${with_xsl+set}" = set; then : + withval=$with_xsl; PHP_XSL=$withval +else + + PHP_XSL=no + test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XSL in +shared,*) + PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_XSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XSL" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + fi + + if test "$PHP_DOM" = "no"; then + as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 + fi + + for i in $PHP_XSL /usr/local /usr; do + if test -x "$i/bin/xslt-config"; then + XSLT_CONFIG=$i/bin/xslt-config + break + fi + done + + if test -z "$XSLT_CONFIG"; then + as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5 + else + libxslt_full_version=`$XSLT_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $libxslt_full_version + IFS=$ac_IFS + LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3` + if test "$LIBXSLT_VERSION" -ge "1001000"; then + XSL_LIBS=`$XSLT_CONFIG --libs` + XSL_INCS=`$XSLT_CONFIG --cflags` + + for ac_i in $XSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $XSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5 +$as_echo_n "checking for EXSLT support... " >&6; } + for i in $PHP_XSL /usr/local /usr; do + if test -r "$i/include/libexslt/exslt.h"; then + PHP_XSL_EXSL_DIR=$i + break + fi + done + if test -z "$PHP_XSL_EXSL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +$as_echo "found" >&6; } + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD" + if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then + + if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then + + if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case exslt in + c|c_r|pthread*) ;; + *) + LIBS="-lexslt $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then + + if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_XSL_EXSL_DIR/include + else + + ep_dir=`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + +$as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h + + fi + else + as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5 + fi + + + fi + + +$as_echo "#define HAVE_XSL 1" >>confdefs.h + + + ext_builddir=ext/xsl + ext_srcdir=$abs_srcdir/ext/xsl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XSL_SHARED=no + + + case ext/xsl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/xsl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for zip archive read/writesupport... " >&6; } +# Check whether --enable-zip was given. +if test "${enable_zip+set}" = set; then : + enableval=$enable_zip; PHP_ZIP=$enableval +else + + PHP_ZIP=no + test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZIP in +shared,*) + PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZIP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_pcre_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5 +$as_echo_n "checking pcre install prefix... " >&6; } + +# Check whether --with-pcre-dir was given. +if test "${with_pcre_dir+set}" = set; then : + withval=$with_pcre_dir; PHP_PCRE_DIR=$withval +else + + PHP_PCRE_DIR=no + + +fi + + +ext_output=$PHP_PCRE_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZIP" != "no"; then + + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5 +$as_echo_n "checking for the location of zlib... " >&6; } + if test "$PHP_ZLIB_DIR" = "no"; then + as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5 +$as_echo "$PHP_ZLIB_DIR" >&6; } + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then + + if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then + + if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_INCDIR + else + + ep_dir=`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=yes + +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + PHP_PCRE_REGEX=pecl + +else + + PHP_PCRE_REGEX=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \ + lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \ + lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \ + lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \ + lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \ + lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \ + lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \ + lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \ + lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \ + lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \ + lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \ + lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \ + lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \ + lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \ + lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \ + lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \ + lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \ + lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \ + lib/zip_error_clear.c lib/zip_file_error_clear.c \ + lib/zip_fdopen.c lib/zip_fopen_encrypted.c lib/zip_fopen_index_encrypted.c \ + lib/zip_get_compression_implementation.c lib/zip_get_encryption_implementation.c \ + lib/zip_get_file_extra.c lib/zip_get_num_entries.c lib/zip_set_default_password.c \ + lib/zip_set_file_extra.c lib/zip_source_close.c lib/zip_source_crc.c \ + lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_layered.c \ + lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \ + lib/zip_source_read.c lib/zip_source_stat.c" + + +$as_echo "#define HAVE_ZIP 1" >>confdefs.h + + + ext_builddir=ext/zip + ext_srcdir=$abs_srcdir/ext/zip + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZIP_SHARED=no + + + case ext/zip in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZIP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZIP_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/zip in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + +php_enable_mysqlnd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 +$as_echo_n "checking whether to enable mysqlnd... " >&6; } +# Check whether --enable-mysqlnd was given. +if test "${enable_mysqlnd+set}" = set; then : + enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval +else + + PHP_MYSQLND=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLND in +shared,*) + PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLND=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mysqlnd_compression_support=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 +$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; } +# Check whether --enable-mysqlnd_compression_support was given. +if test "${enable_mysqlnd_compression_support+set}" = set; then : + enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval +else + + PHP_MYSQLND_COMPRESSION_SUPPORT=yes + + +fi + + +ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then + mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c" + mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ + mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \ + mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \ + mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\ + mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c" + + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + +$as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h + + fi + + +$as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h + + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5 +$as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; } +if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char DSA_get_default_method (); +int +main () +{ +return DSA_get_default_method (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_DSA_get_default_method=yes +else + ac_cv_lib_ssl_DSA_get_default_method=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5 +$as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; } +if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5 +$as_echo_n "checking for X509_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_X509_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char X509_free (); +int +main () +{ +return X509_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_X509_free=yes +else + ac_cv_lib_crypto_X509_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5 +$as_echo "$ac_cv_lib_crypto_X509_free" >&6; } +if test "x$ac_cv_lib_crypto_X509_free" = xyes; then : + +$as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h + +fi + + + + found_openssl=no + unset OPENSSL_INCDIR + unset OPENSSL_LIBDIR + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL + elif test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + + if test -z "$PKG_CONFIG"; then + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + + if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + if $PKG_CONFIG --atleast-version=0.9.6 openssl; then + found_openssl=yes + OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` + OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` + OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` + else + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + fi + + if test -n "$OPENSSL_LIBS"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + if test -n "$OPENSSL_INCS"; then + + for ac_i in $OPENSSL_INCS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + fi + fi + + if test "$found_openssl" = "no"; then + + if test "$PHP_OPENSSL_DIR" = "yes"; then + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL_DIR; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + OPENSSL_LIBDIR=$i/$PHP_LIBDIR + fi + test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break + done + + if test -z "$OPENSSL_INCDIR"; then + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 + fi + + if test -z "$OPENSSL_LIBDIR"; then + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$OPENSSL_INCDIR + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 +$as_echo_n "checking for OpenSSL version... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if OPENSSL_VERSION_NUMBER >= 0x0090600fL + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5 +$as_echo ">= 0.9.6" >&6; } + +else + + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + if test "$OPENSSL_INCDIR" != "/usr/include"; then + + if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_INCDIR + else + + ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char CRYPTO_free (); +int +main () +{ +return CRYPTO_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_free=yes +else + ac_cv_lib_crypto_CRYPTO_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypto_CRYPTO_free + + as_fn_error $? "libcrypto not found!" "$LINENO" 5 + + +fi + + + old_LIBS=$LIBS + LIBS="$LIBS -lcrypto" + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$OPENSSL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 +$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_CTX_set_ssl_version (); +int +main () +{ +return SSL_CTX_set_ssl_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes +else + ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_openssl=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version + + as_fn_error $? "libssl not found!" "$LINENO" 5 + + +fi + + LIBS=$old_LIBS + + + case ssl in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lssl $MYSQLND_SHARED_LIBADD" + else + + + case ssl in + c|c_r|pthread*) ;; + *) + LIBS="-lssl $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + case crypto in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD" + else + + + case crypto in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypto $LIBS" + ;; + esac + + + fi + ;; + esac + + + + + if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then + + if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$OPENSSL_LIBDIR + else + + ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + + if test "$found_openssl" = "yes"; then + OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR + + + +$as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h + + + fi + + fi + + mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" + + ext_builddir=ext/mysqlnd + ext_srcdir=$abs_srcdir/ext/mysqlnd + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLND_SHARED=no + + + case ext/mysqlnd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLND 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLND_SHARED=no + case "$PHP_SAPI" in + cgi|embed) + + + case ext/mysqlnd in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether $php_typename exists... " >&6; } + + php_cache_value=php_cv_sizeof_$php_typename + if eval \${php_cv_sizeof_$php_typename+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if STDC_HEADERS +#include +#include +#endif +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDINT_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof($php_typename)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + + php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' ` + echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi + + done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether whether compiler supports Decimal32/64/128 types" >&5 +$as_echo_n "checking whether whether compiler supports Decimal32/64/128 types... " >&6; } +if ${ac_cv_decimal_fp_supported+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_decimal_fp_supported=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char **argv) { + typedef float dec32 __attribute__((mode(SD))); + dec32 k = 99.49f; + double d2 = (double)k; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_decimal_fp_supported=yes + +else + + ac_cv_decimal_fp_supported=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decimal_fp_supported" >&5 +$as_echo "$ac_cv_decimal_fp_supported" >&6; } +if test "$ac_cv_decimal_fp_supported" = "yes"; then + +$as_echo "#define HAVE_DECIMAL_FP_SUPPORT 1" >>confdefs.h + +fi + + +if test "$PHP_RECODE" != "no"; then + test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap" + + if test -n "$MYSQL_LIBNAME"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5 +$as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char hash_insert (); +int +main () +{ +return hash_insert (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + recode_conflict="$recode_conflict mysql" + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert + + +fi + + fi + + if test -n "$recode_conflict"; then + as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5 + fi +fi + + + + +enable_shared=yes +enable_static=yes + +case $php_sapi_module in + shared) + enable_static=no + case $with_pic in + yes) + standard_libtool_flag='-prefer-pic' + ;; + no) + standard_libtool_flag='-prefer-non-pic' + ;; + esac + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module" + ;; + *) + standard_libtool_flag='-prefer-non-pic -static' + if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then + enable_shared=no + fi + ;; +esac + +EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" + +if test "$ac_cv_lib_crypt_crypt" = "yes"; then + EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt" +fi + +unset LIBS LDFLAGS + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 +$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; } + + +# compatibility +if test -z "$with_pear" && test "$enable_pear" = "no"; then + with_pear=no +fi + +# If CLI is disabled -> disable PEAR +if test "$PHP_CLI" = "no"; then + with_pear=no +fi + + +php_with_pear=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 +$as_echo_n "checking whether to install PEAR... " >&6; } + +# Check whether --with-pear was given. +if test "${with_pear+set}" = set; then : + withval=$with_pear; PHP_PEAR=$withval +else + + PHP_PEAR=DEFAULT + test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PEAR in +shared,*) + PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PEAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PEAR" != "no"; then + + if test "$PHP_XML" = "no"; then + pear_error_msg="$pear_error_msg + PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)" + fi + + + if test "$pear_error_msg"; then + as_fn_error $? "$pear_error_msg" "$LINENO" 5 + fi + + install_pear="install-pear" + PEAR_INSTALLDIR=$PHP_PEAR + + if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then + case $PHP_LAYOUT in + GNU) PEAR_INSTALLDIR=$datadir/pear;; + *) PEAR_INSTALLDIR=$libdir/php;; + esac + fi + + + src=$abs_srcdir/pear/Makefile.frag + ac_srcdir=$abs_srcdir/pear + ac_builddir=pear + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 +$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; } + + + + + + + + + + + # we only support certain bison versions + bison_version_list="2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7" + + # for standalone build of Zend Engine + test -z "$SED" && SED=sed + + bison_version=none + if test "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } +if ${php_cv_bison_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + + bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z` + php_cv_bison_version=invalid + if test -n "$bison_version_vars"; then + set $bison_version_vars + bison_version="${1}.${2}" + for bison_check_version in $bison_version_list; do + if test "$bison_version" = "$bison_check_version"; then + php_cv_bison_version="$bison_check_version (ok)" + break + fi + done + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5 +$as_echo "$php_cv_bison_version" >&6; } + fi + case $php_cv_bison_version in + ""|invalid) + bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5 +$as_echo "$as_me: WARNING: $bison_msg" >&2;} + YACC="exit 0;" + ;; + esac + + +if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \ + "`uname -sv`" = "AIX 4"; then + CFLAGS=`echo $CFLAGS | sed -e 's/-g//'` +fi + +if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then + CPPFLAGS="$CPPFLAGS -traditional-cpp" +fi + +for ac_header in inttypes.h \ +stdint.h \ +limits.h \ +malloc.h \ +string.h \ +unistd.h \ +stdarg.h \ +sys/types.h \ +sys/time.h \ +signal.h \ +unix.h \ +stdlib.h \ +dlfcn.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 +$as_echo_n "checking return type of signal handlers... " >&6; } +if ${ac_cv_type_signal+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +return *(signal (0, 0)) (0) == 1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_signal=int +else + ac_cv_type_signal=void +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 +$as_echo "$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +#define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + + + + + + +ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default" +if test "x$ac_cv_type_uint" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define uint unsigned int +_ACEOF + +fi + +ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default" +if test "x$ac_cv_type_ulong" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define ulong unsigned long +_ACEOF + +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 +$as_echo_n "checking for int32_t... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_INTTYPES_H +#include +#elif HAVE_STDINT_H +#include +#endif +int +main () +{ +if ((int32_t *) 0) + return 0; +if (sizeof (int32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32_T 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 +$as_echo_n "checking for uint32_t... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_INTTYPES_H +#include +#elif HAVE_STDINT_H +#include +#endif +int +main () +{ +if ((uint32_t *) 0) + return 0; +if (sizeof (uint32_t)) + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32_T 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = xyes; then : + +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if ${ac_cv_func_memcmp_working+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" + ;; +esac + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + +for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5 +$as_echo_n "checking whether sprintf is broken... " >&6; } +if ${ac_cv_broken_sprintf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_broken_sprintf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_broken_sprintf=no + +else + + ac_cv_broken_sprintf=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5 +$as_echo "$ac_cv_broken_sprintf" >&6; } + if test "$ac_cv_broken_sprintf" = "yes"; then + ac_result=1 + else + ac_result=0 + fi + +cat >>confdefs.h <<_ACEOF +#define ZEND_BROKEN_SPRINTF $ac_result +_ACEOF + + + +for ac_func in finite isfinite isinf isnan +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5 +$as_echo_n "checking whether fp_except is defined... " >&6; } +if ${ac_cv_type_fp_except+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +fp_except x = (fp_except) 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_fp_except=yes + +else + + ac_cv_type_fp_except=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5 +$as_echo "$ac_cv_type_fp_except" >&6; } + if test "$ac_cv_type_fp_except" = "yes"; then + +$as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 +$as_echo_n "checking for usable _FPU_SETCW... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fpu_control_t fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _FPU_GETCW(fpu_oldcw); + fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE; + _FPU_SETCW(fpu_cw); + result = a / b; + _FPU_SETCW(fpu_oldcw); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__fpu_setcw=yes +else + ac_cfp_have__fpu_setcw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__fpu_setcw" = "yes" ; then + +$as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 +$as_echo_n "checking for usable fpsetprec... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fp_prec_t fpu_oldprec; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldprec = fpgetprec(); + fpsetprec(FP_PD); + result = a / b; + fpsetprec(fpu_oldprec); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpsetprec=yes +else + ac_cfp_have_fpsetprec=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpsetprec" = "yes" ; then + +$as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 +$as_echo_n "checking for usable _controlfp... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldcw = _controlfp(0, 0); + _controlfp(_PC_53, _MCW_PC); + result = a / b; + _controlfp(fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp=yes +else + ac_cfp_have__controlfp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 +$as_echo_n "checking for usable _controlfp_s... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _controlfp_s(&fpu_cw, 0, 0); + fpu_oldcw = fpu_cw; + _controlfp_s(&fpu_cw, _PC_53, _MCW_PC); + result = a / b; + _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp_s=yes +else + ac_cfp_have__controlfp_s=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp_s" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 +$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* nothing */ + +int +main () +{ + + unsigned int oldcw, cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw)); + cw = (oldcw & ~0x0 & ~0x300) | 0x200; + __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw)); + + result = a / b; + + __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw)); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpu_inline_asm_x86=yes +else + ac_cfp_have_fpu_inline_asm_x86=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then + +$as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5 +$as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main() +{ + if (sizeof(long) == 4) { + double d = (double) LONG_MIN * LONG_MIN + 2e9; + + if ((long) d == 2e9 && (long) -d == -2e9) { + exit(0); + } + } else if (sizeof(long) == 8) { + double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */ + + if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */ + exit(0); + } + } + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 +$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } +if test "$cross_compiling" = yes; then : + +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + x$lt_dlneed_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h + + ;; + x$lt_dlunknown|x*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + else : + # compilation failed + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi +fi +rm -fr conftest* + + + + + +# Check whether --with-zend-vm was given. +if test "${with_zend_vm+set}" = set; then : + withval=$with_zend_vm; + PHP_ZEND_VM=$withval + +else + + PHP_ZEND_VM=CALL + +fi + + +# Check whether --enable-maintainer-zts was given. +if test "${enable_maintainer_zts+set}" = set; then : + enableval=$enable_maintainer_zts; + ZEND_MAINTAINER_ZTS=$enableval + +else + + ZEND_MAINTAINER_ZTS=no + +fi + + +# Check whether --enable-inline-optimization was given. +if test "${enable_inline_optimization+set}" = set; then : + enableval=$enable_inline_optimization; + ZEND_INLINE_OPTIMIZATION=$enableval + +else + + ZEND_INLINE_OPTIMIZATION=yes + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking virtual machine dispatch method" >&5 +$as_echo_n "checking virtual machine dispatch method... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZEND_VM" >&5 +$as_echo "$PHP_ZEND_VM" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 +$as_echo_n "checking whether to enable thread-safety... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5 +$as_echo "$ZEND_MAINTAINER_ZTS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5 +$as_echo_n "checking whether to enable inline optimization for GCC... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5 +$as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 +$as_echo_n "checking whether to enable Zend debugging... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 +$as_echo "$ZEND_DEBUG" >&6; } + +case $PHP_ZEND_VM in + SWITCH) + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_SWITCH" >>confdefs.h + + ;; + GOTO) + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_GOTO" >>confdefs.h + + ;; + *) + PHP_ZEND_VM=CALL + +$as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_CALL" >>confdefs.h + + ;; +esac + +if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define ZEND_DEBUG 1" >>confdefs.h + + echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + if test "$CFLAGS" = "-g -O2"; then + CFLAGS=-g + fi + test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall" + test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \ + DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations" +else + +$as_echo "#define ZEND_DEBUG 0" >>confdefs.h + +fi + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZTS" + + + +fi + + +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then + INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` +else + INLINE_CFLAGS="$CFLAGS" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 +$as_echo_n "checking target system is Darwin... " >&6; } +if echo "$target" | grep "darwin" > /dev/null; then + +$as_echo "#define DARWIN 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 +$as_echo_n "checking for MM alignment and log values... " >&6; } + +if test "$cross_compiling" = yes; then : + + LIBZEND_MM_ALIGN=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +typedef union _mm_align_test { + void *ptr; + double dbl; + long lng; +} mm_align_test; + +#if (defined (__GNUC__) && __GNUC__ >= 2) +#define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test)) +#else +#define ZEND_MM_ALIGNMENT (sizeof(mm_align_test)) +#endif + +int main() +{ + int i = ZEND_MM_ALIGNMENT; + int zeros = 0; + FILE *fp; + + while (i & ~0x1) { + zeros++; + i = i >> 1; + } + + fp = fopen("conftest.zend", "w"); + fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros); + fclose(fp); + + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1` + LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2` + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2 +_ACEOF + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5 +$as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MREMAP_MAYMOVE +# define MREMAP_MAYMOVE 0 +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +#define SEG_SIZE (256*1024) + +int main() +{ + void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); + if (seg == MAP_FAILED) { + return 1; + } + if (munmap(seg, SEG_SIZE) != 0) { + return 2; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5 +$as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MREMAP_MAYMOVE +# define MREMAP_MAYMOVE 0 +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +#define SEG_SIZE (256*1024) + +int main() +{ + int fd; + void *seg; + + fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); + if (fd < 0) { + return 1; + } + seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + if (seg == MAP_FAILED) { + return 2; + } + if (munmap(seg, SEG_SIZE) != 0) { + return 3; + } + if (close(fd) != 0) { + return 4; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +for ac_func in mremap +do : + ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" +if test "x$ac_cv_func_mremap" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MREMAP 1 +_ACEOF + +fi +done + + + +# Check whether --enable-zend-signals was given. +if test "${enable_zend_signals+set}" = set; then : + enableval=$enable_zend_signals; + ZEND_SIGNALS=$enableval + +else + + ZEND_SIGNALS=no + +fi + + +ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + + +$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h + + +else + + ZEND_SIGNALS=no + +fi + +if test "$ZEND_SIGNALS" = "yes"; then + +$as_echo "#define ZEND_SIGNALS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZEND_SIGNALS" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 +$as_echo_n "checking whether to enable zend signal handling... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 +$as_echo "$ZEND_SIGNALS" >&6; } + + + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + PHP_THREAD_SAFETY=yes +else + PHP_THREAD_SAFETY=no +fi + +INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" +INCLUDES="$INCLUDES -I\$(top_builddir)/Zend" + +if test "$abs_srcdir" != "$abs_builddir"; then + INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend" + INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/" +fi + +ZEND_EXTRA_LIBS="$LIBS" +unset LIBS LDFLAGS + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 +$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; } + + + + +for ac_header in stdarg.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDARG_H 1 +_ACEOF + +fi + +done + + +for ac_func in sigprocmask +do : + ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGPROCMASK 1 +_ACEOF + +fi +done + + + +if test "$PHP_THREAD_SAFETY" = "yes"; then + + + + +# Check whether --with-tsrm-pth was given. +if test "${with_tsrm_pth+set}" = set; then : + withval=$with_tsrm_pth; + TSRM_PTH=$withval + +else + + TSRM_PTH=no + +fi + + + +# Check whether --with-tsrm-st was given. +if test "${with_tsrm_st+set}" = set; then : + withval=$with_tsrm_st; + TSRM_ST=$withval + +else + + TSRM_ST=no + +fi + + + +# Check whether --with-tsrm-pthreads was given. +if test "${with_tsrm_pthreads+set}" = set; then : + withval=$with_tsrm_pthreads; + TSRM_PTHREADS=$withval + +else + + TSRM_PTHREADS=yes + +fi + + +test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config + +if test "$TSRM_PTH" != "no"; then + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5 +$as_echo_n "checking for GNU Pth... " >&6; } +PTH_PREFIX="`$TSRM_PTH --prefix`" +if test -z "$PTH_PREFIX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5 +$as_echo "Please check your Pth installation" >&6; } +fi + +CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`" +LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`" +LIBS="$LIBS `$TSRM_PTH --libs`" + + +$as_echo "#define GNUPTH 1" >>confdefs.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5 +$as_echo "yes - installed in $PTH_PREFIX" >&6; } + + +elif test "$TSRM_ST" != "no"; then + + if test -r "$TSRM_ST/include/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include" + LDFLAGS="$LDFLAGS -L$TSRM_ST/lib" + elif test -r "$TSRM_ST/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST" + LDFLAGS="$LDFLAGS -L$TSRM_ST" + fi + for ac_header in st.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default" +if test "x$ac_cv_header_st_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ST_H 1 +_ACEOF + +else + + as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 + +fi + +done + + LIBS="$LIBS -lst" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5 +$as_echo_n "checking for SGI's State Threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define TSRM_ST 1" >>confdefs.h + + +elif test "$TSRM_PTHREADS" != "no"; then + + + + +if test "$beos_threads" = "1"; then + pthreads_working="yes" + ac_cv_pthreads_cflags="" +else + save_CFLAGS=$CFLAGS + save_LIBS=$LIBS + +if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" +fi + +if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" +fi + + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$save_LIBS + CFLAGS=$save_CFLAGS + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_pthreads_cflags= + if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +if test "$cross_compiling" = yes; then : + + pthreads_working=no + case $host_alias in + *netware*) + pthreads_working=yes + esac + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + pthreads_working=yes + +else + + pthreads_working=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_save + if test "$pthreads_working" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "$pthreads_working" = "yes"; then + threads_result="POSIX-Threads found" +else + threads_result="POSIX-Threads not found" +fi + + +if test "$beos_threads" = "1"; then + +$as_echo "#define BETHREADS 1" >>confdefs.h + +else + if test "$pthreads_working" != "yes"; then + as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5 + fi + + +$as_echo "#define PTHREADS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 +$as_echo_n "checking for POSIX threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi + +fi + + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS" +EXTRA_LIBS="$EXTRA_LIBS $LIBS" +unset LIBS LDFLAGS + +test "$prefix" = "NONE" && prefix=/usr/local +test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' +test "$program_prefix" = "NONE" && program_prefix= +test "$program_suffix" = "NONE" && program_suffix= + +case $libdir in + '${exec_prefix}/lib') + libdir=$libdir/php + ;; +esac +case $datadir in + '${prefix}/share') + datadir=$datadir/php + ;; +esac + +phplibdir=`pwd`/modules +$php_shtool mkdir -p $phplibdir +phptempdir=`pwd`/libs + +old_exec_prefix=$exec_prefix +old_libdir=$libdir +old_datadir=$datadir +exec_prefix=`eval echo $exec_prefix` +libdir=`eval echo $libdir` +datadir=`eval echo $datadir` + + +ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'` + +if test -z "$EXTENSION_DIR"; then + extbasedir=$ZEND_MODULE_API_NO + if test "$oldstyleextdir" = "yes"; then + if test "$PHP_DEBUG" = "1"; then + part1=debug + else + part1=no-debug + fi + if test "$enable_maintainer_zts" = "yes"; then + part2=zts + else + part2=non-zts + fi + extbasedir=$part1-$part2-$extbasedir + EXTENSION_DIR=$libdir/extensions/$extbasedir + else + if test "$enable_maintainer_zts" = "yes"; then + extbasedir=$extbasedir-zts + fi + + if test "$PHP_DEBUG" = "1"; then + extbasedir=$extbasedir-debug + fi + EXTENSION_DIR=$libdir/$extbasedir + fi +fi + +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + +EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` +EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` +EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir` +EXPANDED_BINDIR=`eval echo $bindir` +EXPANDED_SBINDIR=`eval echo $sbindir` +EXPANDED_MANDIR=`eval echo $mandir` +EXPANDED_LIBDIR=$libdir +EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` +EXPANDED_DATADIR=$datadir +EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR + +exec_prefix=$old_exec_prefix +libdir=$old_libdir +datadir=$old_datadir + + + + + + + + + + + + + + +if test -n "$php_ldflags_add_usr_lib"; then + PHP_RPATHS="$PHP_RPATHS /usr/lib" +fi + + + OLD_RPATHS=$PHP_RPATHS + unset PHP_RPATHS + + for i in $OLD_RPATHS; do + PHP_LDFLAGS="$PHP_LDFLAGS -L$i" + PHP_RPATHS="$PHP_RPATHS -R $i" + NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i" + done + + if test "$PHP_RPATH" = "no"; then + unset PHP_RPATHS + unset NATIVE_RPATHS + fi + + +if test -z "$php_ldflags_add_usr_lib"; then + + unset ac_new_flags + for i in $PHP_LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + PHP_LDFLAGS=$ac_new_flags + + + unset ac_new_flags + for i in $LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + LDFLAGS=$ac_new_flags + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" + +PHP_BUILD_DATE=`date '+%Y-%m-%d'` + +cat >>confdefs.h <<_ACEOF +#define PHP_BUILD_DATE "$PHP_BUILD_DATE" +_ACEOF + + +case $host_alias in +*netware*) + PHP_OS="NetWare" + PHP_UNAME="NetWare" + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + + ;; +*) + PHP_UNAME=`uname -a | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + + PHP_OS=`uname | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + ;; +esac + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST bindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST includedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST libdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST mandir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datadir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CC" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXX" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS" + + +old_CC=$CC + +if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then + CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" + INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" + cat >meta_ccld<&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 +$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; } + + +LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS" + +case $host_alias in +*darwin9*|*darwin10*) + ac_cv_exeext= + ;; +esac + + +# Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 +$as_echo_n "checking for BSD-compatible nm... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +NM="$lt_cv_path_NM" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +#AC_ARG_ENABLE([libtool-lock], +#[ --disable-libtool-lock avoid locking (might break parallel builds)]) +#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 105327 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + + +esac + +need_locks="$enable_libtool_lock" + + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + lt_cv_ld_exported_symbols_list=yes + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +lt_cv_ld_exported_symbols_list=no + rm -rf conftest* +fi +rm -f conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[0123]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac + + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:106883: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:106887: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:107181: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:107185: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:107285: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:107289: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# Report which library types will actually be built +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + compiler_lib_search_dirs \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + fix_srcfile_path \ + exclude_expsyms \ + include_expsyms; do + + case $var in + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: +creating $ofile" >&5 +$as_echo " +creating $ofile" >&6; } + + cat <<__EOF__ >> "$cfgfile" +#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags was given. +if test "${with_tags+set}" = set; then : + withval=$with_tags; tagnames="$withval" +fi + + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5 + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5 + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= +compiler_lib_search_dirs_CXX= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + ld_shlibs_CXX=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +compiler_lib_search_dirs_CXX= +if test -n "$compiler_lib_search_path_CXX"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc*) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc*) + # Intel C++, used to be incompatible with GCC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:111768: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:111772: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:111872: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:111876: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + compiler_lib_search_dirs_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + fix_srcfile_path_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + *) + as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5 + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5 + fi +fi + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Prevent multiple expansion + + + + + + + + + + + +if test "$enable_debug" != "yes"; then + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' + else + LIBTOOL="$LIBTOOL --silent" + fi + +fi + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps' + else + LIBTOOL="$LIBTOOL --preserve-dup-deps" + fi + + +test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' +test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<' +SHARED_LIBTOOL='$(LIBTOOL)' + +CC=$old_CC + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 +$as_echo "${T_MD}Generating files${T_ME}" >&6; } + + +CXXFLAGS_CLEAN=$CXXFLAGS +CFLAGS_CLEAN=$CFLAGS +CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" +INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" +CXXFLAGS="$CXXFLAGS $standard_libtool_flag" + +if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then + pharcmd=pharcmd + pharcmd_install=install-pharcmd +else + pharcmd= + pharcmd_install= +fi; + +all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" +install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets" + + + + + for header_file in Zend/ TSRM/ include/ main/ main/streams/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + case TSRM in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + src=$abs_srcdir/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + src=$abs_srcdir/Zend/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + $php_shtool mkdir -p $BUILD_DIR + + + cat >Makefile <> Makefile + done + + cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile + + + +$as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h + + +$php_shtool mkdir -p pear/scripts +$php_shtool mkdir -p scripts +$php_shtool mkdir -p scripts/man1 + +ALL_OUTPUT_FILES="php5.spec main/build-defs.h \ +scripts/phpize scripts/man1/phpize.1 \ +scripts/php-config scripts/man1/php-config.1 \ +$PHP_OUTPUT_FILES" + + + for arg in $ac_configure_args; do + case $arg in + --with-*) + arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`" + ;; + --without-*) + arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`" + ;; + --enable-*) + arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`" + ;; + --disable-*) + arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`" + ;; + *) + continue + ;; + esac + case $arg_name in + # Allow --disable-all / --enable-all + enable-all);; + + # Allow certain libtool options + enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);; + + # Allow certain TSRM options + with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);; + + # Allow certain Zend options + with-zend-vm | enable-maintainer-zts | enable-inline-optimization);; + + # All the rest must be set using the PHP_ARG_* macros + # PHP_ARG_* macros set php_enable_ or php_with_ + *) + # Options that exist before PHP 6 + if test "$PHP_MAJOR_VERSION" -lt "6"; then + case $arg_name in + enable-zend-multibyte) continue;; + esac + fi + + is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'` + if eval test "x\$$is_arg_set" = "x"; then + PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS +$arg" + fi + ;; + esac + done + + +ac_config_files="$ac_config_files $ALL_OUTPUT_FILES" + +ac_config_commands="$ac_config_commands default" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +config.status +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# + + +if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then + REDO_ALL=yes +fi + +################################################################ +# Create configuration headers +# + +test -d TSRM || $php_shtool mkdir TSRM +echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h + +test -d Zend || $php_shtool mkdir Zend + +cat >Zend/zend_config.h < +#if defined(APACHE) && defined(PHP_API_VERSION) +#undef HAVE_DLFCN_H +#endif +FEO + +# run this only when generating all the files? +if test -n "\$REDO_ALL"; then + # Hacking while airborne considered harmful. + # + echo "creating main/internal_functions.c" + extensions="$EXT_STATIC" + sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c + + echo "creating main/internal_functions_cli.c" + cli_extensions="$EXT_CLI_STATIC" + sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c + + if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then + echo "+--------------------------------------------------------------------+" + echo "| *** WARNING *** |" + echo "| |" + echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |" + echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |" + echo "| to install gnu-pth from /usr/ports/devel/pth. |" + fi + + if test -n "$PHP_APXS_BROKEN"; then + echo "+--------------------------------------------------------------------+" + echo "| WARNING: Your $APXS script is most likely broken." + echo "| |" + echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |" + echo "| and make the changes described there and try again. |" + fi + + if test -n "$DEBUG_LOG"; then + rm -f config.cache +cat < processes when using a local Oracle | +| database, set the value BEQUEATH_DETACH=YES in Oracle Net's | +| sqlnet.ora file on the PHP host, or set the environment variable | +| BEQUEATH_DETACH to YES before starting Apache. If the problem | +| still occurs, then recompile PHP and specify --enable-sigchild | +| when configuring. | +X + fi + fi + fi + +cat <>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;; + "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;; + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/tests/fixtures/php/5.5.17/sapi/apache/config.m4 b/tests/fixtures/php/5.5.17/sapi/apache/config.m4 new file mode 100644 index 000000000..7b0ee562e --- /dev/null +++ b/tests/fixtures/php/5.5.17/sapi/apache/config.m4 @@ -0,0 +1,273 @@ +dnl +dnl $Id$ +dnl +AC_DEFUN([PHP_APACHE_FD_CHECK], [ +AC_CACHE_CHECK([for member fd in BUFF *],ac_cv_php_fd_in_buff,[ + save=$CPPFLAGS + if test -n "$APXS_INCLUDEDIR"; then + CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR" + else + CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE" + fi + AC_TRY_COMPILE([#include ],[conn_rec *c; int fd = c->client->fd;],[ + ac_cv_php_fd_in_buff=yes],[ac_cv_php_fd_in_buff=no],[ac_cv_php_fd_in_buff=no]) + CPPFLAGS=$save +]) +if test "$ac_cv_php_fd_in_buff" = "yes"; then + AC_DEFINE(PHP_APACHE_HAVE_CLIENT_FD,1,[ ]) +fi +]) + +dnl Apache 1.x shared module +PHP_ARG_WITH(apxs,, +[ --with-apxs[=FILE] Build shared Apache 1.x module. FILE is the optional + pathname to the Apache apxs tool [apxs]], no, no) + +AC_MSG_CHECKING([for Apache 1.x module support via DSO through APXS]) + +if test "$PHP_APXS" != "no"; then + if test "$PHP_APXS" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x + APXS=/usr/sbin/apxs + fi + else + PHP_EXPAND_PATH($PHP_APXS, APXS) + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + AC_MSG_RESULT() + AC_MSG_RESULT() + AC_MSG_RESULT([Sorry, I was not able to successfully run APXS. Possible reasons:]) + AC_MSG_RESULT() + AC_MSG_RESULT([1. Perl is not installed;]) + AC_MSG_RESULT([2. Apache was not compiled with DSO support (--enable-module=so);]) + AC_MSG_RESULT([3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs]) + AC_MSG_RESULT([The output of $APXS follows]) + $APXS -q CFLAGS + AC_MSG_ERROR([Aborting]) + fi + + APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APACHE_INCLUDE=-I$APXS_INCLUDEDIR + + # Test that we're trying to configure with apache 1.x + PHP_AP_EXTRACT_VERSION($APXS_HTTPD) + if test "$APACHE_VERSION" -ge 2000000; then + AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2]) + fi + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_AIX_LDFLAGS="-Wl,-brtl" + build_type=shared + ;; + *darwin*) + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + PHP_SUBST(MH_BUNDLE_FLAGS) + SAPI_SHARED=libs/libphp5.so + build_type=bundle + ;; + *) + build_type=shared + ;; + esac + + PHP_SELECT_SAPI(apache, $build_type, sapi_apache.c mod_php5.c php_apache.c, $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR) + + # Test whether apxs support -S option + $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1 + + if test "$?" != "0"; then + APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option + else + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php5 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php5 $SAPI_SHARED" + fi + fi + + if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then + PHP_APXS_BROKEN=yes + fi + STRONGHOLD= + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) + AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) + AC_DEFINE(HAVE_APACHE,1,[ ]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Apache 1.x static module +PHP_ARG_WITH(apache,, +[ --with-apache[=DIR] Build Apache 1.x module. DIR is the top-level Apache + build directory [/usr/local/apache]], no, no) + +AC_MSG_CHECKING([for Apache 1.x module support]) + +if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then + + if test "$PHP_APACHE" = "yes"; then + # Apache's default directory + PHP_APACHE=/usr/local/apache + fi + + APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module" + + AC_DEFINE(HAVE_APACHE,1,[ ]) + APACHE_MODULE=yes + PHP_EXPAND_PATH($PHP_APACHE, PHP_APACHE) + # For Apache 1.2.x + if test -f $PHP_APACHE/src/httpd.h; then + APACHE_INCLUDE=-I$PHP_APACHE/src + APACHE_TARGET=$PHP_APACHE/src + PHP_SELECT_SAPI(apache, static, sapi_apache.c mod_php5.c php_apache.c, $APACHE_INCLUDE) + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET" + PHP_LIBS="-L. -lphp3" + AC_MSG_RESULT([yes - Apache 1.2.x]) + STRONGHOLD= + if test -f $PHP_APACHE/src/ap_config.h; then + AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) + fi + # For Apache 2.0.x + elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then + AC_MSG_ERROR([Use --with-apxs2 with Apache 2.x!]) + # For Apache 1.3.x + elif test -f $PHP_APACHE/src/main/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + PHP_SELECT_SAPI(apache, static, sapi_apache.c mod_php5.c php_apache.c, $APACHE_INCLUDE) + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" + PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5" + AC_MSG_RESULT([yes - Apache 1.3.x]) + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + AC_DEFINE(HAVE_AP_CONFIG_H, 1, [ ]) + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + AC_DEFINE(HAVE_AP_COMPAT_H, 1, [ ]) + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + AC_MSG_ERROR([Please run Apache\'s configure or src/Configure program once and try again]) + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + AC_DEFINE(HAVE_OLD_COMPAT_H, 1, [ ]) + fi + # Also for Apache 1.3.x + elif test -f $PHP_APACHE/src/include/httpd.h; then + APACHE_HAS_REGEX=1 + APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix" + APACHE_TARGET=$PHP_APACHE/src/modules/php5 + if test ! -d $APACHE_TARGET; then + mkdir $APACHE_TARGET + fi + PHP_SELECT_SAPI(apache, static, sapi_apache.c mod_php5.c php_apache.c, $APACHE_INCLUDE) + PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" + AC_MSG_RESULT([yes - Apache 1.3.x]) + STRONGHOLD= + if test -f $PHP_APACHE/src/include/ap_config.h; then + AC_DEFINE(HAVE_AP_CONFIG_H, 1, [ ]) + fi + if test -f $PHP_APACHE/src/include/ap_compat.h; then + AC_DEFINE(HAVE_AP_COMPAT_H, 1, [ ]) + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + AC_MSG_ERROR([Please run Apache\'s configure or src/Configure program once and try again]) + fi + elif test -f $PHP_APACHE/src/include/compat.h; then + AC_DEFINE(HAVE_OLD_COMPAT_H, 1, [ ]) + fi + # For StrongHold 2.2 + elif test -f $PHP_APACHE/apache/httpd.h; then + APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include" + APACHE_TARGET=$PHP_APACHE/apache + PHP_SELECT_SAPI(apache, static, sapi_apache.c mod_php5.c php_apache.c, $APACHE_INCLUDE) + PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET" + STRONGHOLD=-DSTRONGHOLD=1 + AC_MSG_RESULT([yes - StrongHold]) + if test -f $PHP_APACHE/apache/ap_config.h; then + AC_DEFINE(HAVE_AP_CONFIG_H, 1, [ ]) + fi + if test -f $PHP_APACHE/src/ap_compat.h; then + AC_DEFINE(HAVE_AP_COMPAT_H, 1, [ ]) + if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then + AC_MSG_ERROR([Please run Apache\'s configure or src/Configure program once and try again]) + fi + elif test -f $PHP_APACHE/src/compat.h; then + AC_DEFINE(HAVE_OLD_COMPAT_H, 1, [ ]) + fi + else + AC_MSG_RESULT(no) + AC_MSG_ERROR([Invalid Apache directory - unable to find httpd.h under $PHP_APACHE]) + fi +else + AC_MSG_RESULT(no) +fi + +# compatibility +if test -z "$enable_mod_charset" && test "$with_mod_charset"; then + enable_mod_charset=$with_mod_charset +fi + +PHP_ARG_ENABLE(mod-charset, whether to enable Apache charset compatibility option, +[ --enable-mod-charset APACHE: Enable transfer tables for mod_charset (Rus Apache)], no, no) + +if test "$PHP_MOD_CHARSET" = "yes"; then + AC_DEFINE(USE_TRANSFER_TABLES, 1, [ ]) +fi + +dnl Build as static module +if test "$APACHE_MODULE" = "yes"; then + PHP_TARGET_RDYNAMIC + $php_shtool mkdir -p sapi/apache + PHP_OUTPUT(sapi/apache/libphp5.module) +fi + +dnl General +if test -n "$APACHE_INSTALL"; then + if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then + APXS_EXP=-bE:sapi/apache/mod_php5.exp + fi + + PHP_APACHE_FD_CHECK + INSTALL_IT=$APACHE_INSTALL + + PHP_SUBST(APXS_EXP) + PHP_SUBST(APACHE_INCLUDE) + PHP_SUBST(APACHE_TARGET) + PHP_SUBST(APXS) + PHP_SUBST(APXS_LDFLAGS) + PHP_SUBST(APACHE_INSTALL) + PHP_SUBST(STRONGHOLD) +fi + +dnl ## Local Variables: +dnl ## tab-width: 4 +dnl ## End: diff --git a/tests/fixtures/php/5.6.40/ext/openssl/openssl.c b/tests/fixtures/php/5.6.40/ext/openssl/openssl.c new file mode 100644 index 000000000..a78a8fb10 --- /dev/null +++ b/tests/fixtures/php/5.6.40/ext/openssl/openssl.c @@ -0,0 +1,5517 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 5 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Stig Venaas | + | Wez Furlong | + | Sascha Kettler | + | Pierre-Alain Joye | + | Marc Delling (PKCS12 functions) | + +----------------------------------------------------------------------+ + */ + +/* $Id$ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_ini.h" +#include "php_openssl.h" + +/* PHP Includes */ +#include "ext/standard/file.h" +#include "ext/standard/info.h" +#include "ext/standard/php_fopen_wrappers.h" +#include "ext/standard/md5.h" +#include "ext/standard/base64.h" +#ifdef PHP_WIN32 +# include "win32/winutil.h" +#endif + +/* OpenSSL includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* Common */ +#include + +#ifdef NETWARE +#define timezone _timezone /* timezone is called _timezone in LibC */ +#endif + +#define DEFAULT_KEY_LENGTH 512 +#define MIN_KEY_LENGTH 384 + +#define OPENSSL_ALGO_SHA1 1 +#define OPENSSL_ALGO_MD5 2 +#define OPENSSL_ALGO_MD4 3 +#ifdef HAVE_OPENSSL_MD2_H +#define OPENSSL_ALGO_MD2 4 +#endif +#define OPENSSL_ALGO_DSS1 5 +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL +#define OPENSSL_ALGO_SHA224 6 +#define OPENSSL_ALGO_SHA256 7 +#define OPENSSL_ALGO_SHA384 8 +#define OPENSSL_ALGO_SHA512 9 +#define OPENSSL_ALGO_RMD160 10 +#endif +#define DEBUG_SMIME 0 + +#if !defined(OPENSSL_NO_EC) && defined(EVP_PKEY_EC) +#define HAVE_EVP_PKEY_EC 1 +#endif + +/* FIXME: Use the openssl constants instead of + * enum. It is now impossible to match real values + * against php constants. Also sorry to break the + * enum principles here, BC... + */ +enum php_openssl_key_type { + OPENSSL_KEYTYPE_RSA, + OPENSSL_KEYTYPE_DSA, + OPENSSL_KEYTYPE_DH, + OPENSSL_KEYTYPE_DEFAULT = OPENSSL_KEYTYPE_RSA, +#ifdef HAVE_EVP_PKEY_EC + OPENSSL_KEYTYPE_EC = OPENSSL_KEYTYPE_DH +1 +#endif +}; + +enum php_openssl_cipher_type { + PHP_OPENSSL_CIPHER_RC2_40, + PHP_OPENSSL_CIPHER_RC2_128, + PHP_OPENSSL_CIPHER_RC2_64, + PHP_OPENSSL_CIPHER_DES, + PHP_OPENSSL_CIPHER_3DES, + PHP_OPENSSL_CIPHER_AES_128_CBC, + PHP_OPENSSL_CIPHER_AES_192_CBC, + PHP_OPENSSL_CIPHER_AES_256_CBC, + + PHP_OPENSSL_CIPHER_DEFAULT = PHP_OPENSSL_CIPHER_RC2_40 +}; + +PHP_FUNCTION(openssl_get_md_methods); +PHP_FUNCTION(openssl_get_cipher_methods); + +PHP_FUNCTION(openssl_digest); +PHP_FUNCTION(openssl_encrypt); +PHP_FUNCTION(openssl_decrypt); +PHP_FUNCTION(openssl_cipher_iv_length); + +PHP_FUNCTION(openssl_dh_compute_key); +PHP_FUNCTION(openssl_random_pseudo_bytes); + +/* {{{ arginfo */ +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_export, 0, 0, 2) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_fingerprint, 0, 0, 1) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, raw_output) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_check_private_key, 0) + ZEND_ARG_INFO(0, cert) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_parse, 0) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, shortname) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_checkpurpose, 0, 0, 3) + ZEND_ARG_INFO(0, x509cert) + ZEND_ARG_INFO(0, purpose) + ZEND_ARG_INFO(0, cainfo) /* array */ + ZEND_ARG_INFO(0, untrustedfile) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_read, 0) + ZEND_ARG_INFO(0, cert) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_x509_free, 0) + ZEND_ARG_INFO(0, x509) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs12_export_to_file, 0, 0, 4) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, filename) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, pass) + ZEND_ARG_INFO(0, args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkcs12_export, 0) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, pass) + ZEND_ARG_INFO(0, args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkcs12_read, 0) + ZEND_ARG_INFO(0, PKCS12) + ZEND_ARG_INFO(1, certs) /* array */ + ZEND_ARG_INFO(0, pass) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_export, 0, 0, 2) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, notext) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_sign, 0, 0, 4) + ZEND_ARG_INFO(0, csr) + ZEND_ARG_INFO(0, x509) + ZEND_ARG_INFO(0, priv_key) + ZEND_ARG_INFO(0, days) + ZEND_ARG_INFO(0, config_args) /* array */ + ZEND_ARG_INFO(0, serial) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_new, 0, 0, 2) + ZEND_ARG_INFO(0, dn) /* array */ + ZEND_ARG_INFO(1, privkey) + ZEND_ARG_INFO(0, configargs) + ZEND_ARG_INFO(0, extraattribs) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_csr_get_subject, 0) + ZEND_ARG_INFO(0, csr) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_csr_get_public_key, 0) + ZEND_ARG_INFO(0, csr) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_new, 0, 0, 0) + ZEND_ARG_INFO(0, configargs) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_export_to_file, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, passphrase) + ZEND_ARG_INFO(0, config_args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_export, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(1, out) + ZEND_ARG_INFO(0, passphrase) + ZEND_ARG_INFO(0, config_args) /* array */ +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_get_public, 0) + ZEND_ARG_INFO(0, cert) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_free, 0) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_get_private, 0, 0, 1) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, passphrase) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_pkey_get_details, 0) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pbkdf2, 0, 0, 4) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, salt) + ZEND_ARG_INFO(0, key_length) + ZEND_ARG_INFO(0, iterations) + ZEND_ARG_INFO(0, digest_algorithm) +ZEND_END_ARG_INFO() +#endif + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_verify, 0, 0, 2) + ZEND_ARG_INFO(0, filename) + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, signerscerts) + ZEND_ARG_INFO(0, cainfo) /* array */ + ZEND_ARG_INFO(0, extracerts) + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_encrypt, 0, 0, 4) + ZEND_ARG_INFO(0, infile) + ZEND_ARG_INFO(0, outfile) + ZEND_ARG_INFO(0, recipcerts) + ZEND_ARG_INFO(0, headers) /* array */ + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, cipher) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_sign, 0, 0, 5) + ZEND_ARG_INFO(0, infile) + ZEND_ARG_INFO(0, outfile) + ZEND_ARG_INFO(0, signcert) + ZEND_ARG_INFO(0, signkey) + ZEND_ARG_INFO(0, headers) /* array */ + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, extracertsfilename) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, infilename) + ZEND_ARG_INFO(0, outfilename) + ZEND_ARG_INFO(0, recipcert) + ZEND_ARG_INFO(0, recipkey) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_private_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_private_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_public_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_public_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, crypted) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, padding) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_error_string, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_sign, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, signature) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_verify, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, signature) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_seal, 0, 0, 4) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, sealdata) + ZEND_ARG_INFO(1, ekeys) /* arary */ + ZEND_ARG_INFO(0, pubkeys) /* array */ + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_open, 0) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(1, opendata) + ZEND_ARG_INFO(0, ekey) + ZEND_ARG_INFO(0, privkey) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_get_md_methods, 0, 0, 0) + ZEND_ARG_INFO(0, aliases) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_get_cipher_methods, 0, 0, 0) + ZEND_ARG_INFO(0, aliases) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_digest, 0, 0, 2) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, raw_output) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_encrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, options) + ZEND_ARG_INFO(0, iv) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_decrypt, 0, 0, 3) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, password) + ZEND_ARG_INFO(0, options) + ZEND_ARG_INFO(0, iv) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_cipher_iv_length, 0) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_dh_compute_key, 0) + ZEND_ARG_INFO(0, pub_key) + ZEND_ARG_INFO(0, dh_key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_random_pseudo_bytes, 0, 0, 1) + ZEND_ARG_INFO(0, length) + ZEND_ARG_INFO(1, result_is_strong) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_spki_new, 0, 0, 2) + ZEND_ARG_INFO(0, privkey) + ZEND_ARG_INFO(0, challenge) + ZEND_ARG_INFO(0, algo) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_verify, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_export, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_spki_export_challenge, 0) + ZEND_ARG_INFO(0, spki) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(arginfo_openssl_get_cert_locations, 0) +ZEND_END_ARG_INFO() +/* }}} */ + +/* {{{ openssl_functions[] + */ +const zend_function_entry openssl_functions[] = { + PHP_FE(openssl_get_cert_locations, arginfo_openssl_get_cert_locations) + +/* spki functions */ + PHP_FE(openssl_spki_new, arginfo_openssl_spki_new) + PHP_FE(openssl_spki_verify, arginfo_openssl_spki_verify) + PHP_FE(openssl_spki_export, arginfo_openssl_spki_export) + PHP_FE(openssl_spki_export_challenge, arginfo_openssl_spki_export_challenge) + +/* public/private key functions */ + PHP_FE(openssl_pkey_free, arginfo_openssl_pkey_free) + PHP_FE(openssl_pkey_new, arginfo_openssl_pkey_new) + PHP_FE(openssl_pkey_export, arginfo_openssl_pkey_export) + PHP_FE(openssl_pkey_export_to_file, arginfo_openssl_pkey_export_to_file) + PHP_FE(openssl_pkey_get_private, arginfo_openssl_pkey_get_private) + PHP_FE(openssl_pkey_get_public, arginfo_openssl_pkey_get_public) + PHP_FE(openssl_pkey_get_details, arginfo_openssl_pkey_get_details) + + PHP_FALIAS(openssl_free_key, openssl_pkey_free, arginfo_openssl_pkey_free) + PHP_FALIAS(openssl_get_privatekey, openssl_pkey_get_private, arginfo_openssl_pkey_get_private) + PHP_FALIAS(openssl_get_publickey, openssl_pkey_get_public, arginfo_openssl_pkey_get_public) + +/* x.509 cert funcs */ + PHP_FE(openssl_x509_read, arginfo_openssl_x509_read) + PHP_FE(openssl_x509_free, arginfo_openssl_x509_free) + PHP_FE(openssl_x509_parse, arginfo_openssl_x509_parse) + PHP_FE(openssl_x509_checkpurpose, arginfo_openssl_x509_checkpurpose) + PHP_FE(openssl_x509_check_private_key, arginfo_openssl_x509_check_private_key) + PHP_FE(openssl_x509_export, arginfo_openssl_x509_export) + PHP_FE(openssl_x509_fingerprint, arginfo_openssl_x509_fingerprint) + PHP_FE(openssl_x509_export_to_file, arginfo_openssl_x509_export_to_file) + +/* PKCS12 funcs */ + PHP_FE(openssl_pkcs12_export, arginfo_openssl_pkcs12_export) + PHP_FE(openssl_pkcs12_export_to_file, arginfo_openssl_pkcs12_export_to_file) + PHP_FE(openssl_pkcs12_read, arginfo_openssl_pkcs12_read) + +/* CSR funcs */ + PHP_FE(openssl_csr_new, arginfo_openssl_csr_new) + PHP_FE(openssl_csr_export, arginfo_openssl_csr_export) + PHP_FE(openssl_csr_export_to_file, arginfo_openssl_csr_export_to_file) + PHP_FE(openssl_csr_sign, arginfo_openssl_csr_sign) + PHP_FE(openssl_csr_get_subject, arginfo_openssl_csr_get_subject) + PHP_FE(openssl_csr_get_public_key, arginfo_openssl_csr_get_public_key) + + PHP_FE(openssl_digest, arginfo_openssl_digest) + PHP_FE(openssl_encrypt, arginfo_openssl_encrypt) + PHP_FE(openssl_decrypt, arginfo_openssl_decrypt) + PHP_FE(openssl_cipher_iv_length, arginfo_openssl_cipher_iv_length) + PHP_FE(openssl_sign, arginfo_openssl_sign) + PHP_FE(openssl_verify, arginfo_openssl_verify) + PHP_FE(openssl_seal, arginfo_openssl_seal) + PHP_FE(openssl_open, arginfo_openssl_open) + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + PHP_FE(openssl_pbkdf2, arginfo_openssl_pbkdf2) +#endif + +/* for S/MIME handling */ + PHP_FE(openssl_pkcs7_verify, arginfo_openssl_pkcs7_verify) + PHP_FE(openssl_pkcs7_decrypt, arginfo_openssl_pkcs7_decrypt) + PHP_FE(openssl_pkcs7_sign, arginfo_openssl_pkcs7_sign) + PHP_FE(openssl_pkcs7_encrypt, arginfo_openssl_pkcs7_encrypt) + + PHP_FE(openssl_private_encrypt, arginfo_openssl_private_encrypt) + PHP_FE(openssl_private_decrypt, arginfo_openssl_private_decrypt) + PHP_FE(openssl_public_encrypt, arginfo_openssl_public_encrypt) + PHP_FE(openssl_public_decrypt, arginfo_openssl_public_decrypt) + + PHP_FE(openssl_get_md_methods, arginfo_openssl_get_md_methods) + PHP_FE(openssl_get_cipher_methods, arginfo_openssl_get_cipher_methods) + + PHP_FE(openssl_dh_compute_key, arginfo_openssl_dh_compute_key) + + PHP_FE(openssl_random_pseudo_bytes, arginfo_openssl_random_pseudo_bytes) + PHP_FE(openssl_error_string, arginfo_openssl_error_string) + PHP_FE_END +}; +/* }}} */ + +/* {{{ openssl_module_entry + */ +zend_module_entry openssl_module_entry = { + STANDARD_MODULE_HEADER, + "openssl", + openssl_functions, + PHP_MINIT(openssl), + PHP_MSHUTDOWN(openssl), + NULL, + NULL, + PHP_MINFO(openssl), + NO_VERSION_YET, + STANDARD_MODULE_PROPERTIES +}; +/* }}} */ + +#ifdef COMPILE_DL_OPENSSL +ZEND_GET_MODULE(openssl) +#endif + +static int le_key; +static int le_x509; +static int le_csr; +static int ssl_stream_data_index; + +int php_openssl_get_x509_list_id(void) /* {{{ */ +{ + return le_x509; +} +/* }}} */ + +/* {{{ resource destructors */ +static void php_pkey_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + EVP_PKEY *pkey = (EVP_PKEY *)rsrc->ptr; + + assert(pkey != NULL); + + EVP_PKEY_free(pkey); +} + +static void php_x509_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + X509 *x509 = (X509 *)rsrc->ptr; + X509_free(x509); +} + +static void php_csr_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) +{ + X509_REQ * csr = (X509_REQ*)rsrc->ptr; + X509_REQ_free(csr); +} +/* }}} */ + +/* {{{ openssl open_basedir check */ +inline static int php_openssl_open_base_dir_chk(char *filename TSRMLS_DC) +{ + if (php_check_open_basedir(filename TSRMLS_CC)) { + return -1; + } + + return 0; +} +/* }}} */ + +php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl) +{ + return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index); +} + +int php_openssl_get_ssl_stream_data_index() +{ + return ssl_stream_data_index; +} + +/* openssl -> PHP "bridging" */ +/* true global; readonly after module startup */ +static char default_ssl_conf_filename[MAXPATHLEN]; + +struct php_x509_request { /* {{{ */ +#if OPENSSL_VERSION_NUMBER >= 0x10000002L + LHASH_OF(CONF_VALUE) * global_config; /* Global SSL config */ + LHASH_OF(CONF_VALUE) * req_config; /* SSL config for this request */ +#else + LHASH * global_config; /* Global SSL config */ + LHASH * req_config; /* SSL config for this request */ +#endif + const EVP_MD * md_alg; + const EVP_MD * digest; + char * section_name, + * config_filename, + * digest_name, + * extensions_section, + * request_extensions_section; + int priv_key_bits; + int priv_key_type; + + int priv_key_encrypt; + + EVP_PKEY * priv_key; + + const EVP_CIPHER * priv_key_encrypt_cipher; +}; +/* }}} */ + +static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC); +static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int makeresource, long * resourceval TSRMLS_DC); +static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC); +static X509_STORE * setup_verify(zval * calist TSRMLS_DC); +static STACK_OF(X509) * load_all_certs_from_file(char *certfile); +static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC); +static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req TSRMLS_DC); + +static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int shortname TSRMLS_DC) /* {{{ */ +{ + zval **data; + zval *subitem, *subentries; + int i; + char *sname; + int nid; + X509_NAME_ENTRY * ne; + ASN1_STRING * str = NULL; + ASN1_OBJECT * obj; + + if (key != NULL) { + MAKE_STD_ZVAL(subitem); + array_init(subitem); + } else { + subitem = val; + } + + for (i = 0; i < X509_NAME_entry_count(name); i++) { + unsigned char *to_add; + int to_add_len = 0; + + + ne = X509_NAME_get_entry(name, i); + obj = X509_NAME_ENTRY_get_object(ne); + nid = OBJ_obj2nid(obj); + + if (shortname) { + sname = (char *) OBJ_nid2sn(nid); + } else { + sname = (char *) OBJ_nid2ln(nid); + } + + str = X509_NAME_ENTRY_get_data(ne); + if (ASN1_STRING_type(str) != V_ASN1_UTF8STRING) { + to_add_len = ASN1_STRING_to_UTF8(&to_add, str); + } else { + to_add = ASN1_STRING_data(str); + to_add_len = ASN1_STRING_length(str); + } + + if (to_add_len != -1) { + if (zend_hash_find(Z_ARRVAL_P(subitem), sname, strlen(sname)+1, (void**)&data) == SUCCESS) { + if (Z_TYPE_PP(data) == IS_ARRAY) { + subentries = *data; + add_next_index_stringl(subentries, (char *)to_add, to_add_len, 1); + } else if (Z_TYPE_PP(data) == IS_STRING) { + MAKE_STD_ZVAL(subentries); + array_init(subentries); + add_next_index_stringl(subentries, Z_STRVAL_PP(data), Z_STRLEN_PP(data), 1); + add_next_index_stringl(subentries, (char *)to_add, to_add_len, 1); + zend_hash_update(Z_ARRVAL_P(subitem), sname, strlen(sname)+1, &subentries, sizeof(zval*), NULL); + } + } else { + add_assoc_stringl(subitem, sname, (char *)to_add, to_add_len, 1); + } + } + } + if (key != NULL) { + zend_hash_update(HASH_OF(val), key, strlen(key) + 1, (void *)&subitem, sizeof(subitem), NULL); + } +} +/* }}} */ + +static void add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ +{ + add_assoc_stringl(val, key, (char *)str->data, str->length, 1); +} +/* }}} */ + +static time_t asn1_time_to_time_t(ASN1_UTCTIME * timestr TSRMLS_DC) /* {{{ */ +{ +/* + This is how the time string is formatted: + + snprintf(p, sizeof(p), "%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, + ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec); +*/ + + time_t ret; + struct tm thetime; + char * strbuf; + char * thestr; + long gmadjust = 0; + + if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZEDTIME) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal ASN1 data type for timestamp"); + return (time_t)-1; + } + + if (ASN1_STRING_length(timestr) != strlen((const char*)ASN1_STRING_data(timestr))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "illegal length in timestamp"); + return (time_t)-1; + } + + if (ASN1_STRING_length(timestr) < 13) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to parse time string %s correctly", timestr->data); + return (time_t)-1; + } + + if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && ASN1_STRING_length(timestr) < 15) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to parse time string %s correctly", timestr->data); + return (time_t)-1; + } + + strbuf = estrdup((char *)ASN1_STRING_data(timestr)); + + memset(&thetime, 0, sizeof(thetime)); + + /* we work backwards so that we can use atoi more easily */ + + thestr = strbuf + ASN1_STRING_length(timestr) - 3; + + thetime.tm_sec = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_min = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_hour = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_mday = atoi(thestr); + *thestr = '\0'; + thestr -= 2; + thetime.tm_mon = atoi(thestr)-1; + + *thestr = '\0'; + if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { + thestr -= 2; + thetime.tm_year = atoi(thestr); + + if (thetime.tm_year < 68) { + thetime.tm_year += 100; + } + } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { + thestr -= 4; + thetime.tm_year = atoi(thestr) - 1900; + } + + + thetime.tm_isdst = -1; + ret = mktime(&thetime); + +#if HAVE_TM_GMTOFF + gmadjust = thetime.tm_gmtoff; +#else + /* + ** If correcting for daylight savings time, we set the adjustment to + ** the value of timezone - 3600 seconds. Otherwise, we need to overcorrect and + ** set the adjustment to the main timezone + 3600 seconds. + */ + gmadjust = -(thetime.tm_isdst ? (long)timezone - 3600 : (long)timezone + 3600); +#endif + ret += gmadjust; + + efree(strbuf); + + return ret; +} +/* }}} */ + +#if OPENSSL_VERSION_NUMBER >= 0x10000002L +static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH_OF(CONF_VALUE) * config TSRMLS_DC) /* {{{ */ +#else +static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH * config TSRMLS_DC) +#endif +{ + X509V3_CTX ctx; + + X509V3_set_ctx_test(&ctx); + X509V3_set_conf_lhash(&ctx, config); + if (!X509V3_EXT_add_conf(config, &ctx, (char *)section, NULL)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error loading %s section %s of %s", + section_label, + section, + config_filename); + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +static int add_oid_section(struct php_x509_request * req TSRMLS_DC) /* {{{ */ +{ + char * str; + STACK_OF(CONF_VALUE) * sktmp; + CONF_VALUE * cnf; + int i; + + str = CONF_get_string(req->req_config, NULL, "oid_section"); + if (str == NULL) { + return SUCCESS; + } + sktmp = CONF_get_section(req->req_config, str); + if (sktmp == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "problem loading oid section %s", str); + return FAILURE; + } + for (i = 0; i < sk_CONF_VALUE_num(sktmp); i++) { + cnf = sk_CONF_VALUE_value(sktmp, i); + if (OBJ_create(cnf->value, cnf->name, cnf->name) == NID_undef) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "problem creating object %s=%s", cnf->name, cnf->value); + return FAILURE; + } + } + return SUCCESS; +} +/* }}} */ + +#define PHP_SSL_REQ_INIT(req) memset(req, 0, sizeof(*req)) +#define PHP_SSL_REQ_DISPOSE(req) php_openssl_dispose_config(req TSRMLS_CC) +#define PHP_SSL_REQ_PARSE(req, zval) php_openssl_parse_config(req, zval TSRMLS_CC) + +#define PHP_SSL_CONFIG_SYNTAX_CHECK(var) if (req->var && php_openssl_config_check_syntax(#var, \ + req->config_filename, req->var, req->req_config TSRMLS_CC) == FAILURE) return FAILURE + +#define SET_OPTIONAL_STRING_ARG(key, varname, defval) \ + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) \ + varname = Z_STRVAL_PP(item); \ + else \ + varname = defval + +#define SET_OPTIONAL_LONG_ARG(key, varname, defval) \ + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_LONG) \ + varname = Z_LVAL_PP(item); \ + else \ + varname = defval + +static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(long algo); + +int openssl_spki_cleanup(const char *src, char *dest); + +static int php_openssl_parse_config(struct php_x509_request * req, zval * optional_args TSRMLS_DC) /* {{{ */ +{ + char * str; + zval ** item; + + SET_OPTIONAL_STRING_ARG("config", req->config_filename, default_ssl_conf_filename); + SET_OPTIONAL_STRING_ARG("config_section_name", req->section_name, "req"); + req->global_config = CONF_load(NULL, default_ssl_conf_filename, NULL); + req->req_config = CONF_load(NULL, req->config_filename, NULL); + + if (req->req_config == NULL) { + return FAILURE; + } + + /* read in the oids */ + str = CONF_get_string(req->req_config, NULL, "oid_file"); + if (str && !php_openssl_open_base_dir_chk(str TSRMLS_CC)) { + BIO *oid_bio = BIO_new_file(str, "r"); + if (oid_bio) { + OBJ_create_objects(oid_bio); + BIO_free(oid_bio); + } + } + if (add_oid_section(req TSRMLS_CC) == FAILURE) { + return FAILURE; + } + SET_OPTIONAL_STRING_ARG("digest_alg", req->digest_name, + CONF_get_string(req->req_config, req->section_name, "default_md")); + SET_OPTIONAL_STRING_ARG("x509_extensions", req->extensions_section, + CONF_get_string(req->req_config, req->section_name, "x509_extensions")); + SET_OPTIONAL_STRING_ARG("req_extensions", req->request_extensions_section, + CONF_get_string(req->req_config, req->section_name, "req_extensions")); + SET_OPTIONAL_LONG_ARG("private_key_bits", req->priv_key_bits, + CONF_get_number(req->req_config, req->section_name, "default_bits")); + + SET_OPTIONAL_LONG_ARG("private_key_type", req->priv_key_type, OPENSSL_KEYTYPE_DEFAULT); + + if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), "encrypt_key", sizeof("encrypt_key"), (void**)&item) == SUCCESS) { + req->priv_key_encrypt = Z_BVAL_PP(item); + } else { + str = CONF_get_string(req->req_config, req->section_name, "encrypt_rsa_key"); + if (str == NULL) { + str = CONF_get_string(req->req_config, req->section_name, "encrypt_key"); + } + if (str && strcmp(str, "no") == 0) { + req->priv_key_encrypt = 0; + } else { + req->priv_key_encrypt = 1; + } + } + + if (req->priv_key_encrypt && optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), "encrypt_key_cipher", sizeof("encrypt_key_cipher"), (void**)&item) == SUCCESS + && Z_TYPE_PP(item) == IS_LONG) { + long cipher_algo = Z_LVAL_PP(item); + const EVP_CIPHER* cipher = php_openssl_get_evp_cipher_from_algo(cipher_algo); + if (cipher == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm for private key."); + return FAILURE; + } else { + req->priv_key_encrypt_cipher = cipher; + } + } else { + req->priv_key_encrypt_cipher = NULL; + } + + + + /* digest alg */ + if (req->digest_name == NULL) { + req->digest_name = CONF_get_string(req->req_config, req->section_name, "default_md"); + } + if (req->digest_name) { + req->digest = req->md_alg = EVP_get_digestbyname(req->digest_name); + } + if (req->md_alg == NULL) { + req->md_alg = req->digest = EVP_sha1(); + } + + PHP_SSL_CONFIG_SYNTAX_CHECK(extensions_section); + + /* set the string mask */ + str = CONF_get_string(req->req_config, req->section_name, "string_mask"); + if (str && !ASN1_STRING_set_default_mask_asc(str)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid global string mask setting %s", str); + return FAILURE; + } + + PHP_SSL_CONFIG_SYNTAX_CHECK(request_extensions_section); + + return SUCCESS; +} +/* }}} */ + +static void php_openssl_dispose_config(struct php_x509_request * req TSRMLS_DC) /* {{{ */ +{ + if (req->priv_key) { + EVP_PKEY_free(req->priv_key); + req->priv_key = NULL; + } + if (req->global_config) { + CONF_free(req->global_config); + req->global_config = NULL; + } + if (req->req_config) { + CONF_free(req->req_config); + req->req_config = NULL; + } +} +/* }}} */ + +#ifdef PHP_WIN32 +#define PHP_OPENSSL_RAND_ADD_TIME() ((void) 0) +#else +#define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval() + +static inline void php_openssl_rand_add_timeval() /* {{{ */ +{ + struct timeval tv; + + gettimeofday(&tv, NULL); + RAND_add(&tv, sizeof(tv), 0.0); +} +/* }}} */ + +#endif + +static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *seeded TSRMLS_DC) /* {{{ */ +{ + char buffer[MAXPATHLEN]; + + *egdsocket = 0; + *seeded = 0; + + if (file == NULL) { + file = RAND_file_name(buffer, sizeof(buffer)); +#ifdef HAVE_RAND_EGD + } else if (RAND_egd(file) > 0) { + /* if the given filename is an EGD socket, don't + * write anything back to it */ + *egdsocket = 1; + return SUCCESS; +#endif + } + if (file == NULL || !RAND_load_file(file, -1)) { + if (RAND_status() == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to load random state; not enough random data!"); + return FAILURE; + } + return FAILURE; + } + *seeded = 1; + return SUCCESS; +} +/* }}} */ + +static int php_openssl_write_rand_file(const char * file, int egdsocket, int seeded) /* {{{ */ +{ + char buffer[MAXPATHLEN]; + + TSRMLS_FETCH(); + + if (egdsocket || !seeded) { + /* if we did not manage to read the seed file, we should not write + * a low-entropy seed file back */ + return FAILURE; + } + if (file == NULL) { + file = RAND_file_name(buffer, sizeof(buffer)); + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (file == NULL || !RAND_write_file(file)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to write random state"); + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +static EVP_MD * php_openssl_get_evp_md_from_algo(long algo) { /* {{{ */ + EVP_MD *mdtype; + + switch (algo) { + case OPENSSL_ALGO_SHA1: + mdtype = (EVP_MD *) EVP_sha1(); + break; + case OPENSSL_ALGO_MD5: + mdtype = (EVP_MD *) EVP_md5(); + break; + case OPENSSL_ALGO_MD4: + mdtype = (EVP_MD *) EVP_md4(); + break; +#ifdef HAVE_OPENSSL_MD2_H + case OPENSSL_ALGO_MD2: + mdtype = (EVP_MD *) EVP_md2(); + break; +#endif + case OPENSSL_ALGO_DSS1: + mdtype = (EVP_MD *) EVP_dss1(); + break; +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL + case OPENSSL_ALGO_SHA224: + mdtype = (EVP_MD *) EVP_sha224(); + break; + case OPENSSL_ALGO_SHA256: + mdtype = (EVP_MD *) EVP_sha256(); + break; + case OPENSSL_ALGO_SHA384: + mdtype = (EVP_MD *) EVP_sha384(); + break; + case OPENSSL_ALGO_SHA512: + mdtype = (EVP_MD *) EVP_sha512(); + break; + case OPENSSL_ALGO_RMD160: + mdtype = (EVP_MD *) EVP_ripemd160(); + break; +#endif + default: + return NULL; + break; + } + return mdtype; +} +/* }}} */ + +static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(long algo) { /* {{{ */ + switch (algo) { +#ifndef OPENSSL_NO_RC2 + case PHP_OPENSSL_CIPHER_RC2_40: + return EVP_rc2_40_cbc(); + break; + case PHP_OPENSSL_CIPHER_RC2_64: + return EVP_rc2_64_cbc(); + break; + case PHP_OPENSSL_CIPHER_RC2_128: + return EVP_rc2_cbc(); + break; +#endif + +#ifndef OPENSSL_NO_DES + case PHP_OPENSSL_CIPHER_DES: + return EVP_des_cbc(); + break; + case PHP_OPENSSL_CIPHER_3DES: + return EVP_des_ede3_cbc(); + break; +#endif + +#ifndef OPENSSL_NO_AES + case PHP_OPENSSL_CIPHER_AES_128_CBC: + return EVP_aes_128_cbc(); + break; + case PHP_OPENSSL_CIPHER_AES_192_CBC: + return EVP_aes_192_cbc(); + break; + case PHP_OPENSSL_CIPHER_AES_256_CBC: + return EVP_aes_256_cbc(); + break; +#endif + + + default: + return NULL; + break; + } +} +/* }}} */ + +/* {{{ INI Settings */ +PHP_INI_BEGIN() + PHP_INI_ENTRY("openssl.cafile", NULL, PHP_INI_PERDIR, NULL) + PHP_INI_ENTRY("openssl.capath", NULL, PHP_INI_PERDIR, NULL) +PHP_INI_END() +/* }}} */ + +/* {{{ PHP_MINIT_FUNCTION + */ +PHP_MINIT_FUNCTION(openssl) +{ + char * config_filename; + + le_key = zend_register_list_destructors_ex(php_pkey_free, NULL, "OpenSSL key", module_number); + le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL, "OpenSSL X.509", module_number); + le_csr = zend_register_list_destructors_ex(php_csr_free, NULL, "OpenSSL X.509 CSR", module_number); + + SSL_library_init(); + OpenSSL_add_all_ciphers(); + OpenSSL_add_all_digests(); + OpenSSL_add_all_algorithms(); + + SSL_load_error_strings(); + + /* register a resource id number with OpenSSL so that we can map SSL -> stream structures in + * OpenSSL callbacks */ + ssl_stream_data_index = SSL_get_ex_new_index(0, "PHP stream index", NULL, NULL, NULL); + + REGISTER_STRING_CONSTANT("OPENSSL_VERSION_TEXT", OPENSSL_VERSION_TEXT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_VERSION_NUMBER", OPENSSL_VERSION_NUMBER, CONST_CS|CONST_PERSISTENT); + + /* purposes for cert purpose checking */ + REGISTER_LONG_CONSTANT("X509_PURPOSE_SSL_CLIENT", X509_PURPOSE_SSL_CLIENT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SSL_SERVER", X509_PURPOSE_SSL_SERVER, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_NS_SSL_SERVER", X509_PURPOSE_NS_SSL_SERVER, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SMIME_SIGN", X509_PURPOSE_SMIME_SIGN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_SMIME_ENCRYPT", X509_PURPOSE_SMIME_ENCRYPT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("X509_PURPOSE_CRL_SIGN", X509_PURPOSE_CRL_SIGN, CONST_CS|CONST_PERSISTENT); +#ifdef X509_PURPOSE_ANY + REGISTER_LONG_CONSTANT("X509_PURPOSE_ANY", X509_PURPOSE_ANY, CONST_CS|CONST_PERSISTENT); +#endif + + /* signature algorithm constants */ + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA1", OPENSSL_ALGO_SHA1, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD5", OPENSSL_ALGO_MD5, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD4", OPENSSL_ALGO_MD4, CONST_CS|CONST_PERSISTENT); +#ifdef HAVE_OPENSSL_MD2_H + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD2", OPENSSL_ALGO_MD2, CONST_CS|CONST_PERSISTENT); +#endif + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_DSS1", OPENSSL_ALGO_DSS1, CONST_CS|CONST_PERSISTENT); +#if OPENSSL_VERSION_NUMBER >= 0x0090708fL + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA224", OPENSSL_ALGO_SHA224, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA256", OPENSSL_ALGO_SHA256, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA384", OPENSSL_ALGO_SHA384, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_SHA512", OPENSSL_ALGO_SHA512, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ALGO_RMD160", OPENSSL_ALGO_RMD160, CONST_CS|CONST_PERSISTENT); +#endif + + /* flags for S/MIME */ + REGISTER_LONG_CONSTANT("PKCS7_DETACHED", PKCS7_DETACHED, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_TEXT", PKCS7_TEXT, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOINTERN", PKCS7_NOINTERN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOVERIFY", PKCS7_NOVERIFY, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOCHAIN", PKCS7_NOCHAIN, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOCERTS", PKCS7_NOCERTS, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOATTR", PKCS7_NOATTR, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_BINARY", PKCS7_BINARY, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("PKCS7_NOSIGS", PKCS7_NOSIGS, CONST_CS|CONST_PERSISTENT); + + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT); + + /* Informational stream wrapper constants */ + REGISTER_STRING_CONSTANT("OPENSSL_DEFAULT_STREAM_CIPHERS", OPENSSL_DEFAULT_STREAM_CIPHERS, CONST_CS|CONST_PERSISTENT); + + /* Ciphers */ +#ifndef OPENSSL_NO_RC2 + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_40", PHP_OPENSSL_CIPHER_RC2_40, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_128", PHP_OPENSSL_CIPHER_RC2_128, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_RC2_64", PHP_OPENSSL_CIPHER_RC2_64, CONST_CS|CONST_PERSISTENT); +#endif +#ifndef OPENSSL_NO_DES + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_DES", PHP_OPENSSL_CIPHER_DES, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_3DES", PHP_OPENSSL_CIPHER_3DES, CONST_CS|CONST_PERSISTENT); +#endif +#ifndef OPENSSL_NO_AES + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_128_CBC", PHP_OPENSSL_CIPHER_AES_128_CBC, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_192_CBC", PHP_OPENSSL_CIPHER_AES_192_CBC, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_CIPHER_AES_256_CBC", PHP_OPENSSL_CIPHER_AES_256_CBC, CONST_CS|CONST_PERSISTENT); +#endif + + /* Values for key types */ + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_RSA", OPENSSL_KEYTYPE_RSA, CONST_CS|CONST_PERSISTENT); +#ifndef NO_DSA + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DSA", OPENSSL_KEYTYPE_DSA, CONST_CS|CONST_PERSISTENT); +#endif + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DH", OPENSSL_KEYTYPE_DH, CONST_CS|CONST_PERSISTENT); +#ifdef HAVE_EVP_PKEY_EC + REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_EC", OPENSSL_KEYTYPE_EC, CONST_CS|CONST_PERSISTENT); +#endif + + REGISTER_LONG_CONSTANT("OPENSSL_RAW_DATA", OPENSSL_RAW_DATA, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_ZERO_PADDING", OPENSSL_ZERO_PADDING, CONST_CS|CONST_PERSISTENT); + +#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) + /* SNI support included in OpenSSL >= 0.9.8j */ + REGISTER_LONG_CONSTANT("OPENSSL_TLSEXT_SERVER_NAME", 1, CONST_CS|CONST_PERSISTENT); +#endif + + /* Determine default SSL configuration file */ + config_filename = getenv("OPENSSL_CONF"); + if (config_filename == NULL) { + config_filename = getenv("SSLEAY_CONF"); + } + + /* default to 'openssl.cnf' if no environment variable is set */ + if (config_filename == NULL) { + snprintf(default_ssl_conf_filename, sizeof(default_ssl_conf_filename), "%s/%s", + X509_get_default_cert_area(), + "openssl.cnf"); + } else { + strlcpy(default_ssl_conf_filename, config_filename, sizeof(default_ssl_conf_filename)); + } + + php_stream_xport_register("ssl", php_openssl_ssl_socket_factory TSRMLS_CC); + php_stream_xport_register("sslv3", php_openssl_ssl_socket_factory TSRMLS_CC); +#ifndef OPENSSL_NO_SSL2 + php_stream_xport_register("sslv2", php_openssl_ssl_socket_factory TSRMLS_CC); +#endif + php_stream_xport_register("tls", php_openssl_ssl_socket_factory TSRMLS_CC); + php_stream_xport_register("tlsv1.0", php_openssl_ssl_socket_factory TSRMLS_CC); +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + php_stream_xport_register("tlsv1.1", php_openssl_ssl_socket_factory TSRMLS_CC); + php_stream_xport_register("tlsv1.2", php_openssl_ssl_socket_factory TSRMLS_CC); +#endif + + /* override the default tcp socket provider */ + php_stream_xport_register("tcp", php_openssl_ssl_socket_factory TSRMLS_CC); + + php_register_url_stream_wrapper("https", &php_stream_http_wrapper TSRMLS_CC); + php_register_url_stream_wrapper("ftps", &php_stream_ftp_wrapper TSRMLS_CC); + + REGISTER_INI_ENTRIES(); + + return SUCCESS; +} +/* }}} */ + +/* {{{ PHP_MINFO_FUNCTION + */ +PHP_MINFO_FUNCTION(openssl) +{ + php_info_print_table_start(); + php_info_print_table_row(2, "OpenSSL support", "enabled"); + php_info_print_table_row(2, "OpenSSL Library Version", SSLeay_version(SSLEAY_VERSION)); + php_info_print_table_row(2, "OpenSSL Header Version", OPENSSL_VERSION_TEXT); + php_info_print_table_row(2, "Openssl default config", default_ssl_conf_filename); + php_info_print_table_end(); + DISPLAY_INI_ENTRIES(); +} +/* }}} */ + +/* {{{ PHP_MSHUTDOWN_FUNCTION + */ +PHP_MSHUTDOWN_FUNCTION(openssl) +{ + EVP_cleanup(); + +#if OPENSSL_VERSION_NUMBER >= 0x00090805f + /* prevent accessing locking callback from unloaded extension */ + CRYPTO_set_locking_callback(NULL); + /* free allocated error strings */ + ERR_free_strings(); +#endif + + php_unregister_url_stream_wrapper("https" TSRMLS_CC); + php_unregister_url_stream_wrapper("ftps" TSRMLS_CC); + + php_stream_xport_unregister("ssl" TSRMLS_CC); +#ifndef OPENSSL_NO_SSL2 + php_stream_xport_unregister("sslv2" TSRMLS_CC); +#endif + php_stream_xport_unregister("sslv3" TSRMLS_CC); + php_stream_xport_unregister("tls" TSRMLS_CC); + php_stream_xport_unregister("tlsv1.0" TSRMLS_CC); +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + php_stream_xport_unregister("tlsv1.1" TSRMLS_CC); + php_stream_xport_unregister("tlsv1.2" TSRMLS_CC); +#endif + + /* reinstate the default tcp handler */ + php_stream_xport_register("tcp", php_stream_generic_socket_factory TSRMLS_CC); + + UNREGISTER_INI_ENTRIES(); + + return SUCCESS; +} +/* }}} */ + +/* {{{ x509 cert functions */ + +/* {{{ proto array openssl_get_cert_locations(void) + Retrieve an array mapping available certificate locations */ +PHP_FUNCTION(openssl_get_cert_locations) +{ + array_init(return_value); + + add_assoc_string(return_value, "default_cert_file", (char *) X509_get_default_cert_file(), 1); + add_assoc_string(return_value, "default_cert_file_env", (char *) X509_get_default_cert_file_env(), 1); + add_assoc_string(return_value, "default_cert_dir", (char *) X509_get_default_cert_dir(), 1); + add_assoc_string(return_value, "default_cert_dir_env", (char *) X509_get_default_cert_dir_env(), 1); + add_assoc_string(return_value, "default_private_dir", (char *) X509_get_default_private_dir(), 1); + add_assoc_string(return_value, "default_default_cert_area", (char *) X509_get_default_cert_area(), 1); + add_assoc_string(return_value, "ini_cafile", + zend_ini_string("openssl.cafile", sizeof("openssl.cafile"), 0), 1); + add_assoc_string(return_value, "ini_capath", + zend_ini_string("openssl.capath", sizeof("openssl.capath"), 0), 1); +} +/* }}} */ + + +/* {{{ php_openssl_x509_from_zval + Given a zval, coerce it into an X509 object. + The zval can be: + . X509 resource created using openssl_read_x509() + . if it starts with file:// then it will be interpreted as the path to that cert + . it will be interpreted as the cert data + If you supply makeresource, the result will be registered as an x509 resource and + it's value returned in makeresource. +*/ +static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC) +{ + X509 *cert = NULL; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_RESOURCE) { + /* is it an x509 resource ? */ + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509", &type, 1, le_x509); + if (!what) { + return NULL; + } + /* this is so callers can decide if they should free the X509 */ + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + if (type == le_x509) { + return (X509*)what; + } + /* other types could be used here - eg: file pointers and read in the data from them */ + + return NULL; + } + + if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { + return NULL; + } + + /* force it to be a string and check if it refers to a file */ + convert_to_string_ex(val); + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + /* read cert from the named file */ + BIO *in; + + if (php_openssl_open_base_dir_chk(Z_STRVAL_PP(val) + (sizeof("file://") - 1) TSRMLS_CC)) { + return NULL; + } + + in = BIO_new_file(Z_STRVAL_PP(val) + (sizeof("file://") - 1), "r"); + if (in == NULL) { + return NULL; + } + cert = PEM_read_bio_X509(in, NULL, NULL, NULL); + BIO_free(in); + } else { + BIO *in; + + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + if (in == NULL) { + return NULL; + } +#ifdef TYPEDEF_D2I_OF + cert = (X509 *) PEM_ASN1_read_bio((d2i_of_void *)d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#else + cert = (X509 *) PEM_ASN1_read_bio((char *(*)())d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#endif + BIO_free(in); + } + + if (cert && makeresource && resourceval) { + *resourceval = zend_list_insert(cert, le_x509 TSRMLS_CC); + } + return cert; +} + +/* }}} */ + +/* {{{ proto bool openssl_x509_export_to_file(mixed x509, string outfilename [, bool notext = true]) + Exports a CERT to file or a var */ +PHP_FUNCTION(openssl_x509_export_to_file) +{ + X509 * cert; + zval ** zcert; + zend_bool notext = 1; + BIO * bio_out; + long certresource; + char * filename; + int filename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zp|b", &zcert, &filename, &filename_len, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return; + } + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + if (!notext) { + X509_print(bio_out, cert); + } + PEM_write_bio_X509(bio_out, cert); + + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto string openssl_spki_new(mixed zpkey, string challenge [, mixed method]) + Creates new private key (or uses existing) and creates a new spki cert + outputting results to var */ +PHP_FUNCTION(openssl_spki_new) +{ + int challenge_len; + char * challenge = NULL, * spkstr = NULL, * s = NULL; + long keyresource = -1; + const char *spkac = "SPKAC="; + long algo = OPENSSL_ALGO_MD5; + + zval *method = NULL; + zval * zpkey = NULL; + EVP_PKEY * pkey = NULL; + NETSCAPE_SPKI *spki=NULL; + const EVP_MD *mdtype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|z", &zpkey, &challenge, &challenge_len, &method) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(&zpkey, 0, challenge, 1, &keyresource TSRMLS_CC); + + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied private key"); + goto cleanup; + } + + if (method != NULL) { + if (Z_TYPE_P(method) == IS_LONG) { + algo = Z_LVAL_P(method); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Algorithm must be of supported type"); + goto cleanup; + } + } + mdtype = php_openssl_get_evp_md_from_algo(algo); + + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + goto cleanup; + } + + if ((spki = NETSCAPE_SPKI_new()) == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create new SPKAC"); + goto cleanup; + } + + if (challenge) { + ASN1_STRING_set(spki->spkac->challenge, challenge, challenge_len); + } + + if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to embed public key"); + goto cleanup; + } + + if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to sign with specified algorithm"); + goto cleanup; + } + + spkstr = NETSCAPE_SPKI_b64_encode(spki); + if (!spkstr){ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to encode SPKAC"); + goto cleanup; + } + + s = emalloc(strlen(spkac) + strlen(spkstr) + 1); + sprintf(s, "%s%s", spkac, spkstr); + + RETVAL_STRINGL(s, strlen(s), 0); + goto cleanup; + +cleanup: + + if (keyresource == -1 && spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (keyresource == -1 && pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (keyresource == -1 && spkstr != NULL) { + efree(spkstr); + } + + if (s && strlen(s) <= 0) { + RETVAL_FALSE; + } + + if (keyresource == -1 && s != NULL) { + efree(s); + } +} +/* }}} */ + +/* {{{ proto bool openssl_spki_verify(string spki) + Verifies spki returns boolean */ +PHP_FUNCTION(openssl_spki_verify) +{ + int spkstr_len, i = 0; + char *spkstr = NULL, * spkstr_cleaned = NULL; + + EVP_PKEY *pkey = NULL; + NETSCAPE_SPKI *spki = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + if (strlen(spkstr_cleaned)<=0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid SPKAC"); + goto cleanup; + } + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode supplied SPKAC"); + goto cleanup; + } + + pkey = X509_PUBKEY_get(spki->spkac->pubkey); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to acquire signed public key"); + goto cleanup; + } + + i = NETSCAPE_SPKI_verify(spki, pkey); + goto cleanup; + +cleanup: + if (spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } + + if (i > 0) { + RETVAL_TRUE; + } +} +/* }}} */ + +/* {{{ proto string openssl_spki_export(string spki) + Exports public key from existing spki to var */ +PHP_FUNCTION(openssl_spki_export) +{ + int spkstr_len; + char *spkstr = NULL, * spkstr_cleaned = NULL, * s = NULL; + + EVP_PKEY *pkey = NULL; + NETSCAPE_SPKI *spki = NULL; + BIO *out = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode supplied SPKAC"); + goto cleanup; + } + + pkey = X509_PUBKEY_get(spki->spkac->pubkey); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to acquire signed public key"); + goto cleanup; + } + + out = BIO_new(BIO_s_mem()); + if (out && PEM_write_bio_PUBKEY(out, pkey)) { + BUF_MEM *bio_buf; + + BIO_get_mem_ptr(out, &bio_buf); + RETVAL_STRINGL((char *)bio_buf->data, bio_buf->length, 1); + } + goto cleanup; + +cleanup: + + if (spki != NULL) { + NETSCAPE_SPKI_free(spki); + } + if (out != NULL) { + BIO_free_all(out); + } + if (pkey != NULL) { + EVP_PKEY_free(pkey); + } + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } + if (s != NULL) { + efree(s); + } +} +/* }}} */ + +/* {{{ proto string openssl_spki_export_challenge(string spki) + Exports spkac challenge from existing spki to var */ +PHP_FUNCTION(openssl_spki_export_challenge) +{ + int spkstr_len; + char *spkstr = NULL, * spkstr_cleaned = NULL; + + NETSCAPE_SPKI *spki = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &spkstr, &spkstr_len) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (spkstr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to use supplied SPKAC"); + goto cleanup; + } + + spkstr_cleaned = emalloc(spkstr_len + 1); + openssl_spki_cleanup(spkstr, spkstr_cleaned); + + spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, strlen(spkstr_cleaned)); + if (spki == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to decode SPKAC"); + goto cleanup; + } + + RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge), 1); + goto cleanup; + +cleanup: + if (spkstr_cleaned != NULL) { + efree(spkstr_cleaned); + } +} +/* }}} */ + +/* {{{ strip line endings from spkac */ +int openssl_spki_cleanup(const char *src, char *dest) +{ + int removed=0; + + while (*src) { + if (*src!='\n'&&*src!='\r') { + *dest++=*src; + } else { + ++removed; + } + ++src; + } + *dest=0; + return removed; +} +/* }}} */ + +/* {{{ proto bool openssl_x509_export(mixed x509, string &out [, bool notext = true]) + Exports a CERT to file or a var */ +PHP_FUNCTION(openssl_x509_export) +{ + X509 * cert; + zval ** zcert, *zout; + zend_bool notext = 1; + BIO * bio_out; + long certresource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zz|b", &zcert, &zout, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + + bio_out = BIO_new(BIO_s_mem()); + if (!notext) { + X509_print(bio_out, cert); + } + if (PEM_write_bio_X509(bio_out, cert)) { + BUF_MEM *bio_buf; + + zval_dtor(zout); + BIO_get_mem_ptr(bio_out, &bio_buf); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); +} +/* }}} */ + +int php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw, char **out, int *out_len TSRMLS_DC) +{ + unsigned char md[EVP_MAX_MD_SIZE]; + const EVP_MD *mdtype; + unsigned int n; + + if (!(mdtype = EVP_get_digestbyname(method))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + return FAILURE; + } else if (!X509_digest(peer, mdtype, md, &n)) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not generate signature"); + return FAILURE; + } + + if (raw) { + *out_len = n; + *out = estrndup((char *) md, n); + } else { + *out_len = n * 2; + *out = emalloc(*out_len + 1); + + make_digest_ex(*out, md, n); + } + + return SUCCESS; +} + +PHP_FUNCTION(openssl_x509_fingerprint) +{ + X509 *cert; + zval **zcert; + long certresource; + zend_bool raw_output = 0; + char *method = "sha1"; + int method_len; + + char *fingerprint; + int fingerprint_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|sb", &zcert, &method, &method_len, &raw_output) == FAILURE) { + return; + } + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + RETURN_FALSE; + } + + if (php_openssl_x509_fingerprint(cert, method, raw_output, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) { + RETVAL_STRINGL(fingerprint, fingerprint_len, 0); + } else { + RETVAL_FALSE; + } + + if (certresource == -1 && cert) { + X509_free(cert); + } +} + +/* {{{ proto bool openssl_x509_check_private_key(mixed cert, mixed key) + Checks if a private key corresponds to a CERT */ +PHP_FUNCTION(openssl_x509_check_private_key) +{ + zval ** zcert, **zkey; + X509 * cert = NULL; + EVP_PKEY * key = NULL; + long certresource = -1, keyresource = -1; + + RETVAL_FALSE; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ", &zcert, &zkey) == FAILURE) { + return; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + RETURN_FALSE; + } + key = php_openssl_evp_from_zval(zkey, 0, "", 1, &keyresource TSRMLS_CC); + if (key) { + RETVAL_BOOL(X509_check_private_key(cert, key)); + } + + if (keyresource == -1 && key) { + EVP_PKEY_free(key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* Special handling of subjectAltName, see CVE-2013-4073 + * Christian Heimes + */ + +static int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension) +{ + GENERAL_NAMES *names; + const X509V3_EXT_METHOD *method = NULL; + long i, length, num; + const unsigned char *p; + + method = X509V3_EXT_get(extension); + if (method == NULL) { + return -1; + } + + p = extension->value->data; + length = extension->value->length; + if (method->it) { + names = (GENERAL_NAMES*)(ASN1_item_d2i(NULL, &p, length, + ASN1_ITEM_ptr(method->it))); + } else { + names = (GENERAL_NAMES*)(method->d2i(NULL, &p, length)); + } + if (names == NULL) { + return -1; + } + + num = sk_GENERAL_NAME_num(names); + for (i = 0; i < num; i++) { + GENERAL_NAME *name; + ASN1_STRING *as; + name = sk_GENERAL_NAME_value(names, i); + switch (name->type) { + case GEN_EMAIL: + BIO_puts(bio, "email:"); + as = name->d.rfc822Name; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + case GEN_DNS: + BIO_puts(bio, "DNS:"); + as = name->d.dNSName; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + case GEN_URI: + BIO_puts(bio, "URI:"); + as = name->d.uniformResourceIdentifier; + BIO_write(bio, ASN1_STRING_data(as), + ASN1_STRING_length(as)); + break; + default: + /* use builtin print for GEN_OTHERNAME, GEN_X400, + * GEN_EDIPARTY, GEN_DIRNAME, GEN_IPADD and GEN_RID + */ + GENERAL_NAME_print(bio, name); + } + /* trailing ', ' except for last element */ + if (i < (num - 1)) { + BIO_puts(bio, ", "); + } + } + sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free); + + return 0; +} + +/* {{{ proto array openssl_x509_parse(mixed x509 [, bool shortnames=true]) + Returns an array of the fields/values of the CERT */ +PHP_FUNCTION(openssl_x509_parse) +{ + zval ** zcert; + X509 * cert = NULL; + long certresource = -1; + int i, sig_nid; + zend_bool useshortnames = 1; + char * tmpstr; + zval * subitem; + X509_EXTENSION *extension; + char *extname; + BIO *bio_out; + BUF_MEM *bio_buf; + char buf[256]; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcert, &useshortnames) == FAILURE) { + return; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + RETURN_FALSE; + } + array_init(return_value); + + if (cert->name) { + add_assoc_string(return_value, "name", cert->name, 1); + } +/* add_assoc_bool(return_value, "valid", cert->valid); */ + + add_assoc_name_entry(return_value, "subject", X509_get_subject_name(cert), useshortnames TSRMLS_CC); + /* hash as used in CA directories to lookup cert by subject name */ + { + char buf[32]; + snprintf(buf, sizeof(buf), "%08lx", X509_subject_name_hash(cert)); + add_assoc_string(return_value, "hash", buf, 1); + } + + add_assoc_name_entry(return_value, "issuer", X509_get_issuer_name(cert), useshortnames TSRMLS_CC); + add_assoc_long(return_value, "version", X509_get_version(cert)); + + add_assoc_string(return_value, "serialNumber", i2s_ASN1_INTEGER(NULL, X509_get_serialNumber(cert)), 1); + + add_assoc_asn1_string(return_value, "validFrom", X509_get_notBefore(cert)); + add_assoc_asn1_string(return_value, "validTo", X509_get_notAfter(cert)); + + add_assoc_long(return_value, "validFrom_time_t", asn1_time_to_time_t(X509_get_notBefore(cert) TSRMLS_CC)); + add_assoc_long(return_value, "validTo_time_t", asn1_time_to_time_t(X509_get_notAfter(cert) TSRMLS_CC)); + + tmpstr = (char *)X509_alias_get0(cert, NULL); + if (tmpstr) { + add_assoc_string(return_value, "alias", tmpstr, 1); + } + + sig_nid = OBJ_obj2nid((cert)->sig_alg->algorithm); + add_assoc_string(return_value, "signatureTypeSN", (char*)OBJ_nid2sn(sig_nid), 1); + add_assoc_string(return_value, "signatureTypeLN", (char*)OBJ_nid2ln(sig_nid), 1); + add_assoc_long(return_value, "signatureTypeNID", sig_nid); + + MAKE_STD_ZVAL(subitem); + array_init(subitem); + + /* NOTE: the purposes are added as integer keys - the keys match up to the X509_PURPOSE_SSL_XXX defines + in x509v3.h */ + for (i = 0; i < X509_PURPOSE_get_count(); i++) { + int id, purpset; + char * pname; + X509_PURPOSE * purp; + zval * subsub; + + MAKE_STD_ZVAL(subsub); + array_init(subsub); + + purp = X509_PURPOSE_get0(i); + id = X509_PURPOSE_get_id(purp); + + purpset = X509_check_purpose(cert, id, 0); + add_index_bool(subsub, 0, purpset); + + purpset = X509_check_purpose(cert, id, 1); + add_index_bool(subsub, 1, purpset); + + pname = useshortnames ? X509_PURPOSE_get0_sname(purp) : X509_PURPOSE_get0_name(purp); + add_index_string(subsub, 2, pname, 1); + + /* NOTE: if purpset > 1 then it's a warning - we should mention it ? */ + + add_index_zval(subitem, id, subsub); + } + add_assoc_zval(return_value, "purposes", subitem); + + MAKE_STD_ZVAL(subitem); + array_init(subitem); + + + for (i = 0; i < X509_get_ext_count(cert); i++) { + int nid; + extension = X509_get_ext(cert, i); + nid = OBJ_obj2nid(X509_EXTENSION_get_object(extension)); + if (nid != NID_undef) { + extname = (char *)OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(extension))); + } else { + OBJ_obj2txt(buf, sizeof(buf)-1, X509_EXTENSION_get_object(extension), 1); + extname = buf; + } + bio_out = BIO_new(BIO_s_mem()); + if (nid == NID_subject_alt_name) { + if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { + BIO_get_mem_ptr(bio_out, &bio_buf); + add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1); + } else { + zval_dtor(return_value); + if (certresource == -1 && cert) { + X509_free(cert); + } + BIO_free(bio_out); + RETURN_FALSE; + } + } + else if (X509V3_EXT_print(bio_out, extension, 0, 0)) { + BIO_get_mem_ptr(bio_out, &bio_buf); + add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1); + } else { + add_assoc_asn1_string(subitem, extname, X509_EXTENSION_get_data(extension)); + } + BIO_free(bio_out); + } + add_assoc_zval(return_value, "extensions", subitem); + + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ load_all_certs_from_file */ +static STACK_OF(X509) * load_all_certs_from_file(char *certfile) +{ + STACK_OF(X509_INFO) *sk=NULL; + STACK_OF(X509) *stack=NULL, *ret=NULL; + BIO *in=NULL; + X509_INFO *xi; + TSRMLS_FETCH(); + + if(!(stack = sk_X509_new_null())) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "memory allocation failure"); + goto end; + } + + if (php_openssl_open_base_dir_chk(certfile TSRMLS_CC)) { + sk_X509_free(stack); + goto end; + } + + if(!(in=BIO_new_file(certfile, "r"))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening the file, %s", certfile); + sk_X509_free(stack); + goto end; + } + + /* This loads from a file, a stack of x509/crl/pkey sets */ + if(!(sk=PEM_X509_INFO_read_bio(in, NULL, NULL, NULL))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error reading the file, %s", certfile); + sk_X509_free(stack); + goto end; + } + + /* scan over it and pull out the certs */ + while (sk_X509_INFO_num(sk)) { + xi=sk_X509_INFO_shift(sk); + if (xi->x509 != NULL) { + sk_X509_push(stack,xi->x509); + xi->x509=NULL; + } + X509_INFO_free(xi); + } + if(!sk_X509_num(stack)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "no certificates in file, %s", certfile); + sk_X509_free(stack); + goto end; + } + ret=stack; +end: + BIO_free(in); + sk_X509_INFO_free(sk); + + return ret; +} +/* }}} */ + +/* {{{ check_cert */ +static int check_cert(X509_STORE *ctx, X509 *x, STACK_OF(X509) *untrustedchain, int purpose) +{ + int ret=0; + X509_STORE_CTX *csc; + TSRMLS_FETCH(); + + csc = X509_STORE_CTX_new(); + if (csc == NULL) { + php_error_docref(NULL TSRMLS_CC, E_ERROR, "memory allocation failure"); + return 0; + } + X509_STORE_CTX_init(csc, ctx, x, untrustedchain); + if(purpose >= 0) { + X509_STORE_CTX_set_purpose(csc, purpose); + } + ret = X509_verify_cert(csc); + X509_STORE_CTX_free(csc); + + return ret; +} +/* }}} */ + +/* {{{ proto int openssl_x509_checkpurpose(mixed x509cert, int purpose, array cainfo [, string untrustedfile]) + Checks the CERT to see if it can be used for the purpose in purpose. cainfo holds information about trusted CAs */ +PHP_FUNCTION(openssl_x509_checkpurpose) +{ + zval ** zcert, * zcainfo = NULL; + X509_STORE * cainfo = NULL; + X509 * cert = NULL; + long certresource = -1; + STACK_OF(X509) * untrustedchain = NULL; + long purpose; + char * untrusted = NULL; + int untrusted_len = 0, ret; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zl|a!s", &zcert, &purpose, &zcainfo, &untrusted, &untrusted_len) == FAILURE) { + return; + } + + RETVAL_LONG(-1); + + if (untrusted) { + untrustedchain = load_all_certs_from_file(untrusted); + if (untrustedchain == NULL) { + goto clean_exit; + } + } + + cainfo = setup_verify(zcainfo TSRMLS_CC); + if (cainfo == NULL) { + goto clean_exit; + } + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + ret = check_cert(cainfo, cert, untrustedchain, purpose); + if (ret != 0 && ret != 1) { + RETVAL_LONG(ret); + } else { + RETVAL_BOOL(ret); + } + +clean_exit: + if (certresource == 1 && cert) { + X509_free(cert); + } + if (cainfo) { + X509_STORE_free(cainfo); + } + if (untrustedchain) { + sk_X509_pop_free(untrustedchain, X509_free); + } +} +/* }}} */ + +/* {{{ setup_verify + * calist is an array containing file and directory names. create a + * certificate store and add those certs to it for use in verification. +*/ +static X509_STORE * setup_verify(zval * calist TSRMLS_DC) +{ + X509_STORE *store; + X509_LOOKUP * dir_lookup, * file_lookup; + HashPosition pos; + int ndirs = 0, nfiles = 0; + + store = X509_STORE_new(); + + if (store == NULL) { + return NULL; + } + + if (calist && (Z_TYPE_P(calist) == IS_ARRAY)) { + zend_hash_internal_pointer_reset_ex(HASH_OF(calist), &pos); + for (;; zend_hash_move_forward_ex(HASH_OF(calist), &pos)) { + zval ** item; + struct stat sb; + + if (zend_hash_get_current_data_ex(HASH_OF(calist), (void**)&item, &pos) == FAILURE) { + break; + } + convert_to_string_ex(item); + + if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to stat %s", Z_STRVAL_PP(item)); + continue; + } + + if ((sb.st_mode & S_IFREG) == S_IFREG) { + file_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); + if (file_lookup == NULL || !X509_LOOKUP_load_file(file_lookup, Z_STRVAL_PP(item), X509_FILETYPE_PEM)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error loading file %s", Z_STRVAL_PP(item)); + } else { + nfiles++; + } + file_lookup = NULL; + } else { + dir_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()); + if (dir_lookup == NULL || !X509_LOOKUP_add_dir(dir_lookup, Z_STRVAL_PP(item), X509_FILETYPE_PEM)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error loading directory %s", Z_STRVAL_PP(item)); + } else { + ndirs++; + } + dir_lookup = NULL; + } + } + } + if (nfiles == 0) { + file_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); + if (file_lookup) { + X509_LOOKUP_load_file(file_lookup, NULL, X509_FILETYPE_DEFAULT); + } + } + if (ndirs == 0) { + dir_lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()); + if (dir_lookup) { + X509_LOOKUP_add_dir(dir_lookup, NULL, X509_FILETYPE_DEFAULT); + } + } + return store; +} +/* }}} */ + +/* {{{ proto resource openssl_x509_read(mixed cert) + Reads X.509 certificates */ +PHP_FUNCTION(openssl_x509_read) +{ + zval **cert; + X509 *x509; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &cert) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + x509 = php_openssl_x509_from_zval(cert, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (x509 == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied parameter cannot be coerced into an X509 certificate!"); + RETURN_FALSE; + } +} +/* }}} */ + +/* {{{ proto void openssl_x509_free(resource x509) + Frees X.509 certificates */ +PHP_FUNCTION(openssl_x509_free) +{ + zval *x509; + X509 *cert; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &x509) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(cert, X509 *, &x509, -1, "OpenSSL X.509", le_x509); + zend_list_delete(Z_LVAL_P(x509)); +} +/* }}} */ + +/* }}} */ + +/* Pop all X509 from Stack and free them, free the stack afterwards */ +static void php_sk_X509_free(STACK_OF(X509) * sk) /* {{{ */ +{ + for (;;) { + X509* x = sk_X509_pop(sk); + if (!x) break; + X509_free(x); + } + sk_X509_free(sk); +} +/* }}} */ + +static STACK_OF(X509) * php_array_to_X509_sk(zval ** zcerts TSRMLS_DC) /* {{{ */ +{ + HashPosition hpos; + zval ** zcertval; + STACK_OF(X509) * sk = NULL; + X509 * cert; + long certresource; + + sk = sk_X509_new_null(); + + /* get certs */ + if (Z_TYPE_PP(zcerts) == IS_ARRAY) { + zend_hash_internal_pointer_reset_ex(HASH_OF(*zcerts), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(*zcerts), (void**)&zcertval, &hpos) == SUCCESS) { + + cert = php_openssl_x509_from_zval(zcertval, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + cert = X509_dup(cert); + + if (cert == NULL) { + goto clean_exit; + } + + } + sk_X509_push(sk, cert); + + zend_hash_move_forward_ex(HASH_OF(*zcerts), &hpos); + } + } else { + /* a single certificate */ + cert = php_openssl_x509_from_zval(zcerts, 0, &certresource TSRMLS_CC); + + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(sk, cert); + } + + clean_exit: + return sk; +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_export_to_file(mixed x509, string filename, mixed priv_key, string pass[, array args]) + Creates and exports a PKCS to file */ +PHP_FUNCTION(openssl_pkcs12_export_to_file) +{ + X509 * cert = NULL; + BIO * bio_out = NULL; + PKCS12 * p12 = NULL; + char * filename; + char * friendly_name = NULL; + int filename_len; + char * pass; + int pass_len; + zval **zcert = NULL, *zpkey = NULL, *args = NULL; + EVP_PKEY *priv_key = NULL; + long certresource, keyresource; + zval ** item; + STACK_OF(X509) *ca = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zpzs|a", &zcert, &filename, &filename_len, &zpkey, &pass, &pass_len, &args) == FAILURE) + return; + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + priv_key = php_openssl_evp_from_zval(&zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to cert"); + goto cleanup; + } + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + goto cleanup; + } + + /* parse extra config from args array, promote this to an extra function */ + if (args && zend_hash_find(Z_ARRVAL_P(args), "friendly_name", sizeof("friendly_name"), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) + friendly_name = Z_STRVAL_PP(item); + /* certpbe (default RC2-40) + keypbe (default 3DES) + friendly_caname + */ + + if (args && zend_hash_find(Z_ARRVAL_P(args), "extracerts", sizeof("extracerts"), (void**)&item) == SUCCESS) + ca = php_array_to_X509_sk(item TSRMLS_CC); + /* end parse extra config */ + + /*PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert, STACK_OF(X509) *ca, + int nid_key, int nid_cert, int iter, int mac_iter, int keytype);*/ + + p12 = PKCS12_create(pass, friendly_name, priv_key, cert, ca, 0, 0, 0, 0, 0); + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + + i2d_PKCS12_bio(bio_out, p12); + + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + + BIO_free(bio_out); + PKCS12_free(p12); + php_sk_X509_free(ca); + +cleanup: + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_export(mixed x509, string &out, mixed priv_key, string pass[, array args]) + Creates and exports a PKCS12 to a var */ +PHP_FUNCTION(openssl_pkcs12_export) +{ + X509 * cert = NULL; + BIO * bio_out; + PKCS12 * p12 = NULL; + zval * zcert = NULL, *zout = NULL, *zpkey, *args = NULL; + EVP_PKEY *priv_key = NULL; + long certresource, keyresource; + char * pass; + int pass_len; + char * friendly_name = NULL; + zval ** item; + STACK_OF(X509) *ca = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zzzs|a", &zcert, &zout, &zpkey, &pass, &pass_len, &args) == FAILURE) + return; + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(&zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1"); + return; + } + priv_key = php_openssl_evp_from_zval(&zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to cert"); + goto cleanup; + } + + /* parse extra config from args array, promote this to an extra function */ + if (args && zend_hash_find(Z_ARRVAL_P(args), "friendly_name", sizeof("friendly_name"), (void**)&item) == SUCCESS && Z_TYPE_PP(item) == IS_STRING) + friendly_name = Z_STRVAL_PP(item); + + if (args && zend_hash_find(Z_ARRVAL_P(args), "extracerts", sizeof("extracerts"), (void**)&item) == SUCCESS) + ca = php_array_to_X509_sk(item TSRMLS_CC); + /* end parse extra config */ + + p12 = PKCS12_create(pass, friendly_name, priv_key, cert, ca, 0, 0, 0, 0, 0); + + bio_out = BIO_new(BIO_s_mem()); + if (i2d_PKCS12_bio(bio_out, p12)) { + BUF_MEM *bio_buf; + + zval_dtor(zout); + BIO_get_mem_ptr(bio_out, &bio_buf); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + BIO_free(bio_out); + PKCS12_free(p12); + php_sk_X509_free(ca); + +cleanup: + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (certresource == -1 && cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs12_read(string PKCS12, array &certs, string pass) + Parses a PKCS12 to an array */ +PHP_FUNCTION(openssl_pkcs12_read) +{ + zval *zout = NULL, *zextracerts, *zcert, *zpkey; + char *pass, *zp12; + int pass_len, zp12_len; + PKCS12 * p12 = NULL; + EVP_PKEY * pkey = NULL; + X509 * cert = NULL; + STACK_OF(X509) * ca = NULL; + BIO * bio_in = NULL; + int i; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szs", &zp12, &zp12_len, &zout, &pass, &pass_len) == FAILURE) + return; + + RETVAL_FALSE; + + bio_in = BIO_new(BIO_s_mem()); + + if(!BIO_write(bio_in, zp12, zp12_len)) + goto cleanup; + + if(d2i_PKCS12_bio(bio_in, &p12)) { + if(PKCS12_parse(p12, pass, &pkey, &cert, &ca)) { + BIO * bio_out; + + zval_dtor(zout); + array_init(zout); + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_X509(bio_out, cert)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zcert); + ZVAL_STRINGL(zcert, bio_buf->data, bio_buf->length, 1); + add_assoc_zval(zout, "cert", zcert); + } + BIO_free(bio_out); + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_PrivateKey(bio_out, pkey, NULL, NULL, 0, 0, NULL)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zpkey); + ZVAL_STRINGL(zpkey, bio_buf->data, bio_buf->length, 1); + add_assoc_zval(zout, "pkey", zpkey); + } + BIO_free(bio_out); + + MAKE_STD_ZVAL(zextracerts); + array_init(zextracerts); + + for (i=0;;i++) { + zval * zextracert; + X509* aCA = sk_X509_pop(ca); + if (!aCA) break; + + /* fix for bug 69882 */ + { + int err = ERR_peek_error(); + if (err == OPENSSL_ERROR_X509_PRIVATE_KEY_VALUES_MISMATCH) { + ERR_get_error(); + } + } + + bio_out = BIO_new(BIO_s_mem()); + if (PEM_write_bio_X509(bio_out, aCA)) { + BUF_MEM *bio_buf; + BIO_get_mem_ptr(bio_out, &bio_buf); + MAKE_STD_ZVAL(zextracert); + ZVAL_STRINGL(zextracert, bio_buf->data, bio_buf->length, 1); + add_index_zval(zextracerts, i, zextracert); + + } + BIO_free(bio_out); + + X509_free(aCA); + } + if(ca) { + sk_X509_free(ca); + add_assoc_zval(zout, "extracerts", zextracerts); + } else { + zval_dtor(zextracerts); + } + + RETVAL_TRUE; + + PKCS12_free(p12); + } + } + + cleanup: + if (bio_in) { + BIO_free(bio_in); + } + if (pkey) { + EVP_PKEY_free(pkey); + } + if (cert) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ x509 CSR functions */ + +/* {{{ php_openssl_make_REQ */ +static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, zval * dn, zval * attribs TSRMLS_DC) +{ + STACK_OF(CONF_VALUE) * dn_sk, *attr_sk = NULL; + char * str, *dn_sect, *attr_sect; + + dn_sect = CONF_get_string(req->req_config, req->section_name, "distinguished_name"); + if (dn_sect == NULL) { + return FAILURE; + } + dn_sk = CONF_get_section(req->req_config, dn_sect); + if (dn_sk == NULL) { + return FAILURE; + } + attr_sect = CONF_get_string(req->req_config, req->section_name, "attributes"); + if (attr_sect == NULL) { + attr_sk = NULL; + } else { + attr_sk = CONF_get_section(req->req_config, attr_sect); + if (attr_sk == NULL) { + return FAILURE; + } + } + /* setup the version number: version 1 */ + if (X509_REQ_set_version(csr, 0L)) { + int i, nid; + char * type; + CONF_VALUE * v; + X509_NAME * subj; + HashPosition hpos; + zval ** item; + + subj = X509_REQ_get_subject_name(csr); + /* apply values from the dn hash */ + zend_hash_internal_pointer_reset_ex(HASH_OF(dn), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(dn), (void**)&item, &hpos) == SUCCESS) { + char * strindex = NULL; + uint strindexlen = 0; + ulong intindex; + + zend_hash_get_current_key_ex(HASH_OF(dn), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(item); + + if (strindex) { + int nid; + + nid = OBJ_txt2nid(strindex); + if (nid != NID_undef) { + if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, + (unsigned char*)Z_STRVAL_PP(item), -1, -1, 0)) + { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "dn: add_entry_by_NID %d -> %s (failed; check error" + " queue and value of string_mask OpenSSL option " + "if illegal characters are reported)", + nid, Z_STRVAL_PP(item)); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "dn: %s is not a recognized name", strindex); + } + } + zend_hash_move_forward_ex(HASH_OF(dn), &hpos); + } + + /* Finally apply defaults from config file */ + for(i = 0; i < sk_CONF_VALUE_num(dn_sk); i++) { + int len; + char buffer[200 + 1]; /*200 + \0 !*/ + + v = sk_CONF_VALUE_value(dn_sk, i); + type = v->name; + + len = strlen(type); + if (len < sizeof("_default")) { + continue; + } + len -= sizeof("_default") - 1; + if (strcmp("_default", type + len) != 0) { + continue; + } + if (len > 200) { + len = 200; + } + memcpy(buffer, type, len); + buffer[len] = '\0'; + type = buffer; + + /* Skip past any leading X. X: X, etc to allow for multiple + * instances */ + for (str = type; *str; str++) { + if (*str == ':' || *str == ',' || *str == '.') { + str++; + if (*str) { + type = str; + } + break; + } + } + /* if it is already set, skip this */ + nid = OBJ_txt2nid(type); + if (X509_NAME_get_index_by_NID(subj, nid, -1) >= 0) { + continue; + } + if (!X509_NAME_add_entry_by_txt(subj, type, MBSTRING_UTF8, (unsigned char*)v->value, -1, -1, 0)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "add_entry_by_txt %s -> %s (failed)", type, v->value); + return FAILURE; + } + if (!X509_NAME_entry_count(subj)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "no objects specified in config file"); + return FAILURE; + } + } + if (attribs) { + zend_hash_internal_pointer_reset_ex(HASH_OF(attribs), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(attribs), (void**)&item, &hpos) == SUCCESS) { + char *strindex = NULL; + uint strindexlen; + ulong intindex; + + zend_hash_get_current_key_ex(HASH_OF(attribs), &strindex, &strindexlen, &intindex, 0, &hpos); + convert_to_string_ex(item); + + if (strindex) { + int nid; + + nid = OBJ_txt2nid(strindex); + if (nid != NID_undef) { + if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, (unsigned char*)Z_STRVAL_PP(item), -1, -1, 0)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "attribs: add_entry_by_NID %d -> %s (failed)", nid, Z_STRVAL_PP(item)); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "dn: %s is not a recognized name", strindex); + } + } + zend_hash_move_forward_ex(HASH_OF(attribs), &hpos); + } + for (i = 0; i < sk_CONF_VALUE_num(attr_sk); i++) { + v = sk_CONF_VALUE_value(attr_sk, i); + /* if it is already set, skip this */ + nid = OBJ_txt2nid(v->name); + if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { + continue; + } + if (!X509_REQ_add1_attr_by_txt(csr, v->name, MBSTRING_UTF8, (unsigned char*)v->value, -1)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "add1_attr_by_txt %s -> %s (failed; check error queue " + "and value of string_mask OpenSSL option if illegal " + "characters are reported)", + v->name, v->value); + return FAILURE; + } + } + } + } + + X509_REQ_set_pubkey(csr, req->priv_key); + return SUCCESS; +} +/* }}} */ + +/* {{{ php_openssl_csr_from_zval */ +static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_DC) +{ + X509_REQ * csr = NULL; + char * filename = NULL; + BIO * in; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_RESOURCE) { + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509 CSR", &type, 1, le_csr); + if (what) { + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + return (X509_REQ*)what; + } + return NULL; + } else if (Z_TYPE_PP(val) != IS_STRING) { + return NULL; + } + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); + } + if (filename) { + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return NULL; + } + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + csr = PEM_read_bio_X509_REQ(in, NULL,NULL,NULL); + BIO_free(in); + + return csr; +} +/* }}} */ + +/* {{{ proto bool openssl_csr_export_to_file(resource csr, string outfilename [, bool notext=true]) + Exports a CSR to file */ +PHP_FUNCTION(openssl_csr_export_to_file) +{ + X509_REQ * csr; + zval * zcsr = NULL; + zend_bool notext = 1; + char * filename = NULL; int filename_len; + BIO * bio_out; + long csr_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp|b", &zcsr, &filename, &filename_len, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + csr = php_openssl_csr_from_zval(&zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + return; + } + + bio_out = BIO_new_file(filename, "w"); + if (bio_out) { + if (!notext) { + X509_REQ_print(bio_out, csr); + } + PEM_write_bio_X509_REQ(bio_out, csr); + RETVAL_TRUE; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening file %s", filename); + } + + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto bool openssl_csr_export(resource csr, string &out [, bool notext=true]) + Exports a CSR to file or a var */ +PHP_FUNCTION(openssl_csr_export) +{ + X509_REQ * csr; + zval * zcsr = NULL, *zout=NULL; + zend_bool notext = 1; + BIO * bio_out; + + long csr_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz|b", &zcsr, &zout, ¬ext) == FAILURE) { + return; + } + RETVAL_FALSE; + + csr = php_openssl_csr_from_zval(&zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + + /* export to a var */ + + bio_out = BIO_new(BIO_s_mem()); + if (!notext) { + X509_REQ_print(bio_out, csr); + } + + if (PEM_write_bio_X509_REQ(bio_out, csr)) { + BUF_MEM *bio_buf; + + BIO_get_mem_ptr(bio_out, &bio_buf); + zval_dtor(zout); + ZVAL_STRINGL(zout, bio_buf->data, bio_buf->length, 1); + + RETVAL_TRUE; + } + + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + BIO_free(bio_out); +} +/* }}} */ + +/* {{{ proto resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, long days [, array config_args [, long serial]]) + Signs a cert with another CERT */ +PHP_FUNCTION(openssl_csr_sign) +{ + zval ** zcert = NULL, **zcsr, **zpkey, *args = NULL; + long num_days; + long serial = 0L; + X509 * cert = NULL, *new_cert = NULL; + X509_REQ * csr; + EVP_PKEY * key = NULL, *priv_key = NULL; + long csr_resource, certresource = 0, keyresource = -1; + int i; + struct php_x509_request req; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ!Zl|a!l", &zcsr, &zcert, &zpkey, &num_days, &args, &serial) == FAILURE) + return; + + RETVAL_FALSE; + PHP_SSL_REQ_INIT(&req); + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + if (csr == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get CSR from parameter 1"); + return; + } + if (zcert) { + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 2"); + goto cleanup; + } + } + priv_key = php_openssl_evp_from_zval(zpkey, 0, "", 1, &keyresource TSRMLS_CC); + if (priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get private key from parameter 3"); + goto cleanup; + } + if (cert && !X509_check_private_key(cert, priv_key)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key does not correspond to signing cert"); + goto cleanup; + } + + if (PHP_SSL_REQ_PARSE(&req, args) == FAILURE) { + goto cleanup; + } + /* Check that the request matches the signature */ + key = X509_REQ_get_pubkey(csr); + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error unpacking public key"); + goto cleanup; + } + i = X509_REQ_verify(csr, key); + + if (i < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Signature verification problems"); + goto cleanup; + } + else if (i == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Signature did not match the certificate request"); + goto cleanup; + } + + /* Now we can get on with it */ + + new_cert = X509_new(); + if (new_cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "No memory"); + goto cleanup; + } + /* Version 3 cert */ + if (!X509_set_version(new_cert, 2)) + goto cleanup; + + ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); + + X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); + + if (cert == NULL) { + cert = new_cert; + } + if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { + goto cleanup; + } + X509_gmtime_adj(X509_get_notBefore(new_cert), 0); + X509_gmtime_adj(X509_get_notAfter(new_cert), (long)60*60*24*num_days); + i = X509_set_pubkey(new_cert, key); + if (!i) { + goto cleanup; + } + if (req.extensions_section) { + X509V3_CTX ctx; + + X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); + X509V3_set_conf_lhash(&ctx, req.req_config); + if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) { + goto cleanup; + } + } + + /* Now sign it */ + if (!X509_sign(new_cert, priv_key, req.digest)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to sign it"); + goto cleanup; + } + + /* Succeeded; lets return the cert */ + RETVAL_RESOURCE(zend_list_insert(new_cert, le_x509 TSRMLS_CC)); + new_cert = NULL; + +cleanup: + + if (cert == new_cert) { + cert = NULL; + } + PHP_SSL_REQ_DISPOSE(&req); + + if (keyresource == -1 && priv_key) { + EVP_PKEY_free(priv_key); + } + if (key) { + EVP_PKEY_free(key); + } + if (csr_resource == -1 && csr) { + X509_REQ_free(csr); + } + if (certresource == -1 && cert) { + X509_free(cert); + } + if (new_cert) { + X509_free(new_cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array configargs [, array extraattribs]]) + Generates a privkey and CSR */ +PHP_FUNCTION(openssl_csr_new) +{ + struct php_x509_request req; + zval * args = NULL, * dn, *attribs = NULL; + zval * out_pkey; + X509_REQ * csr = NULL; + int we_made_the_key = 1; + long key_resource; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "az|a!a!", &dn, &out_pkey, &args, &attribs) == FAILURE) { + return; + } + RETVAL_FALSE; + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + /* Generate or use a private key */ + if (Z_TYPE_P(out_pkey) != IS_NULL) { + req.priv_key = php_openssl_evp_from_zval(&out_pkey, 0, NULL, 0, &key_resource TSRMLS_CC); + if (req.priv_key != NULL) { + we_made_the_key = 0; + } + } + if (req.priv_key == NULL) { + php_openssl_generate_private_key(&req TSRMLS_CC); + } + if (req.priv_key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to generate a private key"); + } else { + csr = X509_REQ_new(); + if (csr) { + if (php_openssl_make_REQ(&req, csr, dn, attribs TSRMLS_CC) == SUCCESS) { + X509V3_CTX ext_ctx; + + X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, 0); + X509V3_set_conf_lhash(&ext_ctx, req.req_config); + + /* Add extensions */ + if (req.request_extensions_section && !X509V3_EXT_REQ_add_conf(req.req_config, + &ext_ctx, req.request_extensions_section, csr)) + { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error loading extension section %s", req.request_extensions_section); + } else { + RETVAL_TRUE; + + if (X509_REQ_sign(csr, req.priv_key, req.digest)) { + RETVAL_RESOURCE(zend_list_insert(csr, le_csr TSRMLS_CC)); + csr = NULL; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error signing request"); + } + + if (we_made_the_key) { + /* and a resource for the private key */ + zval_dtor(out_pkey); + ZVAL_RESOURCE(out_pkey, zend_list_insert(req.priv_key, le_key TSRMLS_CC)); + req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ + } else if (key_resource != -1) { + req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */ + } + } + } + else { + if (!we_made_the_key) { + /* if we have not made the key we are not supposed to zap it by calling dispose! */ + req.priv_key = NULL; + } + } + } + } + } + if (csr) { + X509_REQ_free(csr); + } + PHP_SSL_REQ_DISPOSE(&req); +} +/* }}} */ + +/* {{{ proto mixed openssl_csr_get_subject(mixed csr) + Returns the subject of a CERT or FALSE on error */ +PHP_FUNCTION(openssl_csr_get_subject) +{ + zval ** zcsr; + zend_bool use_shortnames = 1; + long csr_resource; + X509_NAME * subject; + X509_REQ * csr; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcsr, &use_shortnames) == FAILURE) { + return; + } + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + + if (csr == NULL) { + RETURN_FALSE; + } + + subject = X509_REQ_get_subject_name(csr); + + array_init(return_value); + add_assoc_name_entry(return_value, NULL, subject, use_shortnames TSRMLS_CC); + return; +} +/* }}} */ + +/* {{{ proto mixed openssl_csr_get_public_key(mixed csr) + Returns the subject of a CERT or FALSE on error */ +PHP_FUNCTION(openssl_csr_get_public_key) +{ + zval ** zcsr; + zend_bool use_shortnames = 1; + long csr_resource; + + X509_REQ * csr; + EVP_PKEY *tpubkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcsr, &use_shortnames) == FAILURE) { + return; + } + + csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRMLS_CC); + + if (csr == NULL) { + RETURN_FALSE; + } + + tpubkey=X509_REQ_get_pubkey(csr); + RETVAL_RESOURCE(zend_list_insert(tpubkey, le_key TSRMLS_CC)); + return; +} +/* }}} */ + +/* }}} */ + +/* {{{ EVP Public/Private key functions */ + +/* {{{ php_openssl_evp_from_zval + Given a zval, coerce it into a EVP_PKEY object. + It can be: + 1. private key resource from openssl_get_privatekey() + 2. X509 resource -> public key will be extracted from it + 3. if it starts with file:// interpreted as path to key file + 4. interpreted as the data from the cert/key file and interpreted in same way as openssl_get_privatekey() + 5. an array(0 => [items 2..4], 1 => passphrase) + 6. if val is a string (possibly starting with file:///) and it is not an X509 certificate, then interpret as public key + NOTE: If you are requesting a private key but have not specified a passphrase, you should use an + empty string rather than NULL for the passphrase - NULL causes a passphrase prompt to be emitted in + the Apache error log! +*/ +static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int makeresource, long * resourceval TSRMLS_DC) +{ + EVP_PKEY * key = NULL; + X509 * cert = NULL; + int free_cert = 0; + long cert_res = -1; + char * filename = NULL; + zval tmp; + + Z_TYPE(tmp) = IS_NULL; + +#define TMP_CLEAN \ + if (Z_TYPE(tmp) == IS_STRING) {\ + zval_dtor(&tmp); \ + } \ + return NULL; + + if (resourceval) { + *resourceval = -1; + } + if (Z_TYPE_PP(val) == IS_ARRAY) { + zval ** zphrase; + + /* get passphrase */ + + if (zend_hash_index_find(HASH_OF(*val), 1, (void **)&zphrase) == FAILURE) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key array must be of the form array(0 => key, 1 => phrase)"); + return NULL; + } + + if (Z_TYPE_PP(zphrase) == IS_STRING) { + passphrase = Z_STRVAL_PP(zphrase); + } else { + tmp = **zphrase; + zval_copy_ctor(&tmp); + convert_to_string(&tmp); + passphrase = Z_STRVAL(tmp); + } + + /* now set val to be the key param and continue */ + if (zend_hash_index_find(HASH_OF(*val), 0, (void **)&val) == FAILURE) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key array must be of the form array(0 => key, 1 => phrase)"); + TMP_CLEAN; + } + } + + if (Z_TYPE_PP(val) == IS_RESOURCE) { + void * what; + int type; + + what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509/key", &type, 2, le_x509, le_key); + if (!what) { + TMP_CLEAN; + } + if (resourceval) { + *resourceval = Z_LVAL_PP(val); + } + if (type == le_x509) { + /* extract key from cert, depending on public_key param */ + cert = (X509*)what; + free_cert = 0; + } else if (type == le_key) { + int is_priv; + + is_priv = php_openssl_is_private_key((EVP_PKEY*)what TSRMLS_CC); + + /* check whether it is actually a private key if requested */ + if (!public_key && !is_priv) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param is a public key"); + TMP_CLEAN; + } + + if (public_key && is_priv) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Don't know how to get public key from this private key"); + TMP_CLEAN; + } else { + if (Z_TYPE(tmp) == IS_STRING) { + zval_dtor(&tmp); + } + /* got the key - return it */ + return (EVP_PKEY*)what; + } + } else { + /* other types could be used here - eg: file pointers and read in the data from them */ + TMP_CLEAN; + } + } else { + /* force it to be a string and check if it refers to a file */ + /* passing non string values leaks, object uses toString, it returns NULL + * See bug38255.phpt + */ + if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { + TMP_CLEAN; + } + convert_to_string_ex(val); + + if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { + filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); + } + /* it's an X509 file/cert of some kind, and we need to extract the data from that */ + if (public_key) { + cert = php_openssl_x509_from_zval(val, 0, &cert_res TSRMLS_CC); + free_cert = (cert_res == -1); + /* actual extraction done later */ + if (!cert) { + /* not a X509 certificate, try to retrieve public key */ + BIO* in; + if (filename) { + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + if (in == NULL) { + TMP_CLEAN; + } + key = PEM_read_bio_PUBKEY(in, NULL,NULL, NULL); + BIO_free(in); + } + } else { + /* we want the private key */ + BIO *in; + + if (filename) { + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + TMP_CLEAN; + } + in = BIO_new_file(filename, "r"); + } else { + in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); + } + + if (in == NULL) { + TMP_CLEAN; + } + key = PEM_read_bio_PrivateKey(in, NULL,NULL, passphrase); + BIO_free(in); + } + } + + if (public_key && cert && key == NULL) { + /* extract public key from X509 cert */ + key = (EVP_PKEY *) X509_get_pubkey(cert); + } + + if (free_cert && cert) { + X509_free(cert); + } + if (key && makeresource && resourceval) { + *resourceval = ZEND_REGISTER_RESOURCE(NULL, key, le_key); + } + if (Z_TYPE(tmp) == IS_STRING) { + zval_dtor(&tmp); + } + return key; +} +/* }}} */ + +/* {{{ php_openssl_generate_private_key */ +static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req TSRMLS_DC) +{ + char * randfile = NULL; + int egdsocket, seeded; + EVP_PKEY * return_val = NULL; + + if (req->priv_key_bits < MIN_KEY_LENGTH) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "private key length is too short; it needs to be at least %d bits, not %d", + MIN_KEY_LENGTH, req->priv_key_bits); + return NULL; + } + + randfile = CONF_get_string(req->req_config, req->section_name, "RANDFILE"); + php_openssl_load_rand_file(randfile, &egdsocket, &seeded TSRMLS_CC); + + if ((req->priv_key = EVP_PKEY_new()) != NULL) { + switch(req->priv_key_type) { + case OPENSSL_KEYTYPE_RSA: + PHP_OPENSSL_RAND_ADD_TIME(); + if (EVP_PKEY_assign_RSA(req->priv_key, RSA_generate_key(req->priv_key_bits, 0x10001, NULL, NULL))) { + return_val = req->priv_key; + } + break; +#if !defined(NO_DSA) && defined(HAVE_DSA_DEFAULT_METHOD) + case OPENSSL_KEYTYPE_DSA: + PHP_OPENSSL_RAND_ADD_TIME(); + { + DSA *dsapar = DSA_generate_parameters(req->priv_key_bits, NULL, 0, NULL, NULL, NULL, NULL); + if (dsapar) { + DSA_set_method(dsapar, DSA_get_default_method()); + if (DSA_generate_key(dsapar)) { + if (EVP_PKEY_assign_DSA(req->priv_key, dsapar)) { + return_val = req->priv_key; + } + } else { + DSA_free(dsapar); + } + } + } + break; +#endif +#if !defined(NO_DH) + case OPENSSL_KEYTYPE_DH: + PHP_OPENSSL_RAND_ADD_TIME(); + { + DH *dhpar = DH_generate_parameters(req->priv_key_bits, 2, NULL, NULL); + int codes = 0; + + if (dhpar) { + DH_set_method(dhpar, DH_get_default_method()); + if (DH_check(dhpar, &codes) && codes == 0 && DH_generate_key(dhpar)) { + if (EVP_PKEY_assign_DH(req->priv_key, dhpar)) { + return_val = req->priv_key; + } + } else { + DH_free(dhpar); + } + } + } + break; +#endif + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unsupported private key type"); + } + } + + php_openssl_write_rand_file(randfile, egdsocket, seeded); + + if (return_val == NULL) { + EVP_PKEY_free(req->priv_key); + req->priv_key = NULL; + return NULL; + } + + return return_val; +} +/* }}} */ + +/* {{{ php_openssl_is_private_key + Check whether the supplied key is a private key by checking if the secret prime factors are set */ +static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) +{ + assert(pkey != NULL); + + switch (pkey->type) { +#ifndef NO_RSA + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + assert(pkey->pkey.rsa != NULL); + if (pkey->pkey.rsa != NULL && (NULL == pkey->pkey.rsa->p || NULL == pkey->pkey.rsa->q)) { + return 0; + } + break; +#endif +#ifndef NO_DSA + case EVP_PKEY_DSA: + case EVP_PKEY_DSA1: + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: + assert(pkey->pkey.dsa != NULL); + + if (NULL == pkey->pkey.dsa->p || NULL == pkey->pkey.dsa->q || NULL == pkey->pkey.dsa->priv_key){ + return 0; + } + break; +#endif +#ifndef NO_DH + case EVP_PKEY_DH: + assert(pkey->pkey.dh != NULL); + + if (NULL == pkey->pkey.dh->p || NULL == pkey->pkey.dh->priv_key) { + return 0; + } + break; +#endif +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + assert(pkey->pkey.ec != NULL); + + if ( NULL == EC_KEY_get0_private_key(pkey->pkey.ec)) { + return 0; + } + break; +#endif + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + break; + } + return 1; +} +/* }}} */ + +#define OPENSSL_PKEY_GET_BN(_type, _name) do { \ + if (pkey->pkey._type->_name != NULL) { \ + int len = BN_num_bytes(pkey->pkey._type->_name); \ + char *str = emalloc(len + 1); \ + BN_bn2bin(pkey->pkey._type->_name, (unsigned char*)str); \ + str[len] = 0; \ + add_assoc_stringl(_type, #_name, str, len, 0); \ + } \ + } while (0) + +#define OPENSSL_PKEY_SET_BN(_ht, _type, _name) do { \ + zval **bn; \ + if (zend_hash_find(_ht, #_name, sizeof(#_name), (void**)&bn) == SUCCESS && \ + Z_TYPE_PP(bn) == IS_STRING) { \ + _type->_name = BN_bin2bn( \ + (unsigned char*)Z_STRVAL_PP(bn), \ + Z_STRLEN_PP(bn), NULL); \ + } \ + } while (0); + +/* {{{ php_openssl_pkey_init_dsa */ +zend_bool php_openssl_pkey_init_dsa(DSA *dsa) +{ + if (!dsa->p || !dsa->q || !dsa->g) { + return 0; + } + if (dsa->priv_key || dsa->pub_key) { + return 1; + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DSA_generate_key(dsa)) { + return 0; + } + /* if BN_mod_exp return -1, then DSA_generate_key succeed for failed key + * so we need to double check that public key is created */ + if (!dsa->pub_key || BN_is_zero(dsa->pub_key)) { + return 0; + } + /* all good */ + return 1; +} +/* }}} */ + +/* {{{ php_openssl_pkey_init_dh */ +zend_bool php_openssl_pkey_init_dh(DH *dh) +{ + if (!dh->p || !dh->g) { + return 0; + } + if (dh->pub_key) { + return 1; + } + PHP_OPENSSL_RAND_ADD_TIME(); + if (!DH_generate_key(dh)) { + return 0; + } + /* all good */ + return 1; +} +/* }}} */ + +/* {{{ proto resource openssl_pkey_new([array configargs]) + Generates a new private key */ +PHP_FUNCTION(openssl_pkey_new) +{ + struct php_x509_request req; + zval * args = NULL; + zval **data; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a!", &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + if (args && Z_TYPE_P(args) == IS_ARRAY) { + EVP_PKEY *pkey; + + if (zend_hash_find(Z_ARRVAL_P(args), "rsa", sizeof("rsa"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + RSA *rsa = RSA_new(); + if (rsa) { + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, n); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, e); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, d); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, p); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, q); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, dmp1); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, dmq1); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, iqmp); + if (rsa->n && rsa->d) { + if (EVP_PKEY_assign_RSA(pkey, rsa)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + } + RSA_free(rsa); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } else if (zend_hash_find(Z_ARRVAL_P(args), "dsa", sizeof("dsa"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + DSA *dsa = DSA_new(); + if (dsa) { + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, p); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, q); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, g); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, priv_key); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, pub_key); + if (php_openssl_pkey_init_dsa(dsa)) { + if (EVP_PKEY_assign_DSA(pkey, dsa)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + } + DSA_free(dsa); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } else if (zend_hash_find(Z_ARRVAL_P(args), "dh", sizeof("dh"), (void**)&data) == SUCCESS && + Z_TYPE_PP(data) == IS_ARRAY) { + pkey = EVP_PKEY_new(); + if (pkey) { + DH *dh = DH_new(); + if (dh) { + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, p); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, g); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, priv_key); + OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, pub_key); + if (php_openssl_pkey_init_dh(dh)) { + if (EVP_PKEY_assign_DH(pkey, dh)) { + RETURN_RESOURCE(zend_list_insert(pkey, le_key TSRMLS_CC)); + } + } + DH_free(dh); + } + EVP_PKEY_free(pkey); + } + RETURN_FALSE; + } + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) + { + if (php_openssl_generate_private_key(&req TSRMLS_CC)) { + /* pass back a key resource */ + RETVAL_RESOURCE(zend_list_insert(req.priv_key, le_key TSRMLS_CC)); + /* make sure the cleanup code doesn't zap it! */ + req.priv_key = NULL; + } + } + PHP_SSL_REQ_DISPOSE(&req); +} +/* }}} */ + +/* {{{ proto bool openssl_pkey_export_to_file(mixed key, string outfilename [, string passphrase, array config_args) + Gets an exportable representation of a key into a file */ +PHP_FUNCTION(openssl_pkey_export_to_file) +{ + struct php_x509_request req; + zval ** zpkey, * args = NULL; + char * passphrase = NULL; + int passphrase_len = 0; + char * filename = NULL; + int filename_len = 0; + long key_resource = -1; + int pem_write = 0; + EVP_PKEY * key; + BIO * bio_out = NULL; + const EVP_CIPHER * cipher; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zp|s!a!", &zpkey, &filename, &filename_len, &passphrase, &passphrase_len, &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); + + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get key from parameter 1"); + RETURN_FALSE; + } + + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + RETURN_FALSE; + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + bio_out = BIO_new_file(filename, "w"); + + if (passphrase && req.priv_key_encrypt) { + if (req.priv_key_encrypt_cipher) { + cipher = req.priv_key_encrypt_cipher; + } else { + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); + } + } else { + cipher = NULL; + } + + switch (EVP_PKEY_type(key->type)) { +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get1_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; +#endif + default: + pem_write = PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; + } + + if (pem_write) { + /* Success! + * If returning the output as a string, do so now */ + RETVAL_TRUE; + } + } + PHP_SSL_REQ_DISPOSE(&req); + + if (key_resource == -1 && key) { + EVP_PKEY_free(key); + } + if (bio_out) { + BIO_free(bio_out); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkey_export(mixed key, &mixed out [, string passphrase [, array config_args]]) + Gets an exportable representation of a key into a string or file */ +PHP_FUNCTION(openssl_pkey_export) +{ + struct php_x509_request req; + zval ** zpkey, * args = NULL, *out; + char * passphrase = NULL; + int passphrase_len = 0; + long key_resource = -1; + int pem_write = 0; + EVP_PKEY * key; + BIO * bio_out = NULL; + const EVP_CIPHER * cipher; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zz|s!a!", &zpkey, &out, &passphrase, &passphrase_len, &args) == FAILURE) { + return; + } + RETVAL_FALSE; + + key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); + + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get key from parameter 1"); + RETURN_FALSE; + } + + PHP_SSL_REQ_INIT(&req); + + if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) { + bio_out = BIO_new(BIO_s_mem()); + + if (passphrase && req.priv_key_encrypt) { + if (req.priv_key_encrypt_cipher) { + cipher = req.priv_key_encrypt_cipher; + } else { + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); + } + } else { + cipher = NULL; + } + + switch (EVP_PKEY_type(key->type)) { +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + pem_write = PEM_write_bio_ECPrivateKey(bio_out, EVP_PKEY_get1_EC_KEY(key), cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; +#endif + default: + pem_write = PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NULL, NULL); + break; + } + + if (pem_write) { + /* Success! + * If returning the output as a string, do so now */ + + char * bio_mem_ptr; + long bio_mem_len; + RETVAL_TRUE; + + bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); + zval_dtor(out); + ZVAL_STRINGL(out, bio_mem_ptr, bio_mem_len, 1); + } + } + PHP_SSL_REQ_DISPOSE(&req); + + if (key_resource == -1 && key) { + EVP_PKEY_free(key); + } + if (bio_out) { + BIO_free(bio_out); + } +} +/* }}} */ + +/* {{{ proto int openssl_pkey_get_public(mixed cert) + Gets public key from X.509 certificate */ +PHP_FUNCTION(openssl_pkey_get_public) +{ + zval **cert; + EVP_PKEY *pkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &cert) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + pkey = php_openssl_evp_from_zval(cert, 1, NULL, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (pkey == NULL) { + RETURN_FALSE; + } + zend_list_addref(Z_LVAL_P(return_value)); +} +/* }}} */ + +/* {{{ proto void openssl_pkey_free(int key) + Frees a key */ +PHP_FUNCTION(openssl_pkey_free) +{ + zval *key; + EVP_PKEY *pkey; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + zend_list_delete(Z_LVAL_P(key)); +} +/* }}} */ + +/* {{{ proto int openssl_pkey_get_private(string key [, string passphrase]) + Gets private keys */ +PHP_FUNCTION(openssl_pkey_get_private) +{ + zval **cert; + EVP_PKEY *pkey; + char * passphrase = ""; + int passphrase_len = sizeof("")-1; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|s", &cert, &passphrase, &passphrase_len) == FAILURE) { + return; + } + Z_TYPE_P(return_value) = IS_RESOURCE; + pkey = php_openssl_evp_from_zval(cert, 0, passphrase, 1, &Z_LVAL_P(return_value) TSRMLS_CC); + + if (pkey == NULL) { + RETURN_FALSE; + } + zend_list_addref(Z_LVAL_P(return_value)); +} + +/* }}} */ + +/* {{{ proto resource openssl_pkey_get_details(resource key) + returns an array with the key details (bits, pkey, type)*/ +PHP_FUNCTION(openssl_pkey_get_details) +{ + zval *key; + EVP_PKEY *pkey; + BIO *out; + unsigned int pbio_len; + char *pbio; + long ktype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + if (!pkey) { + RETURN_FALSE; + } + out = BIO_new(BIO_s_mem()); + PEM_write_bio_PUBKEY(out, pkey); + pbio_len = BIO_get_mem_data(out, &pbio); + + array_init(return_value); + add_assoc_long(return_value, "bits", EVP_PKEY_bits(pkey)); + add_assoc_stringl(return_value, "key", pbio, pbio_len, 1); + /*TODO: Use the real values once the openssl constants are used + * See the enum at the top of this file + */ + switch (EVP_PKEY_type(pkey->type)) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + ktype = OPENSSL_KEYTYPE_RSA; + + if (pkey->pkey.rsa != NULL) { + zval *rsa; + + ALLOC_INIT_ZVAL(rsa); + array_init(rsa); + OPENSSL_PKEY_GET_BN(rsa, n); + OPENSSL_PKEY_GET_BN(rsa, e); + OPENSSL_PKEY_GET_BN(rsa, d); + OPENSSL_PKEY_GET_BN(rsa, p); + OPENSSL_PKEY_GET_BN(rsa, q); + OPENSSL_PKEY_GET_BN(rsa, dmp1); + OPENSSL_PKEY_GET_BN(rsa, dmq1); + OPENSSL_PKEY_GET_BN(rsa, iqmp); + add_assoc_zval(return_value, "rsa", rsa); + } + + break; + case EVP_PKEY_DSA: + case EVP_PKEY_DSA2: + case EVP_PKEY_DSA3: + case EVP_PKEY_DSA4: + ktype = OPENSSL_KEYTYPE_DSA; + + if (pkey->pkey.dsa != NULL) { + zval *dsa; + + ALLOC_INIT_ZVAL(dsa); + array_init(dsa); + OPENSSL_PKEY_GET_BN(dsa, p); + OPENSSL_PKEY_GET_BN(dsa, q); + OPENSSL_PKEY_GET_BN(dsa, g); + OPENSSL_PKEY_GET_BN(dsa, priv_key); + OPENSSL_PKEY_GET_BN(dsa, pub_key); + add_assoc_zval(return_value, "dsa", dsa); + } + break; + case EVP_PKEY_DH: + + ktype = OPENSSL_KEYTYPE_DH; + + if (pkey->pkey.dh != NULL) { + zval *dh; + + ALLOC_INIT_ZVAL(dh); + array_init(dh); + OPENSSL_PKEY_GET_BN(dh, p); + OPENSSL_PKEY_GET_BN(dh, g); + OPENSSL_PKEY_GET_BN(dh, priv_key); + OPENSSL_PKEY_GET_BN(dh, pub_key); + add_assoc_zval(return_value, "dh", dh); + } + + break; +#ifdef HAVE_EVP_PKEY_EC + case EVP_PKEY_EC: + ktype = OPENSSL_KEYTYPE_EC; + if (pkey->pkey.ec != NULL) { + zval *ec; + const EC_GROUP *ec_group; + int nid; + char *crv_sn; + ASN1_OBJECT *obj; + // openssl recommends a buffer length of 80 + char oir_buf[80]; + + ec_group = EC_KEY_get0_group(EVP_PKEY_get1_EC_KEY(pkey)); + + // Curve nid (numerical identifier) used for ASN1 mapping + nid = EC_GROUP_get_curve_name(ec_group); + if (nid == NID_undef) { + break; + } + ALLOC_INIT_ZVAL(ec); + array_init(ec); + + // Short object name + crv_sn = (char*) OBJ_nid2sn(nid); + if (crv_sn != NULL) { + add_assoc_string(ec, "curve_name", crv_sn, 1); + } + + obj = OBJ_nid2obj(nid); + if (obj != NULL) { + int oir_len = OBJ_obj2txt(oir_buf, sizeof(oir_buf), obj, 1); + add_assoc_stringl(ec, "curve_oid", (char*)oir_buf, oir_len, 1); + ASN1_OBJECT_free(obj); + } + + add_assoc_zval(return_value, "ec", ec); + } + break; +#endif + default: + ktype = -1; + break; + } + add_assoc_long(return_value, "type", ktype); + + BIO_free(out); +} +/* }}} */ + +/* }}} */ + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + +/* {{{ proto string openssl_pbkdf2(string password, string salt, long key_length, long iterations [, string digest_method = "sha1"]) + Generates a PKCS5 v2 PBKDF2 string, defaults to sha1 */ +PHP_FUNCTION(openssl_pbkdf2) +{ + long key_length = 0, iterations = 0; + char *password; int password_len; + char *salt; int salt_len; + char *method; int method_len = 0; + unsigned char *out_buffer; + + const EVP_MD *digest; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssll|s", + &password, &password_len, + &salt, &salt_len, + &key_length, &iterations, + &method, &method_len) == FAILURE) { + return; + } + + if (key_length <= 0 || key_length > INT_MAX) { + RETURN_FALSE; + } + + if (method_len) { + digest = EVP_get_digestbyname(method); + } else { + digest = EVP_sha1(); + } + + if (!digest) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + RETURN_FALSE; + } + + out_buffer = emalloc(key_length + 1); + out_buffer[key_length] = '\0'; + + if (PKCS5_PBKDF2_HMAC(password, password_len, (unsigned char *)salt, salt_len, iterations, digest, key_length, out_buffer) == 1) { + RETVAL_STRINGL((char *)out_buffer, key_length, 0); + } else { + efree(out_buffer); + RETURN_FALSE; + } +} +/* }}} */ + +#endif + +/* {{{ PKCS7 S/MIME functions */ + +/* {{{ proto bool openssl_pkcs7_verify(string filename, long flags [, string signerscerts [, array cainfo [, string extracerts [, string content]]]]) + Verifys that the data block is intact, the signer is who they say they are, and returns the CERTs of the signers */ +PHP_FUNCTION(openssl_pkcs7_verify) +{ + X509_STORE * store = NULL; + zval * cainfo = NULL; + STACK_OF(X509) *signers= NULL; + STACK_OF(X509) *others = NULL; + PKCS7 * p7 = NULL; + BIO * in = NULL, * datain = NULL, * dataout = NULL; + long flags = 0; + char * filename; int filename_len; + char * extracerts = NULL; int extracerts_len = 0; + char * signersfilename = NULL; int signersfilename_len = 0; + char * datafilename = NULL; int datafilename_len = 0; + + RETVAL_LONG(-1); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|papp", &filename, &filename_len, + &flags, &signersfilename, &signersfilename_len, &cainfo, + &extracerts, &extracerts_len, &datafilename, &datafilename_len) == FAILURE) { + return; + } + + if (extracerts) { + others = load_all_certs_from_file(extracerts); + if (others == NULL) { + goto clean_exit; + } + } + + flags = flags & ~PKCS7_DETACHED; + + store = setup_verify(cainfo TSRMLS_CC); + + if (!store) { + goto clean_exit; + } + if (php_openssl_open_base_dir_chk(filename TSRMLS_CC)) { + goto clean_exit; + } + + in = BIO_new_file(filename, (flags & PKCS7_BINARY) ? "rb" : "r"); + if (in == NULL) { + goto clean_exit; + } + p7 = SMIME_read_PKCS7(in, &datain); + if (p7 == NULL) { +#if DEBUG_SMIME + zend_printf("SMIME_read_PKCS7 failed\n"); +#endif + goto clean_exit; + } + + if (datafilename) { + + if (php_openssl_open_base_dir_chk(datafilename TSRMLS_CC)) { + goto clean_exit; + } + + dataout = BIO_new_file(datafilename, "w"); + if (dataout == NULL) { + goto clean_exit; + } + } +#if DEBUG_SMIME + zend_printf("Calling PKCS7 verify\n"); +#endif + + if (PKCS7_verify(p7, others, store, datain, dataout, flags)) { + + RETVAL_TRUE; + + if (signersfilename) { + BIO *certout; + + if (php_openssl_open_base_dir_chk(signersfilename TSRMLS_CC)) { + goto clean_exit; + } + + certout = BIO_new_file(signersfilename, "w"); + if (certout) { + int i; + signers = PKCS7_get0_signers(p7, NULL, flags); + + for(i = 0; i < sk_X509_num(signers); i++) { + PEM_write_bio_X509(certout, sk_X509_value(signers, i)); + } + BIO_free(certout); + sk_X509_free(signers); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "signature OK, but cannot open %s for writing", signersfilename); + RETVAL_LONG(-1); + } + } + goto clean_exit; + } else { + RETVAL_FALSE; + } +clean_exit: + X509_STORE_free(store); + BIO_free(datain); + BIO_free(in); + BIO_free(dataout); + PKCS7_free(p7); + sk_X509_free(others); +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_encrypt(string infile, string outfile, mixed recipcerts, array headers [, long flags [, long cipher]]) + Encrypts the message in the file named infile with the certificates in recipcerts and output the result to the file named outfile */ +PHP_FUNCTION(openssl_pkcs7_encrypt) +{ + zval ** zrecipcerts, * zheaders = NULL; + STACK_OF(X509) * recipcerts = NULL; + BIO * infile = NULL, * outfile = NULL; + long flags = 0; + PKCS7 * p7 = NULL; + HashPosition hpos; + zval ** zcertval; + X509 * cert; + const EVP_CIPHER *cipher = NULL; + long cipherid = PHP_OPENSSL_CIPHER_DEFAULT; + uint strindexlen; + ulong intindex; + char * strindex; + char * infilename = NULL; int infilename_len; + char * outfilename = NULL; int outfilename_len; + + RETVAL_FALSE; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZa!|ll", &infilename, &infilename_len, + &outfilename, &outfilename_len, &zrecipcerts, &zheaders, &flags, &cipherid) == FAILURE) + return; + + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + return; + } + + infile = BIO_new_file(infilename, "r"); + if (infile == NULL) { + goto clean_exit; + } + + outfile = BIO_new_file(outfilename, "w"); + if (outfile == NULL) { + goto clean_exit; + } + + recipcerts = sk_X509_new_null(); + + /* get certs */ + if (Z_TYPE_PP(zrecipcerts) == IS_ARRAY) { + zend_hash_internal_pointer_reset_ex(HASH_OF(*zrecipcerts), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(*zrecipcerts), (void**)&zcertval, &hpos) == SUCCESS) { + long certresource; + + cert = php_openssl_x509_from_zval(zcertval, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + /* we shouldn't free this particular cert, as it is a resource. + make a copy and push that on the stack instead */ + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(recipcerts, cert); + + zend_hash_move_forward_ex(HASH_OF(*zrecipcerts), &hpos); + } + } else { + /* a single certificate */ + long certresource; + + cert = php_openssl_x509_from_zval(zrecipcerts, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + goto clean_exit; + } + + if (certresource != -1) { + /* we shouldn't free this particular cert, as it is a resource. + make a copy and push that on the stack instead */ + cert = X509_dup(cert); + if (cert == NULL) { + goto clean_exit; + } + } + sk_X509_push(recipcerts, cert); + } + + /* sanity check the cipher */ + cipher = php_openssl_get_evp_cipher_from_algo(cipherid); + if (cipher == NULL) { + /* shouldn't happen */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to get cipher"); + goto clean_exit; + } + + p7 = PKCS7_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, flags); + + if (p7 == NULL) { + goto clean_exit; + } + + /* tack on extra headers */ + if (zheaders) { + zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&zcertval, &hpos) == SUCCESS) { + strindex = NULL; + zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(zcertval); + + if (strindex) { + BIO_printf(outfile, "%s: %s\n", strindex, Z_STRVAL_PP(zcertval)); + } else { + BIO_printf(outfile, "%s\n", Z_STRVAL_PP(zcertval)); + } + + zend_hash_move_forward_ex(HASH_OF(zheaders), &hpos); + } + } + + (void)BIO_reset(infile); + + /* write the encrypted data */ + SMIME_write_PKCS7(outfile, p7, infile, flags); + + RETVAL_TRUE; + +clean_exit: + PKCS7_free(p7); + BIO_free(infile); + BIO_free(outfile); + if (recipcerts) { + sk_X509_pop_free(recipcerts, X509_free); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_sign(string infile, string outfile, mixed signcert, mixed signkey, array headers [, long flags [, string extracertsfilename]]) + Signs the MIME message in the file named infile with signcert/signkey and output the result to file name outfile. headers lists plain text headers to exclude from the signed portion of the message, and should include to, from and subject as a minimum */ + +PHP_FUNCTION(openssl_pkcs7_sign) +{ + zval ** zcert, ** zprivkey, * zheaders; + zval ** hval; + X509 * cert = NULL; + EVP_PKEY * privkey = NULL; + long flags = PKCS7_DETACHED; + PKCS7 * p7 = NULL; + BIO * infile = NULL, * outfile = NULL; + STACK_OF(X509) *others = NULL; + long certresource = -1, keyresource = -1; + ulong intindex; + uint strindexlen; + HashPosition hpos; + char * strindex; + char * infilename; int infilename_len; + char * outfilename; int outfilename_len; + char * extracertsfilename = NULL; int extracertsfilename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZZa!|lp!", + &infilename, &infilename_len, &outfilename, &outfilename_len, + &zcert, &zprivkey, &zheaders, &flags, &extracertsfilename, + &extracertsfilename_len) == FAILURE) { + return; + } + + RETVAL_FALSE; + + if (extracertsfilename) { + others = load_all_certs_from_file(extracertsfilename); + if (others == NULL) { + goto clean_exit; + } + } + + privkey = php_openssl_evp_from_zval(zprivkey, 0, "", 0, &keyresource TSRMLS_CC); + if (privkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error getting private key"); + goto clean_exit; + } + + cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error getting cert"); + goto clean_exit; + } + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + goto clean_exit; + } + + infile = BIO_new_file(infilename, "r"); + if (infile == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening input file %s!", infilename); + goto clean_exit; + } + + outfile = BIO_new_file(outfilename, "w"); + if (outfile == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error opening output file %s!", outfilename); + goto clean_exit; + } + + p7 = PKCS7_sign(cert, privkey, others, infile, flags); + if (p7 == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "error creating PKCS7 structure!"); + goto clean_exit; + } + + (void)BIO_reset(infile); + + /* tack on extra headers */ + if (zheaders) { + zend_hash_internal_pointer_reset_ex(HASH_OF(zheaders), &hpos); + while(zend_hash_get_current_data_ex(HASH_OF(zheaders), (void**)&hval, &hpos) == SUCCESS) { + strindex = NULL; + zend_hash_get_current_key_ex(HASH_OF(zheaders), &strindex, &strindexlen, &intindex, 0, &hpos); + + convert_to_string_ex(hval); + + if (strindex) { + BIO_printf(outfile, "%s: %s\n", strindex, Z_STRVAL_PP(hval)); + } else { + BIO_printf(outfile, "%s\n", Z_STRVAL_PP(hval)); + } + zend_hash_move_forward_ex(HASH_OF(zheaders), &hpos); + } + } + /* write the signed data */ + SMIME_write_PKCS7(outfile, p7, infile, flags); + + RETVAL_TRUE; + +clean_exit: + PKCS7_free(p7); + BIO_free(infile); + BIO_free(outfile); + if (others) { + sk_X509_pop_free(others, X509_free); + } + if (privkey && keyresource == -1) { + EVP_PKEY_free(privkey); + } + if (cert && certresource == -1) { + X509_free(cert); + } +} +/* }}} */ + +/* {{{ proto bool openssl_pkcs7_decrypt(string infilename, string outfilename, mixed recipcert [, mixed recipkey]) + Decrypts the S/MIME message in the file name infilename and output the results to the file name outfilename. recipcert is a CERT for one of the recipients. recipkey specifies the private key matching recipcert, if recipcert does not include the key */ + +PHP_FUNCTION(openssl_pkcs7_decrypt) +{ + zval ** recipcert, ** recipkey = NULL; + X509 * cert = NULL; + EVP_PKEY * key = NULL; + long certresval, keyresval; + BIO * in = NULL, * out = NULL, * datain = NULL; + PKCS7 * p7 = NULL; + char * infilename; int infilename_len; + char * outfilename; int outfilename_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ppZ|Z", &infilename, &infilename_len, + &outfilename, &outfilename_len, &recipcert, &recipkey) == FAILURE) { + return; + } + + RETVAL_FALSE; + + cert = php_openssl_x509_from_zval(recipcert, 0, &certresval TSRMLS_CC); + if (cert == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to coerce parameter 3 to x509 cert"); + goto clean_exit; + } + + key = php_openssl_evp_from_zval(recipkey ? recipkey : recipcert, 0, "", 0, &keyresval TSRMLS_CC); + if (key == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to get private key"); + goto clean_exit; + } + + if (php_openssl_open_base_dir_chk(infilename TSRMLS_CC) || php_openssl_open_base_dir_chk(outfilename TSRMLS_CC)) { + goto clean_exit; + } + + in = BIO_new_file(infilename, "r"); + if (in == NULL) { + goto clean_exit; + } + out = BIO_new_file(outfilename, "w"); + if (out == NULL) { + goto clean_exit; + } + + p7 = SMIME_read_PKCS7(in, &datain); + + if (p7 == NULL) { + goto clean_exit; + } + if (PKCS7_decrypt(p7, key, cert, out, PKCS7_DETACHED)) { + RETVAL_TRUE; + } +clean_exit: + PKCS7_free(p7); + BIO_free(datain); + BIO_free(in); + BIO_free(out); + if (cert && certresval == -1) { + X509_free(cert); + } + if (key && keyresval == -1) { + EVP_PKEY_free(key); + } +} +/* }}} */ + +/* }}} */ + +/* {{{ proto bool openssl_private_encrypt(string data, string &crypted, mixed key [, int padding]) + Encrypts data with private key */ +PHP_FUNCTION(openssl_private_encrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + int successful = 0; + long keyresource = -1; + char * data; + int data_len; + long padding = RSA_PKCS1_PADDING; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key param is not a valid private key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + + switch (pkey->type) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_private_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, + pkey->pkey.rsa, + padding) == cryptedlen); + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + } + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + if (cryptedbuf) { + efree(cryptedbuf); + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto bool openssl_private_decrypt(string data, string &decrypted, mixed key [, int padding]) + Decrypts data with private key */ +PHP_FUNCTION(openssl_private_decrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + unsigned char *crypttemp; + int successful = 0; + long padding = RSA_PKCS1_PADDING; + long keyresource = -1; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid private key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + + switch (pkey->type) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_private_decrypt(data_len, + (unsigned char *)data, + crypttemp, + pkey->pkey.rsa, + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); + memcpy(cryptedbuf, crypttemp, cryptedlen); + successful = 1; + } + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + } + + efree(crypttemp); + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + if (cryptedbuf) { + efree(cryptedbuf); + } +} +/* }}} */ + +/* {{{ proto bool openssl_public_encrypt(string data, string &crypted, mixed key [, int padding]) + Encrypts data with public key */ +PHP_FUNCTION(openssl_public_encrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf; + int successful = 0; + long keyresource = -1; + long padding = RSA_PKCS1_PADDING; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) + return; + + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid public key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + cryptedbuf = emalloc(cryptedlen + 1); + + switch (pkey->type) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + successful = (RSA_public_encrypt(data_len, + (unsigned char *)data, + cryptedbuf, + pkey->pkey.rsa, + padding) == cryptedlen); + break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + + } + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + if (cryptedbuf) { + efree(cryptedbuf); + } +} +/* }}} */ + +/* {{{ proto bool openssl_public_decrypt(string data, string &crypted, resource key [, int padding]) + Decrypts data with public key */ +PHP_FUNCTION(openssl_public_decrypt) +{ + zval **key, *crypted; + EVP_PKEY *pkey; + int cryptedlen; + unsigned char *cryptedbuf = NULL; + unsigned char *crypttemp; + int successful = 0; + long keyresource = -1; + long padding = RSA_PKCS1_PADDING; + char * data; + int data_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &padding) == FAILURE) { + return; + } + RETVAL_FALSE; + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key parameter is not a valid public key"); + RETURN_FALSE; + } + + cryptedlen = EVP_PKEY_size(pkey); + crypttemp = emalloc(cryptedlen + 1); + + switch (pkey->type) { + case EVP_PKEY_RSA: + case EVP_PKEY_RSA2: + cryptedlen = RSA_public_decrypt(data_len, + (unsigned char *)data, + crypttemp, + pkey->pkey.rsa, + padding); + if (cryptedlen != -1) { + cryptedbuf = emalloc(cryptedlen + 1); + memcpy(cryptedbuf, crypttemp, cryptedlen); + successful = 1; + } + break; + + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "key type not supported in this PHP build!"); + + } + + efree(crypttemp); + + if (successful) { + zval_dtor(crypted); + cryptedbuf[cryptedlen] = '\0'; + ZVAL_STRINGL(crypted, (char *)cryptedbuf, cryptedlen, 0); + cryptedbuf = NULL; + RETVAL_TRUE; + } + + if (cryptedbuf) { + efree(cryptedbuf); + } + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto mixed openssl_error_string(void) + Returns a description of the last error, and alters the index of the error messages. Returns false when the are no more messages */ +PHP_FUNCTION(openssl_error_string) +{ + char buf[512]; + unsigned long val; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + val = ERR_get_error(); + if (val) { + RETURN_STRING(ERR_error_string(val, buf), 1); + } else { + RETURN_FALSE; + } +} +/* }}} */ + +/* {{{ proto bool openssl_sign(string data, &string signature, mixed key[, mixed method]) + Signs data */ +PHP_FUNCTION(openssl_sign) +{ + zval **key, *signature; + EVP_PKEY *pkey; + int siglen; + unsigned char *sigbuf; + long keyresource = -1; + char * data; + int data_len; + EVP_MD_CTX md_ctx; + zval *method = NULL; + long signature_algo = OPENSSL_ALGO_SHA1; + const EVP_MD *mdtype; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|z", &data, &data_len, &signature, &key, &method) == FAILURE) { + return; + } + pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param cannot be coerced into a private key"); + RETURN_FALSE; + } + + if (method == NULL || Z_TYPE_P(method) == IS_LONG) { + if (method != NULL) { + signature_algo = Z_LVAL_P(method); + } + mdtype = php_openssl_get_evp_md_from_algo(signature_algo); + } else if (Z_TYPE_P(method) == IS_STRING) { + mdtype = EVP_get_digestbyname(Z_STRVAL_P(method)); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + + siglen = EVP_PKEY_size(pkey); + sigbuf = emalloc(siglen + 1); + + EVP_SignInit(&md_ctx, mdtype); + EVP_SignUpdate(&md_ctx, data, data_len); + if (EVP_SignFinal (&md_ctx, sigbuf,(unsigned int *)&siglen, pkey)) { + zval_dtor(signature); + sigbuf[siglen] = '\0'; + ZVAL_STRINGL(signature, (char *)sigbuf, siglen, 0); + RETVAL_TRUE; + } else { + efree(sigbuf); + RETVAL_FALSE; + } + EVP_MD_CTX_cleanup(&md_ctx); + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } +} +/* }}} */ + +/* {{{ proto int openssl_verify(string data, string signature, mixed key[, mixed method]) + Verifys data */ +PHP_FUNCTION(openssl_verify) +{ + zval **key; + EVP_PKEY *pkey; + int err; + EVP_MD_CTX md_ctx; + const EVP_MD *mdtype; + long keyresource = -1; + char * data; int data_len; + char * signature; int signature_len; + zval *method = NULL; + long signature_algo = OPENSSL_ALGO_SHA1; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssZ|z", &data, &data_len, &signature, &signature_len, &key, &method) == FAILURE) { + return; + } + + if (method == NULL || Z_TYPE_P(method) == IS_LONG) { + if (method != NULL) { + signature_algo = Z_LVAL_P(method); + } + mdtype = php_openssl_get_evp_md_from_algo(signature_algo); + } else if (Z_TYPE_P(method) == IS_STRING) { + mdtype = EVP_get_digestbyname(Z_STRVAL_P(method)); + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + + pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); + if (pkey == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied key param cannot be coerced into a public key"); + RETURN_FALSE; + } + + EVP_VerifyInit (&md_ctx, mdtype); + EVP_VerifyUpdate (&md_ctx, data, data_len); + err = EVP_VerifyFinal (&md_ctx, (unsigned char *)signature, signature_len, pkey); + EVP_MD_CTX_cleanup(&md_ctx); + + if (keyresource == -1) { + EVP_PKEY_free(pkey); + } + RETURN_LONG(err); +} +/* }}} */ + +/* {{{ proto int openssl_seal(string data, &string sealdata, &array ekeys, array pubkeys) + Seals data */ +PHP_FUNCTION(openssl_seal) +{ + zval *pubkeys, **pubkey, *sealdata, *ekeys; + HashTable *pubkeysht; + HashPosition pos; + EVP_PKEY **pkeys; + long * key_resources; /* so we know what to cleanup */ + int i, len1, len2, *eksl, nkeys; + unsigned char *buf = NULL, **eks; + char * data; int data_len; + char *method =NULL; + int method_len = 0; + const EVP_CIPHER *cipher; + EVP_CIPHER_CTX ctx; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szza/|s", &data, &data_len, &sealdata, &ekeys, &pubkeys, &method, &method_len) == FAILURE) { + return; + } + + pubkeysht = HASH_OF(pubkeys); + nkeys = pubkeysht ? zend_hash_num_elements(pubkeysht) : 0; + if (!nkeys) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Fourth argument to openssl_seal() must be a non-empty array"); + RETURN_FALSE; + } + + if (method) { + cipher = EVP_get_cipherbyname(method); + if (!cipher) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm."); + RETURN_FALSE; + } + if (EVP_CIPHER_iv_length(cipher) > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Ciphers with modes requiring IV are not supported"); + RETURN_FALSE; + } + } else { + cipher = EVP_rc4(); + } + + pkeys = safe_emalloc(nkeys, sizeof(*pkeys), 0); + eksl = safe_emalloc(nkeys, sizeof(*eksl), 0); + eks = safe_emalloc(nkeys, sizeof(*eks), 0); + memset(eks, 0, sizeof(*eks) * nkeys); + key_resources = safe_emalloc(nkeys, sizeof(long), 0); + memset(key_resources, 0, sizeof(*key_resources) * nkeys); + + /* get the public keys we are using to seal this data */ + zend_hash_internal_pointer_reset_ex(pubkeysht, &pos); + i = 0; + while (zend_hash_get_current_data_ex(pubkeysht, (void **) &pubkey, + &pos) == SUCCESS) { + pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, &key_resources[i] TSRMLS_CC); + if (pkeys[i] == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "not a public key (%dth member of pubkeys)", i+1); + RETVAL_FALSE; + goto clean_exit; + } + eks[i] = emalloc(EVP_PKEY_size(pkeys[i]) + 1); + zend_hash_move_forward_ex(pubkeysht, &pos); + i++; + } + + if (!EVP_EncryptInit(&ctx,cipher,NULL,NULL)) { + RETVAL_FALSE; + EVP_CIPHER_CTX_cleanup(&ctx); + goto clean_exit; + } + +#if 0 + /* Need this if allow ciphers that require initialization vector */ + ivlen = EVP_CIPHER_CTX_iv_length(&ctx); + iv = ivlen ? emalloc(ivlen + 1) : NULL; +#endif + /* allocate one byte extra to make room for \0 */ + buf = emalloc(data_len + EVP_CIPHER_CTX_block_size(&ctx)); + EVP_CIPHER_CTX_cleanup(&ctx); + + if (EVP_SealInit(&ctx, cipher, eks, eksl, NULL, pkeys, nkeys) <= 0 || + !EVP_SealUpdate(&ctx, buf, &len1, (unsigned char *)data, data_len) || + !EVP_SealFinal(&ctx, buf + len1, &len2)) { + RETVAL_FALSE; + efree(buf); + EVP_CIPHER_CTX_cleanup(&ctx); + goto clean_exit; + } + + if (len1 + len2 > 0) { + zval_dtor(sealdata); + buf[len1 + len2] = '\0'; + buf = erealloc(buf, len1 + len2 + 1); + ZVAL_STRINGL(sealdata, (char *)buf, len1 + len2, 0); + + zval_dtor(ekeys); + array_init(ekeys); + for (i=0; iname, 1); +} +/* }}} */ + +static void openssl_add_method(const OBJ_NAME *name, void *arg) /* {{{ */ +{ + if (name->alias == 0) { + add_next_index_string((zval*)arg, (char*)name->name, 1); + } +} +/* }}} */ + +/* {{{ proto array openssl_get_md_methods([bool aliases = false]) + Return array of available digest methods */ +PHP_FUNCTION(openssl_get_md_methods) +{ + zend_bool aliases = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &aliases) == FAILURE) { + return; + } + array_init(return_value); + OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_MD_METH, + aliases ? openssl_add_method_or_alias: openssl_add_method, + return_value); +} +/* }}} */ + +/* {{{ proto array openssl_get_cipher_methods([bool aliases = false]) + Return array of available cipher methods */ +PHP_FUNCTION(openssl_get_cipher_methods) +{ + zend_bool aliases = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &aliases) == FAILURE) { + return; + } + array_init(return_value); + OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, + aliases ? openssl_add_method_or_alias: openssl_add_method, + return_value); +} +/* }}} */ + +/* {{{ proto string openssl_digest(string data, string method [, bool raw_output=false]) + Computes digest hash value for given data using given method, returns raw or binhex encoded string */ +PHP_FUNCTION(openssl_digest) +{ + zend_bool raw_output = 0; + char *data, *method; + int data_len, method_len; + const EVP_MD *mdtype; + EVP_MD_CTX md_ctx; + int siglen; + unsigned char *sigbuf; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &data, &data_len, &method, &method_len, &raw_output) == FAILURE) { + return; + } + mdtype = EVP_get_digestbyname(method); + if (!mdtype) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm"); + RETURN_FALSE; + } + + siglen = EVP_MD_size(mdtype); + sigbuf = emalloc(siglen + 1); + + EVP_DigestInit(&md_ctx, mdtype); + EVP_DigestUpdate(&md_ctx, (unsigned char *)data, data_len); + if (EVP_DigestFinal (&md_ctx, (unsigned char *)sigbuf, (unsigned int *)&siglen)) { + if (raw_output) { + sigbuf[siglen] = '\0'; + RETVAL_STRINGL((char *)sigbuf, siglen, 0); + } else { + int digest_str_len = siglen * 2; + char *digest_str = emalloc(digest_str_len + 1); + + make_digest_ex(digest_str, sigbuf, siglen); + efree(sigbuf); + RETVAL_STRINGL(digest_str, digest_str_len, 0); + } + } else { + efree(sigbuf); + RETVAL_FALSE; + } +} +/* }}} */ + +static zend_bool php_openssl_validate_iv(char **piv, int *piv_len, int iv_required_len TSRMLS_DC) +{ + char *iv_new; + + /* Best case scenario, user behaved */ + if (*piv_len == iv_required_len) { + return 0; + } + + iv_new = ecalloc(1, iv_required_len + 1); + + if (*piv_len <= 0) { + /* BC behavior */ + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + } + + if (*piv_len < iv_required_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "IV passed is only %d bytes long, cipher expects an IV of precisely %d bytes, padding with \\0", *piv_len, iv_required_len); + memcpy(iv_new, *piv, *piv_len); + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + } + + php_error_docref(NULL TSRMLS_CC, E_WARNING, "IV passed is %d bytes long which is longer than the %d expected by selected cipher, truncating", *piv_len, iv_required_len); + memcpy(iv_new, *piv, iv_required_len); + *piv_len = iv_required_len; + *piv = iv_new; + return 1; + +} + +/* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv='']]) + Encrypts given data with given method and key, returns raw or base64 encoded string */ +PHP_FUNCTION(openssl_encrypt) +{ + long options = 0; + char *data, *method, *password, *iv = ""; + int data_len, method_len, password_len, iv_len = 0, max_iv_len; + const EVP_CIPHER *cipher_type; + EVP_CIPHER_CTX cipher_ctx; + int i=0, outlen, keylen; + unsigned char *outbuf, *key; + zend_bool free_iv; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) { + return; + } + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + keylen = EVP_CIPHER_key_length(cipher_type); + if (keylen > password_len) { + key = emalloc(keylen); + memset(key, 0, keylen); + memcpy(key, password, password_len); + } else { + key = (unsigned char*)password; + } + + max_iv_len = EVP_CIPHER_iv_length(cipher_type); + if (iv_len <= 0 && max_iv_len > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Using an empty Initialization Vector (iv) is potentially insecure and not recommended"); + } + free_iv = php_openssl_validate_iv(&iv, &iv_len, max_iv_len TSRMLS_CC); + + outlen = data_len + EVP_CIPHER_block_size(cipher_type); + outbuf = safe_emalloc(outlen, 1, 1); + + EVP_EncryptInit(&cipher_ctx, cipher_type, NULL, NULL); + if (password_len > keylen) { + EVP_CIPHER_CTX_set_key_length(&cipher_ctx, password_len); + } + EVP_EncryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { + EVP_CIPHER_CTX_set_padding(&cipher_ctx, 0); + } + if (data_len > 0) { + EVP_EncryptUpdate(&cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + } + outlen = i; + if (EVP_EncryptFinal(&cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + if (options & OPENSSL_RAW_DATA) { + outbuf[outlen] = '\0'; + RETVAL_STRINGL_CHECK((char *)outbuf, outlen, 0); + } else { + int base64_str_len; + char *base64_str; + + base64_str = (char*)php_base64_encode(outbuf, outlen, &base64_str_len); + efree(outbuf); + if (!base64_str) { + RETVAL_FALSE; + } else { + RETVAL_STRINGL(base64_str, base64_str_len, 0); + } + } + } else { + efree(outbuf); + RETVAL_FALSE; + } + if (key != (unsigned char*)password) { + efree(key); + } + if (free_iv) { + efree(iv); + } + EVP_CIPHER_CTX_cleanup(&cipher_ctx); +} +/* }}} */ + +/* {{{ proto string openssl_decrypt(string data, string method, string password [, long options=0 [, string $iv = '']]) + Takes raw or base64 encoded string and dectupt it using given method and key */ +PHP_FUNCTION(openssl_decrypt) +{ + long options = 0; + char *data, *method, *password, *iv = ""; + int data_len, method_len, password_len, iv_len = 0; + const EVP_CIPHER *cipher_type; + EVP_CIPHER_CTX cipher_ctx; + int i, outlen, keylen; + unsigned char *outbuf, *key; + int base64_str_len; + char *base64_str = NULL; + zend_bool free_iv; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ls", &data, &data_len, &method, &method_len, &password, &password_len, &options, &iv, &iv_len) == FAILURE) { + return; + } + + if (!method_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + if (!(options & OPENSSL_RAW_DATA)) { + base64_str = (char*)php_base64_decode((unsigned char*)data, data_len, &base64_str_len); + if (!base64_str) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to base64 decode the input"); + RETURN_FALSE; + } + data_len = base64_str_len; + data = base64_str; + } + + keylen = EVP_CIPHER_key_length(cipher_type); + if (keylen > password_len) { + key = emalloc(keylen); + memset(key, 0, keylen); + memcpy(key, password, password_len); + } else { + key = (unsigned char*)password; + } + + free_iv = php_openssl_validate_iv(&iv, &iv_len, EVP_CIPHER_iv_length(cipher_type) TSRMLS_CC); + + outlen = data_len + EVP_CIPHER_block_size(cipher_type); + outbuf = emalloc(outlen + 1); + + EVP_DecryptInit(&cipher_ctx, cipher_type, NULL, NULL); + if (password_len > keylen) { + EVP_CIPHER_CTX_set_key_length(&cipher_ctx, password_len); + } + EVP_DecryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); + if (options & OPENSSL_ZERO_PADDING) { + EVP_CIPHER_CTX_set_padding(&cipher_ctx, 0); + } + EVP_DecryptUpdate(&cipher_ctx, outbuf, &i, (unsigned char *)data, data_len); + outlen = i; + if (EVP_DecryptFinal(&cipher_ctx, (unsigned char *)outbuf + i, &i)) { + outlen += i; + outbuf[outlen] = '\0'; + RETVAL_STRINGL((char *)outbuf, outlen, 0); + } else { + efree(outbuf); + RETVAL_FALSE; + } + if (key != (unsigned char*)password) { + efree(key); + } + if (free_iv) { + efree(iv); + } + if (base64_str) { + efree(base64_str); + } + EVP_CIPHER_CTX_cleanup(&cipher_ctx); +} +/* }}} */ + +/* {{{ proto int openssl_cipher_iv_length(string $method) */ +PHP_FUNCTION(openssl_cipher_iv_length) +{ + char *method; + int method_len; + const EVP_CIPHER *cipher_type; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len) == FAILURE) { + return; + } + + if (!method_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + cipher_type = EVP_get_cipherbyname(method); + if (!cipher_type) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm"); + RETURN_FALSE; + } + + RETURN_LONG(EVP_CIPHER_iv_length(cipher_type)); +} +/* }}} */ + + +/* {{{ proto string openssl_dh_compute_key(string pub_key, resource dh_key) + Computes shared secret for public value of remote DH key and local DH key */ +PHP_FUNCTION(openssl_dh_compute_key) +{ + zval *key; + char *pub_str; + int pub_len; + EVP_PKEY *pkey; + BIGNUM *pub; + char *data; + int len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sr", &pub_str, &pub_len, &key) == FAILURE) { + return; + } + ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); + if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) { + RETURN_FALSE; + } + + pub = BN_bin2bn((unsigned char*)pub_str, pub_len, NULL); + + data = emalloc(DH_size(pkey->pkey.dh) + 1); + len = DH_compute_key((unsigned char*)data, pub, pkey->pkey.dh); + + if (len >= 0) { + data[len] = 0; + RETVAL_STRINGL(data, len, 0); + } else { + efree(data); + RETVAL_FALSE; + } + + BN_free(pub); +} +/* }}} */ + +/* {{{ proto string openssl_random_pseudo_bytes(integer length [, &bool returned_strong_result]) + Returns a string of the length specified filled with random pseudo bytes */ +PHP_FUNCTION(openssl_random_pseudo_bytes) +{ + long buffer_length; + unsigned char *buffer = NULL; + zval *zstrong_result_returned = NULL; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|z", &buffer_length, &zstrong_result_returned) == FAILURE) { + return; + } + + if (zstrong_result_returned) { + zval_dtor(zstrong_result_returned); + ZVAL_BOOL(zstrong_result_returned, 0); + } + + if (buffer_length <= 0 || buffer_length > INT_MAX) { + RETURN_FALSE; + } + + buffer = safe_emalloc(buffer_length, 1, 1); + +#ifdef PHP_WIN32 + /* random/urandom equivalent on Windows */ + if (php_win32_get_random_bytes(buffer, (size_t) buffer_length) == FAILURE){ + efree(buffer); + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 0); + } + RETURN_FALSE; + } +#else + PHP_OPENSSL_RAND_ADD_TIME(); + if (RAND_bytes(buffer, buffer_length) <= 0) { + efree(buffer); + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 0); + } + RETURN_FALSE; + } +#endif + + buffer[buffer_length] = 0; + RETVAL_STRINGL((char *)buffer, buffer_length, 0); + + if (zstrong_result_returned) { + ZVAL_BOOL(zstrong_result_returned, 1); + } +} +/* }}} */ + +/* + * Local variables: + * tab-width: 8 + * c-basic-offset: 8 + * End: + * vim600: sw=4 ts=4 fdm=marker + * vim<600: sw=4 ts=4 + */ + diff --git a/tests/fixtures/php/5.6.40/ext/openssl/xp_ssl.c b/tests/fixtures/php/5.6.40/ext/openssl/xp_ssl.c new file mode 100644 index 000000000..d5490331d --- /dev/null +++ b/tests/fixtures/php/5.6.40/ext/openssl/xp_ssl.c @@ -0,0 +1,2472 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 5 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Wez Furlong | + | Daniel Lowrey | + | Chris Wright | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "ext/standard/file.h" +#include "ext/standard/url.h" +#include "streams/php_streams_int.h" +#include "ext/standard/php_smart_str.h" +#include "php_openssl.h" +#include "php_network.h" +#include +#include +#include +#include + +#ifdef PHP_WIN32 +#include "win32/winutil.h" +#include "win32/time.h" +#include +/* These are from Wincrypt.h, they conflict with OpenSSL */ +#undef X509_NAME +#undef X509_CERT_PAIR +#undef X509_EXTENSIONS +#endif + +#ifdef NETWARE +#include +#endif + +#if !defined(OPENSSL_NO_ECDH) && OPENSSL_VERSION_NUMBER >= 0x0090800fL +#define HAVE_ECDH 1 +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x00908070L && !defined(OPENSSL_NO_TLSEXT) +#define HAVE_SNI 1 +#endif + +/* Flags for determining allowed stream crypto methods */ +#define STREAM_CRYPTO_IS_CLIENT (1<<0) +#define STREAM_CRYPTO_METHOD_SSLv2 (1<<1) +#define STREAM_CRYPTO_METHOD_SSLv3 (1<<2) +#define STREAM_CRYPTO_METHOD_TLSv1_0 (1<<3) +#define STREAM_CRYPTO_METHOD_TLSv1_1 (1<<4) +#define STREAM_CRYPTO_METHOD_TLSv1_2 (1<<5) + +/* Simplify ssl context option retrieval */ +#define GET_VER_OPT(name) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, "ssl", name, &val)) +#define GET_VER_OPT_STRING(name, str) if (GET_VER_OPT(name)) { convert_to_string_ex(val); str = Z_STRVAL_PP(val); } +#define GET_VER_OPT_LONG(name, num) if (GET_VER_OPT(name)) { convert_to_long_ex(val); num = Z_LVAL_PP(val); } + +/* Used for peer verification in windows */ +#define PHP_X509_NAME_ENTRY_TO_UTF8(ne, i, out) ASN1_STRING_to_UTF8(&out, X509_NAME_ENTRY_get_data(X509_NAME_get_entry(ne, i))) + +extern php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl); +extern int php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw, char **out, int *out_len TSRMLS_DC); +extern int php_openssl_get_ssl_stream_data_index(); +extern int php_openssl_get_x509_list_id(void); +static struct timeval subtract_timeval( struct timeval a, struct timeval b ); +static int compare_timeval( struct timeval a, struct timeval b ); +static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count TSRMLS_DC); + +php_stream_ops php_openssl_socket_ops; + +/* Certificate contexts used for server-side SNI selection */ +typedef struct _php_openssl_sni_cert_t { + char *name; + SSL_CTX *ctx; +} php_openssl_sni_cert_t; + +/* Provides leaky bucket handhsake renegotiation rate-limiting */ +typedef struct _php_openssl_handshake_bucket_t { + long prev_handshake; + long limit; + long window; + float tokens; + unsigned should_close; +} php_openssl_handshake_bucket_t; + +/* This implementation is very closely tied to the that of the native + * sockets implemented in the core. + * Don't try this technique in other extensions! + * */ +typedef struct _php_openssl_netstream_data_t { + php_netstream_data_t s; + SSL *ssl_handle; + SSL_CTX *ctx; + struct timeval connect_timeout; + int enable_on_connect; + int is_client; + int ssl_active; + php_stream_xport_crypt_method_t method; + php_openssl_handshake_bucket_t *reneg; + php_openssl_sni_cert_t *sni_certs; + unsigned sni_cert_count; + char *url_name; + unsigned state_set:1; + unsigned _spare:31; +} php_openssl_netstream_data_t; + +/* it doesn't matter that we do some hash traversal here, since it is done only + * in an error condition arising from a network connection problem */ +static int is_http_stream_talking_to_iis(php_stream *stream TSRMLS_DC) /* {{{ */ +{ + if (stream->wrapperdata && stream->wrapper && strcasecmp(stream->wrapper->wops->label, "HTTP") == 0) { + /* the wrapperdata is an array zval containing the headers */ + zval **tmp; + +#define SERVER_MICROSOFT_IIS "Server: Microsoft-IIS" +#define SERVER_GOOGLE "Server: GFE/" + + zend_hash_internal_pointer_reset(Z_ARRVAL_P(stream->wrapperdata)); + while (SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(stream->wrapperdata), (void**)&tmp)) { + + if (strncasecmp(Z_STRVAL_PP(tmp), SERVER_MICROSOFT_IIS, sizeof(SERVER_MICROSOFT_IIS)-1) == 0) { + return 1; + } else if (strncasecmp(Z_STRVAL_PP(tmp), SERVER_GOOGLE, sizeof(SERVER_GOOGLE)-1) == 0) { + return 1; + } + + zend_hash_move_forward(Z_ARRVAL_P(stream->wrapperdata)); + } + } + return 0; +} +/* }}} */ + +static int handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init TSRMLS_DC) /* {{{ */ +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); + char esbuf[512]; + smart_str ebuf = {0}; + unsigned long ecode; + int retry = 1; + + switch(err) { + case SSL_ERROR_ZERO_RETURN: + /* SSL terminated (but socket may still be active) */ + retry = 0; + break; + case SSL_ERROR_WANT_READ: + case SSL_ERROR_WANT_WRITE: + /* re-negotiation, or perhaps the SSL layer needs more + * packets: retry in next iteration */ + errno = EAGAIN; + retry = is_init ? 1 : sslsock->s.is_blocked; + break; + case SSL_ERROR_SYSCALL: + if (ERR_peek_error() == 0) { + if (nr_bytes == 0) { + if (!is_http_stream_talking_to_iis(stream TSRMLS_CC) && ERR_get_error() != 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: fatal protocol error"); + } + SSL_set_shutdown(sslsock->ssl_handle, SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN); + stream->eof = 1; + retry = 0; + } else { + char *estr = php_socket_strerror(php_socket_errno(), NULL, 0); + + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: %s", estr); + + efree(estr); + retry = 0; + } + break; + } + + + /* fall through */ + default: + /* some other error */ + ecode = ERR_get_error(); + + switch (ERR_GET_REASON(ecode)) { + case SSL_R_NO_SHARED_CIPHER: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL_R_NO_SHARED_CIPHER: no suitable shared cipher could be used. This could be because the server is missing an SSL certificate (local_cert context option)"); + retry = 0; + break; + + default: + do { + /* NULL is automatically added */ + ERR_error_string_n(ecode, esbuf, sizeof(esbuf)); + if (ebuf.c) { + smart_str_appendc(&ebuf, '\n'); + } + smart_str_appends(&ebuf, esbuf); + } while ((ecode = ERR_get_error()) != 0); + + smart_str_0(&ebuf); + + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL operation failed with code %d. %s%s", + err, + ebuf.c ? "OpenSSL Error messages:\n" : "", + ebuf.c ? ebuf.c : ""); + if (ebuf.c) { + smart_str_free(&ebuf); + } + } + + retry = 0; + errno = 0; + } + return retry; +} +/* }}} */ + +static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) /* {{{ */ +{ + php_stream *stream; + SSL *ssl; + int err, depth, ret; + zval **val; + unsigned long allowed_depth = OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH; + + ret = preverify_ok; + + /* determine the status for the current cert */ + err = X509_STORE_CTX_get_error(ctx); + depth = X509_STORE_CTX_get_error_depth(ctx); + + /* conjure the stream & context to use */ + ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx()); + stream = (php_stream*)SSL_get_ex_data(ssl, php_openssl_get_ssl_stream_data_index()); + + /* if allow_self_signed is set, make sure that verification succeeds */ + if (err == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT && + GET_VER_OPT("allow_self_signed") && + zend_is_true(*val) + ) { + ret = 1; + } + + /* check the depth */ + GET_VER_OPT_LONG("verify_depth", allowed_depth); + if ((unsigned long)depth > allowed_depth) { + ret = 0; + X509_STORE_CTX_set_error(ctx, X509_V_ERR_CERT_CHAIN_TOO_LONG); + } + + return ret; +} +/* }}} */ + +static int php_x509_fingerprint_cmp(X509 *peer, const char *method, const char *expected TSRMLS_DC) +{ + char *fingerprint; + int fingerprint_len; + int result = -1; + + if (php_openssl_x509_fingerprint(peer, method, 0, &fingerprint, &fingerprint_len TSRMLS_CC) == SUCCESS) { + result = strcasecmp(expected, fingerprint); + efree(fingerprint); + } + + return result; +} + +static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC) +{ + if (Z_TYPE_P(val) == IS_STRING) { + const char *method = NULL; + + switch (Z_STRLEN_P(val)) { + case 32: + method = "md5"; + break; + + case 40: + method = "sha1"; + break; + } + + return method && php_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val) TSRMLS_CC) == 0; + + } else if (Z_TYPE_P(val) == IS_ARRAY) { + HashPosition pos; + zval **current; + char *key; + uint key_len; + ulong key_index; + + if (!zend_hash_num_elements(Z_ARRVAL_P(val))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required"); + return 0; + } + + for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(val), &pos); + zend_hash_get_current_data_ex(Z_ARRVAL_P(val), (void **)¤t, &pos) == SUCCESS; + zend_hash_move_forward_ex(Z_ARRVAL_P(val), &pos) + ) { + int key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(val), &key, &key_len, &key_index, 0, &pos); + + if (!(key_type == HASH_KEY_IS_STRING && Z_TYPE_PP(current) == IS_STRING)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required"); + return 0; + } + if (php_x509_fingerprint_cmp(peer, key, Z_STRVAL_PP(current) TSRMLS_CC) != 0) { + return 0; + } + } + + return 1; + + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Invalid peer_fingerprint value; fingerprint string or array of the form [algo => fingerprint] required"); + } + + return 0; +} + +static zend_bool matches_wildcard_name(const char *subjectname, const char *certname) /* {{{ */ +{ + char *wildcard = NULL; + int prefix_len, suffix_len, subject_len; + + if (strcasecmp(subjectname, certname) == 0) { + return 1; + } + + /* wildcard, if present, must only be present in the left-most component */ + if (!(wildcard = strchr(certname, '*')) || memchr(certname, '.', wildcard - certname)) { + return 0; + } + + /* 1) prefix, if not empty, must match subject */ + prefix_len = wildcard - certname; + if (prefix_len && strncasecmp(subjectname, certname, prefix_len) != 0) { + return 0; + } + + suffix_len = strlen(wildcard + 1); + subject_len = strlen(subjectname); + if (suffix_len <= subject_len) { + /* 2) suffix must match + * 3) no . between prefix and suffix + **/ + return strcasecmp(wildcard + 1, subjectname + subject_len - suffix_len) == 0 && + memchr(subjectname + prefix_len, '.', subject_len - suffix_len - prefix_len) == NULL; + } + + return 0; +} +/* }}} */ + +static zend_bool matches_san_list(X509 *peer, const char *subject_name) /* {{{ */ +{ + int i, len; + unsigned char *cert_name = NULL; + char ipbuffer[64]; + + GENERAL_NAMES *alt_names = X509_get_ext_d2i(peer, NID_subject_alt_name, 0, 0); + int alt_name_count = sk_GENERAL_NAME_num(alt_names); + + for (i = 0; i < alt_name_count; i++) { + GENERAL_NAME *san = sk_GENERAL_NAME_value(alt_names, i); + + if (san->type == GEN_DNS) { + ASN1_STRING_to_UTF8(&cert_name, san->d.dNSName); + if (ASN1_STRING_length(san->d.dNSName) != strlen((const char*)cert_name)) { + OPENSSL_free(cert_name); + /* prevent null-byte poisoning*/ + continue; + } + + /* accommodate valid FQDN entries ending in "." */ + len = strlen((const char*)cert_name); + if (len && strcmp((const char *)&cert_name[len-1], ".") == 0) { + cert_name[len-1] = '\0'; + } + + if (matches_wildcard_name(subject_name, (const char *)cert_name)) { + OPENSSL_free(cert_name); + return 1; + } + OPENSSL_free(cert_name); + } else if (san->type == GEN_IPADD) { + if (san->d.iPAddress->length == 4) { + sprintf(ipbuffer, "%d.%d.%d.%d", + san->d.iPAddress->data[0], + san->d.iPAddress->data[1], + san->d.iPAddress->data[2], + san->d.iPAddress->data[3] + ); + if (strcasecmp(subject_name, (const char*)ipbuffer) == 0) { + return 1; + } + } + /* No, we aren't bothering to check IPv6 addresses. Why? + * Because IP SAN names are officially deprecated and are + * not allowed by CAs starting in 2015. Deal with it. + */ + } + } + + return 0; +} +/* }}} */ + +static zend_bool matches_common_name(X509 *peer, const char *subject_name TSRMLS_DC) /* {{{ */ +{ + char buf[1024]; + X509_NAME *cert_name; + zend_bool is_match = 0; + int cert_name_len; + + cert_name = X509_get_subject_name(peer); + cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); + + if (cert_name_len == -1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate peer certificate CN"); + } else if (cert_name_len != strlen(buf)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Peer certificate CN=`%.*s' is malformed", cert_name_len, buf); + } else if (matches_wildcard_name(subject_name, buf)) { + is_match = 1; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Peer certificate CN=`%.*s' did not match expected CN=`%s'", cert_name_len, buf, subject_name); + } + + return is_match; +} +/* }}} */ + +static int apply_peer_verification_policy(SSL *ssl, X509 *peer, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *peer_name = NULL; + int err, + must_verify_peer, + must_verify_peer_name, + must_verify_fingerprint, + has_cnmatch_ctx_opt; + + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + must_verify_peer = GET_VER_OPT("verify_peer") + ? zend_is_true(*val) + : sslsock->is_client; + + has_cnmatch_ctx_opt = GET_VER_OPT("CN_match"); + must_verify_peer_name = (has_cnmatch_ctx_opt || GET_VER_OPT("verify_peer_name")) + ? zend_is_true(*val) + : sslsock->is_client; + + must_verify_fingerprint = GET_VER_OPT("peer_fingerprint"); + + if ((must_verify_peer || must_verify_peer_name || must_verify_fingerprint) && peer == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not get peer certificate"); + return FAILURE; + } + + /* Verify the peer against using CA file/path settings */ + if (must_verify_peer) { + err = SSL_get_verify_result(ssl); + switch (err) { + case X509_V_OK: + /* fine */ + break; + case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: + if (GET_VER_OPT("allow_self_signed") && zend_is_true(*val)) { + /* allowed */ + break; + } + /* not allowed, so fall through */ + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Could not verify peer: code:%d %s", + err, + X509_verify_cert_error_string(err) + ); + return FAILURE; + } + } + + /* If a peer_fingerprint match is required this trumps peer and peer_name verification */ + if (must_verify_fingerprint) { + if (Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_ARRAY) { + if (!php_x509_fingerprint_match(peer, *val TSRMLS_CC)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "peer_fingerprint match failure" + ); + return FAILURE; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Expected peer fingerprint must be a string or an array" + ); + return FAILURE; + } + } + + /* verify the host name presented in the peer certificate */ + if (must_verify_peer_name) { + GET_VER_OPT_STRING("peer_name", peer_name); + + if (has_cnmatch_ctx_opt) { + GET_VER_OPT_STRING("CN_match", peer_name); + php_error(E_DEPRECATED, + "the 'CN_match' SSL context option is deprecated in favor of 'peer_name'" + ); + } + /* If no peer name was specified we use the autodetected url name in client environments */ + if (peer_name == NULL && sslsock->is_client) { + peer_name = sslsock->url_name; + } + + if (peer_name) { + if (matches_san_list(peer, peer_name)) { + return SUCCESS; + } else if (matches_common_name(peer, peer_name TSRMLS_CC)) { + return SUCCESS; + } else { + return FAILURE; + } + } else { + return FAILURE; + } + } + + return SUCCESS; +} +/* }}} */ + +static int passwd_callback(char *buf, int num, int verify, void *data) /* {{{ */ +{ + php_stream *stream = (php_stream *)data; + zval **val = NULL; + char *passphrase = NULL; + /* TODO: could expand this to make a callback into PHP user-space */ + + GET_VER_OPT_STRING("passphrase", passphrase); + + if (passphrase) { + if (Z_STRLEN_PP(val) < num - 1) { + memcpy(buf, Z_STRVAL_PP(val), Z_STRLEN_PP(val)+1); + return Z_STRLEN_PP(val); + } + } + return 0; +} +/* }}} */ + +#if defined(PHP_WIN32) && OPENSSL_VERSION_NUMBER >= 0x00907000L +#define RETURN_CERT_VERIFY_FAILURE(code) X509_STORE_CTX_set_error(x509_store_ctx, code); return 0; +static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) /* {{{ */ +{ + PCCERT_CONTEXT cert_ctx = NULL; + PCCERT_CHAIN_CONTEXT cert_chain_ctx = NULL; + + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + zval **val; + zend_bool is_self_signed = 0; + + TSRMLS_FETCH(); + + stream = (php_stream*)arg; + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + { /* First convert the x509 struct back to a DER encoded buffer and let Windows decode it into a form it can work with */ + unsigned char *der_buf = NULL; + int der_len; + + der_len = i2d_X509(x509_store_ctx->cert, &der_buf); + if (der_len < 0) { + unsigned long err_code, e; + char err_buf[512]; + + while ((e = ERR_get_error()) != 0) { + err_code = e; + } + + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error encoding X509 certificate: %d: %s", err_code, ERR_error_string(err_code, err_buf)); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + cert_ctx = CertCreateCertificateContext(X509_ASN_ENCODING, der_buf, der_len); + OPENSSL_free(der_buf); + + if (cert_ctx == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error creating certificate context: %s", php_win_err()); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + } + + { /* Next fetch the relevant cert chain from the store */ + CERT_ENHKEY_USAGE enhkey_usage = {0}; + CERT_USAGE_MATCH cert_usage = {0}; + CERT_CHAIN_PARA chain_params = {sizeof(CERT_CHAIN_PARA)}; + LPSTR usages[] = {szOID_PKIX_KP_SERVER_AUTH, szOID_SERVER_GATED_CRYPTO, szOID_SGC_NETSCAPE}; + DWORD chain_flags = 0; + unsigned long allowed_depth = OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH; + unsigned int i; + + enhkey_usage.cUsageIdentifier = 3; + enhkey_usage.rgpszUsageIdentifier = usages; + cert_usage.dwType = USAGE_MATCH_TYPE_OR; + cert_usage.Usage = enhkey_usage; + chain_params.RequestedUsage = cert_usage; + chain_flags = CERT_CHAIN_CACHE_END_CERT | CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT; + + if (!CertGetCertificateChain(NULL, cert_ctx, NULL, NULL, &chain_params, chain_flags, NULL, &cert_chain_ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error getting certificate chain: %s", php_win_err()); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + /* check if the cert is self-signed */ + if (cert_chain_ctx->cChain > 0 && cert_chain_ctx->rgpChain[0]->cElement > 0 + && (cert_chain_ctx->rgpChain[0]->rgpElement[0]->TrustStatus.dwInfoStatus & CERT_TRUST_IS_SELF_SIGNED) != 0) { + is_self_signed = 1; + } + + /* check the depth */ + GET_VER_OPT_LONG("verify_depth", allowed_depth); + + for (i = 0; i < cert_chain_ctx->cChain; i++) { + if (cert_chain_ctx->rgpChain[i]->cElement > allowed_depth) { + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(X509_V_ERR_CERT_CHAIN_TOO_LONG); + } + } + } + + { /* Then verify it against a policy */ + SSL_EXTRA_CERT_CHAIN_POLICY_PARA ssl_policy_params = {sizeof(SSL_EXTRA_CERT_CHAIN_POLICY_PARA)}; + CERT_CHAIN_POLICY_PARA chain_policy_params = {sizeof(CERT_CHAIN_POLICY_PARA)}; + CERT_CHAIN_POLICY_STATUS chain_policy_status = {sizeof(CERT_CHAIN_POLICY_STATUS)}; + LPWSTR server_name = NULL; + BOOL verify_result; + + { /* This looks ridiculous and it is - but we validate the name ourselves using the peer_name + ctx option, so just use the CN from the cert here */ + + X509_NAME *cert_name; + unsigned char *cert_name_utf8; + int index, cert_name_utf8_len; + DWORD num_wchars; + + cert_name = X509_get_subject_name(x509_store_ctx->cert); + index = X509_NAME_get_index_by_NID(cert_name, NID_commonName, -1); + if (index < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate certificate CN"); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + cert_name_utf8_len = PHP_X509_NAME_ENTRY_TO_UTF8(cert_name, index, cert_name_utf8); + + num_wchars = MultiByteToWideChar(CP_UTF8, 0, (char*)cert_name_utf8, -1, NULL, 0); + if (num_wchars == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to convert %s to wide character string", cert_name_utf8); + OPENSSL_free(cert_name_utf8); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + server_name = emalloc((num_wchars * sizeof(WCHAR)) + sizeof(WCHAR)); + + num_wchars = MultiByteToWideChar(CP_UTF8, 0, (char*)cert_name_utf8, -1, server_name, num_wchars); + if (num_wchars == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to convert %s to wide character string", cert_name_utf8); + efree(server_name); + OPENSSL_free(cert_name_utf8); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + OPENSSL_free(cert_name_utf8); + } + + ssl_policy_params.dwAuthType = (sslsock->is_client) ? AUTHTYPE_SERVER : AUTHTYPE_CLIENT; + ssl_policy_params.pwszServerName = server_name; + chain_policy_params.pvExtraPolicyPara = &ssl_policy_params; + + verify_result = CertVerifyCertificateChainPolicy(CERT_CHAIN_POLICY_SSL, cert_chain_ctx, &chain_policy_params, &chain_policy_status); + + efree(server_name); + CertFreeCertificateChain(cert_chain_ctx); + CertFreeCertificateContext(cert_ctx); + + if (!verify_result) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error verifying certificate chain policy: %s", php_win_err()); + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + + if (chain_policy_status.dwError != 0) { + /* The chain does not match the policy */ + if (is_self_signed && chain_policy_status.dwError == CERT_E_UNTRUSTEDROOT + && GET_VER_OPT("allow_self_signed") && zend_is_true(*val)) { + /* allow self-signed certs */ + X509_STORE_CTX_set_error(x509_store_ctx, X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT); + } else { + RETURN_CERT_VERIFY_FAILURE(SSL_R_CERTIFICATE_VERIFY_FAILED); + } + } + } + + return 1; +} +/* }}} */ +#endif + +static long load_stream_cafile(X509_STORE *cert_store, const char *cafile TSRMLS_DC) /* {{{ */ +{ + php_stream *stream; + X509 *cert; + BIO *buffer; + int buffer_active = 0; + char *line = NULL; + size_t line_len; + long certs_added = 0; + + stream = php_stream_open_wrapper(cafile, "rb", 0, NULL); + + if (stream == NULL) { + php_error(E_WARNING, "failed loading cafile stream: `%s'", cafile); + return 0; + } else if (stream->wrapper->is_url) { + php_stream_close(stream); + php_error(E_WARNING, "remote cafile streams are disabled for security purposes"); + return 0; + } + + cert_start: { + line = php_stream_get_line(stream, NULL, 0, &line_len); + if (line == NULL) { + goto stream_complete; + } else if (!strcmp(line, "-----BEGIN CERTIFICATE-----\n") || + !strcmp(line, "-----BEGIN CERTIFICATE-----\r\n") + ) { + buffer = BIO_new(BIO_s_mem()); + buffer_active = 1; + goto cert_line; + } else { + efree(line); + goto cert_start; + } + } + + cert_line: { + BIO_puts(buffer, line); + efree(line); + line = php_stream_get_line(stream, NULL, 0, &line_len); + if (line == NULL) { + goto stream_complete; + } else if (!strcmp(line, "-----END CERTIFICATE-----") || + !strcmp(line, "-----END CERTIFICATE-----\n") || + !strcmp(line, "-----END CERTIFICATE-----\r\n") + ) { + goto add_cert; + } else { + goto cert_line; + } + } + + add_cert: { + BIO_puts(buffer, line); + efree(line); + cert = PEM_read_bio_X509(buffer, NULL, 0, NULL); + BIO_free(buffer); + buffer_active = 0; + if (cert && X509_STORE_add_cert(cert_store, cert)) { + ++certs_added; + } + goto cert_start; + } + + stream_complete: { + php_stream_close(stream); + if (buffer_active == 1) { + BIO_free(buffer); + } + } + + if (certs_added == 0) { + php_error(E_WARNING, "no valid certs found cafile stream: `%s'", cafile); + } + + return certs_added; +} +/* }}} */ + +static int enable_peer_verification(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *cafile = NULL; + char *capath = NULL; + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + GET_VER_OPT_STRING("cafile", cafile); + GET_VER_OPT_STRING("capath", capath); + + if (cafile == NULL) { + cafile = zend_ini_string("openssl.cafile", sizeof("openssl.cafile"), 0); + cafile = strlen(cafile) ? cafile : NULL; + } else if (!sslsock->is_client) { + /* Servers need to load and assign CA names from the cafile */ + STACK_OF(X509_NAME) *cert_names = SSL_load_client_CA_file(cafile); + if (cert_names != NULL) { + SSL_CTX_set_client_CA_list(ctx, cert_names); + } else { + php_error(E_WARNING, "SSL: failed loading CA names from cafile"); + return FAILURE; + } + } + + if (capath == NULL) { + capath = zend_ini_string("openssl.capath", sizeof("openssl.capath"), 0); + capath = strlen(capath) ? capath : NULL; + } + + if (cafile || capath) { + if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) { + if (cafile && !load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile TSRMLS_CC)) { + return FAILURE; + } + } + } else { +#if defined(PHP_WIN32) && OPENSSL_VERSION_NUMBER >= 0x00907000L + SSL_CTX_set_cert_verify_callback(ctx, win_cert_verify_callback, (void *)stream); + SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); +#else + if (sslsock->is_client && !SSL_CTX_set_default_verify_paths(ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Unable to set default verify locations and no CA settings specified"); + return FAILURE; + } +#endif + } + + SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, verify_callback); + + return SUCCESS; +} +/* }}} */ + +static void disable_peer_verification(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); +} +/* }}} */ + +static int set_local_cert(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ */ +{ + zval **val = NULL; + char *certfile = NULL; + + GET_VER_OPT_STRING("local_cert", certfile); + + if (certfile) { + char resolved_path_buff[MAXPATHLEN]; + const char * private_key = NULL; + + if (VCWD_REALPATH(certfile, resolved_path_buff)) { + /* a certificate to use for authentication */ + if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set local cert chain file `%s'; Check that your cafile/capath settings include details of your certificate and its issuer", certfile); + return FAILURE; + } + GET_VER_OPT_STRING("local_pk", private_key); + + if (private_key) { + char resolved_path_buff_pk[MAXPATHLEN]; + if (VCWD_REALPATH(private_key, resolved_path_buff_pk)) { + if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff_pk, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set private key file `%s'", resolved_path_buff_pk); + return FAILURE; + } + } + } else { + if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to set private key file `%s'", resolved_path_buff); + return FAILURE; + } + } + +#if OPENSSL_VERSION_NUMBER < 0x10001001L + do { + /* Unnecessary as of OpenSSLv1.0.1 (will segfault if used with >= 10001001 ) */ + X509 *cert = NULL; + EVP_PKEY *key = NULL; + SSL *tmpssl = SSL_new(ctx); + cert = SSL_get_certificate(tmpssl); + + if (cert) { + key = X509_get_pubkey(cert); + EVP_PKEY_copy_parameters(key, SSL_get_privatekey(tmpssl)); + EVP_PKEY_free(key); + } + SSL_free(tmpssl); + } while (0); +#endif + if (!SSL_CTX_check_private_key(ctx)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Private key does not match certificate!"); + } + } + } + + return SUCCESS; +} +/* }}} */ + +static const SSL_METHOD *php_select_crypto_method(long method_value, int is_client TSRMLS_DC) /* {{{ */ +{ + if (method_value == STREAM_CRYPTO_METHOD_SSLv2) { +#ifndef OPENSSL_NO_SSL2 + return is_client ? SSLv2_client_method() : SSLv2_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSLv2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_SSLv3) { +#ifndef OPENSSL_NO_SSL3 + return is_client ? SSLv3_client_method() : SSLv3_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSLv3 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_0) { + return is_client ? TLSv1_client_method() : TLSv1_server_method(); + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_1) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + return is_client ? TLSv1_1_client_method() : TLSv1_1_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "TLSv1.1 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (method_value == STREAM_CRYPTO_METHOD_TLSv1_2) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + return is_client ? TLSv1_2_client_method() : TLSv1_2_server_method(); +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "TLSv1.2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Invalid crypto method"); + return NULL; + } +} +/* }}} */ + +static long php_get_crypto_method_ctx_flags(long method_flags TSRMLS_DC) /* {{{ */ +{ + long ssl_ctx_options = SSL_OP_ALL; + +#ifndef OPENSSL_NO_SSL2 + if (!(method_flags & STREAM_CRYPTO_METHOD_SSLv2)) { + ssl_ctx_options |= SSL_OP_NO_SSLv2; + } +#endif +#ifndef OPENSSL_NO_SSL3 + if (!(method_flags & STREAM_CRYPTO_METHOD_SSLv3)) { + ssl_ctx_options |= SSL_OP_NO_SSLv3; + } +#endif +#ifndef OPENSSL_NO_TLS1 + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_0)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1; + } +#endif +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_1)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1_1; + } + + if (!(method_flags & STREAM_CRYPTO_METHOD_TLSv1_2)) { + ssl_ctx_options |= SSL_OP_NO_TLSv1_2; + } +#endif + + return ssl_ctx_options; +} +/* }}} */ + +static void limit_handshake_reneg(const SSL *ssl) /* {{{ */ +{ + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + struct timeval now; + long elapsed_time; + + stream = php_openssl_get_stream_from_ssl_handle(ssl); + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + gettimeofday(&now, NULL); + + /* The initial handshake is never rate-limited */ + if (sslsock->reneg->prev_handshake == 0) { + sslsock->reneg->prev_handshake = now.tv_sec; + return; + } + + elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); + sslsock->reneg->prev_handshake = now.tv_sec; + sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); + + if (sslsock->reneg->tokens < 0) { + sslsock->reneg->tokens = 0; + } + ++sslsock->reneg->tokens; + + /* The token level exceeds our allowed limit */ + if (sslsock->reneg->tokens > sslsock->reneg->limit) { + zval **val; + + TSRMLS_FETCH(); + + sslsock->reneg->should_close = 1; + + if (stream->context && SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_limit_callback", &val) + ) { + zval *param, **params[1], *retval; + + MAKE_STD_ZVAL(param); + php_stream_to_zval(stream, param); + params[0] = ¶m; + + /* Closing the stream inside this callback would segfault! */ + stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE; + if (FAILURE == call_user_function_ex(EG(function_table), NULL, *val, &retval, 1, params, 0, NULL TSRMLS_CC)) { + php_error(E_WARNING, "SSL: failed invoking reneg limit notification callback"); + } + stream->flags ^= PHP_STREAM_FLAG_NO_FCLOSE; + + /* If the reneg_limit_callback returned true don't auto-close */ + if (retval != NULL && Z_TYPE_P(retval) == IS_BOOL && Z_BVAL_P(retval) == 1) { + sslsock->reneg->should_close = 0; + } + + FREE_ZVAL(param); + if (retval != NULL) { + zval_ptr_dtor(&retval); + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SSL: client-initiated handshake rate limit exceeded by peer"); + } + } +} +/* }}} */ + +static void info_callback(const SSL *ssl, int where, int ret) /* {{{ */ +{ + /* Rate-limit client-initiated handshake renegotiation to prevent DoS */ + if (where & SSL_CB_HANDSHAKE_START) { + limit_handshake_reneg(ssl); + } +} +/* }}} */ + +static void init_server_reneg_limit(php_stream *stream, php_openssl_netstream_data_t *sslsock) /* {{{ */ +{ + zval **val; + long limit = OPENSSL_DEFAULT_RENEG_LIMIT; + long window = OPENSSL_DEFAULT_RENEG_WINDOW; + + if (stream->context && + SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_limit", &val) + ) { + convert_to_long(*val); + limit = Z_LVAL_PP(val); + } + + /* No renegotiation rate-limiting */ + if (limit < 0) { + return; + } + + if (stream->context && + SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "reneg_window", &val) + ) { + convert_to_long(*val); + window = Z_LVAL_PP(val); + } + + sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), + php_stream_is_persistent(stream) + ); + + sslsock->reneg->limit = limit; + sslsock->reneg->window = window; + sslsock->reneg->prev_handshake = 0; + sslsock->reneg->tokens = 0; + sslsock->reneg->should_close = 0; + + SSL_set_info_callback(sslsock->ssl_handle, info_callback); +} +/* }}} */ + +static int set_server_rsa_key(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval ** val; + int rsa_key_size; + RSA* rsa; + + if (php_stream_context_get_option(stream->context, "ssl", "rsa_key_size", &val) == SUCCESS) { + rsa_key_size = (int) Z_LVAL_PP(val); + if ((rsa_key_size != 1) && (rsa_key_size & (rsa_key_size - 1))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "RSA key size requires a power of 2: %d", rsa_key_size); + rsa_key_size = 2048; + } + } else { + rsa_key_size = 2048; + } + + rsa = RSA_generate_key(rsa_key_size, RSA_F4, NULL, NULL); + + if (!SSL_CTX_set_tmp_rsa(ctx, rsa)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed setting RSA key"); + RSA_free(rsa); + return FAILURE; + } + + RSA_free(rsa); + + return SUCCESS; +} +/* }}} */ + +static int set_server_dh_param(SSL_CTX *ctx, char *dh_path TSRMLS_DC) /* {{{ */ +{ + DH *dh; + BIO* bio; + + bio = BIO_new_file(dh_path, "r"); + + if (bio == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid dh_param file: %s", dh_path); + return FAILURE; + } + + dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); + BIO_free(bio); + + if (dh == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed reading DH params from file: %s", dh_path); + return FAILURE; + } + + if (SSL_CTX_set_tmp_dh(ctx, dh) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "DH param assignment failed"); + DH_free(dh); + return FAILURE; + } + + DH_free(dh); + + return SUCCESS; +} +/* }}} */ + +#ifdef HAVE_ECDH +static int set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval **val; + int curve_nid; + char *curve_str; + EC_KEY *ecdh; + + if (php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val) == SUCCESS) { + convert_to_string_ex(val); + curve_str = Z_STRVAL_PP(val); + curve_nid = OBJ_sn2nid(curve_str); + if (curve_nid == NID_undef) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid ECDH curve: %s", curve_str); + return FAILURE; + } + } else { + curve_nid = NID_X9_62_prime256v1; + } + + ecdh = EC_KEY_new_by_curve_name(curve_nid); + if (ecdh == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "Failed generating ECDH curve"); + + return FAILURE; + } + + SSL_CTX_set_tmp_ecdh(ctx, ecdh); + EC_KEY_free(ecdh); + + return SUCCESS; +} +/* }}} */ +#endif + +static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) /* {{{ */ +{ + zval **val; + long ssl_ctx_options = SSL_CTX_get_options(ctx); + +#ifdef HAVE_ECDH + if (FAILURE == set_server_ecdh_curve(stream, ctx TSRMLS_CC)) { + return FAILURE; + } +#else + if (SUCCESS == php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "ECDH curve support not compiled into the OpenSSL lib against which PHP is linked"); + + return FAILURE; + } +#endif + + if (php_stream_context_get_option(stream->context, "ssl", "dh_param", &val) == SUCCESS) { + convert_to_string_ex(val); + if (FAILURE == set_server_dh_param(ctx, Z_STRVAL_PP(val) TSRMLS_CC)) { + return FAILURE; + } + } + + if (FAILURE == set_server_rsa_key(stream, ctx TSRMLS_CC)) { + return FAILURE; + } + + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "honor_cipher_order", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_CIPHER_SERVER_PREFERENCE; + } + + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "single_dh_use", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_SINGLE_DH_USE; + } + +#ifdef HAVE_ECDH + if (SUCCESS == php_stream_context_get_option( + stream->context, "ssl", "single_ecdh_use", &val) && + zend_is_true(*val) + ) { + ssl_ctx_options |= SSL_OP_SINGLE_ECDH_USE; + } +#endif + + SSL_CTX_set_options(ctx, ssl_ctx_options); + + return SUCCESS; +} +/* }}} */ + +#ifdef HAVE_SNI +static int server_sni_callback(SSL *ssl_handle, int *al, void *arg) /* {{{ */ +{ + php_stream *stream; + php_openssl_netstream_data_t *sslsock; + unsigned i; + const char *server_name; + + server_name = SSL_get_servername(ssl_handle, TLSEXT_NAMETYPE_host_name); + + if (!server_name) { + return SSL_TLSEXT_ERR_NOACK; + } + + stream = (php_stream*)SSL_get_ex_data(ssl_handle, php_openssl_get_ssl_stream_data_index()); + sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + if (!(sslsock->sni_cert_count && sslsock->sni_certs)) { + return SSL_TLSEXT_ERR_NOACK; + } + + for (i=0; i < sslsock->sni_cert_count; i++) { + if (matches_wildcard_name(server_name, sslsock->sni_certs[i].name)) { + SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx); + return SSL_TLSEXT_ERR_OK; + } + } + + return SSL_TLSEXT_ERR_NOACK; +} +/* }}} */ + +static int enable_server_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock TSRMLS_DC) +{ + zval **val; + zval **current; + char *key; + uint key_len; + ulong key_index; + int key_type; + HashPosition pos; + int i = 0; + char resolved_path_buff[MAXPATHLEN]; + SSL_CTX *ctx; + + /* If the stream ctx disables SNI we're finished here */ + if (GET_VER_OPT("SNI_enabled") && !zend_is_true(*val)) { + return SUCCESS; + } + + /* If no SNI cert array is specified we're finished here */ + if (!GET_VER_OPT("SNI_server_certs")) { + return SUCCESS; + } + + if (Z_TYPE_PP(val) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs requires an array mapping host names to cert paths" + ); + return FAILURE; + } + + sslsock->sni_cert_count = zend_hash_num_elements(Z_ARRVAL_PP(val)); + if (sslsock->sni_cert_count == 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs host cert array must not be empty" + ); + return FAILURE; + } + + sslsock->sni_certs = (php_openssl_sni_cert_t*)safe_pemalloc(sslsock->sni_cert_count, + sizeof(php_openssl_sni_cert_t), 0, php_stream_is_persistent(stream) + ); + memset(sslsock->sni_certs, 0, sslsock->sni_cert_count * sizeof(php_openssl_sni_cert_t)); + + for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(val), &pos); + zend_hash_get_current_data_ex(Z_ARRVAL_PP(val), (void **)¤t, &pos) == SUCCESS; + zend_hash_move_forward_ex(Z_ARRVAL_PP(val), &pos) + ) { + key_type = zend_hash_get_current_key_ex(Z_ARRVAL_PP(val), &key, &key_len, &key_index, 0, &pos); + if (key_type != HASH_KEY_IS_STRING) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "SNI_server_certs array requires string host name keys" + ); + return FAILURE; + } + + if (VCWD_REALPATH(Z_STRVAL_PP(current), resolved_path_buff)) { + /* The hello method is not inherited by SSL structs when assigning a new context + * inside the SNI callback, so the just use SSLv23 */ + ctx = SSL_CTX_new(SSLv23_server_method()); + + if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting local cert chain file `%s'; " \ + "check that your cafile/capath settings include " \ + "details of your certificate and its issuer", + resolved_path_buff + ); + SSL_CTX_free(ctx); + return FAILURE; + } else if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting private key from file `%s'", + resolved_path_buff + ); + SSL_CTX_free(ctx); + return FAILURE; + } else { + sslsock->sni_certs[i].name = pestrdup(key, php_stream_is_persistent(stream)); + sslsock->sni_certs[i].ctx = ctx; + ++i; + } + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "failed setting local cert chain file `%s'; file not found", + Z_STRVAL_PP(current) + ); + return FAILURE; + } + } + + SSL_CTX_set_tlsext_servername_callback(sslsock->ctx, server_sni_callback); + + return SUCCESS; +} + +static void enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock) /* {{{ */ +{ + zval **val; + char *sni_server_name; + + /* If SNI is explicitly disabled we're finished here */ + if (GET_VER_OPT("SNI_enabled") && !zend_is_true(*val)) { + return; + } + + sni_server_name = sslsock->url_name; + + GET_VER_OPT_STRING("peer_name", sni_server_name); + + if (GET_VER_OPT("SNI_server_name")) { + GET_VER_OPT_STRING("SNI_server_name", sni_server_name); + php_error(E_DEPRECATED, "SNI_server_name is deprecated in favor of peer_name"); + } + + if (sni_server_name) { + SSL_set_tlsext_host_name(sslsock->ssl_handle, sni_server_name); + } +} +/* }}} */ +#endif + +int php_openssl_setup_crypto(php_stream *stream, + php_openssl_netstream_data_t *sslsock, + php_stream_xport_crypto_param *cparam + TSRMLS_DC) /* {{{ */ +{ + const SSL_METHOD *method; + long ssl_ctx_options; + long method_flags; + char *cipherlist = NULL; + zval **val; + + if (sslsock->ssl_handle) { + if (sslsock->s.is_blocked) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL/TLS already set-up for this stream"); + return FAILURE; + } else { + return SUCCESS; + } + } + + ERR_clear_error(); + + /* We need to do slightly different things based on client/server method + * so lets remember which method was selected */ + sslsock->is_client = cparam->inputs.method & STREAM_CRYPTO_IS_CLIENT; + method_flags = ((cparam->inputs.method >> 1) << 1); + + /* Should we use a specific crypto method or is generic SSLv23 okay? */ + if ((method_flags & (method_flags-1)) == 0) { + ssl_ctx_options = SSL_OP_ALL; + method = php_select_crypto_method(method_flags, sslsock->is_client TSRMLS_CC); + if (method == NULL) { + return FAILURE; + } + } else { + method = sslsock->is_client ? SSLv23_client_method() : SSLv23_server_method(); + ssl_ctx_options = php_get_crypto_method_ctx_flags(method_flags TSRMLS_CC); + if (ssl_ctx_options == -1) { + return FAILURE; + } + } + +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->ctx = SSL_CTX_new(method); +#else + /* Avoid const warning with old versions */ + sslsock->ctx = SSL_CTX_new((SSL_METHOD*)method); +#endif + + if (sslsock->ctx == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL context creation failure"); + return FAILURE; + } + +#if OPENSSL_VERSION_NUMBER >= 0x0090806fL + if (GET_VER_OPT("no_ticket") && zend_is_true(*val)) { + ssl_ctx_options |= SSL_OP_NO_TICKET; + } +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x0090605fL + ssl_ctx_options &= ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; +#endif + +#if OPENSSL_VERSION_NUMBER >= 0x10000000L + if (!GET_VER_OPT("disable_compression") || zend_is_true(*val)) { + ssl_ctx_options |= SSL_OP_NO_COMPRESSION; + } +#endif + + if (GET_VER_OPT("verify_peer") && !zend_is_true(*val)) { + disable_peer_verification(sslsock->ctx, stream TSRMLS_CC); + } else if (FAILURE == enable_peer_verification(sslsock->ctx, stream TSRMLS_CC)) { + return FAILURE; + } + + /* callback for the passphrase (for localcert) */ + if (GET_VER_OPT("passphrase")) { + SSL_CTX_set_default_passwd_cb_userdata(sslsock->ctx, stream); + SSL_CTX_set_default_passwd_cb(sslsock->ctx, passwd_callback); + } + + GET_VER_OPT_STRING("ciphers", cipherlist); +#ifndef USE_OPENSSL_SYSTEM_CIPHERS + if (!cipherlist) { + cipherlist = OPENSSL_DEFAULT_STREAM_CIPHERS; + } +#endif + if (cipherlist) { + if (SSL_CTX_set_cipher_list(sslsock->ctx, cipherlist) != 1) { + return FAILURE; + } + } + if (FAILURE == set_local_cert(sslsock->ctx, stream TSRMLS_CC)) { + return FAILURE; + } + + SSL_CTX_set_options(sslsock->ctx, ssl_ctx_options); + + if (sslsock->is_client == 0 && + stream->context && + FAILURE == set_server_specific_opts(stream, sslsock->ctx TSRMLS_CC) + ) { + return FAILURE; + } + + sslsock->ssl_handle = SSL_new(sslsock->ctx); + if (sslsock->ssl_handle == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL handle creation failure"); + SSL_CTX_free(sslsock->ctx); + sslsock->ctx = NULL; + return FAILURE; + } else { + SSL_set_ex_data(sslsock->ssl_handle, php_openssl_get_ssl_stream_data_index(), stream); + } + + if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) { + handle_ssl_error(stream, 0, 1 TSRMLS_CC); + } + +#ifdef HAVE_SNI + /* Enable server-side SNI */ + if (sslsock->is_client == 0 && enable_server_sni(stream, sslsock TSRMLS_CC) == FAILURE) { + return FAILURE; + } +#endif + + /* Enable server-side handshake renegotiation rate-limiting */ + if (sslsock->is_client == 0) { + init_server_reneg_limit(stream, sslsock); + } + +#ifdef SSL_MODE_RELEASE_BUFFERS + do { + long mode = SSL_get_mode(sslsock->ssl_handle); + SSL_set_mode(sslsock->ssl_handle, mode | SSL_MODE_RELEASE_BUFFERS); + } while (0); +#endif + + if (cparam->inputs.session) { + if (cparam->inputs.session->ops != &php_openssl_socket_ops) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied session stream must be an SSL enabled stream"); + } else if (((php_openssl_netstream_data_t*)cparam->inputs.session->abstract)->ssl_handle == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "supplied SSL session stream is not initialized"); + } else { + SSL_copy_session_id(sslsock->ssl_handle, ((php_openssl_netstream_data_t*)cparam->inputs.session->abstract)->ssl_handle); + } + } + + return SUCCESS; +} +/* }}} */ + +static zval *capture_session_meta(SSL *ssl_handle) /* {{{ */ +{ + zval *meta_arr; + char *proto_str; + long proto = SSL_version(ssl_handle); + const SSL_CIPHER *cipher = SSL_get_current_cipher(ssl_handle); + + switch (proto) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + case TLS1_2_VERSION: proto_str = "TLSv1.2"; break; + case TLS1_1_VERSION: proto_str = "TLSv1.1"; break; +#endif + case TLS1_VERSION: proto_str = "TLSv1"; break; + case SSL3_VERSION: proto_str = "SSLv3"; break; + case SSL2_VERSION: proto_str = "SSLv2"; break; + default: proto_str = "UNKNOWN"; + } + + MAKE_STD_ZVAL(meta_arr); + array_init(meta_arr); + add_assoc_string(meta_arr, "protocol", proto_str, 1); + add_assoc_string(meta_arr, "cipher_name", (char *) SSL_CIPHER_get_name(cipher), 1); + add_assoc_long(meta_arr, "cipher_bits", SSL_CIPHER_get_bits(cipher, NULL)); + add_assoc_string(meta_arr, "cipher_version", SSL_CIPHER_get_version(cipher), 1); + + return meta_arr; +} +/* }}} */ + +static int capture_peer_certs(php_stream *stream, php_openssl_netstream_data_t *sslsock, X509 *peer_cert TSRMLS_DC) /* {{{ */ +{ + zval **val, *zcert; + int cert_captured = 0; + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_peer_cert", &val) && + zend_is_true(*val) + ) { + MAKE_STD_ZVAL(zcert); + ZVAL_RESOURCE(zcert, zend_list_insert(peer_cert, php_openssl_get_x509_list_id() TSRMLS_CC)); + php_stream_context_set_option(stream->context, "ssl", "peer_certificate", zcert); + cert_captured = 1; + FREE_ZVAL(zcert); + } + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_peer_cert_chain", &val) && + zend_is_true(*val) + ) { + zval *arr; + STACK_OF(X509) *chain; + + MAKE_STD_ZVAL(arr); + chain = SSL_get_peer_cert_chain(sslsock->ssl_handle); + + if (chain && sk_X509_num(chain) > 0) { + int i; + array_init(arr); + + for (i = 0; i < sk_X509_num(chain); i++) { + X509 *mycert = X509_dup(sk_X509_value(chain, i)); + MAKE_STD_ZVAL(zcert); + ZVAL_RESOURCE(zcert, zend_list_insert(mycert, php_openssl_get_x509_list_id() TSRMLS_CC)); + add_next_index_zval(arr, zcert); + } + + } else { + ZVAL_NULL(arr); + } + + php_stream_context_set_option(stream->context, "ssl", "peer_certificate_chain", arr); + zval_dtor(arr); + efree(arr); + } + + return cert_captured; +} +/* }}} */ + +static int php_openssl_enable_crypto(php_stream *stream, + php_openssl_netstream_data_t *sslsock, + php_stream_xport_crypto_param *cparam + TSRMLS_DC) +{ + int n; + int retry = 1; + int cert_captured; + X509 *peer_cert; + + if (cparam->inputs.activate && !sslsock->ssl_active) { + struct timeval start_time, + *timeout; + int blocked = sslsock->s.is_blocked, + has_timeout = 0; + +#ifdef HAVE_SNI + if (sslsock->is_client) { + enable_client_sni(stream, sslsock); + } +#endif + + if (!sslsock->state_set) { + if (sslsock->is_client) { + SSL_set_connect_state(sslsock->ssl_handle); + } else { + SSL_set_accept_state(sslsock->ssl_handle); + } + sslsock->state_set = 1; + } + + if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC)) { + sslsock->s.is_blocked = 0; + } + + timeout = sslsock->is_client ? &sslsock->connect_timeout : &sslsock->s.timeout; + has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec); + /* gettimeofday is not monotonic; using it here is not strictly correct */ + if (has_timeout) { + gettimeofday(&start_time, NULL); + } + + do { + struct timeval cur_time, + elapsed_time = {0}; + + if (sslsock->is_client) { + n = SSL_connect(sslsock->ssl_handle); + } else { + n = SSL_accept(sslsock->ssl_handle); + } + + if (has_timeout) { + gettimeofday(&cur_time, NULL); + elapsed_time = subtract_timeval( cur_time, start_time ); + + if (compare_timeval( elapsed_time, *timeout) > 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: Handshake timed out"); + return -1; + } + } + + if (n <= 0) { + /* in case of SSL_ERROR_WANT_READ/WRITE, do not retry in non-blocking mode */ + retry = handle_ssl_error(stream, n, blocked TSRMLS_CC); + if (retry) { + /* wait until something interesting happens in the socket. It may be a + * timeout. Also consider the unlikely of possibility of a write block */ + int err = SSL_get_error(sslsock->ssl_handle, n); + struct timeval left_time; + + if (has_timeout) { + left_time = subtract_timeval( *timeout, elapsed_time ); + } + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : POLLOUT, has_timeout ? &left_time : NULL); + } + } else { + retry = 0; + } + } while (retry); + + if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocked TSRMLS_CC)) { + sslsock->s.is_blocked = blocked; + } + + if (n == 1) { + peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); + if (peer_cert && stream->context) { + cert_captured = capture_peer_certs(stream, sslsock, peer_cert TSRMLS_CC); + } + + if (FAILURE == apply_peer_verification_policy(sslsock->ssl_handle, peer_cert, stream TSRMLS_CC)) { + SSL_shutdown(sslsock->ssl_handle); + n = -1; + } else { + sslsock->ssl_active = 1; + + if (stream->context) { + zval **val; + + if (SUCCESS == php_stream_context_get_option(stream->context, + "ssl", "capture_session_meta", &val) && + zend_is_true(*val) + ) { + zval *meta_arr = capture_session_meta(sslsock->ssl_handle); + php_stream_context_set_option(stream->context, "ssl", "session_meta", meta_arr); + zval_dtor(meta_arr); + efree(meta_arr); + } + } + } + } else if (errno == EAGAIN) { + n = 0; + } else { + n = -1; + peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); + if (peer_cert && stream->context) { + cert_captured = capture_peer_certs(stream, sslsock, peer_cert TSRMLS_CC); + } + } + + if (n && peer_cert && cert_captured == 0) { + X509_free(peer_cert); + } + + return n; + + } else if (!cparam->inputs.activate && sslsock->ssl_active) { + /* deactivate - common for server/client */ + SSL_shutdown(sslsock->ssl_handle); + sslsock->ssl_active = 0; + } + + return -1; +} + +static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC)/* {{{ */ +{ + return php_openssl_sockop_io(1, stream, buf, count TSRMLS_CC); +} +/* }}} */ + +static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ +{ + return php_openssl_sockop_io(0, stream, (char*)buf, count TSRMLS_CC); +} +/* }}} */ + +/** + * Factored out common functionality (blocking, timeout, loop management) for read and write. + * Perform IO (read or write) to an SSL socket. If we have a timeout, we switch to non-blocking mode + * for the duration of the operation, using select to do our waits. If we time out, or we have an error + * report that back to PHP + * + */ +static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + int nr_bytes = 0; + + /* Only do this if SSL is active. */ + if (sslsock->ssl_active) { + int retry = 1; + struct timeval start_time; + struct timeval *timeout = NULL; + int began_blocked = sslsock->s.is_blocked; + int has_timeout = 0; + + /* never use a timeout with non-blocking sockets */ + if (began_blocked && &sslsock->s.timeout) { + timeout = &sslsock->s.timeout; + } + + if (timeout && php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC) == SUCCESS) { + sslsock->s.is_blocked = 0; + } + + if (!sslsock->s.is_blocked && timeout && (timeout->tv_sec || timeout->tv_usec)) { + has_timeout = 1; + /* gettimeofday is not monotonic; using it here is not strictly correct */ + gettimeofday(&start_time, NULL); + } + + /* Main IO loop. */ + do { + struct timeval cur_time, elapsed_time, left_time; + + /* If we have a timeout to check, figure out how much time has elapsed since we started. */ + if (has_timeout) { + gettimeofday(&cur_time, NULL); + + /* Determine how much time we've taken so far. */ + elapsed_time = subtract_timeval(cur_time, start_time); + + /* and return an error if we've taken too long. */ + if (compare_timeval(elapsed_time, *timeout) > 0 ) { + /* If the socket was originally blocking, set it back. */ + if (began_blocked) { + php_set_sock_blocking(sslsock->s.socket, 1 TSRMLS_CC); + sslsock->s.is_blocked = 1; + } + sslsock->s.timeout_event = 1; + return -1; + } + } + + /* Now, do the IO operation. Don't block if we can't complete... */ + if (read) { + nr_bytes = SSL_read(sslsock->ssl_handle, buf, count); + + if (sslsock->reneg && sslsock->reneg->should_close) { + /* renegotiation rate limiting triggered */ + php_stream_xport_shutdown(stream, (stream_shutdown_t)SHUT_RDWR TSRMLS_CC); + nr_bytes = 0; + stream->eof = 1; + break; + } + } else { + nr_bytes = SSL_write(sslsock->ssl_handle, buf, count); + } + + /* Now, how much time until we time out? */ + if (has_timeout) { + left_time = subtract_timeval( *timeout, elapsed_time ); + } + + /* If we didn't do anything on the last loop (or an error) check to see if we should retry or exit. */ + if (nr_bytes <= 0) { + + /* Get the error code from SSL, and check to see if it's an error or not. */ + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); + retry = handle_ssl_error(stream, nr_bytes, 0 TSRMLS_CC); + + /* If we get this (the above doesn't check) then we'll retry as well. */ + if (errno == EAGAIN && err == SSL_ERROR_WANT_READ && read) { + retry = 1; + } + if (errno == EAGAIN && err == SSL_ERROR_WANT_WRITE && read == 0) { + retry = 1; + } + + /* Also, on reads, we may get this condition on an EOF. We should check properly. */ + if (read) { + stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle)); + } + + /* Don't loop indefinitely in non-blocking mode if no data is available */ + if (began_blocked == 0) { + break; + } + + /* Now, if we have to wait some time, and we're supposed to be blocking, wait for the socket to become + * available. Now, php_pollfd_for uses select to wait up to our time_left value only... + */ + if (retry) { + if (read) { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? + (POLLOUT|POLLPRI) : (POLLIN|POLLPRI), has_timeout ? &left_time : NULL); + } else { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : (POLLOUT|POLLPRI), has_timeout ? &left_time : NULL); + } + } + } else { + /* Else, if we got bytes back, check for possible errors. */ + int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); + + /* If we didn't get any error, then let's return it to PHP. */ + if (err == SSL_ERROR_NONE) + break; + + /* Otherwise, we need to wait again (up to time_left or we get an error) */ + if (began_blocked) { + if (read) { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_WRITE) ? + (POLLOUT|POLLPRI) : (POLLIN|POLLPRI), has_timeout ? &left_time : NULL); + } else { + php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ? + (POLLIN|POLLPRI) : (POLLOUT|POLLPRI), has_timeout ? &left_time : NULL); + } + } + } + /* Finally, we keep going until we got data, and an SSL_ERROR_NONE, unless we had an error. */ + } while (retry); + + /* Tell PHP if we read / wrote bytes. */ + if (nr_bytes > 0) { + php_stream_notify_progress_increment(stream->context, nr_bytes, 0); + } + + /* And if we were originally supposed to be blocking, let's reset the socket to that. */ + if (began_blocked && php_set_sock_blocking(sslsock->s.socket, 1 TSRMLS_CC) == SUCCESS) { + sslsock->s.is_blocked = 1; + } + } else { + /* + * This block is if we had no timeout... We will just sit and wait forever on the IO operation. + */ + if (read) { + nr_bytes = php_stream_socket_ops.read(stream, buf, count TSRMLS_CC); + } else { + nr_bytes = php_stream_socket_ops.write(stream, buf, count TSRMLS_CC); + } + } + + /* PHP doesn't expect a negative return. */ + if (nr_bytes < 0) { + nr_bytes = 0; + } + + return nr_bytes; +} +/* }}} */ + +struct timeval subtract_timeval( struct timeval a, struct timeval b ) +{ + struct timeval difference; + + difference.tv_sec = a.tv_sec - b.tv_sec; + difference.tv_usec = a.tv_usec - b.tv_usec; + + if (a.tv_usec < b.tv_usec) { + b.tv_sec -= 1L; + b.tv_usec += 1000000L; + } + + return difference; +} + +int compare_timeval( struct timeval a, struct timeval b ) +{ + if (a.tv_sec > b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_usec > b.tv_usec) ) { + return 1; + } else if( a.tv_sec == b.tv_sec && a.tv_usec == b.tv_usec ) { + return 0; + } else { + return -1; + } +} + +static int php_openssl_sockop_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; +#ifdef PHP_WIN32 + int n; +#endif + unsigned i; + + if (close_handle) { + if (sslsock->ssl_active) { + SSL_shutdown(sslsock->ssl_handle); + sslsock->ssl_active = 0; + } + if (sslsock->ssl_handle) { + SSL_free(sslsock->ssl_handle); + sslsock->ssl_handle = NULL; + } + if (sslsock->ctx) { + SSL_CTX_free(sslsock->ctx); + sslsock->ctx = NULL; + } +#ifdef PHP_WIN32 + if (sslsock->s.socket == -1) + sslsock->s.socket = SOCK_ERR; +#endif + if (sslsock->s.socket != SOCK_ERR) { +#ifdef PHP_WIN32 + /* prevent more data from coming in */ + shutdown(sslsock->s.socket, SHUT_RD); + + /* try to make sure that the OS sends all data before we close the connection. + * Essentially, we are waiting for the socket to become writeable, which means + * that all pending data has been sent. + * We use a small timeout which should encourage the OS to send the data, + * but at the same time avoid hanging indefinitely. + * */ + do { + n = php_pollfd_for_ms(sslsock->s.socket, POLLOUT, 500); + } while (n == -1 && php_socket_errno() == EINTR); +#endif + closesocket(sslsock->s.socket); + sslsock->s.socket = SOCK_ERR; + } + } + + if (sslsock->sni_certs) { + for (i = 0; i < sslsock->sni_cert_count; i++) { + if (sslsock->sni_certs[i].ctx) { + SSL_CTX_free(sslsock->sni_certs[i].ctx); + pefree(sslsock->sni_certs[i].name, php_stream_is_persistent(stream)); + } + } + pefree(sslsock->sni_certs, php_stream_is_persistent(stream)); + sslsock->sni_certs = NULL; + } + + if (sslsock->url_name) { + pefree(sslsock->url_name, php_stream_is_persistent(stream)); + } + + if (sslsock->reneg) { + pefree(sslsock->reneg, php_stream_is_persistent(stream)); + } + + pefree(sslsock, php_stream_is_persistent(stream)); + + return 0; +} +/* }}} */ + +static int php_openssl_sockop_flush(php_stream *stream TSRMLS_DC) /* {{{ */ +{ + return php_stream_socket_ops.flush(stream TSRMLS_CC); +} +/* }}} */ + +static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */ +{ + return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); +} +/* }}} */ + +static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_netstream_data_t *sock, + php_stream_xport_param *xparam STREAMS_DC TSRMLS_DC) +{ + int clisock; + + xparam->outputs.client = NULL; + + clisock = php_network_accept_incoming(sock->s.socket, + xparam->want_textaddr ? &xparam->outputs.textaddr : NULL, + xparam->want_textaddr ? &xparam->outputs.textaddrlen : NULL, + xparam->want_addr ? &xparam->outputs.addr : NULL, + xparam->want_addr ? &xparam->outputs.addrlen : NULL, + xparam->inputs.timeout, + xparam->want_errortext ? &xparam->outputs.error_text : NULL, + &xparam->outputs.error_code + TSRMLS_CC); + + if (clisock >= 0) { + php_openssl_netstream_data_t *clisockdata; + + clisockdata = emalloc(sizeof(*clisockdata)); + + if (clisockdata == NULL) { + closesocket(clisock); + /* technically a fatal error */ + } else { + /* copy underlying tcp fields */ + memset(clisockdata, 0, sizeof(*clisockdata)); + memcpy(clisockdata, sock, sizeof(clisockdata->s)); + + clisockdata->s.socket = clisock; + + xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); + if (xparam->outputs.client) { + xparam->outputs.client->context = stream->context; + if (stream->context) { + zend_list_addref(stream->context->rsrc_id); + } + } + } + + if (xparam->outputs.client && sock->enable_on_connect) { + /* remove the client bit */ + if (sock->method & STREAM_CRYPTO_IS_CLIENT) { + sock->method = ((sock->method >> 1) << 1); + } + + clisockdata->method = sock->method; + + if (php_stream_xport_crypto_setup(xparam->outputs.client, clisockdata->method, + NULL TSRMLS_CC) < 0 || php_stream_xport_crypto_enable( + xparam->outputs.client, 1 TSRMLS_CC) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to enable crypto"); + + php_stream_close(xparam->outputs.client); + xparam->outputs.client = NULL; + xparam->outputs.returncode = -1; + } + } + } + + return xparam->outputs.client == NULL ? -1 : 0; +} + +static int php_openssl_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + php_stream_xport_crypto_param *cparam = (php_stream_xport_crypto_param *)ptrparam; + php_stream_xport_param *xparam = (php_stream_xport_param *)ptrparam; + + switch (option) { + case PHP_STREAM_OPTION_CHECK_LIVENESS: + { + struct timeval tv; + char buf; + int alive = 1; + + if (value == -1) { + if (sslsock->s.timeout.tv_sec == -1) { + tv.tv_sec = FG(default_socket_timeout); + tv.tv_usec = 0; + } else { + tv = sslsock->connect_timeout; + } + } else { + tv.tv_sec = value; + tv.tv_usec = 0; + } + + if (sslsock->s.socket == -1) { + alive = 0; + } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { + if (sslsock->ssl_active) { + int n; + + do { + n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); + if (n <= 0) { + int err = SSL_get_error(sslsock->ssl_handle, n); + + if (err == SSL_ERROR_SYSCALL) { + alive = php_socket_errno() == EAGAIN; + break; + } + + if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) { + /* re-negotiate */ + continue; + } + + /* any other problem is a fatal error */ + alive = 0; + } + /* either peek succeeded or there was an error; we + * have set the alive flag appropriately */ + break; + } while (1); + } else if (0 == recv(sslsock->s.socket, &buf, sizeof(buf), MSG_PEEK) && php_socket_errno() != EAGAIN) { + alive = 0; + } + } + return alive ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; + } + + case PHP_STREAM_OPTION_CRYPTO_API: + + switch(cparam->op) { + + case STREAM_XPORT_CRYPTO_OP_SETUP: + cparam->outputs.returncode = php_openssl_setup_crypto(stream, sslsock, cparam TSRMLS_CC); + return PHP_STREAM_OPTION_RETURN_OK; + break; + case STREAM_XPORT_CRYPTO_OP_ENABLE: + cparam->outputs.returncode = php_openssl_enable_crypto(stream, sslsock, cparam TSRMLS_CC); + return PHP_STREAM_OPTION_RETURN_OK; + break; + default: + /* fall through */ + break; + } + + break; + + case PHP_STREAM_OPTION_XPORT_API: + switch(xparam->op) { + + case STREAM_XPORT_OP_CONNECT: + case STREAM_XPORT_OP_CONNECT_ASYNC: + /* TODO: Async connects need to check the enable_on_connect option when + * we notice that the connect has actually been established */ + php_stream_socket_ops.set_option(stream, option, value, ptrparam TSRMLS_CC); + + if ((sslsock->enable_on_connect) && + ((xparam->outputs.returncode == 0) || + (xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC && + xparam->outputs.returncode == 1 && xparam->outputs.error_code == EINPROGRESS))) + { + if (php_stream_xport_crypto_setup(stream, sslsock->method, NULL TSRMLS_CC) < 0 || + php_stream_xport_crypto_enable(stream, 1 TSRMLS_CC) < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to enable crypto"); + xparam->outputs.returncode = -1; + } + } + return PHP_STREAM_OPTION_RETURN_OK; + + case STREAM_XPORT_OP_ACCEPT: + /* we need to copy the additional fields that the underlying tcp transport + * doesn't know about */ + xparam->outputs.returncode = php_openssl_tcp_sockop_accept(stream, sslsock, xparam STREAMS_CC TSRMLS_CC); + + + return PHP_STREAM_OPTION_RETURN_OK; + + default: + /* fall through */ + break; + } + } + + return php_stream_socket_ops.set_option(stream, option, value, ptrparam TSRMLS_CC); +} + +static int php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) +{ + php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; + + switch(castas) { + case PHP_STREAM_AS_STDIO: + if (sslsock->ssl_active) { + return FAILURE; + } + if (ret) { + *ret = fdopen(sslsock->s.socket, stream->mode); + if (*ret) { + return SUCCESS; + } + return FAILURE; + } + return SUCCESS; + + case PHP_STREAM_AS_FD_FOR_SELECT: + if (ret) { + size_t pending; + if (stream->writepos == stream->readpos + && sslsock->ssl_active + && (pending = (size_t)SSL_pending(sslsock->ssl_handle)) > 0) { + php_stream_fill_read_buffer(stream, pending < stream->chunk_size + ? pending + : stream->chunk_size); + } + + *(php_socket_t *)ret = sslsock->s.socket; + } + return SUCCESS; + + case PHP_STREAM_AS_FD: + case PHP_STREAM_AS_SOCKETD: + if (sslsock->ssl_active) { + return FAILURE; + } + if (ret) { + *(php_socket_t *)ret = sslsock->s.socket; + } + return SUCCESS; + default: + return FAILURE; + } +} + +php_stream_ops php_openssl_socket_ops = { + php_openssl_sockop_write, php_openssl_sockop_read, + php_openssl_sockop_close, php_openssl_sockop_flush, + "tcp_socket/ssl", + NULL, /* seek */ + php_openssl_sockop_cast, + php_openssl_sockop_stat, + php_openssl_sockop_set_option, +}; + +static long get_crypto_method(php_stream_context *ctx, long crypto_method) +{ + zval **val; + + if (ctx && php_stream_context_get_option(ctx, "ssl", "crypto_method", &val) == SUCCESS) { + convert_to_long_ex(val); + crypto_method = (long)Z_LVAL_PP(val); + crypto_method |= STREAM_CRYPTO_IS_CLIENT; + } + + return crypto_method; +} + +static char *get_url_name(const char *resourcename, size_t resourcenamelen, int is_persistent TSRMLS_DC) +{ + php_url *url; + + if (!resourcename) { + return NULL; + } + + url = php_url_parse_ex(resourcename, resourcenamelen); + if (!url) { + return NULL; + } + + if (url->host) { + const char * host = url->host; + char * url_name = NULL; + size_t len = strlen(host); + + /* skip trailing dots */ + while (len && host[len-1] == '.') { + --len; + } + + if (len) { + url_name = pestrndup(host, len, is_persistent); + } + + php_url_free(url); + return url_name; + } + + php_url_free(url); + return NULL; +} + +php_stream *php_openssl_ssl_socket_factory(const char *proto, size_t protolen, + const char *resourcename, size_t resourcenamelen, + const char *persistent_id, int options, int flags, + struct timeval *timeout, + php_stream_context *context STREAMS_DC TSRMLS_DC) +{ + php_stream *stream = NULL; + php_openssl_netstream_data_t *sslsock = NULL; + + sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); + memset(sslsock, 0, sizeof(*sslsock)); + + sslsock->s.is_blocked = 1; + /* this timeout is used by standard stream funcs, therefor it should use the default value */ + sslsock->s.timeout.tv_sec = FG(default_socket_timeout); + sslsock->s.timeout.tv_usec = 0; + + /* use separate timeout for our private funcs */ + sslsock->connect_timeout.tv_sec = timeout->tv_sec; + sslsock->connect_timeout.tv_usec = timeout->tv_usec; + + /* we don't know the socket until we have determined if we are binding or + * connecting */ + sslsock->s.socket = -1; + + /* Initialize context as NULL */ + sslsock->ctx = NULL; + + stream = php_stream_alloc_rel(&php_openssl_socket_ops, sslsock, persistent_id, "r+"); + + if (stream == NULL) { + pefree(sslsock, persistent_id ? 1 : 0); + return NULL; + } + + if (strncmp(proto, "ssl", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_ANY_CLIENT); + } else if (strncmp(proto, "sslv2", protolen) == 0) { +#ifdef OPENSSL_NO_SSL2 + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSLv2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#else + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_SSLv2_CLIENT; +#endif + } else if (strncmp(proto, "sslv3", protolen) == 0) { +#ifdef OPENSSL_NO_SSL3 + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSLv3 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#else + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_SSLv3_CLIENT; +#endif + } else if (strncmp(proto, "tls", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_TLS_CLIENT); + } else if (strncmp(proto, "tlsv1.0", protolen) == 0) { + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT; + } else if (strncmp(proto, "tlsv1.1", protolen) == 0) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT; +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, "TLSv1.1 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } else if (strncmp(proto, "tlsv1.2", protolen) == 0) { +#if OPENSSL_VERSION_NUMBER >= 0x10001001L + sslsock->enable_on_connect = 1; + sslsock->method = STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; +#else + php_error_docref(NULL TSRMLS_CC, E_WARNING, "TLSv1.2 support is not compiled into the OpenSSL library PHP is linked against"); + return NULL; +#endif + } + + sslsock->url_name = get_url_name(resourcename, resourcenamelen, !!persistent_id TSRMLS_CC); + + return stream; +} + + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ diff --git a/tests/fixtures/php/5.6.40/ext/phar/util.c b/tests/fixtures/php/5.6.40/ext/phar/util.c new file mode 100644 index 000000000..828be8f9a --- /dev/null +++ b/tests/fixtures/php/5.6.40/ext/phar/util.c @@ -0,0 +1,2142 @@ +/* + +----------------------------------------------------------------------+ + | phar php single-file executable PHP extension | + | utility functions | + +----------------------------------------------------------------------+ + | Copyright (c) 2005-2016 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Gregory Beaver | + | Marcus Boerger | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#include "phar_internal.h" +#ifdef PHAR_HASH_OK +#include "ext/hash/php_hash_sha.h" +#endif + +#ifdef PHAR_HAVE_OPENSSL +/* OpenSSL includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#else +static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC); +#endif + +/* for links to relative location, prepend cwd of the entry */ +static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC) /* {{{ */ +{ + char *p, *ret = NULL; + if (!entry->link) { + return NULL; + } + if (entry->link[0] == '/') { + return estrdup(entry->link + 1); + } + p = strrchr(entry->filename, '/'); + if (p) { + *p = '\0'; + spprintf(&ret, 0, "%s/%s", entry->filename, entry->link); + return ret; + } + return entry->link; +} +/* }}} */ + +phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC) /* {{{ */ +{ + phar_entry_info *link_entry; + char *link; + + if (!entry->link) { + return entry; + } + + link = phar_get_link_location(entry TSRMLS_CC); + if (SUCCESS == zend_hash_find(&(entry->phar->manifest), entry->link, strlen(entry->link), (void **)&link_entry) || + SUCCESS == zend_hash_find(&(entry->phar->manifest), link, strlen(link), (void **)&link_entry)) { + if (link != entry->link) { + efree(link); + } + return phar_get_link_source(link_entry TSRMLS_CC); + } else { + if (link != entry->link) { + efree(link); + } + return NULL; + } +} +/* }}} */ + +/* retrieve a phar_entry_info's current file pointer for reading contents */ +php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) /* {{{ */ +{ + if (follow_links && entry->link) { + phar_entry_info *link_entry = phar_get_link_source(entry TSRMLS_CC); + + if (link_entry && link_entry != entry) { + return phar_get_efp(link_entry, 1 TSRMLS_CC); + } + } + + if (phar_get_fp_type(entry TSRMLS_CC) == PHAR_FP) { + if (!phar_get_entrypfp(entry TSRMLS_CC)) { + /* re-open just in time for cases where our refcount reached 0 on the phar archive */ + phar_open_archive_fp(entry->phar TSRMLS_CC); + } + return phar_get_entrypfp(entry TSRMLS_CC); + } else if (phar_get_fp_type(entry TSRMLS_CC) == PHAR_UFP) { + return phar_get_entrypufp(entry TSRMLS_CC); + } else if (entry->fp_type == PHAR_MOD) { + return entry->fp; + } else { + /* temporary manifest entry */ + if (!entry->fp) { + entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); + } + return entry->fp; + } +} +/* }}} */ + +int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) /* {{{ */ +{ + php_stream *fp = phar_get_efp(entry, follow_links TSRMLS_CC); + off_t temp, eoffset; + + if (!fp) { + return -1; + } + + if (follow_links) { + phar_entry_info *t; + t = phar_get_link_source(entry TSRMLS_CC); + if (t) { + entry = t; + } + } + + if (entry->is_dir) { + return 0; + } + + eoffset = phar_get_fp_offset(entry TSRMLS_CC); + + switch (whence) { + case SEEK_END: + temp = eoffset + entry->uncompressed_filesize + offset; + break; + case SEEK_CUR: + temp = eoffset + position + offset; + break; + case SEEK_SET: + temp = eoffset + offset; + break; + default: + temp = 0; + } + + if (temp > eoffset + (off_t) entry->uncompressed_filesize) { + return -1; + } + + if (temp < eoffset) { + return -1; + } + + return php_stream_seek(fp, temp, SEEK_SET); +} +/* }}} */ + +/* mount an absolute path or uri to a path internal to the phar archive */ +int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */ +{ + phar_entry_info entry = {0}; + php_stream_statbuf ssb; + int is_phar; + const char *err; + + if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) { + return FAILURE; + } + + if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { + /* no creating magic phar files by mounting them */ + return FAILURE; + } + + is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); + + entry.phar = phar; + entry.filename = estrndup(path, path_len); +#ifdef PHP_WIN32 + phar_unixify_path_separators(entry.filename, path_len); +#endif + entry.filename_len = path_len; + if (is_phar) { + entry.tmp = estrndup(filename, filename_len); + } else { + entry.tmp = expand_filepath(filename, NULL TSRMLS_CC); + if (!entry.tmp) { + entry.tmp = estrndup(filename, filename_len); + } + } +#if PHP_API_VERSION < 20100412 + if (PG(safe_mode) && !is_phar && (!php_checkuid(entry.tmp, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } +#endif + filename = entry.tmp; + + /* only check openbasedir for files, not for phar streams */ + if (!is_phar && php_check_open_basedir(filename TSRMLS_CC)) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + + entry.is_mounted = 1; + entry.is_crc_checked = 1; + entry.fp_type = PHAR_TMP; + + if (SUCCESS != php_stream_stat_path(filename, &ssb)) { + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + + if (ssb.sb.st_mode & S_IFDIR) { + entry.is_dir = 1; + if (SUCCESS != zend_hash_add(&phar->mounted_dirs, entry.filename, path_len, (void *)&(entry.filename), sizeof(char *), NULL)) { + /* directory already mounted */ + efree(entry.tmp); + efree(entry.filename); + return FAILURE; + } + } else { + entry.is_dir = 0; + entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; + } + + entry.flags = ssb.sb.st_mode; + + if (SUCCESS == zend_hash_add(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof(phar_entry_info), NULL)) { + return SUCCESS; + } + + efree(entry.tmp); + efree(entry.filename); + return FAILURE; +} +/* }}} */ + +char *phar_find_in_include_path(char *filename, int filename_len, phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + char *path, *fname, *arch, *entry, *ret, *test; + int arch_len, entry_len, fname_len, ret_len; + phar_archive_data *phar; + + if (pphar) { + *pphar = NULL; + } else { + pphar = &phar; + } + + if (!zend_is_executing(TSRMLS_C) || !PHAR_G(cwd)) { + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } + + fname = (char*)zend_get_executed_filename(TSRMLS_C); + fname_len = strlen(fname); + + if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) { + arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); + arch_len = PHAR_G(last_phar_name_len); + phar = PHAR_G(last_phar); + goto splitted; + } + + if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) { + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } + + efree(entry); + + if (*filename == '.') { + int try_len; + + if (FAILURE == phar_get_archive(&phar, arch, arch_len, NULL, 0, NULL TSRMLS_CC)) { + efree(arch); + return phar_save_resolve_path(filename, filename_len TSRMLS_CC); + } +splitted: + if (pphar) { + *pphar = phar; + } + + try_len = filename_len; + test = phar_fix_filepath(estrndup(filename, filename_len), &try_len, 1 TSRMLS_CC); + + if (*test == '/') { + if (zend_hash_exists(&(phar->manifest), test + 1, try_len - 1)) { + spprintf(&ret, 0, "phar://%s%s", arch, test); + efree(arch); + efree(test); + return ret; + } + } else { + if (zend_hash_exists(&(phar->manifest), test, try_len)) { + spprintf(&ret, 0, "phar://%s/%s", arch, test); + efree(arch); + efree(test); + return ret; + } + } + efree(test); + } + + spprintf(&path, MAXPATHLEN, "phar://%s/%s%c%s", arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path)); + efree(arch); + ret = php_resolve_path(filename, filename_len, path TSRMLS_CC); + efree(path); + + if (ret && strlen(ret) > 8 && !strncmp(ret, "phar://", 7)) { + ret_len = strlen(ret); + /* found phar:// */ + + if (SUCCESS != phar_split_fname(ret, ret_len, &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) { + return ret; + } + + zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), arch, arch_len, (void **) &pphar); + + if (!pphar && PHAR_G(manifest_cached)) { + zend_hash_find(&cached_phars, arch, arch_len, (void **) &pphar); + } + + efree(arch); + efree(entry); + } + + return ret; +} +/* }}} */ + +/** + * Retrieve a copy of the file information on a single file within a phar, or null. + * This also transfers the open file pointer, if any, to the entry. + * + * If the file does not already exist, this will fail. Pre-existing files can be + * appended, truncated, or read. For read, if the entry is marked unmodified, it is + * assumed that the file pointer, if present, is opened for reading + */ +int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + phar_entry_info *entry; + int for_write = mode[0] != 'r' || mode[1] == '+'; + int for_append = mode[0] == 'a'; + int for_create = mode[0] != 'r'; + int for_trunc = mode[0] == 'w'; + + if (!ret) { + return FAILURE; + } + + *ret = NULL; + + if (error) { + *error = NULL; + } + + if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { + return FAILURE; + } + + if (for_write && PHAR_G(readonly) && !phar->is_data) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname); + } + return FAILURE; + } + + if (!path_len) { + if (error) { + spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); + } + return FAILURE; + } +really_get_entry: + if (allow_dir) { + if ((entry = phar_get_entry_info_dir(phar, path, path_len, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_CC)) == NULL) { + if (for_create && (!PHAR_G(readonly) || phar->is_data)) { + return SUCCESS; + } + return FAILURE; + } + } else { + if ((entry = phar_get_entry_info(phar, path, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_CC)) == NULL) { + if (for_create && (!PHAR_G(readonly) || phar->is_data)) { + return SUCCESS; + } + return FAILURE; + } + } + + if (for_write && phar->is_persistent) { + if (FAILURE == phar_copy_on_write(&phar TSRMLS_CC)) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname); + } + return FAILURE; + } else { + goto really_get_entry; + } + } + + if (entry->is_modified && !for_write) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname); + } + return FAILURE; + } + + if (entry->fp_refcount && for_write) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname); + } + return FAILURE; + } + + if (entry->is_deleted) { + if (!for_create) { + return FAILURE; + } + entry->is_deleted = 0; + } + + if (entry->is_dir) { + *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + (*ret)->position = 0; + (*ret)->fp = NULL; + (*ret)->phar = phar; + (*ret)->for_write = for_write; + (*ret)->internal_file = entry; + (*ret)->is_zip = entry->is_zip; + (*ret)->is_tar = entry->is_tar; + + if (!phar->is_persistent) { + ++(entry->phar->refcount); + ++(entry->fp_refcount); + } + + return SUCCESS; + } + + if (entry->fp_type == PHAR_MOD) { + if (for_trunc) { + if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { + return FAILURE; + } + } else if (for_append) { + phar_seek_efp(entry, 0, SEEK_END, 0, 0 TSRMLS_CC); + } + } else { + if (for_write) { + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + if (for_trunc) { + if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { + return FAILURE; + } + } else { + if (FAILURE == phar_separate_entry_fp(entry, error TSRMLS_CC)) { + return FAILURE; + } + } + } else { + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return FAILURE; + } + } + } + + *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + (*ret)->position = 0; + (*ret)->phar = phar; + (*ret)->for_write = for_write; + (*ret)->internal_file = entry; + (*ret)->is_zip = entry->is_zip; + (*ret)->is_tar = entry->is_tar; + (*ret)->fp = phar_get_efp(entry, 1 TSRMLS_CC); + if (entry->link) { + phar_entry_info *link = phar_get_link_source(entry TSRMLS_CC); + if(!link) { + efree(*ret); + return FAILURE; + } + (*ret)->zero = phar_get_fp_offset(link TSRMLS_CC); + } else { + (*ret)->zero = phar_get_fp_offset(entry TSRMLS_CC); + } + + if (!phar->is_persistent) { + ++(entry->fp_refcount); + ++(entry->phar->refcount); + } + + return SUCCESS; +} +/* }}} */ + +/** + * Create a new dummy file slot within a writeable phar for a newly created file + */ +phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + phar_entry_info *entry, etemp; + phar_entry_data *ret; + const char *pcr_error; + char is_dir; + +#ifdef PHP_WIN32 + phar_unixify_path_separators(path, path_len); +#endif + + is_dir = (path_len && path[path_len - 1] == '/') ? 1 : 0; + + if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { + return NULL; + } + + if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security TSRMLS_CC)) { + return NULL; + } else if (ret) { + return ret; + } + + if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { + if (error) { + spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); + } + return NULL; + } + + if (phar->is_persistent && FAILURE == phar_copy_on_write(&phar TSRMLS_CC)) { + if (error) { + spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make cached phar writeable", path, fname); + } + return NULL; + } + + /* create a new phar data holder */ + ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); + + /* create an entry, this is a new file */ + memset(&etemp, 0, sizeof(phar_entry_info)); + etemp.filename_len = path_len; + etemp.fp_type = PHAR_MOD; + etemp.fp = php_stream_fopen_tmpfile(); + + if (!etemp.fp) { + if (error) { + spprintf(error, 0, "phar error: unable to create temporary file"); + } + efree(ret); + return NULL; + } + + etemp.fp_refcount = 1; + + if (allow_dir == 2) { + etemp.is_dir = 1; + etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_DIR; + } else { + etemp.flags = etemp.old_flags = PHAR_ENT_PERM_DEF_FILE; + } + if (is_dir) { + etemp.filename_len--; /* strip trailing / */ + path_len--; + } + + phar_add_virtual_dirs(phar, path, path_len TSRMLS_CC); + etemp.is_modified = 1; + etemp.timestamp = time(0); + etemp.is_crc_checked = 1; + etemp.phar = phar; + etemp.filename = estrndup(path, path_len); + etemp.is_zip = phar->is_zip; + + if (phar->is_tar) { + etemp.is_tar = phar->is_tar; + etemp.tar_type = etemp.is_dir ? TAR_DIR : TAR_FILE; + } + + if (FAILURE == zend_hash_add(&phar->manifest, etemp.filename, path_len, (void*)&etemp, sizeof(phar_entry_info), (void **) &entry)) { + php_stream_close(etemp.fp); + if (error) { + spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, phar->fname); + } + efree(ret); + efree(etemp.filename); + return NULL; + } + + if (!entry) { + php_stream_close(etemp.fp); + efree(etemp.filename); + efree(ret); + return NULL; + } + + ++(phar->refcount); + ret->phar = phar; + ret->fp = entry->fp; + ret->position = ret->zero = 0; + ret->for_write = 1; + ret->is_zip = entry->is_zip; + ret->is_tar = entry->is_tar; + ret->internal_file = entry; + + return ret; +} +/* }}} */ + +/* initialize a phar_archive_data's read-only fp for existing phar data */ +int phar_open_archive_fp(phar_archive_data *phar TSRMLS_DC) /* {{{ */ +{ + if (phar_get_pharfp(phar TSRMLS_CC)) { + return SUCCESS; + } + + if (php_check_open_basedir(phar->fname TSRMLS_CC)) { + return FAILURE; + } + + phar_set_pharfp(phar, php_stream_open_wrapper(phar->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, NULL) TSRMLS_CC); + + if (!phar_get_pharfp(phar TSRMLS_CC)) { + return FAILURE; + } + + return SUCCESS; +} +/* }}} */ + +/* copy file data from an existing to a new phar_entry_info that is not in the manifest */ +int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC) /* {{{ */ +{ + phar_entry_info *link; + + if (FAILURE == phar_open_entry_fp(source, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + if (dest->link) { + efree(dest->link); + dest->link = NULL; + dest->tar_type = (dest->is_tar ? TAR_FILE : '\0'); + } + + dest->fp_type = PHAR_MOD; + dest->offset = 0; + dest->is_modified = 1; + dest->fp = php_stream_fopen_tmpfile(); + if (dest->fp == NULL) { + spprintf(error, 0, "phar error: unable to create temporary file"); + return EOF; + } + phar_seek_efp(source, 0, SEEK_SET, 0, 1 TSRMLS_CC); + link = phar_get_link_source(source TSRMLS_CC); + + if (!link) { + link = source; + } + + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), dest->fp, link->uncompressed_filesize, NULL)) { + php_stream_close(dest->fp); + dest->fp_type = PHAR_FP; + if (error) { + spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archive \"%s\"", source->filename, dest->filename, source->phar->fname); + } + return FAILURE; + } + + return SUCCESS; +} +/* }}} */ + +/* open and decompress a compressed phar entry + */ +int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) /* {{{ */ +{ + php_stream_filter *filter; + phar_archive_data *phar = entry->phar; + char *filtername; + off_t loc; + php_stream *ufp; + phar_entry_data dummy; + + if (follow_links && entry->link) { + phar_entry_info *link_entry = phar_get_link_source(entry TSRMLS_CC); + if (link_entry && link_entry != entry) { + return phar_open_entry_fp(link_entry, error, 1 TSRMLS_CC); + } + } + + if (entry->is_modified) { + return SUCCESS; + } + + if (entry->fp_type == PHAR_TMP) { + if (!entry->fp) { + entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); + } + return SUCCESS; + } + + if (entry->fp_type != PHAR_FP) { + /* either newly created or already modified */ + return SUCCESS; + } + + if (!phar_get_pharfp(phar TSRMLS_CC)) { + if (FAILURE == phar_open_archive_fp(phar TSRMLS_CC)) { + spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); + return FAILURE; + } + } + + if ((entry->old_flags && !(entry->old_flags & PHAR_ENT_COMPRESSION_MASK)) || !(entry->flags & PHAR_ENT_COMPRESSION_MASK)) { + dummy.internal_file = entry; + dummy.phar = phar; + dummy.zero = entry->offset; + dummy.fp = phar_get_pharfp(phar TSRMLS_CC); + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { + return FAILURE; + } + return SUCCESS; + } + + if (!phar_get_entrypufp(entry TSRMLS_CC)) { + phar_set_entrypufp(entry, php_stream_fopen_tmpfile() TSRMLS_CC); + if (!phar_get_entrypufp(entry TSRMLS_CC)) { + spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\" file \"%s\"", phar->fname, entry->filename); + return FAILURE; + } + } + + dummy.internal_file = entry; + dummy.phar = phar; + dummy.zero = entry->offset; + dummy.fp = phar_get_pharfp(phar TSRMLS_CC); + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + ufp = phar_get_entrypufp(entry TSRMLS_CC); + + if ((filtername = phar_decompress_filter(entry, 0)) != NULL) { + filter = php_stream_filter_create(filtername, NULL, 0 TSRMLS_CC); + } else { + filter = NULL; + } + + if (!filter) { + spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decompressing file \"%s\")", phar->fname, phar_decompress_filter(entry, 1), entry->filename); + return FAILURE; + } + + /* now we can safely use proper decompression */ + /* save the new offset location within ufp */ + php_stream_seek(ufp, 0, SEEK_END); + loc = php_stream_tell(ufp); + php_stream_filter_append(&ufp->writefilters, filter); + php_stream_seek(phar_get_entrypfp(entry TSRMLS_CC), phar_get_fp_offset(entry TSRMLS_CC), SEEK_SET); + + if (entry->uncompressed_filesize) { + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_entrypfp(entry TSRMLS_CC), ufp, entry->compressed_filesize, NULL)) { + spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); + php_stream_filter_remove(filter, 1 TSRMLS_CC); + return FAILURE; + } + } + + php_stream_filter_flush(filter, 1); + php_stream_flush(ufp); + php_stream_filter_remove(filter, 1 TSRMLS_CC); + + if (php_stream_tell(ufp) - loc != (off_t) entry->uncompressed_filesize) { + spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); + return FAILURE; + } + + entry->old_flags = entry->flags; + + /* this is now the new location of the file contents within this fp */ + phar_set_fp_type(entry, PHAR_UFP, loc TSRMLS_CC); + dummy.zero = entry->offset; + dummy.fp = ufp; + if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0 TSRMLS_CC)) { + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + if (entry->fp_type == PHAR_MOD) { + /* already newly created, truncate */ + php_stream_truncate_set_size(entry->fp, 0); + + entry->old_flags = entry->flags; + entry->is_modified = 1; + phar->is_modified = 1; + /* reset file size */ + entry->uncompressed_filesize = 0; + entry->compressed_filesize = 0; + entry->crc32 = 0; + entry->flags = PHAR_ENT_PERM_DEF_FILE; + entry->fp_type = PHAR_MOD; + entry->offset = 0; + return SUCCESS; + } + + if (error) { + *error = NULL; + } + + /* open a new temp file for writing */ + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + entry->fp = php_stream_fopen_tmpfile(); + + if (!entry->fp) { + if (error) { + spprintf(error, 0, "phar error: unable to create temporary file"); + } + return FAILURE; + } + + entry->old_flags = entry->flags; + entry->is_modified = 1; + phar->is_modified = 1; + /* reset file size */ + entry->uncompressed_filesize = 0; + entry->compressed_filesize = 0; + entry->crc32 = 0; + entry->flags = PHAR_ENT_PERM_DEF_FILE; + entry->fp_type = PHAR_MOD; + entry->offset = 0; + return SUCCESS; +} +/* }}} */ + +int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + php_stream *fp; + phar_entry_info *link; + + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return FAILURE; + } + + if (entry->fp_type == PHAR_MOD) { + return SUCCESS; + } + + fp = php_stream_fopen_tmpfile(); + if (fp == NULL) { + spprintf(error, 0, "phar error: unable to create temporary file"); + return FAILURE; + } + phar_seek_efp(entry, 0, SEEK_SET, 0, 1 TSRMLS_CC); + link = phar_get_link_source(entry TSRMLS_CC); + + if (!link) { + link = entry; + } + + if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) { + if (error) { + spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s\" for write access", entry->filename, entry->phar->fname); + } + return FAILURE; + } + + if (entry->link) { + efree(entry->link); + entry->link = NULL; + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); + } + + entry->offset = 0; + entry->fp = fp; + entry->fp_type = PHAR_MOD; + entry->is_modified = 1; + return SUCCESS; +} +/* }}} */ + +/** + * helper function to open an internal file's fp just-in-time + */ +phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ +{ + if (error) { + *error = NULL; + } + /* seek to start of internal file and read it */ + if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { + return NULL; + } + if (-1 == phar_seek_efp(entry, 0, SEEK_SET, 0, 1 TSRMLS_CC)) { + spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->filename, phar->fname); + return NULL; + } + return entry; +} +/* }}} */ + +PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC) /* {{{ */ { + phar_archive_data **fd_ptr; + if (PHAR_GLOBALS->phar_alias_map.arBuckets + && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) { + *filename = (*fd_ptr)->fname; + *filename_len = (*fd_ptr)->fname_len; + return SUCCESS; + } + return FAILURE; +} +/* }}} */ + +int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC) /* {{{ */ +{ + if (phar->refcount || phar->is_persistent) { + return FAILURE; + } + + /* this archive has no open references, so emit an E_STRICT and remove it */ + if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { + return FAILURE; + } + + /* invalidate phar cache */ + PHAR_G(last_phar) = NULL; + PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; + + return SUCCESS; +} +/* }}} */ + +/** + * Looks up a phar archive in the filename map, connecting it to the alias + * (if any) or returns null + */ +int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *fd, **fd_ptr; + char *my_realpath, *save; + int save_len; + ulong fhash, ahash = 0; + + phar_request_initialize(TSRMLS_C); + + if (error) { + *error = NULL; + } + + *archive = NULL; + + if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_phar_name), fname_len)) { + *archive = PHAR_G(last_phar); + if (alias && alias_len) { + + if (!PHAR_G(last_phar)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp(PHAR_G(last_phar)->alias, alias, alias_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname); + } + *archive = NULL; + return FAILURE; + } + + if (PHAR_G(last_phar)->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_len, (void**)&fd_ptr)) { + zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_len); + } + + zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&(*archive), sizeof(phar_archive_data*), NULL); + PHAR_G(last_alias) = alias; + PHAR_G(last_alias_len) = alias_len; + } + + return SUCCESS; + } + + if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alias, PHAR_G(last_alias), alias_len)) { + fd = PHAR_G(last_phar); + fd_ptr = &fd; + goto alias_success; + } + + if (alias && alias_len) { + ahash = zend_inline_hash_func(alias, alias_len); + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void**)&fd_ptr)) { +alias_success: + if (fname && (fname_len != (*fd_ptr)->fname_len || strncmp(fname, (*fd_ptr)->fname, fname_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + if (SUCCESS == phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) { + if (error) { + efree(*error); + *error = NULL; + } + } + return FAILURE; + } + + *archive = *fd_ptr; + fd = *fd_ptr; + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = alias; + PHAR_G(last_alias_len) = alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_alias, alias, alias_len, ahash, (void **)&fd_ptr)) { + goto alias_success; + } + } + + fhash = zend_inline_hash_func(fname, fname_len); + my_realpath = NULL; + save = fname; + save_len = fname_len; + + if (fname && fname_len) { + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { + *archive = *fd_ptr; + fd = *fd_ptr; + + if (alias && alias_len) { + if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + return FAILURE; + } + + if (fd->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len, (void**)&fd_ptr)) { + zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len); + } + + zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); + } + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { + *archive = *fd_ptr; + fd = *fd_ptr; + + /* this could be problematic - alias should never be different from manifest alias + for cached phars */ + if (!fd->is_temporary_alias && alias && alias_len) { + if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { + if (error) { + spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); + } + return FAILURE; + } + } + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_alias_map), save, save_len, fhash, (void**)&fd_ptr)) { + fd = *archive = *fd_ptr; + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_alias, save, save_len, fhash, (void**)&fd_ptr)) { + fd = *archive = *fd_ptr; + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + /* not found, try converting \ to / */ + my_realpath = expand_filepath(fname, my_realpath TSRMLS_CC); + + if (my_realpath) { + fname_len = strlen(my_realpath); + fname = my_realpath; + } else { + return FAILURE; + } +#ifdef PHP_WIN32 + phar_unixify_path_separators(fname, fname_len); +#endif + fhash = zend_inline_hash_func(fname, fname_len); + + if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { +realpath_success: + *archive = *fd_ptr; + fd = *fd_ptr; + + if (alias && alias_len) { + zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); + } + + efree(my_realpath); + + PHAR_G(last_phar) = fd; + PHAR_G(last_phar_name) = fd->fname; + PHAR_G(last_phar_name_len) = fd->fname_len; + PHAR_G(last_alias) = fd->alias; + PHAR_G(last_alias_len) = fd->alias_len; + + return SUCCESS; + } + + if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { + goto realpath_success; + } + + efree(my_realpath); + } + + return FAILURE; +} +/* }}} */ + +/** + * Determine which stream compression filter (if any) we need to read this file + */ +char * phar_compress_filter(phar_entry_info * entry, int return_unknown) /* {{{ */ +{ + switch (entry->flags & PHAR_ENT_COMPRESSION_MASK) { + case PHAR_ENT_COMPRESSED_GZ: + return "zlib.deflate"; + case PHAR_ENT_COMPRESSED_BZ2: + return "bzip2.compress"; + default: + return return_unknown ? "unknown" : NULL; + } +} +/* }}} */ + +/** + * Determine which stream decompression filter (if any) we need to read this file + */ +char * phar_decompress_filter(phar_entry_info * entry, int return_unknown) /* {{{ */ +{ + php_uint32 flags; + + if (entry->is_modified) { + flags = entry->old_flags; + } else { + flags = entry->flags; + } + + switch (flags & PHAR_ENT_COMPRESSION_MASK) { + case PHAR_ENT_COMPRESSED_GZ: + return "zlib.inflate"; + case PHAR_ENT_COMPRESSED_BZ2: + return "bzip2.decompress"; + default: + return return_unknown ? "unknown" : NULL; + } +} +/* }}} */ + +/** + * retrieve information on a file contained within a phar, or null if it ain't there + */ +phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRMLS_DC) /* {{{ */ +{ + return phar_get_entry_info_dir(phar, path, path_len, 0, error, security TSRMLS_CC); +} +/* }}} */ +/** + * retrieve information on a file or directory contained within a phar, or null if none found + * allow_dir is 0 for none, 1 for both empty directories in the phar and temp directories, and 2 for only + * valid pre-existing empty directory entries + */ +phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) /* {{{ */ +{ + const char *pcr_error; + phar_entry_info *entry; + int is_dir; + +#ifdef PHP_WIN32 + phar_unixify_path_separators(path, path_len); +#endif + + is_dir = (path_len && (path[path_len - 1] == '/')) ? 1 : 0; + + if (error) { + *error = NULL; + } + + if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { + if (error) { + spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files within it"); + } + return NULL; + } + + if (!path_len && !dir) { + if (error) { + spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); + } + return NULL; + } + + if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { + if (error) { + spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); + } + return NULL; + } + + if (!phar->manifest.arBuckets) { + return NULL; + } + + if (is_dir) { + if (!path_len || path_len == 1) { + return NULL; + } + path_len--; + } + + if (SUCCESS == zend_hash_find(&phar->manifest, path, path_len, (void**)&entry)) { + if (entry->is_deleted) { + /* entry is deleted, but has not been flushed to disk yet */ + return NULL; + } + if (entry->is_dir && !dir) { + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); + } + return NULL; + } + if (!entry->is_dir && dir == 2) { + /* user requested a directory, we must return one */ + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); + } + return NULL; + } + return entry; + } + + if (dir) { + if (zend_hash_exists(&phar->virtual_dirs, path, path_len)) { + /* a file or directory exists in a sub-directory of this path */ + entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info)); + /* this next line tells PharFileInfo->__destruct() to efree the filename */ + entry->is_temp_dir = entry->is_dir = 1; + entry->filename = (char *) estrndup(path, path_len + 1); + entry->filename_len = path_len; + entry->phar = phar; + return entry; + } + } + + if (phar->mounted_dirs.arBuckets && zend_hash_num_elements(&phar->mounted_dirs)) { + char *str_key; + ulong unused; + uint keylen; + + zend_hash_internal_pointer_reset(&phar->mounted_dirs); + while (FAILURE != zend_hash_has_more_elements(&phar->mounted_dirs)) { + if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &str_key, &keylen, &unused, 0, NULL)) { + break; + } + + if ((int)keylen >= path_len || strncmp(str_key, path, keylen)) { + continue; + } else { + char *test; + int test_len; + php_stream_statbuf ssb; + + if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) { + if (error) { + spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manifest", str_key); + } + return NULL; + } + + if (!entry->tmp || !entry->is_mounted) { + if (error) { + spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a mounted path", str_key); + } + return NULL; + } + + test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + keylen); + + if (SUCCESS != php_stream_stat_path(test, &ssb)) { + efree(test); + return NULL; + } + + if (ssb.sb.st_mode & S_IFDIR && !dir) { + efree(test); + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); + } + return NULL; + } + + if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { + efree(test); + /* user requested a directory, we must return one */ + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); + } + return NULL; + } + + /* mount the file just in time */ + if (SUCCESS != phar_mount_entry(phar, test, test_len, path, path_len TSRMLS_CC)) { + efree(test); + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", path, test); + } + return NULL; + } + + efree(test); + + if (SUCCESS != zend_hash_find(&phar->manifest, path, path_len, (void**)&entry)) { + if (error) { + spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved after being mounted", path, test); + } + return NULL; + } + return entry; + } + } + } + + return NULL; +} +/* }}} */ + +static const char hexChars[] = "0123456789ABCDEF"; + +static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */ +{ + int pos = -1; + size_t len = 0; + + *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist)); + + for (; len < digest_len; ++len) { + (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] >> 4]; + (*signature)[++pos] = hexChars[((const unsigned char *)digest)[len] & 0x0F]; + } + (*signature)[++pos] = '\0'; + return pos; +} +/* }}} */ + +#ifndef PHAR_HAVE_OPENSSL +static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */ +{ + zend_fcall_info fci; + zend_fcall_info_cache fcc; + zval *zdata, *zsig, *zkey, *retval_ptr, **zp[3], *openssl; + + MAKE_STD_ZVAL(zdata); + MAKE_STD_ZVAL(openssl); + ZVAL_STRINGL(openssl, is_sign ? "openssl_sign" : "openssl_verify", is_sign ? sizeof("openssl_sign")-1 : sizeof("openssl_verify")-1, 1); + MAKE_STD_ZVAL(zsig); + ZVAL_STRINGL(zsig, *signature, *signature_len, 1); + MAKE_STD_ZVAL(zkey); + ZVAL_STRINGL(zkey, key, key_len, 1); + zp[0] = &zdata; + zp[1] = &zsig; + zp[2] = &zkey; + + php_stream_rewind(fp); + Z_TYPE_P(zdata) = IS_STRING; + Z_STRLEN_P(zdata) = end; + + if (end != (off_t) php_stream_copy_to_mem(fp, &(Z_STRVAL_P(zdata)), (size_t) end, 0)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + if (FAILURE == zend_fcall_info_init(openssl, 0, &fci, &fcc, NULL, NULL TSRMLS_CC)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + fci.param_count = 3; + fci.params = zp; + Z_ADDREF_P(zdata); + if (is_sign) { + Z_SET_ISREF_P(zsig); + } else { + Z_ADDREF_P(zsig); + } + Z_ADDREF_P(zkey); + + fci.retval_ptr_ptr = &retval_ptr; + + if (FAILURE == zend_call_function(&fci, &fcc TSRMLS_CC)) { + zval_dtor(zdata); + zval_dtor(zsig); + zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); + efree(zdata); + efree(zkey); + efree(zsig); + return FAILURE; + } + + zval_dtor(openssl); + efree(openssl); + Z_DELREF_P(zdata); + + if (is_sign) { + Z_UNSET_ISREF_P(zsig); + } else { + Z_DELREF_P(zsig); + } + Z_DELREF_P(zkey); + + zval_dtor(zdata); + efree(zdata); + zval_dtor(zkey); + efree(zkey); + + switch (Z_TYPE_P(retval_ptr)) { + default: + case IS_LONG: + zval_dtor(zsig); + efree(zsig); + if (1 == Z_LVAL_P(retval_ptr)) { + efree(retval_ptr); + return SUCCESS; + } + efree(retval_ptr); + return FAILURE; + case IS_BOOL: + efree(retval_ptr); + if (Z_BVAL_P(retval_ptr)) { + *signature = estrndup(Z_STRVAL_P(zsig), Z_STRLEN_P(zsig)); + *signature_len = Z_STRLEN_P(zsig); + zval_dtor(zsig); + efree(zsig); + return SUCCESS; + } + zval_dtor(zsig); + efree(zsig); + return FAILURE; + } +} +/* }}} */ +#endif /* #ifndef PHAR_HAVE_OPENSSL */ + +int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ */ +{ + int read_size, len; + off_t read_len; + unsigned char buf[1024]; + + php_stream_rewind(fp); + + switch (sig_type) { + case PHAR_SIG_OPENSSL: { +#ifdef PHAR_HAVE_OPENSSL + BIO *in; + EVP_PKEY *key; + EVP_MD *mdtype = (EVP_MD *) EVP_sha1(); + EVP_MD_CTX md_ctx; +#else + int tempsig; +#endif + php_uint32 pubkey_len; + char *pubkey = NULL, *pfile; + php_stream *pfp; +#ifndef PHAR_HAVE_OPENSSL + if (!zend_hash_exists(&module_registry, "openssl", sizeof("openssl"))) { + if (error) { + spprintf(error, 0, "openssl not loaded"); + } + return FAILURE; + } +#endif + /* use __FILE__ . '.pubkey' for public key file */ + spprintf(&pfile, 0, "%s.pubkey", fname); + pfp = php_stream_open_wrapper(pfile, "rb", 0, NULL); + efree(pfile); + +#if PHP_MAJOR_VERSION > 5 + if (!pfp || !(pubkey_len = php_stream_copy_to_mem(pfp, (void **) &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey) { +#else + if (!pfp || !(pubkey_len = php_stream_copy_to_mem(pfp, &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey) { +#endif + if (pfp) { + php_stream_close(pfp); + } + if (error) { + spprintf(error, 0, "openssl public key could not be read"); + } + return FAILURE; + } + + php_stream_close(pfp); +#ifndef PHAR_HAVE_OPENSSL + tempsig = sig_len; + + if (FAILURE == phar_call_openssl_signverify(0, fp, end_of_phar, pubkey, pubkey_len, &sig, &tempsig TSRMLS_CC)) { + if (pubkey) { + efree(pubkey); + } + + if (error) { + spprintf(error, 0, "openssl signature could not be verified"); + } + + return FAILURE; + } + + if (pubkey) { + efree(pubkey); + } + + sig_len = tempsig; +#else + in = BIO_new_mem_buf(pubkey, pubkey_len); + + if (NULL == in) { + efree(pubkey); + if (error) { + spprintf(error, 0, "openssl signature could not be processed"); + } + return FAILURE; + } + + key = PEM_read_bio_PUBKEY(in, NULL,NULL, NULL); + BIO_free(in); + efree(pubkey); + + if (NULL == key) { + if (error) { + spprintf(error, 0, "openssl signature could not be processed"); + } + return FAILURE; + } + + EVP_VerifyInit(&md_ctx, mdtype); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + php_stream_seek(fp, 0, SEEK_SET); + + while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + EVP_VerifyUpdate (&md_ctx, buf, len); + read_len -= (off_t)len; + + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + if (EVP_VerifyFinal(&md_ctx, (unsigned char *)sig, sig_len, key) != 1) { + /* 1: signature verified, 0: signature does not match, -1: failed signature operation */ + EVP_MD_CTX_cleanup(&md_ctx); + + if (error) { + spprintf(error, 0, "broken openssl signature"); + } + + return FAILURE; + } + + EVP_MD_CTX_cleanup(&md_ctx); +#endif + + *signature_len = phar_hex_str((const char*)sig, sig_len, signature TSRMLS_CC); + } + break; +#ifdef PHAR_HASH_OK + case PHAR_SIG_SHA512: { + unsigned char digest[64]; + PHP_SHA512_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA512Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA512Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA512Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + case PHAR_SIG_SHA256: { + unsigned char digest[32]; + PHP_SHA256_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA256Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA256Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA256Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } +#else + case PHAR_SIG_SHA512: + case PHAR_SIG_SHA256: + if (error) { + spprintf(error, 0, "unsupported signature"); + } + return FAILURE; +#endif + case PHAR_SIG_SHA1: { + unsigned char digest[20]; + PHP_SHA1_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_SHA1Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_SHA1Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_SHA1Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + case PHAR_SIG_MD5: { + unsigned char digest[16]; + PHP_MD5_CTX context; + + if (sig_len < sizeof(digest)) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + PHP_MD5Init(&context); + read_len = end_of_phar; + + if (read_len > sizeof(buf)) { + read_size = sizeof(buf); + } else { + read_size = (int)read_len; + } + + while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { + PHP_MD5Update(&context, buf, len); + read_len -= (off_t)len; + if (read_len < read_size) { + read_size = (int)read_len; + } + } + + PHP_MD5Final(digest, &context); + + if (memcmp(digest, sig, sizeof(digest))) { + if (error) { + spprintf(error, 0, "broken signature"); + } + return FAILURE; + } + + *signature_len = phar_hex_str((const char*)digest, sizeof(digest), signature TSRMLS_CC); + break; + } + default: + if (error) { + spprintf(error, 0, "broken or unsupported signature"); + } + return FAILURE; + } + return SUCCESS; +} +/* }}} */ + +int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ */ +{ + unsigned char buf[1024]; + int sig_len; + + php_stream_rewind(fp); + + if (phar->signature) { + efree(phar->signature); + phar->signature = NULL; + } + + switch(phar->sig_flags) { +#ifdef PHAR_HASH_OK + case PHAR_SIG_SHA512: { + unsigned char digest[64]; + PHP_SHA512_CTX context; + + PHP_SHA512Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA512Update(&context, buf, sig_len); + } + + PHP_SHA512Final(digest, &context); + *signature = estrndup((char *) digest, 64); + *signature_length = 64; + break; + } + case PHAR_SIG_SHA256: { + unsigned char digest[32]; + PHP_SHA256_CTX context; + + PHP_SHA256Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA256Update(&context, buf, sig_len); + } + + PHP_SHA256Final(digest, &context); + *signature = estrndup((char *) digest, 32); + *signature_length = 32; + break; + } +#else + case PHAR_SIG_SHA512: + case PHAR_SIG_SHA256: + if (error) { + spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname); + } + + return FAILURE; +#endif + case PHAR_SIG_OPENSSL: { + int siglen; + unsigned char *sigbuf; +#ifdef PHAR_HAVE_OPENSSL + BIO *in; + EVP_PKEY *key; + EVP_MD_CTX *md_ctx; + + in = BIO_new_mem_buf(PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len)); + + if (in == NULL) { + if (error) { + spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } + + key = PEM_read_bio_PrivateKey(in, NULL,NULL, ""); + BIO_free(in); + + if (!key) { + if (error) { + spprintf(error, 0, "unable to process private key"); + } + return FAILURE; + } + + md_ctx = EVP_MD_CTX_create(); + + siglen = EVP_PKEY_size(key); + sigbuf = emalloc(siglen + 1); + + if (!EVP_SignInit(md_ctx, EVP_sha1())) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); + } + return FAILURE; + } + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + if (!EVP_SignUpdate(md_ctx, buf, sig_len)) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); + } + return FAILURE; + } + } + + if (!EVP_SignFinal (md_ctx, sigbuf,(unsigned int *)&siglen, key)) { + efree(sigbuf); + if (error) { + spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } + + sigbuf[siglen] = '\0'; + EVP_MD_CTX_destroy(md_ctx); +#else + sigbuf = NULL; + siglen = 0; + php_stream_seek(fp, 0, SEEK_END); + + if (FAILURE == phar_call_openssl_signverify(1, fp, php_stream_tell(fp), PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len), (char **)&sigbuf, &siglen TSRMLS_CC)) { + if (error) { + spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); + } + return FAILURE; + } +#endif + *signature = (char *) sigbuf; + *signature_length = siglen; + } + break; + default: + phar->sig_flags = PHAR_SIG_SHA1; + case PHAR_SIG_SHA1: { + unsigned char digest[20]; + PHP_SHA1_CTX context; + + PHP_SHA1Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_SHA1Update(&context, buf, sig_len); + } + + PHP_SHA1Final(digest, &context); + *signature = estrndup((char *) digest, 20); + *signature_length = 20; + break; + } + case PHAR_SIG_MD5: { + unsigned char digest[16]; + PHP_MD5_CTX context; + + PHP_MD5Init(&context); + + while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { + PHP_MD5Update(&context, buf, sig_len); + } + + PHP_MD5Final(digest, &context); + *signature = estrndup((char *) digest, 16); + *signature_length = 16; + break; + } + } + + phar->sig_len = phar_hex_str((const char *)*signature, *signature_length, &phar->signature TSRMLS_CC); + return SUCCESS; +} +/* }}} */ + +void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC) /* {{{ */ +{ + const char *s; + + while ((s = zend_memrchr(filename, '/', filename_len))) { + filename_len = s - filename; + if (!filename_len || FAILURE == zend_hash_add_empty_element(&phar->virtual_dirs, filename, filename_len)) { + break; + } + } +} +/* }}} */ + +static int phar_update_cached_entry(void *data, void *argument) /* {{{ */ +{ + phar_entry_info *entry = (phar_entry_info *)data; + TSRMLS_FETCH(); + + entry->phar = (phar_archive_data *)argument; + + if (entry->link) { + entry->link = estrdup(entry->link); + } + + if (entry->tmp) { + entry->tmp = estrdup(entry->tmp); + } + + entry->metadata_str.c = 0; + entry->filename = estrndup(entry->filename, entry->filename_len); + entry->is_persistent = 0; + + if (entry->metadata) { + if (entry->metadata_len) { + char *buf = estrndup((char *) entry->metadata, entry->metadata_len); + /* assume success, we would have failed before */ + phar_parse_metadata((char **) &buf, &entry->metadata, entry->metadata_len TSRMLS_CC); + efree(buf); + } else { + zval *t; + + t = entry->metadata; + ALLOC_ZVAL(entry->metadata); + *entry->metadata = *t; + zval_copy_ctor(entry->metadata); + Z_SET_REFCOUNT_P(entry->metadata, 1); + entry->metadata_str.c = NULL; + entry->metadata_str.len = 0; + } + } + return ZEND_HASH_APPLY_KEEP; +} +/* }}} */ + +static void phar_copy_cached_phar(phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + phar_archive_data *phar; + HashTable newmanifest; + char *fname; + phar_archive_object **objphar; + + phar = (phar_archive_data *) emalloc(sizeof(phar_archive_data)); + *phar = **pphar; + phar->is_persistent = 0; + fname = phar->fname; + phar->fname = estrndup(phar->fname, phar->fname_len); + phar->ext = phar->fname + (phar->ext - fname); + + if (phar->alias) { + phar->alias = estrndup(phar->alias, phar->alias_len); + } + + if (phar->signature) { + phar->signature = estrdup(phar->signature); + } + + if (phar->metadata) { + /* assume success, we would have failed before */ + if (phar->metadata_len) { + char *buf = estrndup((char *) phar->metadata, phar->metadata_len); + phar_parse_metadata(&buf, &phar->metadata, phar->metadata_len TSRMLS_CC); + efree(buf); + } else { + zval *t; + + t = phar->metadata; + ALLOC_ZVAL(phar->metadata); + *phar->metadata = *t; + zval_copy_ctor(phar->metadata); + Z_SET_REFCOUNT_P(phar->metadata, 1); + } + } + + zend_hash_init(&newmanifest, sizeof(phar_entry_info), + zend_get_hash_value, destroy_phar_manifest_entry, 0); + zend_hash_copy(&newmanifest, &(*pphar)->manifest, NULL, NULL, sizeof(phar_entry_info)); + zend_hash_apply_with_argument(&newmanifest, (apply_func_arg_t) phar_update_cached_entry, (void *)phar TSRMLS_CC); + phar->manifest = newmanifest; + zend_hash_init(&phar->mounted_dirs, sizeof(char *), + zend_get_hash_value, NULL, 0); + zend_hash_init(&phar->virtual_dirs, sizeof(char *), + zend_get_hash_value, NULL, 0); + zend_hash_copy(&phar->virtual_dirs, &(*pphar)->virtual_dirs, NULL, NULL, sizeof(void *)); + *pphar = phar; + + /* now, scan the list of persistent Phar objects referencing this phar and update the pointers */ + for (zend_hash_internal_pointer_reset(&PHAR_GLOBALS->phar_persist_map); + SUCCESS == zend_hash_get_current_data(&PHAR_GLOBALS->phar_persist_map, (void **) &objphar); + zend_hash_move_forward(&PHAR_GLOBALS->phar_persist_map)) { + if (objphar[0]->arc.archive->fname_len == phar->fname_len && !memcmp(objphar[0]->arc.archive->fname, phar->fname, phar->fname_len)) { + objphar[0]->arc.archive = phar; + } + } +} +/* }}} */ + +int phar_copy_on_write(phar_archive_data **pphar TSRMLS_DC) /* {{{ */ +{ + phar_archive_data **newpphar, *newphar = NULL; + + if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len, (void *)&newphar, sizeof(phar_archive_data *), (void **)&newpphar)) { + return FAILURE; + } + + *newpphar = *pphar; + phar_copy_cached_phar(newpphar TSRMLS_CC); + /* invalidate phar cache */ + PHAR_G(last_phar) = NULL; + PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; + + if (newpphar[0]->alias_len && FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), newpphar[0]->alias, newpphar[0]->alias_len, (void*)newpphar, sizeof(phar_archive_data*), NULL)) { + zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len); + return FAILURE; + } + + *pphar = *newpphar; + return SUCCESS; +} +/* }}} */ + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ diff --git a/tests/fixtures/php/7.3.12/ext/gd/config.m4 b/tests/fixtures/php/7.3.12/ext/gd/config.m4 new file mode 100644 index 000000000..498d87078 --- /dev/null +++ b/tests/fixtures/php/7.3.12/ext/gd/config.m4 @@ -0,0 +1,368 @@ +dnl config.m4 for extension gd + +dnl +dnl Configure options +dnl + +PHP_ARG_WITH(gd, for GD support, +[ --with-gd[=DIR] Include GD support. DIR is the GD library base + install directory [BUNDLED]]) +if test -z "$PHP_WEBP_DIR"; then + PHP_ARG_WITH(webp-dir, for the location of libwebp, + [ --with-webp-dir[=DIR] GD: Set the path to libwebp install prefix], no, no) +fi + +if test -z "$PHP_JPEG_DIR"; then + PHP_ARG_WITH(jpeg-dir, for the location of libjpeg, + [ --with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix], no, no) +fi + +if test -z "$PHP_PNG_DIR"; then + PHP_ARG_WITH(png-dir, for the location of libpng, + [ --with-png-dir[=DIR] GD: Set the path to libpng install prefix], no, no) +fi + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] GD: Set the path to libz install prefix], no, no) +fi + +PHP_ARG_WITH(xpm-dir, for the location of libXpm, +[ --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix], no, no) + +PHP_ARG_WITH(freetype-dir, for FreeType 2, +[ --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix], no, no) + +PHP_ARG_ENABLE(gd-jis-conv, whether to enable JIS-mapped Japanese font support in GD, +[ --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support], no, no) + +dnl +dnl Checks for the configure options +dnl + +AC_DEFUN([PHP_GD_ZLIB],[ + if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then + if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib" + elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then + PHP_ZLIB_DIR="$PHP_ZLIB_DIR" + PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" + else + AC_MSG_ERROR([Can't find zlib headers under "$PHP_ZLIB_DIR"]) + fi + else + for i in /usr/local /usr; do + if test -f "$i/include/zlib/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include/zlib" + elif test -f "$i/include/zlib.h"; then + PHP_ZLIB_DIR="$i" + PHP_ZLIB_INCDIR="$i/include" + fi + done + fi +]) + +AC_DEFUN([PHP_GD_WEBP],[ + if test "$PHP_WEBP_DIR" != "no"; then + + for i in $PHP_WEBP_DIR /usr/local /usr; do + test -f $i/include/webp/decode.h && GD_WEBP_DIR=$i && break + done + + if test -z "$GD_WEBP_DIR"; then + AC_MSG_ERROR([webp/decode.h not found.]) + fi + + for i in $PHP_WEBP_DIR /usr/local /usr; do + test -f $i/include/webp/encode.h && GD_WEBP_DIR=$i && break + done + + if test -z "$GD_WEBP_DIR"; then + AC_MSG_ERROR([webp/encode.h not found.]) + fi + + PHP_CHECK_LIBRARY(webp,WebPGetInfo, + [ + PHP_ADD_INCLUDE($GD_WEBP_DIR/include) + PHP_ADD_LIBRARY(pthread) + PHP_ADD_LIBRARY_WITH_PATH(webp, $GD_WEBP_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libwebp.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_WEBP_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-webp-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_JPEG],[ + if test "$PHP_JPEG_DIR" != "no"; then + + for i in $PHP_JPEG_DIR /usr/local /usr; do + test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break + done + + if test -z "$GD_JPEG_DIR"; then + AC_MSG_ERROR([jpeglib.h not found.]) + fi + + PHP_CHECK_LIBRARY(jpeg,jpeg_read_header, + [ + PHP_ADD_INCLUDE($GD_JPEG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(jpeg, $GD_JPEG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libjpeg.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_JPEG_DIR/$PHP_LIBDIR + ]) + else + AC_MSG_RESULT([If configure fails try --with-jpeg-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_PNG],[ + if test "$PHP_PNG_DIR" != "no"; then + + for i in $PHP_PNG_DIR /usr/local /usr; do + test -f $i/include/png.h && GD_PNG_DIR=$i && break + done + + if test -z "$GD_PNG_DIR"; then + AC_MSG_ERROR([png.h not found.]) + fi + + if test "$PHP_ZLIB_DIR" = "no"; then + AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=]) + fi + + PHP_CHECK_LIBRARY(png,png_write_image, + [ + PHP_ADD_INCLUDE($GD_PNG_DIR/include) + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(png, $GD_PNG_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.]) + ],[ + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR + ]) + + else + AC_MSG_RESULT([If configure fails try --with-png-dir= and --with-zlib-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_XPM],[ + if test "$PHP_XPM_DIR" != "no"; then + + for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break + done + + if test -z "$GD_XPM_DIR"; then + AC_MSG_ERROR([xpm.h not found.]) + fi + + PHP_CHECK_LIBRARY(Xpm,XpmFreeXpmImage, + [ + PHP_ADD_INCLUDE($GD_XPM_INC) + PHP_ADD_LIBRARY_WITH_PATH(Xpm, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(X11, $GD_XPM_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) + ],[ + AC_MSG_ERROR([Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.]) + ],[ + -L$GD_XPM_DIR/$PHP_LIBDIR -lX11 + ]) + else + AC_MSG_RESULT(If configure fails try --with-xpm-dir=) + fi +]) + +AC_DEFUN([PHP_GD_FREETYPE2],[ + if test "$PHP_FREETYPE_DIR" != "no"; then + + for i in $PHP_FREETYPE_DIR /usr/local /usr; do + if test -f "$i/bin/freetype-config"; then + FREETYPE2_DIR=$i + FREETYPE2_CONFIG="$i/bin/freetype-config" + break + fi + done + + if test -z "$FREETYPE2_DIR"; then + AC_MSG_ERROR([freetype-config not found.]) + fi + + FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags` + FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs` + + PHP_EVAL_INCLINE($FREETYPE2_CFLAGS) + PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBFREETYPE,1,[ ]) + AC_DEFINE(ENABLE_GD_TTF,1,[ ]) + else + AC_MSG_RESULT([If configure fails try --with-freetype-dir=]) + fi +]) + +AC_DEFUN([PHP_GD_JISX0208],[ + if test "$PHP_GD_JIS_CONV" = "yes"; then + USE_GD_JIS_CONV=1 + fi +]) + +AC_DEFUN([PHP_GD_CHECK_VERSION],[ + PHP_CHECK_LIBRARY(gd, gdImageCreateFromPng, [AC_DEFINE(HAVE_GD_PNG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromWebp, [AC_DEFINE(HAVE_GD_WEBP, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromJpeg, [AC_DEFINE(HAVE_GD_JPG, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromXpm, [AC_DEFINE(HAVE_GD_XPM, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageCreateFromBmp, [AC_DEFINE(HAVE_GD_BMP, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdImageStringFT, [AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) + PHP_CHECK_LIBRARY(gd, gdVersionString, [AC_DEFINE(HAVE_GD_LIBVERSION, 1, [ ])], [], [ $GD_SHARED_LIBADD ]) +]) + +dnl +dnl Main GD configure +dnl + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + +dnl PNG is required by GD library + test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_WEBP + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + PHP_GD_JISX0208 +fi + +if test "$PHP_GD" = "yes"; then + GD_MODULE_TYPE=builtin + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_rotate.c libgd/gd_color_match.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \ + libgd/gd_bmp.c" + +dnl check for fabsf and floorf which are available since C99 + AC_CHECK_FUNCS(fabsf floorf) + +dnl These are always available with bundled library + AC_DEFINE(HAVE_GD_BUNDLED, 1, [ ]) + AC_DEFINE(HAVE_GD_PNG, 1, [ ]) + AC_DEFINE(HAVE_GD_BMP, 1, [ ]) + AC_DEFINE(HAVE_GD_CACHE_CREATE, 1, [ ]) + +dnl Make sure the libgd/ is first in the include path + GDLIB_CFLAGS="-DHAVE_LIBPNG" + +dnl Depending which libraries were included to PHP configure, +dnl enable the support in bundled GD library + + if test -n "$GD_WEBP_DIR"; then + AC_DEFINE(HAVE_GD_WEBP, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBWEBP" + fi + + if test -n "$GD_JPEG_DIR"; then + AC_DEFINE(HAVE_GD_JPG, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG" + fi + + if test -n "$GD_XPM_DIR"; then + AC_DEFINE(HAVE_GD_XPM, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM" + fi + + if test -n "$FREETYPE2_DIR"; then + AC_DEFINE(HAVE_GD_FREETYPE, 1, [ ]) + AC_DEFINE(ENABLE_GD_TTF, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF" + fi + + if test -n "$USE_GD_JIS_CONV"; then + AC_DEFINE(USE_GD_JISX0208, 1, [ ]) + GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" + fi + +else + + if test "$PHP_GD" != "no"; then + GD_MODULE_TYPE=external + extra_sources="gd_compat.c" + +dnl Various checks for GD features + PHP_GD_ZLIB + PHP_GD_WEBP + PHP_GD_JPEG + PHP_GD_PNG + PHP_GD_XPM + PHP_GD_FREETYPE2 + +dnl Header path + for i in include/gd include/gd2 include gd ""; do + test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i" + done + + if test -z "$GD_INCLUDE"; then + AC_MSG_ERROR([Unable to find gd.h anywhere under $PHP_GD]) + fi + +dnl Library path + + PHP_CHECK_LIBRARY(gd, gdSetErrorMethod, + [ + PHP_ADD_LIBRARY_WITH_PATH(gd, $PHP_GD/$PHP_LIBDIR, GD_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBGD, 1, [ ]) + ],[ + AC_MSG_ERROR([Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD]) + ],[ + -L$PHP_GD/$PHP_LIBDIR + ]) + PHP_GD_CHECK_VERSION + + PHP_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE) + fi +fi + +dnl +dnl Common for both builtin and external GD +dnl +if test "$PHP_GD" != "no"; then + PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS)) + + if test "$GD_MODULE_TYPE" = "builtin"; then + PHP_ADD_BUILD_DIR($ext_builddir/libgd) + GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS" + GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/" + + PHP_TEST_BUILD(foobar, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ], [char foobar () {}]) + else + GD_HEADER_DIRS="ext/gd/" + GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" + PHP_ADD_INCLUDE($GD_INCLUDE) + PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [ + AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) + ], [ $GD_SHARED_LIBADD ]) + fi + + PHP_INSTALL_HEADERS([$GD_HEADER_DIRS]) + PHP_SUBST(GDLIB_CFLAGS) + PHP_SUBST(GD_SHARED_LIBADD) +fi diff --git a/tests/fixtures/php/7.4.0/build/Makefile.global b/tests/fixtures/php/7.4.0/build/Makefile.global new file mode 100644 index 000000000..82e0d69f3 --- /dev/null +++ b/tests/fixtures/php/7.4.0/build/Makefile.global @@ -0,0 +1,147 @@ +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) + +all: $(all_targets) + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo + +build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) + +build-binaries: $(PHP_BINARIES) + +libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1 + +libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so + +install: $(all_targets) $(install_targets) + +install-sapi: $(OVERALL_TARGET) + @echo "Installing PHP SAPI module: $(PHP_SAPI)" + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ + for i in 0.0.0 0.0 0; do \ + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \ + break; \ + fi; \ + done; \ + fi + @$(INSTALL_IT) + +install-binaries: build-binaries $(install_binary_targets) + +install-modules: build-modules + @test -d modules && \ + $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) + @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" + @rm -f modules/*.la >/dev/null 2>&1 + @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + +install-headers: + -@if test "$(INSTALL_HEADERS)"; then \ + for i in `echo $(INSTALL_HEADERS)`; do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ + paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ + done; \ + $(mkinstalldirs) $$paths && \ + echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ + for i in `echo $(INSTALL_HEADERS)`; do \ + if test "$(PHP_PECL_EXTENSION)"; then \ + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ + else \ + src=$$i; \ + fi; \ + if test -f "$(top_srcdir)/$$src"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$src"; then \ + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ + done; \ + fi + +PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' +PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ + done; \ + fi; \ + if test "x$(PHP_ZEND_EX)" != "x"; then \ + for i in $(PHP_ZEND_EX)""; do \ + . $$i; $(top_srcdir)/build/shtool echo -n -- " -d zend_extension=$(top_builddir)/modules/$$dlname"; \ + done; \ + fi` +PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' + +test: all + @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \ + INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ + if test "$$INI_FILE"; then \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \ + else \ + echo > $(top_builddir)/tmp-php.ini; \ + fi; \ + INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \ + if test "$$INI_SCANNED_PATH"; then \ + INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \ + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ + exit $$TEST_RESULT_EXIT_CODE; \ + else \ + echo "ERROR: Cannot run tests without CLI sapi."; \ + fi + +clean: + find . -name \*.gcno -o -name \*.gcda | xargs rm -f + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + find . -name .libs -a -type d|xargs rm -rf + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +distclean: clean + rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h + rm -f main/build-defs.h scripts/phpize + rm -f ext/date/lib/timelib_config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak + rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 sapi/phpdbg/phpdbg.1 ext/phar/phar.1 ext/phar/phar.phar.1 + rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html + rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h + rm -f ext/phar/phar.phar ext/phar/phar.php + if test "$(srcdir)" != "$(builddir)"; then \ + rm -f ext/phar/phar/phar.inc; \ + fi + $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f + +prof-gen: + CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-generate all + +prof-clean: + find . -name \*.lo -o -name \*.o | xargs rm -f + find . -name \*.la -o -name \*.a | xargs rm -f + find . -name \*.so | xargs rm -f + rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + +prof-use: + CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-use all + + +.PHONY: all clean install distclean test prof-gen prof-clean prof-use +.NOEXPORT: diff --git a/tests/fixtures/php/7.4.0/configure b/tests/fixtures/php/7.4.0/configure new file mode 100755 index 000000000..8a8aafef3 --- /dev/null +++ b/tests/fixtures/php/7.4.0/configure @@ -0,0 +1,93836 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for PHP 7.4.0. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: https://bugs.php.net about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +echo=${ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +tagnames=${tagnames+${tagnames},}CXX + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='PHP' +PACKAGE_TARNAME='php' +PACKAGE_VERSION='7.4.0' +PACKAGE_STRING='PHP 7.4.0' +PACKAGE_BUGREPORT='https://bugs.php.net' +PACKAGE_URL='https://www.php.net' + +ac_unique_file="main/php_version.h" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='LTLIBOBJS +LIBTOOL +NMEDIT +DSYMUTIL +STRIP +RANLIB +AR +ECHO +AR_FLAGS +PHP_VERSION_ID +PHP_VERSION +PHP_LIBS +PHP_LDFLAGS +PEAR_INSTALLDIR +NATIVE_RPATHS +INSTALL_IT +EXTRA_INCLUDES +INCLUDES +ZEND_EXTRA_LIBS +EXTRA_LIBS +EXTRA_LDFLAGS_PROGRAM +EXTRA_LDFLAGS +EXTENSION_DIR +DEBUG_CFLAGS +program_suffix +program_prefix +abs_srcdir +abs_builddir +PHP_INSTALLED_SAPIS +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR +EXPANDED_PHP_CONFIG_FILE_PATH +EXPANDED_LOCALSTATEDIR +EXPANDED_SYSCONFDIR +EXPANDED_DATADIR +EXPANDED_LIBDIR +EXPANDED_MANDIR +EXPANDED_SBINDIR +EXPANDED_BINDIR +EXPANDED_EXTENSION_DIR +EXPANDED_PEAR_INSTALLDIR +INCLUDE_PATH +INLINE_CFLAGS +LIBZIP_LIBS +LIBZIP_CFLAGS +EXSLT_LIBS +EXSLT_CFLAGS +XSL_LIBS +XSL_CFLAGS +EXPAT_LIBS +EXPAT_CFLAGS +LIBSODIUM_LIBS +LIBSODIUM_CFLAGS +SNMP_CONFIG +EDIT_LIBS +EDIT_CFLAGS +PDO_OCI_VERSION +PDO_OCI_DIR +PDO_OCI_SHARED_LIBADD +PDO_MYSQL_MODULE_TYPE +FB_CONFIG +ODBC_TYPE +ODBC_LFLAGS +ODBC_LIBS +ODBC_CFLAGS +OCI8_ORACLE_VERSION +OCI8_DIR +OCI8_SHARED_LIBADD +ONIG_LIBS +ONIG_CFLAGS +SASL_LIBS +SASL_CFLAGS +HAVE_CXX11 +CXXCPP +ac_ct_CXX +CXXFLAGS +CXX +ICU_LIBS +ICU_CFLAGS +GDLIB_LIBS +GDLIB_CFLAGS +FREETYPE2_LIBS +FREETYPE2_CFLAGS +XPM_LIBS +XPM_CFLAGS +JPEG_LIBS +JPEG_CFLAGS +WEBP_LIBS +WEBP_CFLAGS +PNG_LIBS +PNG_CFLAGS +FFI_LIBS +FFI_CFLAGS +ENCHANT_LIBS +ENCHANT_CFLAGS +CURL_FEATURES +CURL_LIBS +CURL_CFLAGS +ZLIB_LIBS +ZLIB_CFLAGS +SQLITE_LIBS +SQLITE_CFLAGS +PCRE2_LIBS +PCRE2_CFLAGS +OPENSSL_LIBS +OPENSSL_CFLAGS +KERBEROS_LIBS +KERBEROS_CFLAGS +LIBXML_LIBS +LIBXML_CFLAGS +VALGRIND_LIBS +VALGRIND_CFLAGS +ALLOCA +LIBOBJS +PROG_SENDMAIL +php_fpm_prefix +php_fpm_localstatedir +php_fpm_sysconfdir +php_fpm_group +php_fpm_user +php_fpm_systemd +SYSTEMD_LIBS +SYSTEMD_CFLAGS +SHLIB_DL_SUFFIX_NAME +SHLIB_SUFFIX_NAME +RE2C +YACC +AWK +LN_S +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +CONFIGURE_OPTIONS +CONFIGURE_COMMAND +SED +EGREP +GREP +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_libdir +enable_rpath +enable_re2c_cgoto +enable_gcc_global_regs +enable_ +with_apxs2 +enable_cli +enable_embed +enable_fpm +with_fpm_user +with_fpm_group +with_fpm_systemd +with_fpm_acl +enable_litespeed +enable_phpdbg +enable_phpdbg_webhelper +enable_phpdbg_debug +enable_phpdbg_readline +enable_cgi +with_valgrind +enable_gcov +enable_debug +enable_rtld_now +with_layout +with_config_file_path +with_config_file_scan_dir +enable_sigchild +enable_libgcc +enable_short_tags +enable_dmalloc +enable_ipv6 +enable_dtrace +enable_fd_setsize +enable_werror +enable_all +with_libxml +with_openssl +with_kerberos +with_system_ciphers +with_external_pcre +with_pcre_jit +with_sqlite3 +with_zlib +enable_bcmath +with_bz2 +enable_calendar +enable_ctype +with_curl +enable_dba +with_qdbm +with_gdbm +with_ndbm +with_db4 +with_db3 +with_db2 +with_db1 +with_dbm +with_tcadb +with_lmdb +with_cdb +enable_inifile +enable_flatfile +enable_dom +with_enchant +enable_exif +with_ffi +enable_fileinfo +enable_filter +enable_ftp +with_openssl_dir +enable_gd +with_external_gd +with_webp +with_jpeg +with_xpm +with_freetype +enable_gd_jis_conv +with_gettext +with_gmp +with_mhash +with_iconv +with_imap +with_imap_ssl +enable_intl +enable_json +with_ldap +with_ldap_sasl +enable_mbstring +enable_mbregex +with_mysqli +with_mysql_sock +with_oci8 +with_odbcver +with_adabas +with_sapdb +with_solid +with_ibm_db2 +with_empress +with_empress_bcs +with_custom_odbc +with_iodbc +with_esoob +with_unixODBC +with_dbmaker +enable_opcache +enable_huge_code_pages +enable_pcntl +enable_pdo +with_pdo_dblib +with_pdo_firebird +with_pdo_mysql +with_zlib_dir +with_pdo_oci +with_pdo_odbc +with_pdo_pgsql +with_pdo_sqlite +with_pgsql +enable_phar +enable_posix +with_pspell +with_libedit +with_readline +enable_session +with_mm +enable_shmop +enable_simplexml +with_snmp +enable_soap +enable_sockets +with_sodium +with_password_argon2 +enable_sysvmsg +enable_sysvsem +enable_sysvshm +with_tidy +enable_tokenizer +enable_xml +with_expat +enable_xmlreader +with_xmlrpc +with_iconv_dir +enable_xmlwriter +with_xsl +enable_zend_test +with_zip +enable_mysqlnd +enable_mysqlnd_compression_support +with_pear +enable_maintainer_zts +enable_inline_optimization +enable_zend_signals +with_tsrm_pth +with_tsrm_st +with_tsrm_pthreads +enable_shared +enable_static +enable_fast_install +with_gnu_ld +enable_libtool_lock +with_pic +with_tags +' + ac_precious_vars='build_alias +host_alias +target_alias +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +SYSTEMD_CFLAGS +SYSTEMD_LIBS +VALGRIND_CFLAGS +VALGRIND_LIBS +LIBXML_CFLAGS +LIBXML_LIBS +KERBEROS_CFLAGS +KERBEROS_LIBS +OPENSSL_CFLAGS +OPENSSL_LIBS +PCRE2_CFLAGS +PCRE2_LIBS +SQLITE_CFLAGS +SQLITE_LIBS +ZLIB_CFLAGS +ZLIB_LIBS +CURL_CFLAGS +CURL_LIBS +CURL_FEATURES +ENCHANT_CFLAGS +ENCHANT_LIBS +FFI_CFLAGS +FFI_LIBS +PNG_CFLAGS +PNG_LIBS +WEBP_CFLAGS +WEBP_LIBS +JPEG_CFLAGS +JPEG_LIBS +XPM_CFLAGS +XPM_LIBS +FREETYPE2_CFLAGS +FREETYPE2_LIBS +GDLIB_CFLAGS +GDLIB_LIBS +ICU_CFLAGS +ICU_LIBS +CXX +CXXFLAGS +CCC +CXXCPP +SASL_CFLAGS +SASL_LIBS +ONIG_CFLAGS +ONIG_LIBS +ODBC_CFLAGS +ODBC_LIBS +EDIT_CFLAGS +EDIT_LIBS +LIBSODIUM_CFLAGS +LIBSODIUM_LIBS +EXPAT_CFLAGS +EXPAT_LIBS +XSL_CFLAGS +XSL_LIBS +EXSLT_CFLAGS +EXSLT_LIBS +LIBZIP_CFLAGS +LIBZIP_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures PHP 7.4.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/php] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of PHP 7.4.0:";; + esac + cat <<\_ACEOF + +Optional Features and Packages: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-libdir=NAME Look for libraries in .../NAME rather than .../lib + --disable-rpath Disable passing additional runtime library search + paths + --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc + extension + --disable-gcc-global-regs + whether to enable GCC global register variables + +SAPI modules: + + --with-apxs2[=FILE] Build shared Apache 2 handler module. FILE is the + optional pathname to the Apache apxs tool [apxs] + --disable-cli Disable building CLI version of PHP (this forces + --without-pear) + --enable-embed[=TYPE] EXPERIMENTAL: Enable building of embedded SAPI + library TYPE is either 'shared' or 'static'. + [TYPE=shared] + --enable-fpm Enable building of the fpm SAPI executable + --with-fpm-user[=USER] Set the user for php-fpm to run as. (default: + nobody) + --with-fpm-group[=GRP] Set the group for php-fpm to run as. For a system + user, this should usually be set to match the fpm + username (default: nobody) + --with-fpm-systemd Activate systemd integration + --with-fpm-acl Use POSIX Access Control Lists + --enable-litespeed Build PHP as litespeed module + --enable-phpdbg Build phpdbg + --enable-phpdbg-webhelper + Build phpdbg web SAPI support + --enable-phpdbg-debug Build phpdbg in debug mode + --enable-phpdbg-readline + Enable readline support in phpdbg (depends on static + ext/readline) + --disable-cgi Disable building CGI version of PHP + --with-valgrind Enable valgrind support + +General settings: + + --enable-gcov Enable GCOV code coverage - FOR DEVELOPERS ONLY!! + --enable-debug Compile with debugging symbols + --enable-rtld-now Use dlopen with RTLD_NOW instead of RTLD_LAZY + --with-layout=TYPE Set how installed files will be laid out. Type can + be either PHP or GNU [PHP] + --with-config-file-path=PATH + Set the path in which to look for php.ini + [PREFIX/lib] + --with-config-file-scan-dir=PATH + Set the path where to scan for configuration files + --enable-sigchild Enable PHP's own SIGCHLD handler + --enable-libgcc Enable explicitly linking against libgcc + --disable-short-tags Disable the short-form = 1.0.1) + --with-kerberos OPENSSL: Include Kerberos support + --with-system-ciphers OPENSSL: Use system default cipher list instead of + hardcoded value + --with-external-pcre Use external library for PCRE support + --with-pcre-jit Enable PCRE JIT functionality + --without-sqlite3 Do not include SQLite3 support. + --with-zlib Include ZLIB support (requires zlib >= 1.2.0.4) + --enable-bcmath Enable bc style precision math functions + --with-bz2[=DIR] Include BZip2 support + --enable-calendar Enable support for calendar conversion + --disable-ctype Disable ctype functions + --with-curl Include cURL support + --enable-dba Build DBA with bundled modules. To build shared DBA + extension use --enable-dba=shared + --with-qdbm[=DIR] DBA: QDBM support + --with-gdbm[=DIR] DBA: GDBM support + --with-ndbm[=DIR] DBA: NDBM support + --with-db4[=DIR] DBA: Oracle Berkeley DB 4.x or 5.x support + --with-db3[=DIR] DBA: Oracle Berkeley DB 3.x support + --with-db2[=DIR] DBA: Oracle Berkeley DB 2.x support + --with-db1[=DIR] DBA: Oracle Berkeley DB 1.x support/emulation + --with-dbm[=DIR] DBA: DBM support + --with-tcadb[=DIR] DBA: Tokyo Cabinet abstract DB support + --with-lmdb[=DIR] DBA: Lightning memory-mapped database support + --without-cdb[=DIR] DBA: CDB support (bundled) + --disable-inifile DBA: INI support (bundled) + --disable-flatfile DBA: FlatFile support (bundled) + --disable-dom Disable DOM support + --with-enchant Include Enchant support + --enable-exif Enable EXIF (metadata from images) support + --with-ffi Include FFI support + --disable-fileinfo Disable fileinfo support + --disable-filter Disable input filter support + --enable-ftp Enable FTP support + --with-openssl-dir[=DIR] + FTP: openssl install prefix + --enable-gd Include GD support + --with-external-gd Use external libgd + --with-webp GD: Enable WEBP support (only for bundled libgd) + --with-jpeg GD: Enable JPEG support (only for bundled libgd) + --with-xpm GD: Enable XPM support (only for bundled libgd) + --with-freetype GD: Enable FreeType 2 support (only for bundled + libgd) + --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support (only + for bundled libgd) + --with-gettext[=DIR] Include GNU gettext support + --with-gmp[=DIR] Include GNU MP support + --with-mhash Include mhash support + --without-iconv[=DIR] Exclude iconv support + --with-imap[=DIR] Include IMAP support. DIR is the c-client install + prefix + --with-kerberos IMAP: Include Kerberos support + --with-imap-ssl[=DIR] IMAP: Include SSL support. DIR is the OpenSSL + install prefix + --enable-intl Enable internationalization support + --disable-json Disable JavaScript Object Serialization support + --with-ldap[=DIR] Include LDAP support + --with-ldap-sasl LDAP: Build with Cyrus SASL support + --enable-mbstring Enable multibyte string support + --disable-mbregex MBSTRING: Disable multibyte regex support + --with-mysqli[=FILE] Include MySQLi support. FILE is the path to + mysql_config. If no value or mysqlnd is passed as + FILE, the MySQL native driver will be used + --with-mysql-sock[=SOCKPATH] + MySQLi/PDO_MYSQL: Location of the MySQL unix socket + pointer. If unspecified, the default locations are + searched + --with-oci8[=DIR] Include Oracle Database OCI8 support. DIR defaults + to $ORACLE_HOME. Use + --with-oci8=instantclient,/path/to/instant/client/lib + to use an Oracle Instant Client installation + --with-odbcver[=HEX] Force support for the passed ODBC version. A hex + number is expected, default 0x0350. Use the special + value of 0 to prevent an explicit ODBCVER to be + defined. + --with-adabas[=DIR] Include Adabas D support [/usr/local] + --with-sapdb[=DIR] Include SAP DB support [/usr/local] + --with-solid[=DIR] Include Solid support [/usr/local/solid] + --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib] + --with-empress[=DIR] Include Empress support $EMPRESSPATH (Empress + Version >= 8.60 required) + --with-empress-bcs[=DIR] + Include Empress Local Access support $EMPRESSPATH + (Empress Version >= 8.60 required) + --with-custom-odbc[=DIR] + Include user defined ODBC support. DIR is ODBC + install base directory [/usr/local]. Make sure to + define CUSTOM_ODBC_LIBS and have some odbc.h in your + include dirs. For example, you should define + following for Sybase SQL Anywhere 5.5.00 on QNX, + prior to running this configure script: + CPPFLAGS="-DODBC_QNX -DSQLANY_BUG" LDFLAGS=-lunix + CUSTOM_ODBC_LIBS="-ldblib -lodbc" + --with-iodbc Include iODBC support + --with-esoob[=DIR] Include Easysoft OOB support + [/usr/local/easysoft/oob/client] + --with-unixODBC Include unixODBC support + --with-dbmaker[=DIR] Include DBMaker support + --disable-opcache Disable Zend OPcache support + --disable-huge-code-pages + Disable copying PHP CODE pages into HUGE PAGES + --enable-pcntl Enable pcntl support (CLI/CGI only) + --disable-pdo Disable PHP Data Objects support + --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home + directory + --with-pdo-firebird[=DIR] + PDO: Firebird support. DIR is the Firebird base + install directory [/opt/firebird] + --with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directory. + If no value or mysqlnd is passed as DIR, the MySQL + native driver will be used + --with-zlib-dir[=DIR] PDO_MySQL: Set the path to libz install prefix + --with-pdo-oci[=DIR] PDO: Oracle OCI support. DIR defaults to + $ORACLE_HOME. Use + --with-pdo-oci=instantclient,/path/to/instant/client/lib + for an Oracle Instant Client installation. + --with-pdo-odbc=flavour,dir + PDO: Support for 'flavour' ODBC driver. The include + and lib dirs are looked for under 'dir'. The + 'flavour' can be one of: ibm-db2, iODBC, unixODBC, + generic. If ',dir' part is omitted, default for the + flavour you have selected will be used. e.g.: + --with-pdo-odbc=unixODBC will check for unixODBC + under /usr/local. You may attempt to use an + otherwise unsupported driver using the 'generic' + flavour. The syntax for generic ODBC support is: + --with-pdo-odbc=generic,dir,libname,ldflags,cflags. + When built as 'shared' the extension filename is + always pdo_odbc.so + --with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base + install directory or the path to pg_config + --without-pdo-sqlite PDO: sqlite 3 support. + --with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL + base install directory or the path to pg_config + --disable-phar Disable phar support + --disable-posix Disable POSIX-like functions + --with-pspell[=DIR] Include PSPELL support. GNU Aspell version 0.50.0 or + higher required + --with-libedit Include libedit readline replacement (CLI/CGI only) + --with-readline[=DIR] Include readline support (CLI/CGI only) + --disable-session Disable session support + --with-mm[=DIR] SESSION: Include mm support for session storage + --enable-shmop Enable shmop support + --disable-simplexml Disable SimpleXML support + --with-snmp[=DIR] Include SNMP support + --with-openssl-dir[=DIR] + SNMP: openssl install prefix + --enable-soap Enable SOAP support + --enable-sockets Enable sockets support + --with-sodium Include sodium support + --with-password-argon2[=DIR] + Include Argon2 support in password_*. DIR is the + Argon2 shared library path + --enable-sysvmsg Enable sysvmsg support + --enable-sysvsem Enable System V semaphore support + --enable-sysvshm Enable the System V shared memory support + --with-tidy[=DIR] Include TIDY support + --disable-tokenizer Disable tokenizer support + --disable-xml Disable XML support + --with-expat XML: use expat instead of libxml2 + --disable-xmlreader Disable XMLReader support + --with-xmlrpc[=DIR] Include XMLRPC-EPI support + --with-expat XMLRPC-EPI: use expat instead of libxml2 + --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI + --disable-xmlwriter Disable XMLWriter support + --with-xsl Build with XSL support + --enable-zend-test Enable zend-test extension + --with-zip Include Zip read/write support + --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly + when required by other extensions + --disable-mysqlnd-compression-support + Disable support for the MySQL compressed protocol in + mysqlnd + +PEAR: + + --with-pear[=DIR] Install PEAR in DIR [PREFIX/lib/php] + +Zend: + + --enable-maintainer-zts Enable thread safety - for code maintainers only!! + --disable-inline-optimization + If building zend_execute.lo fails, try this switch + --disable-zend-signals whether to enable zend signal handling + +TSRM: + + --with-tsrm-pth[=pth-config] + Use GNU Pth + --with-tsrm-st Use SGI's State Threads + --with-tsrm-pthreads Use POSIX threads (default) + +Libtool: + + --enable-shared=PKGS Build shared libraries default=yes + --enable-static=PKGS Build static libraries default=yes + --enable-fast-install=PKGS + Optimize for fast installation default=yes + --with-gnu-ld Assume the C compiler uses GNU ld default=no + --disable-libtool-lock Avoid locking (might break parallel builds) + --with-pic Try to use only PIC/non-PIC objects default=use both + --with-tags=TAGS Include additional configurations automatic + + +Some influential environment variables: + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + SYSTEMD_CFLAGS + C compiler flags for SYSTEMD, overriding pkg-config + SYSTEMD_LIBS + linker flags for SYSTEMD, overriding pkg-config + VALGRIND_CFLAGS + C compiler flags for VALGRIND, overriding pkg-config + VALGRIND_LIBS + linker flags for VALGRIND, overriding pkg-config + LIBXML_CFLAGS + C compiler flags for LIBXML, overriding pkg-config + LIBXML_LIBS linker flags for LIBXML, overriding pkg-config + KERBEROS_CFLAGS + C compiler flags for KERBEROS, overriding pkg-config + KERBEROS_LIBS + linker flags for KERBEROS, overriding pkg-config + OPENSSL_CFLAGS + C compiler flags for OPENSSL, overriding pkg-config + OPENSSL_LIBS + linker flags for OPENSSL, overriding pkg-config + PCRE2_CFLAGS + C compiler flags for PCRE2, overriding pkg-config + PCRE2_LIBS linker flags for PCRE2, overriding pkg-config + SQLITE_CFLAGS + C compiler flags for SQLITE, overriding pkg-config + SQLITE_LIBS linker flags for SQLITE, overriding pkg-config + ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config + ZLIB_LIBS linker flags for ZLIB, overriding pkg-config + CURL_CFLAGS C compiler flags for CURL, overriding pkg-config + CURL_LIBS linker flags for CURL, overriding pkg-config + CURL_FEATURES + value of supported_features for libcurl, overriding pkg-config + ENCHANT_CFLAGS + C compiler flags for ENCHANT, overriding pkg-config + ENCHANT_LIBS + linker flags for ENCHANT, overriding pkg-config + FFI_CFLAGS C compiler flags for FFI, overriding pkg-config + FFI_LIBS linker flags for FFI, overriding pkg-config + PNG_CFLAGS C compiler flags for PNG, overriding pkg-config + PNG_LIBS linker flags for PNG, overriding pkg-config + WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config + WEBP_LIBS linker flags for WEBP, overriding pkg-config + JPEG_CFLAGS C compiler flags for JPEG, overriding pkg-config + JPEG_LIBS linker flags for JPEG, overriding pkg-config + XPM_CFLAGS C compiler flags for XPM, overriding pkg-config + XPM_LIBS linker flags for XPM, overriding pkg-config + FREETYPE2_CFLAGS + C compiler flags for FREETYPE2, overriding pkg-config + FREETYPE2_LIBS + linker flags for FREETYPE2, overriding pkg-config + GDLIB_CFLAGS + C compiler flags for GDLIB, overriding pkg-config + GDLIB_LIBS linker flags for GDLIB, overriding pkg-config + ICU_CFLAGS C compiler flags for ICU, overriding pkg-config + ICU_LIBS linker flags for ICU, overriding pkg-config + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + SASL_CFLAGS C compiler flags for SASL, overriding pkg-config + SASL_LIBS linker flags for SASL, overriding pkg-config + ONIG_CFLAGS C compiler flags for ONIG, overriding pkg-config + ONIG_LIBS linker flags for ONIG, overriding pkg-config + ODBC_CFLAGS C compiler flags for ODBC, overriding pkg-config + ODBC_LIBS linker flags for ODBC, overriding pkg-config + EDIT_CFLAGS C compiler flags for EDIT, overriding pkg-config + EDIT_LIBS linker flags for EDIT, overriding pkg-config + LIBSODIUM_CFLAGS + C compiler flags for LIBSODIUM, overriding pkg-config + LIBSODIUM_LIBS + linker flags for LIBSODIUM, overriding pkg-config + EXPAT_CFLAGS + C compiler flags for EXPAT, overriding pkg-config + EXPAT_LIBS linker flags for EXPAT, overriding pkg-config + XSL_CFLAGS C compiler flags for XSL, overriding pkg-config + XSL_LIBS linker flags for XSL, overriding pkg-config + EXSLT_CFLAGS + C compiler flags for EXSLT, overriding pkg-config + EXSLT_LIBS linker flags for EXSLT, overriding pkg-config + LIBZIP_CFLAGS + C compiler flags for LIBZIP, overriding pkg-config + LIBZIP_LIBS linker flags for LIBZIP, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +PHP home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +PHP configure 7.4.0 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ----------------------------------- ## +## Report this to https://bugs.php.net ## +## ----------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by PHP $as_me 7.4.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_aux_dir= +for ac_dir in build "$srcdir"/build; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SED" + + + + test -f config.nice && mv config.nice config.nice.old + rm -f config.nice.old + cat >config.nice<> config.nice + if test `expr "X$ac_configure_args" : ".*${var}.*"` != 0; then + clean_configure_args=$(echo $clean_configure_args | sed -e "s#'$var=$val'##") + fi + fi + done + + echo "'$0' \\" >> config.nice + if test `expr " $0" : " '.*"` = 0; then + CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'" + else + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0" + fi + CONFIGURE_ARGS="$clean_configure_args" + while test "X$CONFIGURE_ARGS" != "X"; + do + if CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\('[^']*'\)"` + then + CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *'[^']*' \(.*\)"` + elif CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\([^ ]*\)"` + then + CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *[^ ]* \(.*\)"` + CURRENT_ARG="'$CURRENT_ARG'" + else + break + fi + $as_echo "$CURRENT_ARG \\" >>config.nice + CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $CURRENT_ARG" + done + echo '"$@"' >> config.nice + chmod +x config.nice + CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS" + + + + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set!" "$LINENO" 5 + fi + + +ac_config_headers="$ac_config_headers main/php_config.h" + + + + + +ac_IFS=$IFS; IFS="." +set $(echo 7.4.0 | "${SED}" 's/\([0-9\.]*\)\(.*\)/\1\.\2/') +IFS=$ac_IFS +PHP_MAJOR_VERSION=$1 +PHP_MINOR_VERSION=$2 +PHP_RELEASE_VERSION=$3 +PHP_EXTRA_VERSION=$4 +PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" +PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION" + + + + +echo "/* automatically generated by configure */" > php_version.h.new +echo "/* edit configure.ac to change version number */" >> php_version.h.new +echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new +echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new +echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new +echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new +echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new +cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 +if test $? -ne 0 ; then + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' +else + rm -f php_version.h.new +fi + + +php_shtool=$srcdir/build/shtool +T_MD=`$php_shtool echo -n -e %B` +T_ME=`$php_shtool echo -n -e %b` + + +test -d include || $php_shtool mkdir include +> Makefile.objects +> Makefile.fragments +pattern=define +$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null + + +test -z "$CFLAGS" && auto_cflags=1 + +abs_srcdir=`(cd $srcdir; pwd)` +abs_builddir=`pwd` + + +$php_shtool mkdir -p libs +rm -f libs/* + + + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in cc gcc + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cc gcc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 +$as_echo_n "checking for icc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__INTEL_COMPILER +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : + ICC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + ICC="yes" + GCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + + + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 +$as_echo_n "checking for suncc... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__SUNPRO_C +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then : + SUNCC="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + SUNCC="yes" + GCC="no" + test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + GCC="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f conftest* + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + +php_with_libdir=lib + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 +$as_echo_n "checking for system library directory... " >&6; } + +# Check whether --with-libdir was given. +if test "${with_libdir+set}" = set; then : + withval=$with_libdir; PHP_LIBDIR=$withval +else + + PHP_LIBDIR=lib + + +fi + + +ext_output=$PHP_LIBDIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_rpath=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 +$as_echo_n "checking whether to enable runpaths... " >&6; } +# Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; PHP_RPATH=$enableval +else + + PHP_RPATH=yes + + +fi + + +ext_output=$PHP_RPATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 +$as_echo_n "checking if compiler supports -R... " >&6; } +if ${php_cv_cc_dashr+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-R /usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_dashr=yes +else + php_cv_cc_dashr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 +$as_echo "$php_cv_cc_dashr" >&6; } +if test $php_cv_cc_dashr = "yes"; then + ld_runpath_switch=-R +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 +$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } + if ${php_cv_cc_rpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + + SAVE_LIBS=$LIBS + LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + php_cv_cc_rpath=yes +else + php_cv_cc_rpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 +$as_echo "$php_cv_cc_rpath" >&6; } + if test $php_cv_cc_rpath = "yes"; then + ld_runpath_switch=-Wl,-rpath, + else + ld_runpath_switch=-L + fi +fi +if test "$PHP_RPATH" = "no"; then + ld_runpath_switch= +fi + + + + for ac_prog in gawk nawk awk mawk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/xpg4/bin/:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done +test -n "$AWK" || AWK="bork" + + case "$AWK" in + *mawk) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 +$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} + ;; + *gawk) + ;; + bork) + as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 +$as_echo_n "checking if $AWK is broken... " >&6; } + if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + as_fn_error $? "You should install GNU awk" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + esac + + PHP_VAR_SUBST="$PHP_VAR_SUBST AWK" + + + + # Extract the first word of "bison", so it can be a program name with args. +set dummy bison; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_YACC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_YACC="bison" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + php_bison_required_version="3.0.0" + php_bison_excluded_versions='none' + + if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +$as_echo_n "checking for bison version... " >&6; } + + php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z) + ac_IFS=$IFS; IFS="." + set $php_bison_version + IFS=$ac_IFS + php_bison_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_bison_branch="$1.$2" + php_bison_check=ok + + if test -z "$php_bison_required_version" && test -z "$php_bison_num"; then + php_bison_check=invalid + elif test -n "$php_bison_required_version"; then + ac_IFS=$IFS; IFS="." + set $php_bison_required_version + IFS=$ac_IFS + php_bison_required_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_bison_required_version="$php_bison_required_version or later" + + if test -z "$php_bison_num" || test "$php_bison_num" -lt "$php_bison_required_num"; then + php_bison_check=invalid + fi + fi + + for php_bison_check_version in $php_bison_excluded_versions; do + if test "$php_bison_version" = "$php_bison_check_version" || test "$php_bison_branch" = "$php_bison_check_version"; then + php_bison_check=invalid + break + fi + done + + if test "$php_bison_check" != "invalid"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version (ok)" >&5 +$as_echo "$php_bison_version (ok)" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version" >&5 +$as_echo "$php_bison_version" >&6; } + fi + fi + + case $php_bison_check in + ""|invalid) + if test ! -f "$abs_srcdir/Zend/zend_language_parser.h" || test ! -f "$abs_srcdir/Zend/zend_language_parser.c"; then + as_fn_error $? "bison $php_bison_required_version is required to generate PHP parsers (excluded versions: $php_bison_excluded_versions)." "$LINENO" 5 + fi + + YACC="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST YACC" + + + + # Extract the first word of "re2c", so it can be a program name with args. +set dummy re2c; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RE2C+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RE2C"; then + ac_cv_prog_RE2C="$RE2C" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RE2C="re2c" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RE2C=$ac_cv_prog_RE2C +if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 +$as_echo "$RE2C" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + php_re2c_required_version="0.13.4" + + if test -n "$RE2C"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 +$as_echo_n "checking for re2c version... " >&6; } + + php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null) + ac_IFS=$IFS; IFS="." + set $php_re2c_version + IFS=$ac_IFS + php_re2c_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_re2c_check=ok + + if test -z "$php_re2c_required_version" && test -z "$php_re2c_num"; then + php_re2c_check=invalid + elif test -n "$php_re2c_required_version"; then + ac_IFS=$IFS; IFS="." + set $php_re2c_required_version + IFS=$ac_IFS + php_re2c_required_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` + php_re2c_required_version="$php_re2c_required_version or later" + + if test -z "$php_re2c_num" || test "$php_re2c_num" -lt "$php_re2c_required_num"; then + php_re2c_check=invalid + fi + fi + + if test "$php_re2c_check" != "invalid"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version (ok)" >&5 +$as_echo "$php_re2c_version (ok)" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version" >&5 +$as_echo "$php_re2c_version" >&6; } + fi + fi + + case $php_re2c_check in + ""|invalid) + if test ! -f "$abs_srcdir/Zend/zend_language_scanner.c"; then + as_fn_error $? "re2c $php_re2c_required_version is required to generate PHP lexers." "$LINENO" 5 + fi + + RE2C="exit 0;" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C" + + + + +php_enable_re2c_cgoto=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 +$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; } +# Check whether --enable-re2c-cgoto was given. +if test "${enable_re2c_cgoto+set}" = set; then : + enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval +else + + PHP_RE2C_CGOTO=no + + +fi + + +ext_output=$PHP_RE2C_CGOTO +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RE2C_CGOTO" = "no"; then + RE2C_FLAGS="" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 +$as_echo_n "checking whether re2c -g works... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +int main(int argc, const char **argv) +{ + argc = argc; + argv = argv; +label1: +label2: + static void *adr[] = { &&label1, &&label2}; + goto *adr[0]; + return 0; +} + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + RE2C_FLAGS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + RE2C_FLAGS="-g" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS" + + + +case $host_cpu in + alpha*) + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -mieee" + else + CFLAGS="$CFLAGS -ieee" + fi + ;; + sparc*) + if test "$SUNCC" = "yes"; then + CFLAGS="$CFLAGS -xmemalign=8s" + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 +$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; } +if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -fvisibility=hidden" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___fvisibility_hidden=yes +else + ax_cv_check_cflags___fvisibility_hidden=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 +$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; } +if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then : + CFLAGS="$CFLAGS -fvisibility=hidden" +else + : +fi + + +case $host_alias in + *solaris*) + CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then + enable_libgcc=yes + fi + ;; + *dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" + ;; + *darwin*) + if test -n "$GCC"; then + + gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5 +$as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; } +if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then : + $as_echo_n "(cached) " >&6 +else + + echo 'void somefunc() { };' > conftest.c + cmd='$CC -no-cpp-precomp -c conftest.c' + if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then + ac_result=no + else + ac_result=yes + fi + eval $gcc_arg_name=$ac_result + rm -f conftest.* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5 +$as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; } + if eval test "\$$gcc_arg_name" = "yes"; then + gcc_no_cpp_precomp=yes + else + : + + fi + + if test "$gcc_no_cpp_precomp" = "yes"; then + CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + fi + fi + ;; + *mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV" + ;; + *hpux*) + if test "$GCC" = "yes"; then + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5 +$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; } +case $host_alias in + i?86-*-linux*|i?86-*-freebsd*) + if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then + with_pic=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 +$as_echo_n "checking whether /dev/urandom exists... " >&6; } +if test -r "/dev/urandom" && test -c "/dev/urandom"; then + +$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +# Check whether --enable-gcc-global-regs was given. +if test "${enable_gcc_global_regs+set}" = set; then : + enableval=$enable_gcc_global_regs; ZEND_GCC_GLOBAL_REGS=$enableval +else + ZEND_GCC_GLOBAL_REGS=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for global register variables support" >&5 +$as_echo_n "checking for global register variables support... " >&6; } +if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined(__GNUC__) +# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) +#else +# define ZEND_GCC_VERSION 0 +#endif +#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386) +# define ZEND_VM_FP_GLOBAL_REG "%esi" +# define ZEND_VM_IP_GLOBAL_REG "%edi" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__) +# define ZEND_VM_FP_GLOBAL_REG "%r14" +# define ZEND_VM_IP_GLOBAL_REG "%r15" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__powerpc64__) +# define ZEND_VM_FP_GLOBAL_REG "r28" +# define ZEND_VM_IP_GLOBAL_REG "r29" +#elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__) +# define ZEND_VM_FP_GLOBAL_REG "r28" +# define ZEND_VM_IP_GLOBAL_REG "r29" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__) +# define ZEND_VM_FP_GLOBAL_REG "x27" +# define ZEND_VM_IP_GLOBAL_REG "x28" +#else +# error "global register variables are not supported" +#endif +typedef int (*opcode_handler_t)(void); +register void *FP __asm__(ZEND_VM_FP_GLOBAL_REG); +register const opcode_handler_t *IP __asm__(ZEND_VM_IP_GLOBAL_REG); +int emu(const opcode_handler_t *ip, void *fp) { + const opcode_handler_t *orig_ip = IP; + void *orig_fp = FP; + IP = ip; + FP = fp; + while ((*ip)()); + FP = orig_fp; + IP = orig_ip; +} + +int +main () +{ + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ZEND_GCC_GLOBAL_REGS=yes + +else + + ZEND_GCC_GLOBAL_REGS=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +if test "$ZEND_GCC_GLOBAL_REGS" = "yes"; then + +$as_echo "#define HAVE_GCC_GLOBAL_REGS 1" >>confdefs.h + +else + HAVE_GCC_GLOBAL_REGS=no +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_GCC_GLOBAL_REGS" >&5 +$as_echo "$ZEND_GCC_GLOBAL_REGS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5 +$as_echo_n "checking whether atof() accepts NAN... " >&6; } +if ${ac_cv_atof_accept_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_nan=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isnan(atof("NAN")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_nan=yes + +else + + ac_cv_atof_accept_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5 +$as_echo "$ac_cv_atof_accept_nan" >&6; } +if test "$ac_cv_atof_accept_nan" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5 +$as_echo_n "checking whether atof() accepts INF... " >&6; } +if ${ac_cv_atof_accept_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_atof_accept_inf=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_atof_accept_inf=yes + +else + + ac_cv_atof_accept_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5 +$as_echo "$ac_cv_atof_accept_inf" >&6; } +if test "$ac_cv_atof_accept_inf" = "yes"; then + +$as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5 +$as_echo_n "checking whether HUGE_VAL == INF... " >&6; } +if ${ac_cv_huge_val_inf+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_inf=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +int main(int argc, char** argv) +{ + return zend_isinf(HUGE_VAL) ? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_inf=yes + +else + + ac_cv_huge_val_inf=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5 +$as_echo "$ac_cv_huge_val_inf" >&6; } +if test "$ac_cv_huge_val_inf" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5 +$as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; } +if ${ac_cv_huge_val_nan+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_huge_val_nan=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif + +int main(int argc, char** argv) +{ +#if defined(__sparc__) && !(__GNUC__ >= 3) + /* prevent bug #27830 */ + return 1; +#else + return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1; +#endif +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_huge_val_nan=yes + +else + + ac_cv_huge_val_nan=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5 +$as_echo "$ac_cv_huge_val_nan" >&6; } +if test "$ac_cv_huge_val_nan" = "yes"; then + +$as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __cpuid_count is available" >&5 +$as_echo_n "checking whether __cpuid_count is available... " >&6; } +if ${ac_cv_cpuid_count_available+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned eax, ebx, ecx, edx; + __cpuid_count(0, 0, eax, ebx, ecx, edx); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + ac_cv_cpuid_count_available=yes + +else + + ac_cv_cpuid_count_available=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpuid_count_available" >&5 +$as_echo "$ac_cv_cpuid_count_available" >&6; } +if test "$ac_cv_cpuid_count_available" = "yes"; then + +$as_echo "#define HAVE_CPUID_COUNT 1" >>confdefs.h + +fi + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_cflags= +if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then + pthreads_working="yes" +fi + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME" + + + + SHLIB_SUFFIX_NAME=so + SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME + case $host_alias in + *hpux*) + SHLIB_SUFFIX_NAME=sl + SHLIB_DL_SUFFIX_NAME=sl + ;; + *darwin*) + SHLIB_SUFFIX_NAME=dylib + SHLIB_DL_SUFFIX_NAME=so + ;; + esac + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + +PHP_SAPI=none + + +SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME +SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a +SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 +$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; } + + + + + + + + + + +php_with_apxs2=no + + + +# Check whether --with-apxs2 was given. +if test "${with_apxs2+set}" = set; then : + withval=$with_apxs2; PHP_APXS2=$withval +else + + PHP_APXS2=no + + +fi + + +ext_output=$PHP_APXS2 + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2 handler module support via DSO through APXS" >&5 +$as_echo_n "checking for Apache 2 handler module support via DSO through APXS... " >&6; } + +if test "$PHP_APXS2" != "no"; then + if test "$PHP_APXS2" = "yes"; then + APXS=apxs + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0" && test -x /usr/sbin/apxs; then + APXS=/usr/sbin/apxs + fi + else + + if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then + APXS=$PHP_APXS2 + else + + ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + APXS="$ep_realdir"/`basename "$PHP_APXS2"` + fi + + fi + + $APXS -q CFLAGS >/dev/null 2>&1 + if test "$?" != "0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +$as_echo "1. Perl is not installed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 +$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +$as_echo "The output of $APXS follows:" >&6; } + $APXS -q CFLAGS + as_fn_error $? "Aborting" "$LINENO" 5 + fi + + APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_BINDIR=`$APXS -q BINDIR` + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + APXS_CFLAGS=`$APXS -q CFLAGS` + APU_BINDIR=`$APXS -q APU_BINDIR` + APR_BINDIR=`$APXS -q APR_BINDIR` + + APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null || + echo $APR_BINDIR/apr-config` + APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null || + echo $APU_BINDIR/apu-config` + + APR_CFLAGS="`$APR_CONFIG --cppflags --includes`" + APU_CFLAGS="`$APU_CONFIG --includes`" + + for flag in $APXS_CFLAGS; do + case $flag in + -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";; + esac + done + + APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + + ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` + ac_IFS=$IFS +IFS="- /. +" + set $ac_output + IFS=$ac_IFS + + APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` + + if test "$APACHE_VERSION" -lt 2000044; then + as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5 + fi + + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php7" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php7" + fi + + case $host_alias in + *aix*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + + if test "shared" = "program"; then + PHP_BINARIES="$PHP_BINARIES apache2handler" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=apache2handler + fi + + + + BUILD_DIR="$BUILD_DIR sapi/apache2handler" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler" + + + case "shared" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/apache2handler in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_php7.c sapi_apache2.c apache_config.c php_functions.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects</dev/null | grep 'threaded:.*yes'` + if test -n "$APACHE_THREADED_MPM"; then + + enable_maintainer_zts=yes + if test "$pthreads_working" != "yes"; then + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + fi + + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_cli=yes + + +# Check whether --enable-cli was given. +if test "${enable_cli+set}" = set; then : + enableval=$enable_cli; PHP_CLI=$enableval +else + + PHP_CLI=yes + + +fi + + +ext_output=$PHP_CLI + + + + + +for ac_func in setproctitle +do : + ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SETPROCTITLE 1 +_ACEOF + +fi +done + + +for ac_header in sys/pstat.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_pstat_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_PSTAT_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 +$as_echo_n "checking for PS_STRINGS... " >&6; } +if ${cli_cv_var_PS_STRINGS+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +PS_STRINGS->ps_nargvstr = 1; +PS_STRINGS->ps_argvstr = "foo"; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cli_cv_var_PS_STRINGS=yes +else + cli_cv_var_PS_STRINGS=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 +$as_echo "$cli_cv_var_PS_STRINGS" >&6; } +if test "$cli_cv_var_PS_STRINGS" = yes ; then + +$as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 +$as_echo_n "checking for CLI build... " >&6; } +if test "$PHP_CLI" != "no"; then + + src=$abs_srcdir/sapi/cli/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_CLI_PATH=sapi/cli/php + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cli" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cli + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cli" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cli" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS" + + + case sapi/cli in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + else + BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + fi + ;; + *darwin*) + BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + *) + BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)" + ;; + esac + + PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1" + + + + + for header_file in sapi/cli/cli.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 +$as_echo "$PHP_CLI" >&6; } + + + + + +php_enable_embed=no + + +# Check whether --enable-embed was given. +if test "${enable_embed+set}" = set; then : + enableval=$enable_embed; PHP_EMBED=$enableval +else + + PHP_EMBED=no + + +fi + + +ext_output=$PHP_EMBED + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 +$as_echo_n "checking for embedded SAPI library support... " >&6; } + +if test "$PHP_EMBED" != "no"; then + case "$PHP_EMBED" in + yes|shared) + PHP_EMBED_TYPE=shared + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + static) + PHP_EMBED_TYPE=static + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib" + ;; + *) + PHP_EMBED_TYPE=no + ;; + esac + if test "$PHP_EMBED_TYPE" != "no"; then + + if test "$PHP_EMBED_TYPE" = "program"; then + PHP_BINARIES="$PHP_BINARIES embed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=embed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/embed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed" + + + case "$PHP_EMBED_TYPE" in + static) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=static +;; + shared) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la + php_sapi_module=shared + + php_c_pre=$shared_c_pre + php_c_meta=$shared_c_meta + php_c_post=$shared_c_post + php_cxx_pre=$shared_cxx_pre + php_cxx_meta=$shared_cxx_meta + php_cxx_post=$shared_cxx_post + php_lo=$shared_lo +;; + bundle) + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle + php_sapi_module=static +;; + esac + install_sapi="install-sapi" + + + case sapi/embed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_embed.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_EMBED_TYPE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_fpm=no + + +# Check whether --enable-fpm was given. +if test "${enable_fpm+set}" = set; then : + enableval=$enable_fpm; PHP_FPM=$enableval +else + + PHP_FPM=no + + +fi + + +ext_output=$PHP_FPM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 +$as_echo_n "checking for FPM build... " >&6; } +if test "$PHP_FPM" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 +$as_echo "$PHP_FPM" >&6; } + + + for ac_func in clearenv setproctitle setproctitle_fast +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +for ac_lib in '' socket; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_socket+:} false; then : + break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else + ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +$as_echo_n "checking for library containing inet_addr... " >&6; } +if ${ac_cv_search_inet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_addr (); +int +main () +{ +return inet_addr (); + ; + return 0; +} +_ACEOF +for ac_lib in '' nsl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_inet_addr=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_inet_addr+:} false; then : + break +fi +done +if ${ac_cv_search_inet_addr+:} false; then : + +else + ac_cv_search_inet_addr=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +$as_echo "$ac_cv_search_inet_addr" >&6; } +ac_res=$ac_cv_search_inet_addr +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 +$as_echo_n "checking for prctl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +prctl(0, 0, 0, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PRCTL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + have_clock_gettime=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 +$as_echo_n "checking for clock_gettime... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +$as_echo_n "checking for clock_gettime in -lrt... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lrt" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_clock_gettime=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test "$have_clock_gettime" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h + + fi + + have_clock_get_time=no + + if test "$have_clock_gettime" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 +$as_echo_n "checking for clock_get_time... " >&6; } + + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5 +$as_echo "no (cross-compiling)" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include + + int main() + { + kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime; + ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock); + + if (ret != KERN_SUCCESS) { + return 1; + } + + ret = clock_get_time(aClock, &aTime); + if (ret != KERN_SUCCESS) { + return 2; + } + + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_clock_get_time=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_clock_get_time" = "yes"; then + +$as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h + + fi + + + have_ptrace=no + have_broken_ptrace=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 +$as_echo_n "checking for ptrace... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include +int +main () +{ +ptrace(0, 0, (void *) 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 +$as_echo_n "checking whether ptrace works... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +$as_echo "skipped (cross-compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + #include + + #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH) + #define PTRACE_ATTACH PT_ATTACH + #endif + + #if !defined(PTRACE_DETACH) && defined(PT_DETACH) + #define PTRACE_DETACH PT_DETACH + #endif + + #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D) + #define PTRACE_PEEKDATA PT_READ_D + #endif + + int main() + { + long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */ + long v2; + pid_t child; + int status; + + if ( (child = fork()) ) { /* parent */ + int ret = 0; + + if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) { + return 2; + } + + waitpid(child, &status, 0); + + #ifdef PT_IO + struct ptrace_io_desc ptio = { + .piod_op = PIOD_READ_D, + .piod_offs = &v1, + .piod_addr = &v2, + .piod_len = sizeof(v1) + }; + + if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) { + ret = 3; + } + #else + errno = 0; + + v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0); + + if (errno) { + ret = 4; + } + #endif + ptrace(PTRACE_DETACH, child, (void *) 1, 0); + + kill(child, SIGKILL); + + return ret ? ret : (v1 != v2); + } + else { /* child */ + sleep(10); + return 0; + } + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_ptrace=no + have_broken_ptrace=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test "$have_ptrace" = "yes"; then + +$as_echo "#define HAVE_PTRACE 1" >>confdefs.h + + fi + + have_mach_vm_read=no + + if test "$have_broken_ptrace" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 +$as_echo_n "checking for mach_vm_read... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_mach_vm_read=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$have_mach_vm_read" = "yes"; then + +$as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h + + fi + + proc_mem_file="" + + if test -r /proc/$$/mem ; then + proc_mem_file="mem" + else + if test -r /proc/$$/as ; then + proc_mem_file="as" + fi + fi + + if test -n "$proc_mem_file" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 +$as_echo_n "checking for proc mem file... " >&6; } + + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +$as_echo "skipped (cross-compiling)" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #define _FILE_OFFSET_BITS 64 + #include + #include + #include + #include + #include + #include + int main() + { + long v1 = (unsigned int) -1, v2 = 0; + char buf[128]; + int fd; + sprintf(buf, "/proc/%d/$proc_mem_file", getpid()); + fd = open(buf, O_RDONLY); + if (0 > fd) { + return 1; + } + if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) { + close(fd); + return 1; + } + close(fd); + return v1 != v2; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 +$as_echo "$proc_mem_file" >&6; } + +else + + proc_mem_file="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -n "$proc_mem_file"; then + +cat >>confdefs.h <<_ACEOF +#define PROC_MEM_FILE "$proc_mem_file" +_ACEOF + + fi + + fpm_trace_type="" + + if test "$have_ptrace" = "yes"; then + fpm_trace_type=ptrace + + elif test -n "$proc_mem_file"; then + fpm_trace_type=pread + + elif test "$have_mach_vm_read" = "yes" ; then + fpm_trace_type=mach + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 +$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 +$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + int variable = 1; + return (__sync_bool_compare_and_swap(&variable, 1, 2) + && __sync_add_and_fetch(&variable, 1)) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + have_lq=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 +$as_echo_n "checking for TCP_INFO... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tcp_info ti; int x = TCP_INFO; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=tcp_info + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h + + fi + + if test "$have_lq" = "no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 +$as_echo_n "checking for SO_LISTENQLEN... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + have_lq=so_listenq + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_lq" = "tcp_info"; then + +$as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 +$as_echo_n "checking for sysconf... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +sysconf(_SC_CLK_TCK); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5 +$as_echo_n "checking for times... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tms t; times(&t); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_TIMES 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 +$as_echo_n "checking for kqueue... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + int kfd; + struct kevent k; + kfd = kqueue(); + /* 0 -> STDIN_FILENO */ + EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 +$as_echo_n "checking for port framework... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int port; + + port = port_create(); + if (port < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_PORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 +$as_echo_n "checking for /dev/poll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + int n, dp; + struct dvpoll dvp; + dp = 0; + dvp.dp_fds = NULL; + dvp.dp_nfds = 0; + dvp.dp_timeout = 0; + n = ioctl(dp, DP_POLL, &dvp) + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 +$as_echo_n "checking for epoll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + int epollfd; + struct epoll_event e; + + epollfd = epoll_create(1); + if (epollfd < 0) { + return 1; + } + + e.events = EPOLLIN | EPOLLET; + e.data.fd = 0; + + if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) { + return 1; + } + + e.events = 0; + if (epoll_wait(epollfd, &e, 1, 1) < 0) { + return 1; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 +$as_echo_n "checking for select... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* According to POSIX.1-2001 */ + #include + + /* According to earlier standards */ + #include + #include + #include + +int +main () +{ + + fd_set fds; + struct timeval t; + t.tv_sec = 0; + t.tv_usec = 42; + FD_ZERO(&fds); + /* 0 -> STDIN_FILENO */ + FD_SET(0, &fds); + select(FD_SETSIZE, &fds, NULL, NULL, &t); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define HAVE_SELECT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apparmor" >&5 +$as_echo_n "checking for apparmor... " >&6; } + + SAVED_LIBS="$LIBS" + LIBS="$LIBS -lapparmor" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +change_hat("test", 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +$as_echo "#define HAVE_APPARMOR 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + LIBS="$SAVED_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + +php_with_fpm_user=nobody + + + +# Check whether --with-fpm-user was given. +if test "${with_fpm_user+set}" = set; then : + withval=$with_fpm_user; PHP_FPM_USER=$withval +else + + PHP_FPM_USER=nobody + + +fi + + +ext_output=$PHP_FPM_USER + + + + + + +php_with_fpm_group=nobody + + + +# Check whether --with-fpm-group was given. +if test "${with_fpm_group+set}" = set; then : + withval=$with_fpm_group; PHP_FPM_GROUP=$withval +else + + PHP_FPM_GROUP=nobody + + +fi + + +ext_output=$PHP_FPM_GROUP + + + + + + +php_with_fpm_systemd=no + + + +# Check whether --with-fpm-systemd was given. +if test "${with_fpm_systemd+set}" = set; then : + withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval +else + + PHP_FPM_SYSTEMD=no + + +fi + + +ext_output=$PHP_FPM_SYSTEMD + + + + + + +php_with_fpm_acl=no + + + +# Check whether --with-fpm-acl was given. +if test "${with_fpm_acl+set}" = set; then : + withval=$with_fpm_acl; PHP_FPM_ACL=$withval +else + + PHP_FPM_ACL=no + + +fi + + +ext_output=$PHP_FPM_ACL + + + + + + if test "$PHP_FPM_SYSTEMD" != "no" ; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5 +$as_echo_n "checking for libsystemd >= 209... " >&6; } + +if test -n "$SYSTEMD_CFLAGS"; then + pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then + pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` + else + SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SYSTEMD_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsystemd >= 209) were not met: + +$SYSTEMD_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SYSTEMD_CFLAGS +and SYSTEMD_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SYSTEMD_CFLAGS +and SYSTEMD_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS + SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_header in systemd/sd-daemon.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYSTEMD_SD_DAEMON_H 1 +_ACEOF + HAVE_SD_DAEMON_H="yes" +else + HAVE_SD_DAEMON_H="no" +fi + +done + + if test $HAVE_SD_DAEMON_H = "no"; then + as_fn_error $? "Your system does not support systemd." "$LINENO" 5 + else + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + + PHP_FPM_SD_FILES="fpm/fpm_systemd.c" + + for ac_i in $SYSTEMD_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + + for ac_i in $SYSTEMD_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + php_fpm_systemd=notify + fi + else + php_fpm_systemd=simple + fi + + if test "$PHP_FPM_ACL" != "no" ; then + for ac_header in sys/acl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_acl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_ACL_H 1 +_ACEOF + +fi + +done + + ac_fn_c_check_func "$LINENO" "acl_free" "ac_cv_func_acl_free" +if test "x$ac_cv_func_acl_free" = xyes; then : + + +$as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_free in -lacl" >&5 +$as_echo_n "checking for acl_free in -lacl... " >&6; } +if ${ac_cv_lib_acl_acl_free+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lacl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char acl_free (); +int +main () +{ +return acl_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_acl_acl_free=yes +else + ac_cv_lib_acl_acl_free=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_free" >&5 +$as_echo "$ac_cv_lib_acl_acl_free" >&6; } +if test "x$ac_cv_lib_acl_acl_free" = xyes; then : + + + + case acl in + c|c_r|pthread*) ;; + *) + LIBS="-lacl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h + + +else + + as_fn_error $? "libacl required not found" "$LINENO" 5 + +fi + + +fi + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd" + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_SYSTEMD "$php_fpm_systemd" +_ACEOF + + + if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then + php_fpm_user="nobody" + else + php_fpm_user="$PHP_FPM_USER" + fi + + if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then + php_fpm_group="nobody" + else + php_fpm_group="$PHP_FPM_GROUP" + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group" + + + + php_fpm_sysconfdir=`eval echo $sysconfdir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir" + + + + php_fpm_localstatedir=`eval echo $localstatedir` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir" + + + + php_fpm_prefix=`eval echo $prefix` + + + PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_USER "$php_fpm_user" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_FPM_GROUP "$php_fpm_group" +_ACEOF + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm" + + + + + BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/www.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html" + + + src=$abs_srcdir/sapi/fpm/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + SAPI_FPM_PATH=sapi/fpm/php-fpm + + if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then + PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c" + fi + + PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + PHP_FPM_FILES="fpm/fpm.c \ + fpm/fpm_children.c \ + fpm/fpm_cleanup.c \ + fpm/fpm_clock.c \ + fpm/fpm_conf.c \ + fpm/fpm_env.c \ + fpm/fpm_events.c \ + fpm/fpm_log.c \ + fpm/fpm_main.c \ + fpm/fpm_php.c \ + fpm/fpm_php_trace.c \ + fpm/fpm_process_ctl.c \ + fpm/fpm_request.c \ + fpm/fpm_shm.c \ + fpm/fpm_scoreboard.c \ + fpm/fpm_signals.c \ + fpm/fpm_sockets.c \ + fpm/fpm_status.c \ + fpm/fpm_stdio.c \ + fpm/fpm_unix.c \ + fpm/fpm_worker_pool.c \ + fpm/zlog.c \ + fpm/events/select.c \ + fpm/events/poll.c \ + fpm/events/epoll.c \ + fpm/events/kqueue.c \ + fpm/events/devpoll.c \ + fpm/events/port.c \ + " + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES fpm" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=fpm + fi + + + + BUILD_DIR="$BUILD_DIR sapi/fpm" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-fpm" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS" + + + case sapi/fpm in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *darwin*) + BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + *) + BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM" + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5 +$as_echo_n "checking for LiteSpeed support... " >&6; } + + +php_enable_litespeed=no + + +# Check whether --enable-litespeed was given. +if test "${enable_litespeed+set}" = set; then : + enableval=$enable_litespeed; PHP_LITESPEED=$enableval +else + + PHP_LITESPEED=no + test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LITESPEED in +shared,*) + PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'` + ;; +shared) + PHP_LITESPEED=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test "$PHP_LITESPEED" != "no"; then + + src=$abs_srcdir/sapi/litespeed/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/litespeed + ac_builddir=sapi/litespeed + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + SAPI_LITESPEED_PATH=sapi/litespeed/php + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES litespeed" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=litespeed + fi + + + + BUILD_DIR="$BUILD_DIR sapi/litespeed" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-litespeed" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS" + + + case sapi/litespeed in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in lsapi_main.c lsapilib.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo "$PHP_LITESPEED" >&6; } + + + + + +php_enable_phpdbg=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg support" >&5 +$as_echo_n "checking for phpdbg support... " >&6; } +# Check whether --enable-phpdbg was given. +if test "${enable_phpdbg+set}" = set; then : + enableval=$enable_phpdbg; PHP_PHPDBG=$enableval +else + + PHP_PHPDBG=yes + test "$PHP_ENABLE_ALL" && PHP_PHPDBG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHPDBG in +shared,*) + PHP_PHPDBG=`echo "$PHP_PHPDBG"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHPDBG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_webhelper=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg web SAPI support" >&5 +$as_echo_n "checking for phpdbg web SAPI support... " >&6; } +# Check whether --enable-phpdbg-webhelper was given. +if test "${enable_phpdbg_webhelper+set}" = set; then : + enableval=$enable_phpdbg_webhelper; PHP_PHPDBG_WEBHELPER=$enableval +else + + PHP_PHPDBG_WEBHELPER=no + test "$PHP_ENABLE_ALL" && PHP_PHPDBG_WEBHELPER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHPDBG_WEBHELPER in +shared,*) + PHP_PHPDBG_WEBHELPER=`echo "$PHP_PHPDBG_WEBHELPER"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHPDBG_WEBHELPER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg debug build" >&5 +$as_echo_n "checking for phpdbg debug build... " >&6; } +# Check whether --enable-phpdbg-debug was given. +if test "${enable_phpdbg_debug+set}" = set; then : + enableval=$enable_phpdbg_debug; PHP_PHPDBG_DEBUG=$enableval +else + + PHP_PHPDBG_DEBUG=no + + +fi + + +ext_output=$PHP_PHPDBG_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_phpdbg_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg readline support" >&5 +$as_echo_n "checking for phpdbg readline support... " >&6; } +# Check whether --enable-phpdbg-readline was given. +if test "${enable_phpdbg_readline+set}" = set; then : + enableval=$enable_phpdbg_readline; PHP_PHPDBG_READLINE=$enableval +else + + PHP_PHPDBG_READLINE=no + + +fi + + +ext_output=$PHP_PHPDBG_READLINE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 +$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } +if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#ifdef TIOCGWINSZ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + ac_cv_sys_tiocgwinsz_in_termios_h=yes +else + ac_cv_sys_tiocgwinsz_in_termios_h=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 +$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } + +if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 +$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } +if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#ifdef TIOCGWINSZ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes +else + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 +$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } + + if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then + +$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h + + fi +fi + + +$as_echo "#define HAVE_PHPDBG 1" >>confdefs.h + + + if test "$PHP_PHPDBG_DEBUG" != "no"; then + +$as_echo "#define PHPDBG_DEBUG 1" >>confdefs.h + + else + +$as_echo "#define PHPDBG_DEBUG 0" >>confdefs.h + + fi + + PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + PHP_PHPDBG_FILES="phpdbg.c phpdbg_parser.c phpdbg_lexer.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_btree.c phpdbg_sigsafe.c phpdbg_wait.c phpdbg_io.c phpdbg_eol.c phpdbg_out.c" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg and readline integration" >&5 +$as_echo_n "checking for phpdbg and readline integration... " >&6; } + if test "$PHP_PHPDBG_READLINE" = "yes"; then + if test "$PHP_READLINE" != "no" -o "$PHP_LIBEDIT" != "no"; then + +$as_echo "#define HAVE_PHPDBG_READLINE 1" >>confdefs.h + + PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline is not available" >&5 +$as_echo "readline is not available" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 +$as_echo "disabled" >&6; } + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_FILES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHPDBG_EXTRA_LIBS" + + + + src=$abs_srcdir/sapi/phpdbg/Makefile.frag + ac_srcdir=$abs_srcdir/sapi/phpdbg + ac_builddir=$abs_builddir/sapi/phpdbg + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES phpdbg" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=phpdbg + fi + + + + BUILD_DIR="$BUILD_DIR sapi/phpdbg" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phpdbg" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-phpdbg" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_OBJS" + + + case sapi/phpdbg in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/phpdbg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/phpdbg/"; ac_bdir="sapi/phpdbg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_PHPDBG_FILES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_PHPDBG_OBJS="$PHP_PHPDBG_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHPDBG_WEBHELPER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHPDBG_WEBHELPER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for CGI build... " >&6; } +if test "$PHP_CGI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 +$as_echo_n "checking for sun_len in sys/un.h... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sun_len" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 +$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; } + case "`uname -sr`" in + IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_LOCKING 1" >>confdefs.h + + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + + src=$abs_srcdir/sapi/cgi/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + case $host_alias in + *cygwin* ) + SAPI_CGI_PATH=sapi/cgi/php-cgi.exe + ;; + * ) + SAPI_CGI_PATH=sapi/cgi/php-cgi + ;; + esac + + + if test "program" = "program"; then + PHP_BINARIES="$PHP_BINARIES cgi" + elif test "$PHP_SAPI" != "none"; then + as_fn_error $? " ++--------------------------------------------------------------------+ +| *** ATTENTION *** | +| | +| You've configured multiple SAPIs to be build. You can build only | +| one SAPI module plus CGI, CLI and FPM binaries at the same time. | ++--------------------------------------------------------------------+ +" "$LINENO" 5 + else + PHP_SAPI=cgi + fi + + + + BUILD_DIR="$BUILD_DIR sapi/cgi" + + + + PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi" + + + + php_c_pre='$(LIBTOOL) --mode=compile $(CC)' + php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post= + php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post= + php_lo=lo + + case $with_pic in + yes) pic_setting='-prefer-pic';; + no) pic_setting='-prefer-non-pic';; + esac + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' + shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' + shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting + shared_cxx_post= + shared_lo=lo + + install_binaries="install-binaries" + install_binary_targets="$install_binary_targets install-cgi" + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS" + + + case sapi/cgi in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in cgi_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + else + BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + fi + ;; + *darwin*) + BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + *) + BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" + ;; + esac + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI" + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 +$as_echo_n "checking for chosen SAPI module... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 +$as_echo "$PHP_SAPI" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 +$as_echo_n "checking for executable SAPI binaries... " >&6; } +if test "$PHP_BINARIES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 +$as_echo "$PHP_BINARIES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + +if test -z "$PHP_INSTALLED_SAPIS"; then + as_fn_error $? "Nothing to build." "$LINENO" 5 +fi + +if test "$enable_maintainer_zts" = "yes"; then + if test -n "$ac_cv_pthreads_lib"; then + LIBS="$LIBS -l$ac_cv_pthreads_lib" + fi + if test -n "$ac_cv_pthreads_cflags"; then + CFLAGS="$CFLAGS $ac_cv_pthreads_cflags" + fi + + + if test -z "$host_alias" && test -n "$host"; then + host_alias=$host + fi + if test -z "$host_alias"; then + as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 + fi + case $host_alias in + *solaris*) + PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";; + *freebsd*) + PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";; + *linux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *aix*) + PTHREAD_FLAGS=-D_THREAD_SAFE;; + *irix*) + PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;; + *hpux*) + PTHREAD_FLAGS=-D_REENTRANT;; + *sco*) + PTHREAD_FLAGS=-D_REENTRANT;; + esac + + if test -n "$PTHREAD_FLAGS"; then + CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS" + fi + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 +$as_echo "${T_MD}Running system checks${T_ME}" >&6; } + + + + PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib + # Extract the first word of "sendmail", so it can be a program name with args. +set dummy sendmail; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PROG_SENDMAIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PROG_SENDMAIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:$PHP_ALT_PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL +if test -n "$PROG_SENDMAIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 +$as_echo "$PROG_SENDMAIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL" + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 +$as_echo_n "checking whether system uses EBCDIC... " >&6; } +if ${ac_cv_ebcdic+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_ebcdic=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { + return (unsigned char)'A' != (unsigned char)0xC1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_ebcdic=yes + +else + + ac_cv_ebcdic=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 +$as_echo "$ac_cv_ebcdic" >&6; } + if test "$ac_cv_ebcdic" = "yes"; then + +$as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h + + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian_php+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_cv_c_bigendian_php=unknown + if test "$cross_compiling" = yes; then : + ac_cv_c_bigendian_php=unknown +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) +{ + short one = 1; + char *cp = (char *)&one; + + if (*cp == 0) { + return(0); + } else { + return(1); + } +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian_php=yes +else + ac_cv_c_bigendian_php=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +$as_echo "$ac_cv_c_bigendian_php" >&6; } + if test $ac_cv_c_bigendian_php = yes; then + +$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 +$as_echo_n "checking whether writing to stdout works... " >&6; } +if ${ac_cv_write_stdout+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_write_stdout=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_UNISTD_H +#include +#endif + +#define TEXT "This is the test message -- " + +main() +{ + int n; + + n = write(1, TEXT, sizeof(TEXT)-1); + return (!(n == sizeof(TEXT)-1)); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_write_stdout=yes + +else + + ac_cv_write_stdout=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 +$as_echo "$ac_cv_write_stdout" >&6; } + if test "$ac_cv_write_stdout" = "yes"; then + +$as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h + + fi + + +if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib" +fi +test -d /usr/ucblib && + if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then + + if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then + ai_p=/usr/ucblib + else + + ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "/usr/ucblib"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + + + unset ac_cv_func_socket + unset ac_cv_func___socket + unset found + + ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" +if test "x$ac_cv_func___socket" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + ;; + + *) + + unset ac_cv_lib_socket_socket + unset ac_cv_lib_socket___socket + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 +$as_echo_n "checking for __socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socket (); +int +main () +{ +return __socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socket=yes +else + ac_cv_lib_socket___socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 +$as_echo "$ac_cv_lib_socket___socket" >&6; } +if test "x$ac_cv_lib_socket___socket" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKET 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socket=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_socketpair + unset ac_cv_func___socketpair + unset found + + ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" +if test "x$ac_cv_func_socketpair" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" +if test "x$ac_cv_func___socketpair" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + ac_cv_func_socketpair=yes + ;; + + *) + + unset ac_cv_lib_socket_socketpair + unset ac_cv_lib_socket___socketpair + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 +$as_echo_n "checking for socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socketpair (); +int +main () +{ +return socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socketpair=yes +else + ac_cv_lib_socket_socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 +$as_echo "$ac_cv_lib_socket_socketpair" >&6; } +if test "x$ac_cv_lib_socket_socketpair" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 +$as_echo_n "checking for __socketpair in -lsocket... " >&6; } +if ${ac_cv_lib_socket___socketpair+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __socketpair (); +int +main () +{ +return __socketpair (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___socketpair=yes +else + ac_cv_lib_socket___socketpair=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 +$as_echo "$ac_cv_lib_socket___socketpair" >&6; } +if test "x$ac_cv_lib_socket___socketpair" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_socketpair=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_htonl + unset ac_cv_func___htonl + unset found + + ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" +if test "x$ac_cv_func_htonl" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" +if test "x$ac_cv_func___htonl" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + ac_cv_func_htonl=yes + ;; + + *) + + unset ac_cv_lib_socket_htonl + unset ac_cv_lib_socket___htonl + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 +$as_echo_n "checking for htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket_htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char htonl (); +int +main () +{ +return htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_htonl=yes +else + ac_cv_lib_socket_htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 +$as_echo "$ac_cv_lib_socket_htonl" >&6; } +if test "x$ac_cv_lib_socket_htonl" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 +$as_echo_n "checking for __htonl in -lsocket... " >&6; } +if ${ac_cv_lib_socket___htonl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __htonl (); +int +main () +{ +return __htonl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___htonl=yes +else + ac_cv_lib_socket___htonl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 +$as_echo "$ac_cv_lib_socket___htonl" >&6; } +if test "x$ac_cv_lib_socket___htonl" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_HTONL 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_htonl=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostname + unset ac_cv_func___gethostname + unset found + + ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" +if test "x$ac_cv_func_gethostname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" +if test "x$ac_cv_func___gethostname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + ac_cv_func_gethostname=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostname + unset ac_cv_lib_nsl___gethostname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 +$as_echo_n "checking for gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostname (); +int +main () +{ +return gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostname=yes +else + ac_cv_lib_nsl_gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostname" >&6; } +if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 +$as_echo_n "checking for __gethostname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostname (); +int +main () +{ +return __gethostname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostname=yes +else + ac_cv_lib_nsl___gethostname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 +$as_echo "$ac_cv_lib_nsl___gethostname" >&6; } +if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostname=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_gethostbyaddr + unset ac_cv_func___gethostbyaddr + unset found + + ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" +if test "x$ac_cv_func___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + ;; + + *) + + unset ac_cv_lib_nsl_gethostbyaddr + unset ac_cv_lib_nsl___gethostbyaddr + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyaddr=yes +else + ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gethostbyaddr (); +int +main () +{ +return __gethostbyaddr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl___gethostbyaddr=yes +else + ac_cv_lib_nsl___gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lnsl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case nsl in + c|c_r|pthread*) ;; + *) + LIBS="-lnsl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h + + ac_cv_func_gethostbyaddr=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_dlopen + unset ac_cv_func___dlopen + unset found + + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" +if test "x$ac_cv_func___dlopen" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + ac_cv_func_dlopen=yes + ;; + + *) + + unset ac_cv_lib_dl_dlopen + unset ac_cv_lib_dl___dlopen + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 +$as_echo_n "checking for __dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlopen (); +int +main () +{ +return __dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlopen=yes +else + ac_cv_lib_dl___dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 +$as_echo "$ac_cv_lib_dl___dlopen" >&6; } +if test "x$ac_cv_lib_dl___dlopen" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlopen=yes + else + + : + + fi + + ;; + + esac + + + unset ac_cv_func_dlsym + unset ac_cv_func___dlsym + unset found + + ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" +if test "x$ac_cv_func_dlsym" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dlsym" "ac_cv_func___dlsym" +if test "x$ac_cv_func___dlsym" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DLSYM 1" >>confdefs.h + + ac_cv_func_dlsym=yes + ;; + + *) + + unset ac_cv_lib_dl_dlsym + unset ac_cv_lib_dl___dlsym + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 +$as_echo_n "checking for dlsym in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlsym+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlsym (); +int +main () +{ +return dlsym (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlsym=yes +else + ac_cv_lib_dl_dlsym=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 +$as_echo "$ac_cv_lib_dl_dlsym" >&6; } +if test "x$ac_cv_lib_dl_dlsym" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -ldl" >&5 +$as_echo_n "checking for __dlsym in -ldl... " >&6; } +if ${ac_cv_lib_dl___dlsym+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dlsym (); +int +main () +{ +return __dlsym (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl___dlsym=yes +else + ac_cv_lib_dl___dlsym=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlsym" >&5 +$as_echo "$ac_cv_lib_dl___dlsym" >&6; } +if test "x$ac_cv_lib_dl___dlsym" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -ldl" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case dl in + c|c_r|pthread*) ;; + *) + LIBS="-ldl $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DLSYM 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + + ac_cv_func_dlsym=yes + else + + : + + fi + + ;; + + esac + +if test "$ac_cv_func_dlopen" = "yes"; then + +$as_echo "#define HAVE_LIBDL 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +$as_echo_n "checking for sin in -lm... " >&6; } +if ${ac_cv_lib_m_sin+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sin (); +int +main () +{ +return sin (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_sin=yes +else + ac_cv_lib_m_sin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +$as_echo "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + + + + unset ac_cv_func_inet_aton + unset ac_cv_func___inet_aton + unset found + + ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" +if test "x$ac_cv_func_inet_aton" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" +if test "x$ac_cv_func___inet_aton" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + ;; + + *) + + unset ac_cv_lib_resolv_inet_aton + unset ac_cv_lib_resolv___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_inet_aton=yes +else + ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 +$as_echo_n "checking for __inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___inet_aton=yes +else + ac_cv_lib_resolv___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } +if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + + unset ac_cv_lib_bind_inet_aton + unset ac_cv_lib_bind___inet_aton + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 +$as_echo_n "checking for inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind_inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_inet_aton=yes +else + ac_cv_lib_bind_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 +$as_echo "$ac_cv_lib_bind_inet_aton" >&6; } +if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 +$as_echo_n "checking for __inet_aton in -lbind... " >&6; } +if ${ac_cv_lib_bind___inet_aton+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __inet_aton (); +int +main () +{ +return __inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___inet_aton=yes +else + ac_cv_lib_bind___inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 +$as_echo "$ac_cv_lib_bind___inet_aton" >&6; } +if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_inet_aton=yes + else + + : + + fi + + + fi + + ;; + + esac + + + +for ac_header in \ +inttypes.h \ +stdint.h \ +dirent.h \ +sys/param.h \ +sys/types.h \ +sys/time.h \ +netinet/in.h \ +alloca.h \ +arpa/inet.h \ +arpa/nameser.h \ +crypt.h \ +dns.h \ +fcntl.h \ +grp.h \ +ieeefp.h \ +langinfo.h \ +locale.h \ +malloc.h \ +monetary.h \ +netdb.h \ +poll.h \ +pwd.h \ +resolv.h \ +strings.h \ +syslog.h \ +sysexits.h \ +sys/ioctl.h \ +sys/file.h \ +sys/mman.h \ +sys/mount.h \ +sys/poll.h \ +sys/resource.h \ +sys/select.h \ +sys/socket.h \ +sys/stat.h \ +sys/statfs.h \ +sys/statvfs.h \ +sys/vfs.h \ +sys/sysexits.h \ +sys/uio.h \ +sys/wait.h \ +sys/loadavg.h \ +termios.h \ +unistd.h \ +unix.h \ +utime.h \ +sys/utsname.h \ +sys/ipc.h \ +dlfcn.h \ +tmmintrin.h \ +nmmintrin.h \ +immintrin.h + +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" +if test "x$ac_cv_func_fopencookie" = xyes; then : + have_glibc_fopencookie=yes +fi + + + if test "$have_glibc_fopencookie" = "yes"; then +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$have_cookie_io_functions_t" = "yes"; then + cookie_io_functions_t=cookie_io_functions_t + have_fopen_cookie=yes + +if test "$cross_compiling" = yes; then : + + cookie_io_functions_use_off64_t=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +struct cookiedata { + __off64_t pos; +}; + +__ssize_t reader(void *cookie, char *buffer, size_t size) +{ return size; } +__ssize_t writer(void *cookie, const char *buffer, size_t size) +{ return size; } +int closer(void *cookie) +{ return 0; } +int seeker(void *cookie, __off64_t *position, int whence) +{ ((struct cookiedata*)cookie)->pos = *position; return 0; } + +cookie_io_functions_t funcs = {reader, writer, seeker, closer}; + +main() { + struct cookiedata g = { 0 }; + FILE *fp = fopencookie(&g, "r", funcs); + + if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192) + exit(0); + exit(1); +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + cookie_io_functions_use_off64_t=yes + +else + + cookie_io_functions_use_off64_t=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _GNU_SOURCE +#include + +int +main () +{ +_IO_cookie_io_functions_t cookie; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_IO_cookie_io_functions_t=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$have_cookie_io_functions_t" = "yes" ; then + cookie_io_functions_t=_IO_cookie_io_functions_t + have_fopen_cookie=yes + fi + fi + + if test "$have_fopen_cookie" = "yes" ; then + +$as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h + + +cat >>confdefs.h <<_ACEOF +#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t +_ACEOF + + if test "$cookie_io_functions_use_off64_t" = "yes" ; then + +$as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h + + fi + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 +$as_echo_n "checking for broken getcwd... " >&6; } + os=`uname -sr 2>/dev/null` + case $os in + SunOS*) + +$as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; };; + esac + +if test "$GCC" = "yes"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken gcc optimize-strlen" >&5 +$as_echo_n "checking for broken gcc optimize-strlen... " >&6; } +if ${ac_cv_have_broken_gcc_strlen_opt+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_have_broken_gcc_strlen_opt=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +struct s +{ + int i; + char c[1]; +}; +int main() +{ + struct s *s = malloc(sizeof(struct s) + 3); + s->i = 3; + strcpy(s->c, "foo"); + return strlen(s->c+1) == 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_have_broken_gcc_strlen_opt=yes + +else + + ac_cv_have_broken_gcc_strlen_opt=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_gcc_strlen_opt" >&5 +$as_echo "$ac_cv_have_broken_gcc_strlen_opt" >&6; } + if test "$ac_cv_have_broken_gcc_strlen_opt" = "yes"; then + CFLAGS="$CFLAGS -fno-optimize-strlen" + fi + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include +#include <$ac_cv_struct_tm> + +" +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_ZONE 1 +_ACEOF + + +fi + +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h + +else + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" +if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_TZNAME $ac_have_decl +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +$as_echo_n "checking for tzname... " >&6; } +if ${ac_cv_var_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if !HAVE_DECL_TZNAME +extern char *tzname[]; +#endif + +int +main () +{ +return tzname[0][0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_var_tzname=yes +else + ac_cv_var_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +$as_echo "$ac_cv_var_tzname" >&6; } + if test $ac_cv_var_tzname = yes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + fi +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5 +$as_echo_n "checking for missing declarations of reentrant functions... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = localtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct tm *(*func)() = gmtime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = asctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = ctime_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *(*func)() = strtok_r + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + : + +else + + +$as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 +$as_echo_n "checking for fclose declaration... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int (*func)() = fclose + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + +$as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + +$as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +$as_echo "missing" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 +$as_echo_n "checking for struct flock... " >&6; } +if ${ac_cv_struct_flock+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +struct flock x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_struct_flock=yes + +else + + ac_cv_struct_flock=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 +$as_echo "$ac_cv_struct_flock" >&6; } +if test "$ac_cv_struct_flock" = "yes" ; then + +$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h + +fi + + +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " + #ifdef HAVE_SYS_TYPES_H + # include + #endif + #ifdef HAVE_SYS_SOCKET_H + # include + #endif + +" +if test "x$ac_cv_type_socklen_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SOCKLEN_T 1 +_ACEOF + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 +$as_echo_n "checking size of intmax_t... " >&6; } + + php_cache_value=php_cv_sizeof_intmax_t + if ${php_cv_sizeof_intmax_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=0 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(intmax_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTMAX_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 +$as_echo "$php_cv_sizeof_intmax_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 +$as_echo_n "checking size of ssize_t... " >&6; } + + php_cache_value=php_cv_sizeof_ssize_t + if ${php_cv_sizeof_ssize_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ssize_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 +$as_echo "$php_cv_sizeof_ssize_t" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +$as_echo_n "checking size of ptrdiff_t... " >&6; } + + php_cache_value=php_cv_sizeof_ptrdiff_t + if ${php_cv_sizeof_ptrdiff_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + + old_LIBS=$LIBS + LIBS= + old_LDFLAGS=$LDFLAGS + LDFLAGS= + if test "$cross_compiling" = yes; then : + + eval $php_cache_value=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif + + +int main() +{ + FILE *fp = fopen("conftestval", "w"); + if (!fp) return(1); + fprintf(fp, "%d\n", sizeof(ptrdiff_t)); + return(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + eval $php_cache_value=`cat conftestval` + +else + + eval $php_cache_value=0 + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + +fi + + if eval test "\$$php_cache_value" != "0"; then + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define HAVE_PTRDIFF_T 1 +_ACEOF + + + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 +$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; } + + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_short=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_int=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if ${ac_cv_sizeof_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +$as_echo_n "checking size of size_t... " >&6; } +if ${ac_cv_sizeof_size_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_size_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (size_t) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_size_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +$as_echo "$ac_cv_sizeof_size_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t +_ACEOF + + + ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int8" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT8 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int16" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT16 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int32" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int64" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT64 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_int64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_INT64_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint8" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT8 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint16" "ac_cv_type_uint16" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint16" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT16 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint32" "ac_cv_type_uint32" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint32" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint64" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT64 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_uint64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_UINT64_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int8_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT8_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int16_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT16_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int32_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT32_T 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" " +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + +" +if test "x$ac_cv_type_u_int64_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT64_T 1 +_ACEOF + + +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 +$as_echo_n "checking for __builtin_expect... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_expect(1,1) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_expect=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_expect=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_EXPECT $have_builtin_expect +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 +$as_echo_n "checking for __builtin_clz... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_clz(1) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_clz=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_clz=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CLZ $have_builtin_clz +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5 +$as_echo_n "checking for __builtin_ctzl... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_ctzl(2L) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ctzl=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ctzl=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CTZL $have_builtin_ctzl +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 +$as_echo_n "checking for __builtin_ctzll... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_ctzll(2LL) ? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ctzll=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ctzll=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CTZLL $have_builtin_ctzll +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smull_overflow" >&5 +$as_echo_n "checking for __builtin_smull_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_smull_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_smull_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_smull_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SMULL_OVERFLOW $have_builtin_smull_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smulll_overflow" >&5 +$as_echo_n "checking for __builtin_smulll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_smulll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_smulll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_smulll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SMULLL_OVERFLOW $have_builtin_smulll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddl_overflow" >&5 +$as_echo_n "checking for __builtin_saddl_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_saddl_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_saddl_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_saddl_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SADDL_OVERFLOW $have_builtin_saddl_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddll_overflow" >&5 +$as_echo_n "checking for __builtin_saddll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_saddll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_saddll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_saddll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SADDLL_OVERFLOW $have_builtin_saddll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubl_overflow" >&5 +$as_echo_n "checking for __builtin_ssubl_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long tmpvar; + return __builtin_ssubl_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ssubl_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ssubl_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SSUBL_OVERFLOW $have_builtin_ssubl_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubll_overflow" >&5 +$as_echo_n "checking for __builtin_ssubll_overflow... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + long long tmpvar; + return __builtin_ssubll_overflow(3, 7, &tmpvar); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_ssubll_overflow=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_ssubll_overflow=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_SSUBLL_OVERFLOW $have_builtin_ssubll_overflow +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_init" >&5 +$as_echo_n "checking for __builtin_cpu_init... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_cpu_init()? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_cpu_init=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_cpu_init=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CPU_INIT $have_builtin_cpu_init +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_supports" >&5 +$as_echo_n "checking for __builtin_cpu_supports... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + return __builtin_cpu_supports("sse")? 1 : 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + have_builtin_cpu_supports=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + have_builtin_cpu_supports=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_BUILTIN_CPU_SUPPORTS $have_builtin_cpu_supports +_ACEOF + + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssse3 instructions supports" >&5 +$as_echo_n "checking for ssse3 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("ssse3")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_SSSE3_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse4.2 instructions supports" >&5 +$as_echo_n "checking for sse4.2 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("sse4.2")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_SSE4_2_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx instructions supports" >&5 +$as_echo_n "checking for avx instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("avx")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_AVX_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + + + + have_ext_instructions=0 + if test $have_builtin_cpu_supports = 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx2 instructions supports" >&5 +$as_echo_n "checking for avx2 instructions supports... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main() { + return __builtin_cpu_supports("avx2")? 0 : 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + have_ext_instructions=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + +cat >>confdefs.h <<_ACEOF +#define PHP_HAVE_AVX2_INSTRUCTIONS $have_ext_instructions +_ACEOF + + + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include +" +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_GMTOFF 1 +_ACEOF + + +fi + +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 +_ACEOF + + +fi +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_RDEV 1 +_ACEOF + + +fi + +if test "`uname -s 2>/dev/null`" != "QNX"; then + ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 +_ACEOF + + +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" fileblocks.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" + ;; +esac + +fi + + +fi + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if ${ac_cv_type_uid_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 +$as_echo_n "checking for struct sockaddr_storage... " >&6; } +if ${ac_cv_sockaddr_storage+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +struct sockaddr_storage s; s + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_storage=yes +else + ac_cv_sockaddr_storage=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 +$as_echo "$ac_cv_sockaddr_storage" >&6; } + if test "$ac_cv_sockaddr_storage" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 +$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } +if ${ac_cv_sockaddr_sa_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +static struct sockaddr sa; int n = (int) sa.sa_len; return n; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sockaddr_sa_len=yes +else + ac_cv_sockaddr_sa_len=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 +$as_echo "$ac_cv_sockaddr_sa_len" >&6; } + if test "$ac_cv_sockaddr_sa_len" = "yes"; then + +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h + + fi + + +case $host_alias in #( + *-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*) : + true ;; #( + *) : + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((ifunc))" >&5 +$as_echo_n "checking for __attribute__((ifunc))... " >&6; } +if ${ax_cv_have_func_attribute_ifunc+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + int my_foo( void ) { return 0; } + static int (*resolve_foo(void))(void) { return my_foo; } + int foo( void ) __attribute__((ifunc("resolve_foo"))); + +int +main () +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test -s conftest.err; then : + ax_cv_have_func_attribute_ifunc=no +else + ax_cv_have_func_attribute_ifunc=yes +fi +else + ax_cv_have_func_attribute_ifunc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_ifunc" >&5 +$as_echo "$ax_cv_have_func_attribute_ifunc" >&6; } + + if test yes = $ax_cv_have_func_attribute_ifunc; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_FUNC_ATTRIBUTE_IFUNC 1 +_ACEOF + +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((target))" >&5 +$as_echo_n "checking for __attribute__((target))... " >&6; } +if ${ax_cv_have_func_attribute_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + static int bar( void ) __attribute__((target("sse2"))); + +int +main () +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test -s conftest.err; then : + ax_cv_have_func_attribute_target=no +else + ax_cv_have_func_attribute_target=yes +fi +else + ax_cv_have_func_attribute_target=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_target" >&5 +$as_echo "$ax_cv_have_func_attribute_target" >&6; } + + if test yes = $ax_cv_have_func_attribute_target; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_FUNC_ATTRIBUTE_TARGET 1 +_ACEOF + +fi + + + + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +$as_echo_n "checking for IPv6 support... " >&6; } +if ${ac_cv_ipv6_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int +main () +{ +struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_ipv6_support=yes +else + ac_cv_ipv6_support=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 +$as_echo "$ac_cv_ipv6_support" >&6; } + + +for ac_func in alphasort \ +asctime_r \ +chroot \ +ctime_r \ +crypt \ +explicit_memset \ +flock \ +fpclass \ +ftok \ +funopen \ +gai_strerror \ +getcwd \ +getloadavg \ +getlogin \ +getprotobyname \ +getprotobynumber \ +getservbyname \ +getservbyport \ +getrusage \ +gettimeofday \ +gmtime_r \ +getpwnam_r \ +getgrnam_r \ +getpwuid_r \ +getwd \ +glob \ +grantpt \ +inet_ntoa \ +inet_ntop \ +inet_pton \ +localtime_r \ +lchown \ +mbrlen \ +memmove \ +mkstemp \ +mmap \ +nice \ +nl_langinfo \ +poll \ +ptsname \ +putenv \ +realpath \ +rand_r \ +scandir \ +setitimer \ +setenv \ +shutdown \ +sigprocmask \ +statfs \ +statvfs \ +std_syslog \ +strcasecmp \ +strfmon \ +strnlen \ +strptime \ +strtok_r \ +symlink \ +tzset \ +unlockpt \ +unsetenv \ +usleep \ +utime \ +vasprintf \ +asprintf \ +nanosleep \ +memmem \ + +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5 +$as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; } + + if ${ac_cv_func_which_gethostbyname_r+:} false; then : + $as_echo_n "(cached) " >&6 +else + + +################################################################ + +ac_cv_func_which_gethostbyname_r=unknown + +# +# ONE ARGUMENT (sanity check) +# + +# This should fail, as there is no variant of gethostbyname_r() that takes +# a single argument. If it actually compiles, then we can assume that +# netdb.h is not declaring the function, and the compiler is thereby +# assuming an implicit prototype. In which case, we're out of luck. +# +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + (void)gethostbyname_r(name) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +# +# SIX ARGUMENTS +# (e.g. Linux) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret, *retp; + char buf[1024]; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=six +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +# +# FIVE ARGUMENTS +# (e.g. Solaris) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret; + char buf[1024]; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=five +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +# +# THREE ARGUMENTS +# (e.g. AIX, HP-UX, Tru64) +# + +if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + char *name = "www.gnu.org"; + struct hostent ret; + struct hostent_data data; + (void)gethostbyname_r(name, &ret, &data) /* ; */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_which_gethostbyname_r=three +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + +################################################################ + + +fi + +case "$ac_cv_func_which_gethostbyname_r" in + three|five|six) + +$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h + + ;; +esac + +case "$ac_cv_func_which_gethostbyname_r" in + three) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5 +$as_echo "three" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h + + ;; + + five) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5 +$as_echo "five" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h + + ;; + + six) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5 +$as_echo "six" >&6; } + +$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h + + ;; + + no) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5 +$as_echo "cannot find function declaration in netdb.h" >&6; } + ;; + + unknown) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5 +$as_echo "can't tell" >&6; } + ;; + + *) + as_fn_error $? "internal error" "$LINENO" 5 + ;; +esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + unset ac_cv_lib_rt_nanosleep + unset ac_cv_lib_rt___nanosleep + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 +$as_echo_n "checking for nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt_nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char nanosleep (); +int +main () +{ +return nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_nanosleep=yes +else + ac_cv_lib_rt_nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 +$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } +if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 +$as_echo_n "checking for __nanosleep in -lrt... " >&6; } +if ${ac_cv_lib_rt___nanosleep+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __nanosleep (); +int +main () +{ +return __nanosleep (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___nanosleep=yes +else + ac_cv_lib_rt___nanosleep=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 +$as_echo "$ac_cv_lib_rt___nanosleep" >&6; } +if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_nanosleep=yes + else + + : + + fi + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +$as_echo_n "checking for getaddrinfo... " >&6; } +if ${ac_cv_func_getaddrinfo+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_func_getaddrinfo=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifndef AF_INET +# include +#endif +int main(void) { + struct addrinfo *ai, *pai, hints; + + memset(&hints, 0, sizeof(hints)); + hints.ai_flags = AI_NUMERICHOST; + + if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { + exit(1); + } + + if (ai == 0) { + exit(1); + } + + pai = ai; + + while (pai) { + if (pai->ai_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + if (pai->ai_addr->sa_family != AF_INET) { + /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ + exit(1); + } + pai = pai->ai_next; + } + freeaddrinfo(ai); + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_getaddrinfo=yes +else + ac_cv_func_getaddrinfo=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + ac_cv_func_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 +$as_echo "$ac_cv_func_getaddrinfo" >&6; } +if test "$ac_cv_func_getaddrinfo" = yes; then + +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 +$as_echo_n "checking for __sync_fetch_and_add... " >&6; } +if ${ac_cv_func_sync_fetch_and_add+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int x;__sync_fetch_and_add(&x,1); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_sync_fetch_and_add=yes +else + ac_cv_func_sync_fetch_and_add=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5 +$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; } +if test "$ac_cv_func_sync_fetch_and_add" = yes; then + +$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes; then : + $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcat.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" +if test "x$ac_cv_func_strlcpy" = xyes; then : + $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcpy.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" +if test "x$ac_cv_func_explicit_bzero" = xyes; then : + $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" explicit_bzero.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes; then : + $as_echo "#define HAVE_GETOPT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" getopt.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS getopt.$ac_objext" + ;; +esac + +fi + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +# endif +# endif +# endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; +} + +int +main (int argc, char **argv) +{ + return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 +$as_echo_n "checking for type of reentrant time-related functions... " >&6; } +if ${ac_cv_time_r_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +main() { +char buf[27]; +struct tm t; +time_t old = 0; +int r, s; + +s = gmtime_r(&old, &t); +r = (int) asctime_r(&t, buf, 26); +if (r == s && s == 0) return (0); +return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=hpux + +else + + if test "$cross_compiling" = yes; then : + + ac_cv_time_r_type=POSIX + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +main() { + struct tm t, *s; + time_t old = 0; + char buf[27], *p; + + s = gmtime_r(&old, &t); + p = asctime_r(&t, buf, 26); + if (p == buf && s == &t) return (0); + return (1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_time_r_type=irix + +else + + ac_cv_time_r_type=POSIX + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 +$as_echo "$ac_cv_time_r_type" >&6; } + case $ac_cv_time_r_type in + hpux) +$as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h + ;; + irix) +$as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h + ;; + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 +$as_echo_n "checking for in_addr_t... " >&6; } +if ${ac_cv_type_in_addr_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#ifdef HAVE_NETINET_IN_H +#include +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + ac_cv_type_in_addr_t=yes +else + ac_cv_type_in_addr_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 +$as_echo "$ac_cv_type_in_addr_t" >&6; } +if test $ac_cv_type_in_addr_t = no; then + +$as_echo "#define in_addr_t u_int" >>confdefs.h + +fi + + +for ac_func in crypt_r +do : + ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" +if test "x$ac_cv_func_crypt_r" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CRYPT_R 1 +_ACEOF + php_crypt_r="1" +else + php_crypt_r="0" +fi +done + +if test "x$php_crypt_r" = "x1"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +$as_echo_n "checking which data struct is used by crypt_r... " >&6; } +if ${php_cv_crypt_r_style+:} false; then : + $as_echo_n "(cached) " >&6 +else + + php_cv_crypt_r_style=none + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +CRYPTD buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=cryptd +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _REENTRANT 1 +#define _GNU_SOURCE +#include + +int +main () +{ + +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data_gnu_source +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +$as_echo "$php_cv_crypt_r_style" >&6; } + + if test "$php_cv_crypt_r_style" = "cryptd"; then + +$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "none"; then + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 + fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asm goto" >&5 +$as_echo_n "checking for asm goto... " >&6; } +if ${ac_cv__asm_goto+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv__asm_goto=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int main(void) { +#if defined(__x86_64__) || defined(__i386__) + __asm__ goto("jmp %l0\n" :::: end); +#elif defined(__aarch64__) + __asm__ goto("b %l0\n" :::: end); +#endif +end: + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv__asm_goto=yes +else + ac_cv__asm_goto=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__asm_goto" >&5 +$as_echo "$ac_cv__asm_goto" >&6; } + +if test "$ac_cv__asm_goto" = yes; then + +$as_echo "#define HAVE_ASM_GOTO 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports VLA" >&5 +$as_echo_n "checking whether compiler supports VLA... " >&6; } +if ${ac_cv__compiler_c99_vla+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv__compiler_c99_vla=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + int main(void) { + int i[rand()%10]; + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv__compiler_c99_vla=yes +else + ac_cv__compiler_c99_vla=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__compiler_c99_vla" >&5 +$as_echo "$ac_cv__compiler_c99_vla" >&6; } + +if test "$ac_cv__compiler_c99_vla" = yes; then + +$as_echo "#define HAVE_COMPILER_C99_VLA 1" >>confdefs.h + +fi + + +php_with_valgrind=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind support" >&5 +$as_echo_n "checking whether to enable valgrind support... " >&6; } + +# Check whether --with-valgrind was given. +if test "${with_valgrind+set}" = set; then : + withval=$with_valgrind; PHP_VALGRIND=$withval +else + + PHP_VALGRIND=yes + + +fi + + +ext_output=$PHP_VALGRIND +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_VALGRIND" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 +$as_echo_n "checking for valgrind... " >&6; } + +if test -n "$VALGRIND_CFLAGS"; then + pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$VALGRIND_LIBS"; then + pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` + else + VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$VALGRIND_PKG_ERRORS" >&5 + + have_valgrind="no" +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_valgrind="no" +else + VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS + VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_valgrind="yes" +fi + + if test "$have_valgrind" = "yes"; then + + for ac_i in $VALGRIND_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h + + else + if test "$with_valgrind" = "yes"; then + as_fn_error $? "Valgrind not found. Please install Valgrind." "$LINENO" 5 + fi + fi +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 +$as_echo "${T_MD}General settings${T_ME}" >&6; } + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + +php_enable_gcov=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 +$as_echo_n "checking whether to include gcov symbols... " >&6; } +# Check whether --enable-gcov was given. +if test "${enable_gcov+set}" = set; then : + enableval=$enable_gcov; PHP_GCOV=$enableval +else + + PHP_GCOV=no + + +fi + + +ext_output=$PHP_GCOV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GCOV" = "yes"; then + + if test "$GCC" != "yes"; then + as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 + fi + + case `$php_shtool path $CC` in + *ccache*) gcc_ccache=yes;; + *) gcc_ccache=no;; + esac + + if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then + as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 + fi + + +$as_echo "#define HAVE_GCOV 1" >>confdefs.h + + + src=$abs_srcdir/build/Makefile.gcov + ac_srcdir=$abs_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + CFLAGS=`echo "$CFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + + + CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" +fi + + +php_enable_debug=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 +$as_echo_n "checking whether to include debugging symbols... " >&6; } +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; PHP_DEBUG=$enableval +else + + PHP_DEBUG=no + + +fi + + +ext_output=$PHP_DEBUG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DEBUG" = "yes"; then + PHP_DEBUG=1 + ZEND_DEBUG=yes + + CFLAGS=`echo "$CFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | "$SED" -e 's/-O[0-9s]*//g'` + + if test "$GCC" = "yes" || test "$ICC" = "yes"; then + CFLAGS="$CFLAGS -O0" + CXXFLAGS="$CXXFLAGS -g -O0" + fi + if test "$SUNCC" = "yes"; then + if test -n "$auto_cflags"; then + CFLAGS="-g" + CXXFLAGS="-g" + else + CFLAGS="$CFLAGS -g" + CXXFLAGS="$CFLAGS -g" + fi + fi +else + PHP_DEBUG=0 + ZEND_DEBUG=no +fi + + +php_enable_rtld_now=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY" >&5 +$as_echo_n "checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... " >&6; } +# Check whether --enable-rtld-now was given. +if test "${enable_rtld_now+set}" = set; then : + enableval=$enable_rtld_now; PHP_RTLD_NOW=$enableval +else + + PHP_RTLD_NOW=no + + +fi + + +ext_output=$PHP_RTLD_NOW +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_RTLD_NOW" = "yes"; then + +$as_echo "#define PHP_USE_RTLD_NOW 1" >>confdefs.h + +fi + + +php_with_layout=PHP + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 +$as_echo_n "checking layout of installed files... " >&6; } + +# Check whether --with-layout was given. +if test "${with_layout+set}" = set; then : + withval=$with_layout; PHP_LAYOUT=$withval +else + + PHP_LAYOUT=PHP + + +fi + + +ext_output=$PHP_LAYOUT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +case $PHP_LAYOUT in + GNU) + oldstyleextdir=no + ;; + *) + oldstyleextdir=yes + ;; +esac + + +php_with_config_file_path=DEFAULT + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 +$as_echo_n "checking path to configuration file... " >&6; } + +# Check whether --with-config-file-path was given. +if test "${with_config_file_path+set}" = set; then : + withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval +else + + PHP_CONFIG_FILE_PATH=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_PATH +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then + case $PHP_LAYOUT in + GNU) + PHP_CONFIG_FILE_PATH=$sysconfdir + ;; + *) + PHP_CONFIG_FILE_PATH=$libdir + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 +$as_echo_n "checking where to scan for configuration files... " >&6; } + +php_with_config_file_scan_dir=DEFAULT + + + +# Check whether --with-config-file-scan-dir was given. +if test "${with_config_file_scan_dir+set}" = set; then : + withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval +else + + PHP_CONFIG_FILE_SCAN_DIR=DEFAULT + + +fi + + +ext_output=$PHP_CONFIG_FILE_SCAN_DIR + + + + + +if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then + PHP_CONFIG_FILE_SCAN_DIR= +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 +$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } + +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + + +php_enable_sigchild=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 +$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; } +# Check whether --enable-sigchild was given. +if test "${enable_sigchild+set}" = set; then : + enableval=$enable_sigchild; PHP_SIGCHILD=$enableval +else + + PHP_SIGCHILD=no + + +fi + + +ext_output=$PHP_SIGCHILD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIGCHILD" = "yes"; then + +$as_echo "#define PHP_SIGCHILD 1" >>confdefs.h + +else + +$as_echo "#define PHP_SIGCHILD 0" >>confdefs.h + +fi + + +php_enable_libgcc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 +$as_echo_n "checking whether to explicitly link against libgcc... " >&6; } +# Check whether --enable-libgcc was given. +if test "${enable_libgcc+set}" = set; then : + enableval=$enable_libgcc; PHP_LIBGCC=$enableval +else + + PHP_LIBGCC=no + + +fi + + +ext_output=$PHP_LIBGCC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBGCC" = "yes"; then + + + libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'` + + + if test -z "$libgcc_libpath"; then + as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 + fi + + if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then + + if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then + ai_p=$libgcc_libpath + else + + ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$libgcc_libpath"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case gcc in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lgcc" + ;; + esac + + +fi + + +php_enable_short_tags=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 +$as_echo_n "checking whether to enable short tags by default... " >&6; } +# Check whether --enable-short-tags was given. +if test "${enable_short_tags+set}" = set; then : + enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval +else + + PHP_SHORT_TAGS=yes + + +fi + + +ext_output=$PHP_SHORT_TAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHORT_TAGS" = "yes"; then + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h + +else + +$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h + +fi + + +php_enable_dmalloc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 +$as_echo_n "checking whether to enable dmalloc... " >&6; } +# Check whether --enable-dmalloc was given. +if test "${enable_dmalloc+set}" = set; then : + enableval=$enable_dmalloc; PHP_DMALLOC=$enableval +else + + PHP_DMALLOC=no + + +fi + + +ext_output=$PHP_DMALLOC +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DMALLOC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 +$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } +if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldmalloc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dmalloc_error (); +int +main () +{ +return dmalloc_error (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dmalloc_dmalloc_error=yes +else + ac_cv_lib_dmalloc_dmalloc_error=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 +$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : + + + + case dmalloc in + c|c_r|pthread*) ;; + *) + LIBS="-ldmalloc $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DMALLOC 1" >>confdefs.h + + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + +else + + as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 + +fi + +fi + + +php_enable_ipv6=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 +$as_echo_n "checking whether to enable IPv6 support... " >&6; } +# Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : + enableval=$enable_ipv6; PHP_IPV6=$enableval +else + + PHP_IPV6=yes + + +fi + + +ext_output=$PHP_IPV6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then + +$as_echo "#define HAVE_IPV6 1" >>confdefs.h + +fi + + +php_enable_dtrace=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 +$as_echo_n "checking whether to enable DTrace support... " >&6; } +# Check whether --enable-dtrace was given. +if test "${enable_dtrace+set}" = set; then : + enableval=$enable_dtrace; PHP_DTRACE=$enableval +else + + PHP_DTRACE=no + + +fi + + +ext_output=$PHP_DTRACE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DTRACE" = "yes"; then + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + case "" in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;; + /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;; + *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";; + esac + + ac_provsrc=Zend/zend_dtrace.d + old_IFS=$IFS + IFS=. + set $ac_provsrc + ac_provobj=$1 + IFS=$old_IFS + + ac_hdrobj=Zend/zend_dtrace_gen.h + + case $host_alias in + *freebsd*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + PHP_LDFLAGS="$PHP_LDFLAGS -lelf" + ;; + *solaris*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + *linux*) + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo" + ;; + esac + + old_IFS=$IFS + for ac_src in main/main.c Zend/zend_API.c \ + Zend/zend_execute.c Zend/zend_exceptions.c \ + Zend/zend_dtrace.c Zend/zend.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + case $php_sapi_module in + shared) + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + ;; + *) + dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + ;; + esac + + cat>>Makefile.objects< \$@ + +\$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*|*freebsd*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)' + for ac_lo in $PHP_DTRACE_OBJS; do + dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + + ;; + *) +cat>>Makefile.objects<>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS" + + +else + + as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 + +fi + +done + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 +$as_echo_n "checking how big to make fd sets... " >&6; } + +php_enable_fd_setsize=no + + +# Check whether --enable-fd-setsize was given. +if test "${enable_fd_setsize+set}" = set; then : + enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval +else + + PHP_FD_SETSIZE=no + + +fi + + +ext_output=$PHP_FD_SETSIZE + + + + + +if test "$PHP_FD_SETSIZE" != "no"; then + if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then + CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 +$as_echo "using $PHP_FD_SETSIZE" >&6; } + else + as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 +$as_echo "using system default" >&6; } +fi + + +php_enable_werror=no + + +# Check whether --enable-werror was given. +if test "${enable_werror+set}" = set; then : + enableval=$enable_werror; PHP_WERROR=$enableval +else + + PHP_WERROR=no + + +fi + + +ext_output=$PHP_WERROR + + + + + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 +$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; } + + +# Check whether --enable-all was given. +if test "${enable_all+set}" = set; then : + enableval=$enable_all; PHP_ENABLE_ALL=$enableval +fi + + + + + +for ac_header in io.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" +if test "x$ac_cv_header_io_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_IO_H 1 +_ACEOF + +fi + +done + + +for ac_func in strtoll atoll +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +PHP_DATE_CFLAGS="-I@ext_builddir@/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DHAVE_TIMELIB_CONFIG_H=1" +timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c + lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" + + + ext_builddir=ext/date + ext_srcdir=$abs_srcdir/ext/date + ext_dir=ext/date + + ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_DATE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DATE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_DATE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_date.c $timelib_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_builddir/lib + else + + ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_srcdir/lib" != "/usr/include"; then + + if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then + ai_p=$ext_srcdir/lib + else + + ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + header_path=ext/date + for header_file in php_date.h lib/timelib.h lib/timelib_config.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + +$as_echo "#define HAVE_TIMELIB_CONFIG_H 1" >>confdefs.h + + +cat > $ext_builddir/lib/timelib_config.h < +#endif +#include + +#include "zend.h" + +#define timelib_malloc emalloc +#define timelib_realloc erealloc +#define timelib_calloc ecalloc +#define timelib_strdup estrdup +#define timelib_free efree +EOF + + + + + +php_with_libxml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LIBXML support" >&5 +$as_echo_n "checking whether to build with LIBXML support... " >&6; } + +# Check whether --with-libxml was given. +if test "${with_libxml+set}" = set; then : + withval=$with_libxml; PHP_LIBXML=$withval +else + + PHP_LIBXML=yes + test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBXML in +shared,*) + PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBXML" != "no"; then + + ext_shared=no + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + ext_builddir=ext/libxml + ext_srcdir=$abs_srcdir/ext/libxml + ext_dir=ext/libxml + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LIBXML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LIBXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LIBXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libxml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for OpenSSL support... " >&6; } + +# Check whether --with-openssl was given. +if test "${with_openssl+set}" = set; then : + withval=$with_openssl; PHP_OPENSSL=$withval +else + + PHP_OPENSSL=no + test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPENSSL in +shared,*) + PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPENSSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 +$as_echo_n "checking for Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_system_ciphers=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system default cipher list instead of hardcoded value" >&5 +$as_echo_n "checking whether to use system default cipher list instead of hardcoded value... " >&6; } + +# Check whether --with-system-ciphers was given. +if test "${with_system_ciphers+set}" = set; then : + withval=$with_system_ciphers; PHP_SYSTEM_CIPHERS=$withval +else + + PHP_SYSTEM_CIPHERS=no + + +fi + + +ext_output=$PHP_SYSTEM_CIPHERS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPENSSL" != "no"; then + + ext_builddir=ext/openssl + ext_srcdir=$abs_srcdir/ext/openssl + ext_dir=ext/openssl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OPENSSL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPENSSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OPENSSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in openssl.c xp_ssl.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for krb5-gssapi krb5... " >&6; } + +if test -n "$KERBEROS_CFLAGS"; then + pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$KERBEROS_LIBS"; then + pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + else + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$KERBEROS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (krb5-gssapi krb5) were not met: + +$KERBEROS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS + KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + for ac_func in RAND_egd +do : + ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd" +if test "x$ac_cv_func_RAND_egd" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RAND_EGD 1 +_ACEOF + +fi +done + + + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 + + fi + + if test "$PHP_SYSTEM_CIPHERS" != "no"; then + +$as_echo "#define USE_OPENSSL_SYSTEM_CIPHERS 1" >>confdefs.h + + fi +fi + + + + + +php_with_external_pcre=no + + + +# Check whether --with-external-pcre was given. +if test "${with_external_pcre+set}" = set; then : + withval=$with_external_pcre; PHP_EXTERNAL_PCRE=$withval +else + + PHP_EXTERNAL_PCRE=no + + +fi + + +ext_output=$PHP_EXTERNAL_PCRE + + + + + + +php_with_pcre_jit=yes + + + +# Check whether --with-pcre-jit was given. +if test "${with_pcre_jit+set}" = set; then : + withval=$with_pcre_jit; PHP_PCRE_JIT=$withval +else + + PHP_PCRE_JIT=yes + + +fi + + +ext_output=$PHP_PCRE_JIT + + + + + +if test "$PHP_EXTERNAL_PCRE" != "no"; then + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8 >= 10.30" >&5 +$as_echo_n "checking for libpcre2-8 >= 10.30... " >&6; } + +if test -n "$PCRE2_CFLAGS"; then + pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.30" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$PCRE2_LIBS"; then + pkg_cv_PCRE2_LIBS="$PCRE2_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.30" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.30" 2>&1` + else + PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.30" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$PCRE2_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libpcre2-8 >= 10.30) were not met: + +$PCRE2_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables PCRE2_CFLAGS +and PCRE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables PCRE2_CFLAGS +and PCRE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS + PCRE2_LIBS=$pkg_cv_PCRE2_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $PCRE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PCRE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ="$ -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ;; + esac + done + + +$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h + + +$as_echo "#define HAVE_PCRE 1" >>confdefs.h + + + if test "$PHP_PCRE_JIT" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT support in PCRE2" >&5 +$as_echo_n "checking for JIT support in PCRE2... " >&6; } +if ${ac_cv_have_pcre2_jit+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + + case $host_cpu in + arm*|i3456786|x86_64|mips*|powerpc*|sparc) + ac_cv_have_pcre2_jit=yes + ;; + *) + ac_cv_have_pcre2_jit=no + ;; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + #include + #include + int main(void) { + uint32_t have_jit; + pcre2_config_8(PCRE2_CONFIG_JIT, &have_jit); + return !have_jit; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_have_pcre2_jit=yes + +else + + ac_cv_have_pcre2_jit=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_jit" >&5 +$as_echo "$ac_cv_have_pcre2_jit" >&6; } + if test $ac_cv_have_pcre2_jit = yes; then + $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + ext_dir=ext/pcre + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PCRE library to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 +$as_echo "bundled" >&6; } + pcrelib_sources="pcre2lib/pcre2_auto_possess.c pcre2lib/pcre2_chartables.c pcre2lib/pcre2_compile.c \ + pcre2lib/pcre2_config.c pcre2lib/pcre2_context.c pcre2lib/pcre2_dfa_match.c pcre2lib/pcre2_error.c \ + pcre2lib/pcre2_jit_compile.c pcre2lib/pcre2_maketables.c pcre2lib/pcre2_match.c pcre2lib/pcre2_match_data.c \ + pcre2lib/pcre2_newline.c pcre2lib/pcre2_ord2utf.c pcre2lib/pcre2_pattern_info.c pcre2lib/pcre2_serialize.c \ + pcre2lib/pcre2_string_utils.c pcre2lib/pcre2_study.c pcre2lib/pcre2_substitute.c pcre2lib/pcre2_substring.c \ + pcre2lib/pcre2_tables.c pcre2lib/pcre2_ucd.c pcre2lib/pcre2_valid_utf.c pcre2lib/pcre2_xclass.c \ + pcre2lib/pcre2_find_bracket.c pcre2lib/pcre2_convert.c pcre2lib/pcre2_extuni.c pcre2lib/pcre2_script_run.c" + PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + ext_builddir=ext/pcre + ext_srcdir=$abs_srcdir/ext/pcre + ext_dir=ext/pcre + + ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then + PHP_PCRE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCRE 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_PCRE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $pcrelib_sources php_pcre.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE JIT functionality" >&5 +$as_echo_n "checking whether to enable PCRE JIT functionality... " >&6; } + if test "$PHP_PCRE_JIT" != "no"; then + +$as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + if test "$PHP_VALGRIND" != "no" && test "$have_valgrind" = "yes"; then + if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define HAVE_PCRE_VALGRIND_SUPPORT 1" >>confdefs.h + + fi + fi +fi + + + + + +php_with_sqlite3=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 +$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; } + +# Check whether --with-sqlite3 was given. +if test "${with_sqlite3+set}" = set; then : + withval=$with_sqlite3; PHP_SQLITE3=$withval +else + + PHP_SQLITE3=yes + test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SQLITE3 in +shared,*) + PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'` + ;; +shared) + PHP_SQLITE3=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test $PHP_SQLITE3 != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 > 3.7.4" >&5 +$as_echo_n "checking for sqlite3 > 3.7.4... " >&6; } + +if test -n "$SQLITE_CFLAGS"; then + pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SQLITE_LIBS"; then + pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + else + SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SQLITE_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (sqlite3 > 3.7.4) were not met: + +$SQLITE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS + SQLITE_LIBS=$pkg_cv_SQLITE_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_stmt_readonly in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_stmt_readonly in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_stmt_readonly+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_stmt_readonly (); +int +main () +{ +return sqlite3_stmt_readonly (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_stmt_readonly=yes +else + ac_cv_lib_sqlite3_sqlite3_stmt_readonly=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_stmt_readonly" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_stmt_readonly" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_stmt_readonly" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $SQLITE_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SQLITE_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="$SQLITE3_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="$SQLITE3_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_stmt_readonly + + as_fn_error $? "Please install SQLite 3.7.4 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_errstr in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_errstr in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_errstr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_errstr (); +int +main () +{ +return sqlite3_errstr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_errstr=yes +else + ac_cv_lib_sqlite3_sqlite3_errstr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_errstr" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_errstr" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_errstr" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_errstr + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_load_extension (); +int +main () +{ +return sqlite3_load_extension (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_load_extension=yes +else + ac_cv_lib_sqlite3_sqlite3_load_extension=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_load_extension + +$as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h + + + +fi + + + + ext_builddir=ext/sqlite3 + ext_srcdir=$abs_srcdir/ext/sqlite3 + ext_dir=ext/sqlite3 + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SQLITE3_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sqlite3.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SQLITE3 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SQLITE3_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sqlite3.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for ZLIB support... " >&6; } + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then : + withval=$with_zlib; PHP_ZLIB=$withval +else + + PHP_ZLIB=no + test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZLIB in +shared,*) + PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZLIB" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0.4" >&5 +$as_echo_n "checking for zlib >= 1.2.0.4... " >&6; } + +if test -n "$ZLIB_CFLAGS"; then + pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ZLIB_LIBS"; then + pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0.4" 2>&1` + else + ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ZLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (zlib >= 1.2.0.4) were not met: + +$ZLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS + ZLIB_LIBS=$pkg_cv_ZLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ZLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="$ZLIB_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="$ZLIB_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ZLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_ZLIB 1" >>confdefs.h + + + + ext_builddir=ext/zlib + ext_srcdir=$abs_srcdir/ext/zlib + ext_dir=ext/zlib + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZLIB_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable bc style precision math functions... " >&6; } +# Check whether --enable-bcmath was given. +if test "${enable_bcmath+set}" = set; then : + enableval=$enable_bcmath; PHP_BCMATH=$enableval +else + + PHP_BCMATH=no + test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BCMATH in +shared,*) + PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'` + ;; +shared) + PHP_BCMATH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BCMATH" != "no"; then + + ext_builddir=ext/bcmath + ext_srcdir=$abs_srcdir/ext/bcmath + ext_dir=ext/bcmath + + ac_extra=`echo "-I@ext_srcdir@/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BCMATH_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BCMATH 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BCMATH_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bcmath.c \ +libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \ +libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \ +libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \ +libbcmath/src/rmzero.c libbcmath/src/str2num.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_with_bz2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 +$as_echo_n "checking for BZip2 support... " >&6; } + +# Check whether --with-bz2 was given. +if test "${with_bz2+set}" = set; then : + withval=$with_bz2; PHP_BZ2=$withval +else + + PHP_BZ2=no + test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_BZ2 in +shared,*) + PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'` + ;; +shared) + PHP_BZ2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_BZ2" != "no"; then + if test -r $PHP_BZ2/include/bzlib.h; then + BZIP_DIR=$PHP_BZ2 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 +$as_echo_n "checking for BZip2 in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/bzlib.h; then + BZIP_DIR=$i + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$BZIP_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$BZIP_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 +$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } +if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbz2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char BZ2_bzerror (); +int +main () +{ +return BZ2_bzerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bz2_BZ2_bzerror=yes +else + ac_cv_lib_bz2_BZ2_bzerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 +$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + if test "$BZIP_DIR/include" != "/usr/include"; then + + if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/include + else + + ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD" + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD" + test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$BZIP_DIR/$PHP_LIBDIR"; then + + if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$BZIP_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case bz2 in + c|c_r|pthread*) ;; + *) + LIBS="-lbz2 $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_BZ2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_bz2_BZ2_bzerror + + as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/bz2 + ext_srcdir=$abs_srcdir/ext/bz2 + ext_dir=ext/bz2 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_BZ2_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_BZ2 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_BZ2_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in bz2.c bz2_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable calendar conversion support... " >&6; } +# Check whether --enable-calendar was given. +if test "${enable_calendar+set}" = set; then : + enableval=$enable_calendar; PHP_CALENDAR=$enableval +else + + PHP_CALENDAR=no + test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CALENDAR in +shared,*) + PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_CALENDAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CALENDAR" = "yes"; then + +$as_echo "#define HAVE_CALENDAR 1" >>confdefs.h + + + ext_builddir=ext/calendar + ext_srcdir=$abs_srcdir/ext/calendar + ext_dir=ext/calendar + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CALENDAR_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CALENDAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CALENDAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable ctype functions... " >&6; } +# Check whether --enable-ctype was given. +if test "${enable_ctype+set}" = set; then : + enableval=$enable_ctype; PHP_CTYPE=$enableval +else + + PHP_CTYPE=yes + test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CTYPE in +shared,*) + PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'` + ;; +shared) + PHP_CTYPE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CTYPE" != "no"; then + +$as_echo "#define HAVE_CTYPE 1" >>confdefs.h + + + ext_builddir=ext/ctype + ext_srcdir=$abs_srcdir/ext/ctype + ext_dir=ext/ctype + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CTYPE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CTYPE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CTYPE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ctype.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for cURL support... " >&6; } + +# Check whether --with-curl was given. +if test "${with_curl+set}" = set; then : + withval=$with_curl; PHP_CURL=$withval +else + + PHP_CURL=no + test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CURL in +shared,*) + PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'` + ;; +shared) + PHP_CURL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_CURL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= 7.15.5" >&5 +$as_echo_n "checking for libcurl >= 7.15.5... " >&6; } + +if test -n "$CURL_CFLAGS"; then + pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.15.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CURL_LIBS"; then + pkg_cv_CURL_LIBS="$CURL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.15.5" 2>&1` + else + CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.15.5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CURL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libcurl >= 7.15.5) were not met: + +$CURL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CURL_CFLAGS +and CURL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CURL_CFLAGS +and CURL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CURL_CFLAGS=$pkg_cv_CURL_CFLAGS + CURL_LIBS=$pkg_cv_CURL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + +if test -n "$CURL_FEATURES"; then + pkg_cv_CURL_FEATURES="$CURL_FEATURES" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CURL_FEATURES=`$PKG_CONFIG --variable="supported_features" "libcurl" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +CURL_FEATURES=$pkg_cv_CURL_FEATURES + +if test "x$CURL_FEATURES" = x""; then : + +fi + + + for ac_i in $CURL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $CURL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 +$as_echo_n "checking for SSL support in libcurl... " >&6; } + case "$CURL_FEATURES" in + *SSL*) + CURL_SSL=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + ;; + *) + CURL_SSL=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + + if test "$CURL_SSL" = yes; then + +$as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h + + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $CURL_CFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $CURL_LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5 +$as_echo_n "checking for openssl support in libcurl... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char *argv[]) +{ + curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); + + if (data && data->ssl_version && *data->ssl_version) { + const char *ptr = data->ssl_version; + + while(*ptr == ' ') ++ptr; + return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1); + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h + + for ac_header in openssl/crypto.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OPENSSL_CRYPTO_H 1 +_ACEOF + +fi + +done + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + CFLAGS="$save_CFLAGS" + LDFLAGS="$save_LDFLAGS" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $CURL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 +$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char curl_easy_perform (); +int +main () +{ +return curl_easy_perform (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curl_curl_easy_perform=yes +else + ac_cv_lib_curl_curl_easy_perform=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 +$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_CURL 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_curl_curl_easy_perform + + as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + ext_builddir=ext/curl + ext_srcdir=$abs_srcdir/ext/curl + ext_dir=ext/curl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_CURL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_CURL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_CURL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in interface.c multi.c share.c curl_file.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 +$as_echo_n "checking for dpopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dpopen (); +int +main () +{ +return dpopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define QDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_QDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dpopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=QDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_GDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=GDBM + if test -n "gdbm"; then + THIS_FULL_NAME="gdbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-gdbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_GDBM /usr/local /usr; do + if test -f "$i/include/gdbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 +$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } +if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdbm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdbm_open (); +int +main () +{ +return gdbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gdbm_gdbm_open=yes +else + ac_cv_lib_gdbm_gdbm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 +$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define GDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_GDBM 1" >>confdefs.h + + THIS_LIBS=gdbm + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gdbm_gdbm_open + + +fi + + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=GDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_NDBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_NDBM /usr/local /usr; do + if test -f "$i/include/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/ndbm.h + break + elif test -f "$i/include/db1/ndbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/ndbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in ndbm db1 c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 +$as_echo_n "checking for dbm_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbm_open (); +int +main () +{ +return dbm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define NDBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_NDBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbm_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=NDBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_TCADB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_TCADB /usr/local /usr; do + if test -f "$i/include/tcadb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/tcadb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in tokyocabinet; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 +$as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tcadbopen (); +int +main () +{ +return tcadbopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define TCADB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_TCADB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_tcadbopen + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=TCADB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_LMDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_LMDB /usr/local /usr; do + if test -f "$i/include/lmdb.h"; then + THIS_PREFIX=$i + + if test "$THIS_PREFIX/include" != "/usr/include"; then + + if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then + ai_p=$THIS_PREFIX/include + else + + ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + THIS_INCLUDE=$i/include/lmdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in lmdb; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_mdb_env_open" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -l$LIB" >&5 +$as_echo_n "checking for mdb_env_open in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mdb_env_open (); +int +main () +{ +return mdb_env_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define LMDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_LMDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_mdb_env_open + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=LMDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + + + +if test "$PHP_DB4" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + dbdp4="/usr/local/BerkeleyDB.4." + dbdp5="/usr/local/BerkeleyDB.5." + for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do + if test -f "$i/db5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db5/db.h + break + elif test -f "$i/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break + elif test -f "$i/include/db5.3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.3/db.h + break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h + break + elif test -f "$i/include/db5.0/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.0/db.h + break + elif test -f "$i/include/db4.8/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.8/db.h + break + elif test -f "$i/include/db4.7/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.7/db.h + break + elif test -f "$i/include/db4.6/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.6/db.h + break + elif test -f "$i/include/db4.5/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.5/db.h + break + elif test -f "$i/include/db4/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4/db.h + break + elif test -f "$i/include/db/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db4.h + break + elif test -f "$i/include/db4.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db4.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 +$as_echo_n "checking for DB4 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "4" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB4 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB4_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB4_LIBS=$THIS_LIBS + DB4_PREFIX=$THIS_PREFIX + DB4_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB4 + if test -n "Berkeley DB4"; then + THIS_FULL_NAME="Berkeley DB4" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB3" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db3 with --with-db4"; then + as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3/db.h + break + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db3.h + break + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db3.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_create((DB**)0, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 +$as_echo_n "checking for DB3 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "3" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB3 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB3_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB3_LIBS=$THIS_LIBS + DB3_PREFIX=$THIS_PREFIX + DB3_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB3 + if test -n "Berkeley DB3"; then + THIS_FULL_NAME="Berkeley DB3" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB2" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then + as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do + if test -f "$i/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db2/db.h + break + elif test -f "$i/include/db2/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2/db.h + break + elif test -f "$i/include/db/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db/db2.h + break + elif test -f "$i/include/db2.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db2.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + for LIB in db-2 db2 db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found=""; + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$LIB $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + (void)db_appinit("", NULL, (DB_ENV*)0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + THIS_LIBS=$LIB + lib_found=1 + +fi +rm -f conftest* + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + if test -n "$lib_found"; then + lib_found=""; + break; + fi + fi + done + if test -z "$THIS_LIBS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 +$as_echo_n "checking for DB2 major version... " >&6; } + as_fn_error $? "Header contains different version" "$LINENO" 5 + fi + if test "2" = "4"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + +else + + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +$as_echo_n "checking if dba can be used as shared extension... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 + +fi +rm -f conftest* + + fi + if test -n "$THIS_LIBS"; then + +$as_echo "#define DBA_DB2 1" >>confdefs.h + + if test -n "$THIS_INCLUDE"; then + +cat >>confdefs.h <<_ACEOF +#define DB2_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + fi + else + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + THIS_RESULT=yes + DB2_LIBS=$THIS_LIBS + DB2_PREFIX=$THIS_PREFIX + DB2_INCLUDE=$THIS_INCLUDE + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + + +fi + + THIS_NAME=DB2 + if test -n "Berkeley DB2"; then + THIS_FULL_NAME="Berkeley DB2" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DB1" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 +$as_echo_n "checking for DB1 in library... " >&6; } + if test "$HAVE_DB4" = "1"; then + THIS_VERSION=4 + THIS_LIBS=$DB4_LIBS + THIS_PREFIX=$DB4_PREFIX + elif test "$HAVE_DB3" = "1"; then + THIS_LIBS=$DB3_LIBS + THIS_PREFIX=$DB3_PREFIX + elif test "$HAVE_DB2" = "1"; then + THIS_VERSION=2 + THIS_LIBS=$DB2_LIBS + THIS_PREFIX=$DB2_PREFIX + fi + if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION" +_ACEOF + + for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do + if test -f "$THIS_PREFIX/$i"; then + THIS_INCLUDE=$THIS_PREFIX/$i + break + fi + done + else + +cat >>confdefs.h <<_ACEOF +#define DB1_VERSION "Unknown DB1" +_ACEOF + + for i in $PHP_DB1 /usr/local /usr; do + if test -f "$i/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/db1/db.h + break + elif test -f "$i/include/db1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db1/db.h + break + elif test -f "$i/include/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db.h + break + fi + done + THIS_LIBS=db + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 +$as_echo "$THIS_LIBS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 +$as_echo_n "checking for DB1 in header... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 +$as_echo "$THIS_INCLUDE" >&6; } + if test -n "$THIS_INCLUDE"; then + + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS" + old_LIBS=$LIBS + LIBS="-l$THIS_LIBS $LIBS" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "$THIS_INCLUDE" + +int +main () +{ + + DB * dbp = dbopen("", 0, 0, DB_HASH, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + +cat >>confdefs.h <<_ACEOF +#define DB1_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_DB1 1" >>confdefs.h + + THIS_RESULT=yes + +else + + THIS_RESULT=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LDFLAGS=$old_LDFLAGS + LIBS=$old_LIBS + + fi + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DB1 + if test -n "DB1"; then + THIS_FULL_NAME="DB1" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBM" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + if test "$HAVE_QDBM" = "1"; then + + THIS_NAME=DBM + if test -n "dbm"; then + THIS_FULL_NAME="dbm" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n "You cannot combine --with-dbm with --with-qdbm"; then + as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + fi + for i in $PHP_DBM /usr/local /usr; do + if test -f "$i/include/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/dbm.h + break + elif test -f "$i/include/gdbm/dbm.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/gdbm/dbm.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in dbm c gdbm; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 +$as_echo_n "checking for dbminit in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dbminit (); +int +main () +{ +return dbminit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 +$as_echo_n "checking for DBM using GDBM... " >&6; } + +cat >>confdefs.h <<_ACEOF +#define DBM_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + if test "$LIB" = "gdbm"; then + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "GDBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + +cat >>confdefs.h <<_ACEOF +#define DBM_VERSION "DBM" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + +$as_echo "#define DBA_DBM 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_dbminit + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=DBM + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then + php_dba_enable=yes +else + php_dba_enable=no +fi + + +php_with_cdb=$php_dba_enable + + + +# Check whether --with-cdb was given. +if test "${with_cdb+set}" = set; then : + withval=$with_cdb; PHP_CDB=$withval +else + + PHP_CDB=$php_dba_enable + + +fi + + +ext_output=$PHP_CDB + + + + + + +php_enable_inifile=$php_dba_enable + + +# Check whether --enable-inifile was given. +if test "${enable_inifile+set}" = set; then : + enableval=$enable_inifile; PHP_INIFILE=$enableval +else + + PHP_INIFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_INIFILE + + + + + + +php_enable_flatfile=$php_dba_enable + + +# Check whether --enable-flatfile was given. +if test "${enable_flatfile+set}" = set; then : + enableval=$enable_flatfile; PHP_FLATFILE=$enableval +else + + PHP_FLATFILE=$php_dba_enable + + +fi + + +ext_output=$PHP_FLATFILE + + + + + +if test "$PHP_CDB" = "yes"; then + +$as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h + + +$as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" + THIS_RESULT="builtin" +elif test "$PHP_CDB" != "no"; then + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT + + for i in $PHP_CDB /usr/local /usr; do + if test -f "$i/include/cdb.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/cdb.h + break + fi + done + + if test -n "$THIS_INCLUDE"; then + for LIB in cdb c; do + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 +$as_echo_n "checking for cdb_read in -l$LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cdb_read (); +int +main () +{ +return cdb_read (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +cat >>confdefs.h <<_ACEOF +#define CDB_INCLUDE_FILE "$THIS_INCLUDE" +_ACEOF + + +$as_echo "#define DBA_CDB 1" >>confdefs.h + + THIS_LIBS=$LIB + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$LIB_cdb_read + + +fi + + if test -n "$THIS_LIBS"; then + break + fi + done + fi + + + if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then + THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR + fi + + + THIS_RESULT=yes + if test -z "$THIS_INCLUDE"; then + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 + fi + if test -z "$THIS_LIBS"; then + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 + fi + + + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD" + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + if test "$ext_shared" = "yes"; then + DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$THIS_LFLAGS"; then + + if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then + + if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then + ai_p=$THIS_LFLAGS + else + + ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $THIS_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$THIS_LIBS $LIBS" + ;; + esac + + + + + fi + + + unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX + +fi + + THIS_NAME=CDB + if test -n ""; then + THIS_FULL_NAME="" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_INIFILE" != "no"; then + +$as_echo "#define DBA_INIFILE 1" >>confdefs.h + + ini_sources="libinifile/inifile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=INIFILE + if test -n "INI File"; then + THIS_FULL_NAME="INI File" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +if test "$PHP_FLATFILE" != "no"; then + +$as_echo "#define DBA_FLATFILE 1" >>confdefs.h + + flat_sources="libflatfile/flatfile.c" + THIS_RESULT="builtin" +fi + + THIS_NAME=FLATFILE + if test -n "FlatFile"; then + THIS_FULL_NAME="FlatFile" + else + THIS_FULL_NAME="$THIS_NAME" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + if test -n ""; then + as_fn_error $? "" "$LINENO" 5 + fi + if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then + HAVE_DBA=1 + eval HAVE_$THIS_NAME=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +$as_echo "$THIS_RESULT" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + unset THIS_RESULT THIS_NAME THIS_FULL_NAME + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 +$as_echo_n "checking whether to enable DBA interface... " >&6; } +if test "$HAVE_DBA" = "1"; then + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 +$as_echo "yes, shared" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + +$as_echo "#define HAVE_DBA 1" >>confdefs.h + + + ext_builddir=ext/dba + ext_srcdir=$abs_srcdir/ext/dba + ext_dir=ext/dba + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DBA_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DBA 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DBA_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_dom=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 +$as_echo_n "checking whether to enable DOM support... " >&6; } +# Check whether --enable-dom was given. +if test "${enable_dom+set}" = set; then : + enableval=$enable_dom; PHP_DOM=$enableval +else + + PHP_DOM=yes + test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DOM in +shared,*) + PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'` + ;; +shared) + PHP_DOM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_DOM" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "DOM extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_DOM 1" >>confdefs.h + + + ext_builddir=ext/dom + ext_srcdir=$abs_srcdir/ext/dom + ext_dir=ext/dom + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_DOM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_DOM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_DOM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_dom.c attr.c document.c domerrorhandler.c \ + domstringlist.c domexception.c namelist.c \ + processinginstruction.c cdatasection.c \ + documentfragment.c domimplementation.c \ + element.c node.c string_extend.c characterdata.c \ + documenttype.c domimplementationlist.c entity.c \ + nodelist.c text.c comment.c domconfiguration.c \ + domimplementationsource.c entityreference.c \ + notation.c xpath.c dom_iterators.c \ + typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with Enchant support... " >&6; } + +# Check whether --with-enchant was given. +if test "${with_enchant+set}" = set; then : + withval=$with_enchant; PHP_ENCHANT=$withval +else + + PHP_ENCHANT=no + test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ENCHANT in +shared,*) + PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'` + ;; +shared) + PHP_ENCHANT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ENCHANT" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant" >&5 +$as_echo_n "checking for enchant... " >&6; } + +if test -n "$ENCHANT_CFLAGS"; then + pkg_cv_ENCHANT_CFLAGS="$ENCHANT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 + ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ENCHANT_LIBS"; then + pkg_cv_ENCHANT_LIBS="$ENCHANT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant\""; } >&5 + ($PKG_CONFIG --exists --print-errors "enchant") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "enchant" 2>&1` + else + ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "enchant" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ENCHANT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (enchant) were not met: + +$ENCHANT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ENCHANT_CFLAGS +and ENCHANT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ENCHANT_CFLAGS +and ENCHANT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ENCHANT_CFLAGS=$pkg_cv_ENCHANT_CFLAGS + ENCHANT_LIBS=$pkg_cv_ENCHANT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ENCHANT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ENCHANT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="$ENCHANT_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="$ENCHANT_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_ENCHANT 1" >>confdefs.h + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ENCHANT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_get_version in -lenchant" >&5 +$as_echo_n "checking for enchant_get_version in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_get_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_get_version (); +int +main () +{ +return enchant_get_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_get_version=yes +else + ac_cv_lib_enchant_enchant_get_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_get_version" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_get_version" >&6; } +if test "x$ac_cv_lib_enchant_enchant_get_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_get_version + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $ENCHANT_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 +$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } +if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lenchant $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char enchant_broker_set_param (); +int +main () +{ +return enchant_broker_set_param (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_enchant_enchant_broker_set_param=yes +else + ac_cv_lib_enchant_enchant_broker_set_param=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 +$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_enchant_enchant_broker_set_param + + +fi + + + + ext_builddir=ext/enchant + ext_srcdir=$abs_srcdir/ext/enchant + ext_dir=ext/enchant + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ENCHANT_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ENCHANT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ENCHANT_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in enchant.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; } +# Check whether --enable-exif was given. +if test "${enable_exif+set}" = set; then : + enableval=$enable_exif; PHP_EXIF=$enableval +else + + PHP_EXIF=no + test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EXIF in +shared,*) + PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'` + ;; +shared) + PHP_EXIF=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_EXIF" != "no"; then + +$as_echo "#define HAVE_EXIF 1" >>confdefs.h + + + ext_builddir=ext/exif + ext_srcdir=$abs_srcdir/ext/exif + ext_dir=ext/exif + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_EXIF_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_EXIF 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_EXIF_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in exif.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for FFI support... " >&6; } + +# Check whether --with-ffi was given. +if test "${with_ffi+set}" = set; then : + withval=$with_ffi; PHP_FFI=$withval +else + + PHP_FFI=no + test "$PHP_ENABLE_ALL" && PHP_FFI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FFI in +shared,*) + PHP_FFI=`echo "$PHP_FFI"|$SED 's/^shared,//'` + ;; +shared) + PHP_FFI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FFI" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi >= 3.0.11" >&5 +$as_echo_n "checking for libffi >= 3.0.11... " >&6; } + +if test -n "$FFI_CFLAGS"; then + pkg_cv_FFI_CFLAGS="$FFI_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$FFI_LIBS"; then + pkg_cv_FFI_LIBS="$FFI_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.11" 2>&1` + else + FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.11" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$FFI_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libffi >= 3.0.11) were not met: + +$FFI_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables FFI_CFLAGS +and FFI_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables FFI_CFLAGS +and FFI_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + FFI_CFLAGS=$pkg_cv_FFI_CFLAGS + FFI_LIBS=$pkg_cv_FFI_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $FFI_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FFI_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="$FFI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="$FFI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FFI_SHARED_LIBADD="-L$ai_p $FFI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FFI_SHARED_LIBADD="$ld_runpath_switch$ai_p $FFI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_FFI 1" >>confdefs.h + + + ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" +if test "x$ac_cv_type_long_double" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_LONG_DOUBLE 1 +_ACEOF + + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fastcall calling convention" >&5 +$as_echo_n "checking for fastcall calling convention... " >&6; } +if ${ac_cv_ffi_fastcall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_FASTCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_fastcall=yes +else + ac_cv_ffi_fastcall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_fastcall" >&5 +$as_echo "$ac_cv_ffi_fastcall" >&6; } + + if test "$ac_cv_ffi_fastcall" = yes; then + +$as_echo "#define HAVE_FFI_FASTCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thiscall calling convention" >&5 +$as_echo_n "checking for thiscall calling convention... " >&6; } +if ${ac_cv_ffi_thiscall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_THISCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_thiscall=yes +else + ac_cv_ffi_thiscall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_thiscall" >&5 +$as_echo "$ac_cv_ffi_thiscall" >&6; } + + if test "$ac_cv_ffi_thiscall" = yes; then + +$as_echo "#define HAVE_FFI_THISCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdcall calling convention" >&5 +$as_echo_n "checking for stdcall calling convention... " >&6; } +if ${ac_cv_ffi_stdcall+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_STDCALL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_stdcall=yes +else + ac_cv_ffi_stdcall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_stdcall" >&5 +$as_echo "$ac_cv_ffi_stdcall" >&6; } + + if test "$ac_cv_ffi_stdcall" = yes; then + +$as_echo "#define HAVE_FFI_STDCALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pascal calling convention" >&5 +$as_echo_n "checking for pascal calling convention... " >&6; } +if ${ac_cv_ffi_pascal+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_PASCAL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_pascal=yes +else + ac_cv_ffi_pascal=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_pascal" >&5 +$as_echo "$ac_cv_ffi_pascal" >&6; } + + if test "$ac_cv_ffi_pascal" = yes; then + +$as_echo "#define HAVE_FFI_PASCAL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register calling convention" >&5 +$as_echo_n "checking for register calling convention... " >&6; } +if ${ac_cv_ffi_register+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_REGISTER + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_register=yes +else + ac_cv_ffi_register=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_register" >&5 +$as_echo "$ac_cv_ffi_register" >&6; } + + if test "$ac_cv_ffi_register" = yes; then + +$as_echo "#define HAVE_FFI_REGISTER 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_cdecl calling convention" >&5 +$as_echo_n "checking for ms_cdecl calling convention... " >&6; } +if ${ac_cv_ffi_ms_cdecl+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_MS_CDECL + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_ms_cdecl=yes +else + ac_cv_ffi_ms_cdecl=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_ms_cdecl" >&5 +$as_echo "$ac_cv_ffi_ms_cdecl" >&6; } + + if test "$ac_cv_ffi_ms_cdecl" = yes; then + +$as_echo "#define HAVE_FFI_MS_CDECL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysv calling convention" >&5 +$as_echo_n "checking for sysv calling convention... " >&6; } +if ${ac_cv_ffi_sysv+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return FFI_SYSV + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ffi_sysv=yes +else + ac_cv_ffi_sysv=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_sysv" >&5 +$as_echo "$ac_cv_ffi_sysv" >&6; } + + if test "$ac_cv_ffi_sysv" = yes; then + +$as_echo "#define HAVE_FFI_SYSV 1" >>confdefs.h + + fi + + + ext_builddir=ext/ffi + ext_srcdir=$abs_srcdir/ext/ffi + ext_dir=ext/ffi + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FFI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ffi.c ffi_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FFI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FFI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ffi.c ffi_parser.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for fileinfo support... " >&6; } +# Check whether --enable-fileinfo was given. +if test "${enable_fileinfo+set}" = set; then : + enableval=$enable_fileinfo; PHP_FILEINFO=$enableval +else + + PHP_FILEINFO=yes + test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILEINFO in +shared,*) + PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILEINFO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ + libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \ + libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \ + libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \ + libmagic/is_json.c libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c \ + libmagic/buffer.c" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasestr" >&5 +$as_echo_n "checking for strcasestr... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped, cross-compiling" >&5 +$as_echo "skipped, cross-compiling" >&6; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int main(void) +{ + char *s0, *s1, *ret; + + s0 = (char *) malloc(42); + s1 = (char *) malloc(8); + + memset(s0, 'X', 42); + s0[24] = 'Y'; + s0[26] = 'Z'; + s0[41] = '\0'; + memset(s1, 'x', 8); + s1[0] = 'y'; + s1[2] = 'Z'; + s1[7] = '\0'; + + ret = strcasestr(s0, s1); + + return !(NULL != ret); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: using libmagic strcasestr implementation" >&5 +$as_echo "$as_me: using libmagic strcasestr implementation" >&6;} + libmagic_sources="$libmagic_sources libmagic/strcasestr.c" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + ext_builddir=ext/fileinfo + ext_srcdir=$abs_srcdir/ext/fileinfo + ext_dir=ext/fileinfo + + ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILEINFO_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILEINFO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILEINFO_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in fileinfo.c $libmagic_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + + + +php_enable_filter=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 +$as_echo_n "checking whether to enable input filter support... " >&6; } +# Check whether --enable-filter was given. +if test "${enable_filter+set}" = set; then : + enableval=$enable_filter; PHP_FILTER=$enableval +else + + PHP_FILTER=yes + test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FILTER in +shared,*) + PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'` + ;; +shared) + PHP_FILTER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FILTER" != "no"; then + + ext_builddir=ext/filter + ext_srcdir=$abs_srcdir/ext/filter + ext_dir=ext/filter + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FILTER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FILTER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FILTER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable FTP support... " >&6; } +# Check whether --enable-ftp was given. +if test "${enable_ftp+set}" = set; then : + enableval=$enable_ftp; PHP_FTP=$enableval +else + + PHP_FTP=no + test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_FTP in +shared,*) + PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'` + ;; +shared) + PHP_FTP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5 +$as_echo_n "checking OpenSSL dir for FTP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_FTP" = "yes"; then + +$as_echo "#define HAVE_FTP 1" >>confdefs.h + + + ext_builddir=ext/ftp + ext_srcdir=$abs_srcdir/ext/ftp + ext_dir=ext/ftp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_FTP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_FTP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_FTP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_ftp.c ftp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + +: + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD" + + +$as_echo "#define HAVE_FTP_SSL 1" >>confdefs.h + + fi +fi + + + + + +php_enable_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 +$as_echo_n "checking for GD support... " >&6; } +# Check whether --enable-gd was given. +if test "${enable_gd+set}" = set; then : + enableval=$enable_gd; PHP_GD=$enableval +else + + PHP_GD=no + test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GD in +shared,*) + PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'` + ;; +shared) + PHP_GD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_external_gd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libgd" >&5 +$as_echo_n "checking for external libgd... " >&6; } + +# Check whether --with-external-gd was given. +if test "${with_external_gd+set}" = set; then : + withval=$with_external_gd; PHP_EXTERNAL_GD=$withval +else + + PHP_EXTERNAL_GD=no + + +fi + + +ext_output=$PHP_EXTERNAL_GD +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_WEBP"; then + +php_with_webp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 +$as_echo_n "checking for libwebp... " >&6; } + +# Check whether --with-webp was given. +if test "${with_webp+set}" = set; then : + withval=$with_webp; PHP_WEBP=$withval +else + + PHP_WEBP=no + + +fi + + +ext_output=$PHP_WEBP +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test -z "$PHP_JPEG"; then + +php_with_jpeg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +$as_echo_n "checking for libjpeg... " >&6; } + +# Check whether --with-jpeg was given. +if test "${with_jpeg+set}" = set; then : + withval=$with_jpeg; PHP_JPEG=$withval +else + + PHP_JPEG=no + + +fi + + +ext_output=$PHP_JPEG +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + + +php_with_xpm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXpm" >&5 +$as_echo_n "checking for libXpm... " >&6; } + +# Check whether --with-xpm was given. +if test "${with_xpm+set}" = set; then : + withval=$with_xpm; PHP_XPM=$withval +else + + PHP_XPM=no + + +fi + + +ext_output=$PHP_XPM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_freetype=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 +$as_echo_n "checking for FreeType 2... " >&6; } + +# Check whether --with-freetype was given. +if test "${with_freetype+set}" = set; then : + withval=$with_freetype; PHP_FREETYPE=$withval +else + + PHP_FREETYPE=no + + +fi + + +ext_output=$PHP_FREETYPE +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_gd_jis_conv=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 +$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } +# Check whether --enable-gd-jis-conv was given. +if test "${enable_gd_jis_conv+set}" = set; then : + enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval +else + + PHP_GD_JIS_CONV=no + + +fi + + +ext_output=$PHP_GD_JIS_CONV +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + + + + + + + + + + + + + + + + + +if test "$PHP_GD" != "no"; then + + if test "$PHP_EXTERNAL_GD" = "no"; then + GD_CFLAGS="" + extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \ + libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_webp.c \ + libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \ + libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \ + libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \ + libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_xbm.c libgd/gd_gif_out.c libgd/gd_security.c \ + libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_rotate.c libgd/gd_color_match.c \ + libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \ + libgd/gd_bmp.c libgd/gd_tga.c" + + for ac_func in fabsf floorf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + +$as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 +$as_echo_n "checking for zlib... " >&6; } + +if test -n "$ZLIB_CFLAGS"; then + pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ZLIB_LIBS"; then + pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` + else + ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ZLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (zlib) were not met: + +$ZLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ZLIB_CFLAGS +and ZLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS + ZLIB_LIBS=$pkg_cv_ZLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ZLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ZLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5 +$as_echo_n "checking for libpng... " >&6; } + +if test -n "$PNG_CFLAGS"; then + pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$PNG_LIBS"; then + pkg_cv_PNG_LIBS="$PNG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` + else + PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$PNG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libpng) were not met: + +$PNG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables PNG_CFLAGS +and PNG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables PNG_CFLAGS +and PNG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + PNG_CFLAGS=$pkg_cv_PNG_CFLAGS + PNG_LIBS=$pkg_cv_PNG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $PNG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $PNG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h + + + + if test "$PHP_WEBP" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 +$as_echo_n "checking for libwebp... " >&6; } + +if test -n "$WEBP_CFLAGS"; then + pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$WEBP_LIBS"; then + pkg_cv_WEBP_LIBS="$WEBP_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1` + else + WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$WEBP_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libwebp) were not met: + +$WEBP_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables WEBP_CFLAGS +and WEBP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables WEBP_CFLAGS +and WEBP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS + WEBP_LIBS=$pkg_cv_WEBP_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $WEBP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $WEBP_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBWEBP 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + fi + + + if test "$PHP_JPEG" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +$as_echo_n "checking for libjpeg... " >&6; } + +if test -n "$JPEG_CFLAGS"; then + pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$JPEG_LIBS"; then + pkg_cv_JPEG_LIBS="$JPEG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + JPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg" 2>&1` + else + JPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$JPEG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libjpeg) were not met: + +$JPEG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables JPEG_CFLAGS +and JPEG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables JPEG_CFLAGS +and JPEG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS + JPEG_LIBS=$pkg_cv_JPEG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $JPEG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $JPEG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + fi + + + if test "$PHP_XPM" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5 +$as_echo_n "checking for xpm... " >&6; } + +if test -n "$XPM_CFLAGS"; then + pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$XPM_LIBS"; then + pkg_cv_XPM_LIBS="$XPM_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1` + else + XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$XPM_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (xpm) were not met: + +$XPM_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables XPM_CFLAGS +and XPM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables XPM_CFLAGS +and XPM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XPM_CFLAGS=$pkg_cv_XPM_CFLAGS + XPM_LIBS=$pkg_cv_XPM_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $XPM_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $XPM_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_XPM 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + fi + + + if test "$PHP_FREETYPE" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 +$as_echo_n "checking for freetype2... " >&6; } + +if test -n "$FREETYPE2_CFLAGS"; then + pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$FREETYPE2_LIBS"; then + pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` + else + FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$FREETYPE2_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (freetype2) were not met: + +$FREETYPE2_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables FREETYPE2_CFLAGS +and FREETYPE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables FREETYPE2_CFLAGS +and FREETYPE2_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS + FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + FREETYPE2_FOUND=true +fi + + + for ac_i in $FREETYPE2_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $FREETYPE2_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h + + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + fi + + + if test "$PHP_GD_JIS_CONV" = "yes"; then + +$as_echo "#define USE_GD_JISX0208 1" >>confdefs.h + + +$as_echo "#define JISX0208 1" >>confdefs.h + + fi + + + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + ext_dir=ext/gd + + ac_extra=`echo "\\$(GD_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<conftest.$ac_ext +/* end confdefs.h. */ + + char foobar () {} + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +else + + LIBS=$old_LIBS + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + else + extra_sources="gd_compat.c" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib >= 2.1.0" >&5 +$as_echo_n "checking for gdlib >= 2.1.0... " >&6; } + +if test -n "$GDLIB_CFLAGS"; then + pkg_cv_GDLIB_CFLAGS="$GDLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GDLIB_CFLAGS=`$PKG_CONFIG --cflags "gdlib >= 2.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GDLIB_LIBS"; then + pkg_cv_GDLIB_LIBS="$GDLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GDLIB_LIBS=`$PKG_CONFIG --libs "gdlib >= 2.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GDLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdlib >= 2.1.0" 2>&1` + else + GDLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdlib >= 2.1.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GDLIB_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (gdlib >= 2.1.0) were not met: + +$GDLIB_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables GDLIB_CFLAGS +and GDLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables GDLIB_CFLAGS +and GDLIB_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + GDLIB_CFLAGS=$pkg_cv_GDLIB_CFLAGS + GDLIB_LIBS=$pkg_cv_GDLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $GDLIB_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $GDLIB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_LIBGD 1" >>confdefs.h + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromPng (); +int +main () +{ +return gdImageCreateFromPng (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromPng=yes +else + ac_cv_lib_gd_gdImageCreateFromPng=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromPng + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromWebp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromWebp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromWebp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromWebp (); +int +main () +{ +return gdImageCreateFromWebp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromWebp=yes +else + ac_cv_lib_gd_gdImageCreateFromWebp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromWebp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromWebp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromWebp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromWebp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromJpeg (); +int +main () +{ +return gdImageCreateFromJpeg (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromJpeg=yes +else + ac_cv_lib_gd_gdImageCreateFromJpeg=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromJpeg + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromXpm (); +int +main () +{ +return gdImageCreateFromXpm (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromXpm=yes +else + ac_cv_lib_gd_gdImageCreateFromXpm=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromXpm + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromBmp in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromBmp in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromBmp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromBmp (); +int +main () +{ +return gdImageCreateFromBmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromBmp=yes +else + ac_cv_lib_gd_gdImageCreateFromBmp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromBmp" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromBmp" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromBmp" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromBmp + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromTga in -lgd" >&5 +$as_echo_n "checking for gdImageCreateFromTga in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreateFromTga+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreateFromTga (); +int +main () +{ +return gdImageCreateFromTga (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreateFromTga=yes +else + ac_cv_lib_gd_gdImageCreateFromTga=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromTga" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreateFromTga" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreateFromTga" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreateFromTga + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5 +$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageStringFT+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageStringFT (); +int +main () +{ +return gdImageStringFT (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageStringFT=yes +else + ac_cv_lib_gd_gdImageStringFT=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5 +$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; } +if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageStringFT + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" $GD_SHARED_LIBADD " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdVersionString in -lgd" >&5 +$as_echo_n "checking for gdVersionString in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdVersionString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdVersionString (); +int +main () +{ +return gdVersionString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdVersionString=yes +else + ac_cv_lib_gd_gdVersionString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdVersionString" >&5 +$as_echo "$ac_cv_lib_gd_gdVersionString" >&6; } +if test "x$ac_cv_lib_gd_gdVersionString" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + +$as_echo "#define HAVE_GD_LIBVERSION 1" >>confdefs.h + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdVersionString + + +fi + + + + + ext_builddir=ext/gd + ext_srcdir=$abs_srcdir/ext/gd + ext_dir=ext/gd + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gd.c $extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 +$as_echo_n "checking for gdImageCreate in -lgd... " >&6; } +if ${ac_cv_lib_gd_gdImageCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgd $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gdImageCreate (); +int +main () +{ +return gdImageCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gd_gdImageCreate=yes +else + ac_cv_lib_gd_gdImageCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 +$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gd_gdImageCreate + + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi + + fi + + + + for header_file in $GD_HEADER_DIRS; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_LIBS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD" + +fi + + + + + +php_with_gettext=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 +$as_echo_n "checking for GNU gettext support... " >&6; } + +# Check whether --with-gettext was given. +if test "${with_gettext+set}" = set; then : + withval=$with_gettext; PHP_GETTEXT=$withval +else + + PHP_GETTEXT=no + test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GETTEXT in +shared,*) + PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'` + ;; +shared) + PHP_GETTEXT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GETTEXT" != "no"; then + for i in $PHP_GETTEXT /usr/local /usr; do + test -r $i/include/libintl.h && GETTEXT_DIR=$i && break + done + + if test -z "$GETTEXT_DIR"; then + as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5 + fi + + GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR + GETTEXT_INCDIR=$GETTEXT_DIR/include + + O_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 +$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } +if ${ac_cv_lib_intl_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_bindtextdomain=yes +else + ac_cv_lib_intl_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : + + GETTEXT_LIBS=intl + GETTEXT_CHECK_IN_LIB=intl + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 +$as_echo_n "checking for bindtextdomain in -lc... " >&6; } +if ${ac_cv_lib_c_bindtextdomain+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bindtextdomain (); +int +main () +{ +return bindtextdomain (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_bindtextdomain=yes +else + ac_cv_lib_c_bindtextdomain=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 +$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } +if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : + + GETTEXT_LIBS= + GETTEXT_CHECK_IN_LIB=c + +else + + as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 + +fi + + +fi + + + +$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h + + + ext_builddir=ext/gettext + ext_srcdir=$abs_srcdir/ext/gettext + ext_dir=ext/gettext + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GETTEXT_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GETTEXT 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GETTEXT_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gettext.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$GETTEXT_INCDIR + else + + ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ngettext (); +int +main () +{ +return ngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dngettext (); +int +main () +{ +return dngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dcngettext (); +int +main () +{ +return dcngettext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h + +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 +$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind_textdomain_codeset (); +int +main () +{ +return bind_textdomain_codeset (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + +$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h + +fi + + LDFLAGS=$O_LDFLAGS + + if test -n "$GETTEXT_LIBS"; then + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD" + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$GETTEXT_LIBDIR"; then + + if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then + + if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$GETTEXT_LIBDIR + else + + ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $GETTEXT_LIBS in + c|c_r|pthread*) ;; + *) + LIBS="-l$GETTEXT_LIBS $LIBS" + ;; + esac + + + + + fi + + + fi +fi + + + + + +php_with_gmp=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 +$as_echo_n "checking for GNU MP support... " >&6; } + +# Check whether --with-gmp was given. +if test "${with_gmp+set}" = set; then : + withval=$with_gmp; PHP_GMP=$withval +else + + PHP_GMP=no + test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_GMP in +shared,*) + PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_GMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_GMP" != "no"; then + if test "$PHP_GMP" = "yes"; then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmpz_rootrem (); +int +main () +{ +return __gmpz_rootrem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmpz_rootrem=yes +else + ac_cv_lib_gmp___gmpz_rootrem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmpz_rootrem + + as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 + + +fi + + + + + case gmp in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + else + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + fi + ;; + esac + + + else + if test ! -f $PHP_GMP/include/gmp.h; then + as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_GMP/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } +if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __gmpz_rootrem (); +int +main () +{ +return __gmpz_rootrem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gmp___gmpz_rootrem=yes +else + ac_cv_lib_gmp___gmpz_rootrem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gmp___gmpz_rootrem + + as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 + + +fi + + + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD" + if test -n "$PHP_GMP/$PHP_LIBDIR"; then + + if test "$PHP_GMP/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GMP/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GMP/$PHP_LIBDIR" || echo "$PHP_GMP/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GMP/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_GMP/$PHP_LIBDIR"; then + + if test "$PHP_GMP/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GMP/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_GMP/$PHP_LIBDIR" || echo "$PHP_GMP/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_GMP/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case gmp in + c|c_r|pthread*) ;; + *) + LIBS="-lgmp $LIBS" + ;; + esac + + + + + fi + + + + if test "$PHP_GMP/include" != "/usr/include"; then + + if test -z "$PHP_GMP/include" || echo "$PHP_GMP/include" | grep '^/' >/dev/null ; then + ai_p=$PHP_GMP/include + else + + ep_dir=`echo $PHP_GMP/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_GMP/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + + for header_file in ext/gmp/php_gmp_int.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + ext_builddir=ext/gmp + ext_srcdir=$abs_srcdir/ext/gmp + ext_dir=ext/gmp + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_GMP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_GMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_GMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in gmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_with_mhash=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 +$as_echo_n "checking for mhash support... " >&6; } + +# Check whether --with-mhash was given. +if test "${with_mhash+set}" = set; then : + withval=$with_mhash; PHP_MHASH=$withval +else + + PHP_MHASH=no + test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MHASH in +shared,*) + PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'` + ;; +shared) + PHP_MHASH=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MHASH" != "no"; then + if test "$PHP_HASH" = "no"; then + PHP_HASH="yes" + fi + + +$as_echo "#define PHP_MHASH_BC 1" >>confdefs.h + +fi + + +$as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h + + +if test $ac_cv_c_bigendian_php = yes; then + EXT_HASH_SHA3_SOURCES="hash_sha3.c" + +$as_echo "#define HAVE_SLOW_HASH3 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&5 +$as_echo "$as_me: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&2;} +else + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SHA3_DIR="sha3/generic32lc" + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SHA3_DIR="sha3/generic64lc" + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c" + +fi + EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c" + PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + + + $php_shtool mkdir -p ext/hash/$SHA3_DIR + + +fi + +EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c hash_fnv.c hash_joaat.c $EXT_HASH_SHA3_SOURCES" +EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ + php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h" + + + ext_builddir=ext/hash + ext_srcdir=$abs_srcdir/ext/hash + ext_dir=ext/hash + + ac_extra=`echo "$PHP_HASH_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "0" != "shared" && test "0" != "yes" && test "" != "cli"; then + PHP_HASH_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_HASH 1 +_ACEOF + + fi + fi + + if test "0" != "shared" && test "0" != "yes" && test "" = "cli"; then + PHP_HASH_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $EXT_HASH_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for iconv support... " >&6; } + +# Check whether --with-iconv was given. +if test "${with_iconv+set}" = set; then : + withval=$with_iconv; PHP_ICONV=$withval +else + + PHP_ICONV=yes + test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ICONV in +shared,*) + PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'` + ;; +shared) + PHP_ICONV=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ICONV" != "no"; then + + + found_iconv=no + unset ICONV_DIR + + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + iconv_avail="yes"; + +else + iconv_avail="no"; + + fi + + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break + fi + done + if test -z "$PHP_ICONV_PREFIX"; then + PHP_ICONV_PREFIX="/usr" + fi + else + PHP_ICONV_PREFIX="$ICONV_DIR" + fi + + CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" + LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" + + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" + else + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 +$as_echo_n "checking if iconv is glibc's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +gnu_get_libc_version(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="glibc" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 +$as_echo_n "checking if using GNU libiconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross-compiling" >&5 +$as_echo "no, cross-compiling" >&6; } + LDFLAGS="$php_iconv_old_ld" + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +int main() { + printf("%d", _libiconv_version); + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="gnu_libiconv" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 +$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +iconv_ccs_init(NULL, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="bsd" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + if test -z "$iconv_impl_name"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 +$as_echo_n "checking if using IBM iconv... " >&6; } + php_iconv_old_ld="$LDFLAGS" + LDFLAGS="-liconv $LDFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +cstoccsid(""); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + iconv_impl_name="ibm" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + LDFLAGS="$php_iconv_old_ld" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_ibm_iconv.h + + case "$iconv_impl_name" in + gnu_libiconv ) + + echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD" + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + if test "$ext_shared" = "yes"; then + ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then + + if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then + + if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then + ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR" + else + + ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case iconv in + c|c_r|pthread*) ;; + *) + LIBS="-liconv $LIBS" + ;; + esac + + + + + fi + + + ;; + + bsd ) + + echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h + + +$as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h + + ;; + + glibc ) + + echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h + + +$as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h + + ;; + ibm ) + + echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h + + +$as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h + + + echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h + + +$as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h + + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 +$as_echo_n "checking if iconv supports errno... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd; + cd = iconv_open( "*blahblah*", "*blahblah*" ); + if (cd == (iconv_t)(-1)) { + if (errno == EINVAL) { + return 0; + } else { + return 1; + } + } + iconv_close( cd ); + return 2; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h + + +$as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports //IGNORE" >&5 +$as_echo_n "checking if iconv supports //IGNORE... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <$PHP_ICONV_H_PATH> +#include + +int main() { + iconv_t cd = iconv_open( "UTF-8//IGNORE", "UTF-8" ); + if(cd == (iconv_t)-1) { + return 1; + } + char *in_p = "\xC3\xC3\xC3\xB8"; + size_t in_left = 4, out_left = 4096; + char *out = malloc(out_left); + char *out_p = out; + size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left); + if(result == (size_t)-1) { + return 1; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + echo "#define ICONV_BROKEN_IGNORE 1" > ext/iconv/php_iconv_broken_ignore.h + + +$as_echo "#define ICONV_BROKEN_IGNORE 1" >>confdefs.h + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5 +$as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define FOO <$PHP_ICONV_H_PATH> +#include FOO + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h + + +cat >>confdefs.h <<_ACEOF +#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH> +_ACEOF + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/iconv + ext_srcdir=$abs_srcdir/ext/iconv + ext_dir=ext/iconv + + ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\" -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ICONV_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ICONV 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ICONV_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in iconv.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for IMAP support... " >&6; } + +# Check whether --with-imap was given. +if test "${with_imap+set}" = set; then : + withval=$with_imap; PHP_IMAP=$withval +else + + PHP_IMAP=no + test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IMAP in +shared,*) + PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_IMAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_kerberos=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 +$as_echo_n "checking for IMAP Kerberos support... " >&6; } + +# Check whether --with-kerberos was given. +if test "${with_kerberos+set}" = set; then : + withval=$with_kerberos; PHP_KERBEROS=$withval +else + + PHP_KERBEROS=no + + +fi + + +ext_output=$PHP_KERBEROS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_imap_ssl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 +$as_echo_n "checking for IMAP SSL support... " >&6; } + +# Check whether --with-imap-ssl was given. +if test "${with_imap_ssl+set}" = set; then : + withval=$with_imap_ssl; PHP_IMAP_SSL=$withval +else + + PHP_IMAP_SSL=no + + +fi + + +ext_output=$PHP_IMAP_SSL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_IMAP" != "no"; then + + PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD" + + + ext_builddir=ext/imap + ext_srcdir=$abs_srcdir/ext/imap + ext_dir=ext/imap + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_IMAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_IMAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_IMAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_imap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + for i in $PHP_IMAP /usr/local /usr; do + if test -r "$i/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i + break + elif test -r "$i/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i + break + + elif test -r "$i/include/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/c-client + break + elif test -r "$i/include/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/c-client + break + + elif test -r "$i/include/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include/imap + break + elif test -r "$i/include/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include/imap + break + + elif test -r "$i/include/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/include + break + elif test -r "$i/include/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/include + break + + elif test -r "$i/imap/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/imap + break + elif test -r "$i/imap/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/imap + break + + elif test -r "$i/c-client/c-client.h"; then + +$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h + + IMAP_DIR=$i + IMAP_INC_DIR=$i/c-client + break + elif test -r "$i/c-client/rfc822.h"; then + IMAP_DIR=$i; + IMAP_INC_DIR=$i/c-client + break + + fi + done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/mail.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2004 1" >>confdefs.h + + +fi +rm -f conftest* + + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 +$as_echo_n "checking for utf8_mime2text signature... " >&6; } +if ${ac_cv_utf8_mime2text+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + + SIZEDTEXT *src, *dst; + utf8_mime2text(src, dst); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_utf8_mime2text=old + +else + + ac_cv_utf8_mime2text=new + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 +$as_echo "$ac_cv_utf8_mime2text" >&6; } + if test "$ac_cv_utf8_mime2text" = "new"; then + +$as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h + + fi + CFLAGS=$old_CFLAGS + + old_CFLAGS=$CFLAGS + CFLAGS="-I$IMAP_INC_DIR" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 +$as_echo_n "checking for U8T_DECOMPOSE... " >&6; } +if ${ac_cv_u8t_decompose+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + + int i = U8T_CANONICAL; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_u8t_decompose=yes + +else + + ac_cv_u8t_decompose=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_decompose" >&5 +$as_echo "$ac_cv_u8t_decompose" >&6; } + CFLAGS=$old_CFLAGS + + if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then + as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then + as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 + fi + + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$IMAP_INC_DIR + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "imap4r1.h" +#if defined(IMAPSSLPORT) + this_is_true +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "this_is_true" >/dev/null 2>&1; then : + + +$as_echo "#define HAVE_IMAP2001 1" >>confdefs.h + + +fi +rm -f conftest* + + CPPFLAGS=$old_CPPFLAGS + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 +$as_echo_n "checking for pam_start in -lpam... " >&6; } +if ${ac_cv_lib_pam_pam_start+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpam $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pam_start (); +int +main () +{ +return pam_start (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pam_pam_start=yes +else + ac_cv_lib_pam_pam_start=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +$as_echo "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case pam in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD" + else + + + case pam in + c|c_r|pthread*) ;; + *) + LIBS="-lpam $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBPAM 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_pam_pam_start + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + case crypt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD" + else + + + case crypt in + c|c_r|pthread*) ;; + *) + LIBS="-lcrypt $LIBS" + ;; + esac + + + fi + ;; + esac + + + +$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_crypt_crypt + + +fi + + + + if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then + IMAP_DIR=$IMAP_DIR + else + + ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"` + fi + + + if test -z "$IMAP_DIR"; then + as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 + fi + + if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then + ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then + ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 + fi + + for lib in c-client4 c-client imap; do + IMAP_LIB=$lib + + str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2 + done + + + str="$IMAP_DIR/c-client/lib$lib.*" + for i in `echo $str`; do + test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2 + done + + done + + if test -z "$IMAP_LIBDIR"; then + as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 + fi + + + if test "$IMAP_INC_DIR" != "/usr/include"; then + + if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_INC_DIR + else + + ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD" + else + + + case $IMAP_LIB in + c|c_r|pthread*) ;; + *) + DLIBS="-l$IMAP_LIB $DLIBS" + ;; + esac + + + fi + ;; + esac + + + + if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then + + if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$IMAP_LIBDIR + else + + ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + if test "$PHP_KERBEROS" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 +$as_echo_n "checking for krb5-gssapi krb5... " >&6; } + +if test -n "$KERBEROS_CFLAGS"; then + pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$KERBEROS_LIBS"; then + pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + else + KERBEROS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "krb5-gssapi krb5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$KERBEROS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (krb5-gssapi krb5) were not met: + +$KERBEROS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables KERBEROS_CFLAGS +and KERBEROS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS + KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $KERBEROS_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $KERBEROS_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h + + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "auth_gss" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with Kerberos support. + + Add --with-kerberos to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + if test "$PHP_IMAP_SSL" != "no"; then + if test "$PHP_OPENSSL" = ""; then + PHP_OPENSSL='no' + fi + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h + + +else + as_fn_error $? "OpenSSL libraries not found. + + Check the path given to --with-openssl-dir and output in config.log) + " "$LINENO" 5 + + fi + + elif test -f "$IMAP_INC_DIR/linkage.c"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$IMAP_INC_DIR/linkage.c> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : + + as_fn_error $? "This c-client library is built with SSL support. + + Add --with-imap-ssl to your configure line. Check config.log for details. + " "$LINENO" 5 + +fi +rm -f conftest* + + fi + + + TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD" + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char auth_gssapi_valid(); + int main() { + auth_gssapi_valid(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); } + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char utf8_to_mutf7_php(); + int main() { + utf8_to_mutf7_php(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 +$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; } + + old_LIBS=$LIBS + LIBS=" + $TST_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + void rfc822_output_address_list(void); + void (*f)(void); + char foobar () {f = rfc822_output_address_list;} + + char foobar(); + int main() { + foobar(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h + + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 +$as_echo_n "checking whether build with IMAP works... " >&6; } + + + old_LIBS=$LIBS + LIBS="$TST_LIBS $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + +#if defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_IMAP_EXPORT __attribute__ ((visibility("default"))) +#else +# define PHP_IMAP_EXPORT +#endif + + PHP_IMAP_EXPORT void mm_log(void){} + PHP_IMAP_EXPORT void mm_dlog(void){} + PHP_IMAP_EXPORT void mm_flags(void){} + PHP_IMAP_EXPORT void mm_fatal(void){} + PHP_IMAP_EXPORT void mm_critical(void){} + PHP_IMAP_EXPORT void mm_nocritical(void){} + PHP_IMAP_EXPORT void mm_notify(void){} + PHP_IMAP_EXPORT void mm_login(void){} + PHP_IMAP_EXPORT void mm_diskerror(void){} + PHP_IMAP_EXPORT void mm_status(void){} + PHP_IMAP_EXPORT void mm_lsub(void){} + PHP_IMAP_EXPORT void mm_list(void){} + PHP_IMAP_EXPORT void mm_exists(void){} + PHP_IMAP_EXPORT void mm_searched(void){} + PHP_IMAP_EXPORT void mm_expunged(void){} + + char mail_newbody(); + int main() { + mail_newbody(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +fi + + + + + +php_enable_intl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5 +$as_echo_n "checking whether to enable internationalization support... " >&6; } +# Check whether --enable-intl was given. +if test "${enable_intl+set}" = set; then : + enableval=$enable_intl; PHP_INTL=$enableval +else + + PHP_INTL=no + test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_INTL in +shared,*) + PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_INTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_INTL" != "no"; then + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc >= 50.1 icu-io icu-i18n" >&5 +$as_echo_n "checking for icu-uc >= 50.1 icu-io icu-i18n... " >&6; } + +if test -n "$ICU_CFLAGS"; then + pkg_cv_ICU_CFLAGS="$ICU_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ICU_LIBS"; then + pkg_cv_ICU_LIBS="$ICU_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>&1` + else + ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ICU_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met: + +$ICU_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ICU_CFLAGS +and ICU_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ICU_CFLAGS +and ICU_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ICU_CFLAGS=$pkg_cv_ICU_CFLAGS + ICU_LIBS=$pkg_cv_ICU_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $ICU_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $ICU_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + ICU_CFLAGS="$ICU_CFLAGS -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1" + ICU_CXXFLAGS="$ICU_CXXFLAGS -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit" + + if test "$PKG_CONFIG icu-io --atleast-version=60"; then + ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1" + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD" + + INTL_COMMON_FLAGS="$ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" + + ext_builddir=ext/intl + ext_srcdir=$abs_srcdir/ext/intl + ext_dir=ext/intl + + ac_extra=`echo "$INTL_COMMON_FLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_INTL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_parse.c \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + uchar/uchar.c \ + idn/idn.c \ + spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_INTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_INTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_intl.c \ + intl_error.c \ + intl_convert.c \ + collator/collator.c \ + collator/collator_class.c \ + collator/collator_sort.c \ + collator/collator_convert.c \ + collator/collator_locale.c \ + collator/collator_compare.c \ + collator/collator_attr.c \ + collator/collator_create.c \ + collator/collator_is_numeric.c \ + collator/collator_error.c \ + common/common_error.c \ + converter/converter.c \ + formatter/formatter.c \ + formatter/formatter_main.c \ + formatter/formatter_class.c \ + formatter/formatter_attr.c \ + formatter/formatter_data.c \ + formatter/formatter_format.c \ + formatter/formatter_parse.c \ + normalizer/normalizer.c \ + normalizer/normalizer_class.c \ + normalizer/normalizer_normalize.c \ + locale/locale.c \ + locale/locale_class.c \ + locale/locale_methods.c \ + dateformat/dateformat.c \ + dateformat/dateformat_class.c \ + dateformat/dateformat_attr.c \ + dateformat/dateformat_data.c \ + dateformat/dateformat_format.c \ + dateformat/dateformat_parse.c \ + msgformat/msgformat.c \ + msgformat/msgformat_attr.c \ + msgformat/msgformat_class.c \ + msgformat/msgformat_data.c \ + msgformat/msgformat_format.c \ + msgformat/msgformat_parse.c \ + grapheme/grapheme_string.c \ + grapheme/grapheme_util.c \ + resourcebundle/resourcebundle.c \ + resourcebundle/resourcebundle_class.c \ + resourcebundle/resourcebundle_iterator.c \ + transliterator/transliterator.c \ + transliterator/transliterator_class.c \ + transliterator/transliterator_methods.c \ + uchar/uchar.c \ + idn/idn.c \ + spoofchecker/spoofchecker_class.c \ + spoofchecker/spoofchecker.c\ + spoofchecker/spoofchecker_create.c\ + spoofchecker/spoofchecker_main.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + case stdc++ in + c|c_r|pthread*) ;; + *) + LIBS="-lstdc++ $LIBS" + ;; + esac + + + php_cxx_done=yes + fi + + + ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=truednl + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + ac_success=no + + for alternative in ${ax_cxx_compile_alternatives}; do + for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do + cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 +$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } +if eval \${$cachevar+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_CXX="$CXX" + CXX="$CXX $switch" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +// If the compiler admits that it is not ready for C++11, why torture it? +// Hopefully, this will speed up the test. + +#ifndef __cplusplus + +#error "This is not a C++ compiler" + +#elif __cplusplus < 201103L + +#error "This is not a C++11 compiler" + +#else + +namespace cxx11 +{ + + namespace test_static_assert + { + + template + struct check + { + static_assert(sizeof(int) <= sizeof(T), "not big enough"); + }; + + } + + namespace test_final_override + { + + struct Base + { + virtual void f() {} + }; + + struct Derived : public Base + { + virtual void f() override {} + }; + + } + + namespace test_double_right_angle_brackets + { + + template < typename T > + struct check {}; + + typedef check single_type; + typedef check> double_type; + typedef check>> triple_type; + typedef check>>> quadruple_type; + + } + + namespace test_decltype + { + + int + f() + { + int a = 1; + decltype(a) b = 2; + return a + b; + } + + } + + namespace test_type_deduction + { + + template < typename T1, typename T2 > + struct is_same + { + static const bool value = false; + }; + + template < typename T > + struct is_same + { + static const bool value = true; + }; + + template < typename T1, typename T2 > + auto + add(T1 a1, T2 a2) -> decltype(a1 + a2) + { + return a1 + a2; + } + + int + test(const int c, volatile int v) + { + static_assert(is_same::value == true, ""); + static_assert(is_same::value == false, ""); + static_assert(is_same::value == false, ""); + auto ac = c; + auto av = v; + auto sumi = ac + av + 'x'; + auto sumf = ac + av + 1.0; + static_assert(is_same::value == true, ""); + static_assert(is_same::value == true, ""); + static_assert(is_same::value == true, ""); + static_assert(is_same::value == false, ""); + static_assert(is_same::value == true, ""); + return (sumf > 0.0) ? sumi : add(c, v); + } + + } + + namespace test_noexcept + { + + int f() { return 0; } + int g() noexcept { return 0; } + + static_assert(noexcept(f()) == false, ""); + static_assert(noexcept(g()) == true, ""); + + } + + namespace test_constexpr + { + + template < typename CharT > + unsigned long constexpr + strlen_c_r(const CharT *const s, const unsigned long acc) noexcept + { + return *s ? strlen_c_r(s + 1, acc + 1) : acc; + } + + template < typename CharT > + unsigned long constexpr + strlen_c(const CharT *const s) noexcept + { + return strlen_c_r(s, 0UL); + } + + static_assert(strlen_c("") == 0UL, ""); + static_assert(strlen_c("1") == 1UL, ""); + static_assert(strlen_c("example") == 7UL, ""); + static_assert(strlen_c("another\0example") == 7UL, ""); + + } + + namespace test_rvalue_references + { + + template < int N > + struct answer + { + static constexpr int value = N; + }; + + answer<1> f(int&) { return answer<1>(); } + answer<2> f(const int&) { return answer<2>(); } + answer<3> f(int&&) { return answer<3>(); } + + void + test() + { + int i = 0; + const int c = 0; + static_assert(decltype(f(i))::value == 1, ""); + static_assert(decltype(f(c))::value == 2, ""); + static_assert(decltype(f(0))::value == 3, ""); + } + + } + + namespace test_uniform_initialization + { + + struct test + { + static const int zero {}; + static const int one {1}; + }; + + static_assert(test::zero == 0, ""); + static_assert(test::one == 1, ""); + + } + + namespace test_lambdas + { + + void + test1() + { + auto lambda1 = [](){}; + auto lambda2 = lambda1; + lambda1(); + lambda2(); + } + + int + test2() + { + auto a = [](int i, int j){ return i + j; }(1, 2); + auto b = []() -> int { return '0'; }(); + auto c = [=](){ return a + b; }(); + auto d = [&](){ return c; }(); + auto e = [a, &b](int x) mutable { + const auto identity = [](int y){ return y; }; + for (auto i = 0; i < a; ++i) + a += b--; + return x + identity(a + b); + }(0); + return a + b + c + d + e; + } + + int + test3() + { + const auto nullary = [](){ return 0; }; + const auto unary = [](int x){ return x; }; + using nullary_t = decltype(nullary); + using unary_t = decltype(unary); + const auto higher1st = [](nullary_t f){ return f(); }; + const auto higher2nd = [unary](nullary_t f1){ + return [unary, f1](unary_t f2){ return f2(unary(f1())); }; + }; + return higher1st(nullary) + higher2nd(nullary)(unary); + } + + } + + namespace test_variadic_templates + { + + template + struct sum; + + template + struct sum + { + static constexpr auto value = N0 + sum::value; + }; + + template <> + struct sum<> + { + static constexpr auto value = 0; + }; + + static_assert(sum<>::value == 0, ""); + static_assert(sum<1>::value == 1, ""); + static_assert(sum<23>::value == 23, ""); + static_assert(sum<1, 2>::value == 3, ""); + static_assert(sum<5, 5, 11>::value == 21, ""); + static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); + + } + + // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae + // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function + // because of this. + namespace test_template_alias_sfinae + { + + struct foo {}; + + template + using member = typename T::member_type; + + template + void func(...) {} + + template + void func(member*) {} + + void test(); + + void test() { func(0); } + + } + +} // namespace cxx11 + +#endif // __cplusplus >= 201103L + + + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + eval $cachevar=yes +else + eval $cachevar=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CXX="$ac_save_CXX" +fi +eval ac_res=\$$cachevar + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + if eval test x\$$cachevar = xyes; then + eval PHP_INTL_STDCXX="$switch" + ac_success=yes + break + fi + done + if test x$ac_success = xyes; then + break + fi + done + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + if test x$ax_cxx_compile_cxx11_required = xtrue; then + if test x$ac_success = xno; then + as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 + fi + fi + if test x$ac_success = xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 +$as_echo "$as_me: No compiler with C++11 support was found" >&6;} + fi + + + PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS" + if test "$ext_shared" = "no"; then + + + case ext/intl in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_INTL_CXX_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; } +# Check whether --enable-json was given. +if test "${enable_json+set}" = set; then : + enableval=$enable_json; PHP_JSON=$enableval +else + + PHP_JSON=yes + test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_JSON in +shared,*) + PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'` + ;; +shared) + PHP_JSON=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_JSON" != "no"; then + +$as_echo "#define HAVE_JSON 1 " >>confdefs.h + + + + ext_builddir=ext/json + ext_srcdir=$abs_srcdir/ext/json + ext_dir=ext/json + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_JSON_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c \ + json_encoder.c \ + json_parser.tab.c \ + json_scanner.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_JSON 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_JSON_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in json.c \ + json_encoder.c \ + json_parser.tab.c \ + json_scanner.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD" + +fi + + + + + + + +php_with_ldap=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 +$as_echo_n "checking for LDAP support... " >&6; } + +# Check whether --with-ldap was given. +if test "${with_ldap+set}" = set; then : + withval=$with_ldap; PHP_LDAP=$withval +else + + PHP_LDAP=no + test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LDAP in +shared,*) + PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_LDAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_ldap_sasl=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP Cyrus SASL support" >&5 +$as_echo_n "checking whether to build with LDAP Cyrus SASL support... " >&6; } + +# Check whether --with-ldap-sasl was given. +if test "${with_ldap_sasl+set}" = set; then : + withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval +else + + PHP_LDAP_SASL=no + + +fi + + +ext_output=$PHP_LDAP_SASL +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LDAP" != "no"; then + + + ext_builddir=ext/ldap + ext_srcdir=$abs_srcdir/ext/ldap + ext_dir=ext/ldap + + ac_extra=`echo "-DLDAP_DEPRECATED=1 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_LDAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_LDAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_LDAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ldap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$i + elif test -f $i/sdk/include/ldap.h; then + LDAP_DIR=$i + LDAP_INCDIR=$i/sdk/include + LDAP_LIBDIR=$i + fi + fi + + done + else + + if test -f $PHP_LDAP/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/include + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + elif test -f $PHP_LDAP/ldap/public/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/ldap/public + LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + if test -f $OCISDKRPMINC/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$OCISDKRPMINC + LDAP_LIBDIR=$PHP_LDAP + elif test -f $PHP_LDAP/sdk/include/ldap.h; then + LDAP_DIR=$PHP_LDAP + LDAP_INCDIR=$PHP_LDAP/sdk/include + LDAP_LIBDIR=$PHP_LDAP + fi + fi + + fi + + if test -z "$LDAP_DIR"; then + as_fn_error $? "Cannot find ldap.h" "$LINENO" 5 + fi + + MACHINE_INCLUDES=$($CC -dumpmachine | $SED 's/-pc//') + + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case lber in + c|c_r|pthread*) ;; + *) + LIBS="-llber $LIBS" + ;; + esac + + + + + fi + + + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case ldap in + c|c_r|pthread*) ;; + *) + LIBS="-lldap $LIBS" + ;; + esac + + + + + fi + + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME; then + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD" + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$LDAP_LIBDIR"; then + + if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then + + if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_LIBDIR + else + + ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="-lclntsh $LIBS" + ;; + esac + + + + + fi + + + +$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h + + + else + as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 + fi + + + if test "$LDAP_INCDIR" != "/usr/include"; then + + if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$LDAP_INCDIR + else + + ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD" + + +$as_echo "#define HAVE_LDAP 1" >>confdefs.h + + + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LIBS="$LIBS $LDAP_SHARED_LIBADD" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 +$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } +if ${ac_cv_3arg_setrebindproc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +ldap_set_rebind_proc(0,0,0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_3arg_setrebindproc=yes +else + ac_cv_3arg_setrebindproc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 +$as_echo "$ac_cv_3arg_setrebindproc" >&6; } + if test "$ac_cv_3arg_setrebindproc" = yes; then + +$as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h + + fi + + for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s ldap_control_find ldap_parse_extended_result ldap_extended_operation ldap_extended_operation_s ldap_passwd ldap_whoami_s ldap_refresh_s +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + if test "$PHP_LDAP_SASL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsasl2" >&5 +$as_echo_n "checking for libsasl2... " >&6; } + +if test -n "$SASL_CFLAGS"; then + pkg_cv_SASL_CFLAGS="$SASL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SASL_CFLAGS=`$PKG_CONFIG --cflags "libsasl2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SASL_LIBS"; then + pkg_cv_SASL_LIBS="$SASL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SASL_LIBS=`$PKG_CONFIG --libs "libsasl2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SASL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsasl2" 2>&1` + else + SASL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsasl2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SASL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsasl2) were not met: + +$SASL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SASL_CFLAGS +and SASL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SASL_CFLAGS +and SASL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SASL_CFLAGS=$pkg_cv_SASL_CFLAGS + SASL_LIBS=$pkg_cv_SASL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $SASL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SASL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="$LDAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="$LDAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h + + fi + + ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" +if test "x$ac_cv_func_ldap_bind_s" = xyes; then : + +else + + as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 + +fi + + + CPPFLAGS=$_SAVE_CPPFLAGS + LIBS=$_SAVE_LIBS +fi + + + + + + + + + + + + + + + + + + + + + + + + +php_enable_mbstring=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 +$as_echo_n "checking whether to enable multibyte string support... " >&6; } +# Check whether --enable-mbstring was given. +if test "${enable_mbstring+set}" = set; then : + enableval=$enable_mbstring; PHP_MBSTRING=$enableval +else + + PHP_MBSTRING=no + test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MBSTRING in +shared,*) + PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'` + ;; +shared) + PHP_MBSTRING=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mbregex=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support (requires oniguruma)" >&5 +$as_echo_n "checking whether to enable multibyte regex support (requires oniguruma)... " >&6; } +# Check whether --enable-mbregex was given. +if test "${enable_mbregex+set}" = set; then : + enableval=$enable_mbregex; PHP_MBREGEX=$enableval +else + + PHP_MBREGEX=yes + + +fi + + +ext_output=$PHP_MBREGEX +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MBSTRING" != "no"; then + +$as_echo "#define HAVE_MBSTRING 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c" + + + if test "$PHP_MBREGEX" != "no"; then + + if test "$PHP_MBREGEX" = "yes"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oniguruma" >&5 +$as_echo_n "checking for oniguruma... " >&6; } + +if test -n "$ONIG_CFLAGS"; then + pkg_cv_ONIG_CFLAGS="$ONIG_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ONIG_CFLAGS=`$PKG_CONFIG --cflags "oniguruma" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ONIG_LIBS"; then + pkg_cv_ONIG_LIBS="$ONIG_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ONIG_LIBS=`$PKG_CONFIG --libs "oniguruma" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ONIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "oniguruma" 2>&1` + else + ONIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "oniguruma" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ONIG_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (oniguruma) were not met: + +$ONIG_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ONIG_CFLAGS +and ONIG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ONIG_CFLAGS +and ONIG_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ONIG_CFLAGS=$pkg_cv_ONIG_CFLAGS + ONIG_LIBS=$pkg_cv_ONIG_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ONIG_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="$MBSTRING_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="$MBSTRING_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $ONIG_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + save_old_LDFLAGS=$LDFLAGS + + for ac_i in $MBSTRING_SHARED_LIBADD; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 +$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +return (int)(ONIG_ENCODING_KOI8 + 1); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_old_LDFLAGS + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1" + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar" + + + +$as_echo "#define HAVE_MBREGEX 1" >>confdefs.h + + + + PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h" + + fi + + fi + + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters" + + + PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl" + + + PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl" + + + + PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES + libmbfl/filters/html_entities.c + libmbfl/filters/mbfilter_7bit.c + libmbfl/filters/mbfilter_ascii.c + libmbfl/filters/mbfilter_base64.c + libmbfl/filters/mbfilter_big5.c + libmbfl/filters/mbfilter_byte2.c + libmbfl/filters/mbfilter_byte4.c + libmbfl/filters/mbfilter_cp1251.c + libmbfl/filters/mbfilter_cp1252.c + libmbfl/filters/mbfilter_cp1254.c + libmbfl/filters/mbfilter_cp5022x.c + libmbfl/filters/mbfilter_cp51932.c + libmbfl/filters/mbfilter_cp850.c + libmbfl/filters/mbfilter_cp866.c + libmbfl/filters/mbfilter_cp932.c + libmbfl/filters/mbfilter_cp936.c + libmbfl/filters/mbfilter_gb18030.c + libmbfl/filters/mbfilter_euc_cn.c + libmbfl/filters/mbfilter_euc_jp.c + libmbfl/filters/mbfilter_euc_jp_2004.c + libmbfl/filters/mbfilter_euc_jp_win.c + libmbfl/filters/mbfilter_euc_kr.c + libmbfl/filters/mbfilter_euc_tw.c + libmbfl/filters/mbfilter_htmlent.c + libmbfl/filters/mbfilter_hz.c + libmbfl/filters/mbfilter_iso2022_jp_ms.c + libmbfl/filters/mbfilter_iso2022jp_2004.c + libmbfl/filters/mbfilter_iso2022jp_mobile.c + libmbfl/filters/mbfilter_iso2022_kr.c + libmbfl/filters/mbfilter_iso8859_1.c + libmbfl/filters/mbfilter_iso8859_10.c + libmbfl/filters/mbfilter_iso8859_13.c + libmbfl/filters/mbfilter_iso8859_14.c + libmbfl/filters/mbfilter_iso8859_15.c + libmbfl/filters/mbfilter_iso8859_16.c + libmbfl/filters/mbfilter_iso8859_2.c + libmbfl/filters/mbfilter_iso8859_3.c + libmbfl/filters/mbfilter_iso8859_4.c + libmbfl/filters/mbfilter_iso8859_5.c + libmbfl/filters/mbfilter_iso8859_6.c + libmbfl/filters/mbfilter_iso8859_7.c + libmbfl/filters/mbfilter_iso8859_8.c + libmbfl/filters/mbfilter_iso8859_9.c + libmbfl/filters/mbfilter_jis.c + libmbfl/filters/mbfilter_koi8r.c + libmbfl/filters/mbfilter_armscii8.c + libmbfl/filters/mbfilter_qprint.c + libmbfl/filters/mbfilter_sjis.c + libmbfl/filters/mbfilter_sjis_open.c + libmbfl/filters/mbfilter_sjis_mobile.c + libmbfl/filters/mbfilter_sjis_mac.c + libmbfl/filters/mbfilter_sjis_2004.c + libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c + libmbfl/filters/mbfilter_ucs2.c + libmbfl/filters/mbfilter_ucs4.c + libmbfl/filters/mbfilter_uhc.c + libmbfl/filters/mbfilter_utf16.c + libmbfl/filters/mbfilter_utf32.c + libmbfl/filters/mbfilter_utf7.c + libmbfl/filters/mbfilter_utf7imap.c + libmbfl/filters/mbfilter_utf8.c + libmbfl/filters/mbfilter_utf8_mobile.c + libmbfl/filters/mbfilter_uuencode.c + libmbfl/filters/mbfilter_koi8u.c + libmbfl/mbfl/mbfilter.c + libmbfl/mbfl/mbfilter_8bit.c + libmbfl/mbfl/mbfilter_pass.c + libmbfl/mbfl/mbfilter_wchar.c + libmbfl/mbfl/mbfl_convert.c + libmbfl/mbfl/mbfl_encoding.c + libmbfl/mbfl/mbfl_filter_output.c + libmbfl/mbfl/mbfl_ident.c + libmbfl/mbfl/mbfl_language.c + libmbfl/mbfl/mbfl_memory_device.c + libmbfl/mbfl/mbfl_string.c + libmbfl/mbfl/mbfl_allocators.c + libmbfl/nls/nls_de.c + libmbfl/nls/nls_en.c + libmbfl/nls/nls_ja.c + libmbfl/nls/nls_kr.c + libmbfl/nls/nls_neutral.c + libmbfl/nls/nls_ru.c + libmbfl/nls/nls_uni.c + libmbfl/nls/nls_zh.c + libmbfl/nls/nls_hy.c + libmbfl/nls/nls_tr.c + libmbfl/nls/nls_ua.c + " + + + PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H" + + + PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h" + + + + + ext_builddir=ext/mbstring + ext_srcdir=$abs_srcdir/ext/mbstring + ext_dir=ext/mbstring + + ac_extra=`echo "$PHP_MBSTRING_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MBSTRING_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MBSTRING 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MBSTRING_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_MBSTRING_BASE_SOURCES $PHP_MBSTRING_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$ext_srcdir/$dir + else + + ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$ext_builddir/$dir" != "/usr/include"; then + + if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then + ai_p=$ext_builddir/$dir + else + + ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + done + + out="php_config.h" + + if test "$ext_shared" != "no" && test -f "$ext_builddir/config.h.in"; then + out="$abs_builddir/config.h" + fi + + cat > $ext_builddir/libmbfl/config.h <&5 +$as_echo_n "checking for MySQLi support... " >&6; } + +# Check whether --with-mysqli was given. +if test "${with_mysqli+set}" = set; then : + withval=$with_mysqli; PHP_MYSQLI=$withval +else + + PHP_MYSQLI=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLI in +shared,*) + PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mysql_sock=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 +$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; } + +# Check whether --with-mysql-sock was given. +if test "${with_mysql_sock+set}" = set; then : + withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval +else + + PHP_MYSQL_SOCK=no + + +fi + + +ext_output=$PHP_MYSQL_SOCK +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +elif test "$PHP_MYSQLI" != "no"; then + + MYSQL_CONFIG=$PHP_MYSQLI + + MYSQL_LIB_NAME='mysqlclient' + if test "$enable_maintainer_zts" = "yes"; then + MYSQL_LIB_CFG='--libs_r' + MYSQL_LIB_NAME='mysqlclient_r' + else + MYSQL_LIB_CFG='--libs' + fi + + if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then + MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"` + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5 +$as_echo "mysql_config not found" >&6; } + as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_server_option (); +int +main () +{ +return mysql_set_server_option (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $MYSQLI_INCLINE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $MYSQLI_LIBLINE; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$MYSQLI_LIBLINE" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_set_character_set (); +int +main () +{ +return mysql_set_character_set (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set + + as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 + + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option + + as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 + + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $MYSQLI_LIBLINE + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5 +$as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$MYSQL_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_stmt_next_result (); +int +main () +{ +return mysql_stmt_next_result (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result + + + +fi + +fi + +if test "$PHP_MYSQLI" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ + mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \ + mysqli_exception.c mysqli_result_iterator.c" + + ext_builddir=ext/mysqli + ext_srcdir=$abs_srcdir/ext/mysqli + ext_dir=ext/mysqli + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqli_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + for header_file in ext/mysqli/mysqli_mysqlnd.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + else + + + for header_file in ext/mysqli/mysqli_libmysql.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + fi +fi + + + + +if test -z "$SED"; then + PHP_OCI8_SED="sed"; +else + PHP_OCI8_SED="$SED"; +fi + +PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null` +if test "$PHP_OCI8_TAIL1" = "a"; then + PHP_OCI8_TAIL1="tail -n1" +else + PHP_OCI8_TAIL1="tail -1" +fi + + + + + + + + + + +php_with_oci8=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 +$as_echo_n "checking for Oracle Database OCI8 support... " >&6; } + +# Check whether --with-oci8 was given. +if test "${with_oci8+set}" = set; then : + withval=$with_oci8; PHP_OCI8=$withval +else + + PHP_OCI8=no + test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OCI8 in +shared,*) + PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'` + ;; +shared) + PHP_OCI8=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OCI8" != "no"; then + + if test -z "$PHP_OCI8"; then + as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 +$as_echo_n "checking PHP version... " >&6; } + + tmp_version=$PHP_VERSION + if test -z "$tmp_version"; then + if test -z "$PHP_CONFIG"; then + as_fn_error $? "php-config not found" "$LINENO" 5 + fi + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + else + php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` + fi + + if test -z "$php_version"; then + as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5 + fi + + ac_IFS=$IFS + IFS="." + set $php_version + IFS=$ac_IFS + oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3` + + if test "$oci8_php_version" -lt "5002000"; then + as_fn_error $? "You need at least PHP 5.2.0 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 +$as_echo "$php_version, ok" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 DTrace support" >&5 +$as_echo_n "checking OCI8 DTrace support... " >&6; } + oci8_do_dtrace="`echo $PHP_OCI8 | cut -d, -f3`" + if test "$PHP_DTRACE" = "yes" -o "$oci8_do_dtrace" = "dtrace" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + if test "$ext_shared" = "no"; then + as_fn_error $? "For DTrace support OCI8 must be configured as a shared extension" "$LINENO" 5 + else + for ac_header in sys/sdt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SDT_H 1 +_ACEOF + + + ac_srcdir=$abs_srcdir/ext/oci8/ + ac_bdir=ext/oci8/ + + ac_provsrc=oci8_dtrace.d + + ac_hdrobj=oci8_dtrace_gen.h + + old_IFS=$IFS + for ac_src in oci8.c oci8_statement.c; do + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + OCI8_DTRACE_OBJS="$OCI8_DTRACE_OBJS $ac_bdir$ac_obj.lo" + done; + + for ac_lo in $OCI8_DTRACE_OBJS; do + dtrace_oci8_objs="$dtrace_oci8_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + + cat>>Makefile.objects< \$@ + +\$(OCI8_DTRACE_OBJS): $ac_bdir$ac_hdrobj + +EOF + + case $host_alias in + *solaris*|*linux*) + dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o" + dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs" + dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o" + dtrace_nolib_objs='$(OCI8_DTRACE_OBJS:.lo=.o)' + for ac_lo in $OCI8_DTRACE_OBJS; do + dtrace_oci8_lib_objs="$dtrace_oci8_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`" + done; + + cat>>Makefile.objects< \$@ + @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $ac_srcdir$ac_provsrc $dtrace_oci8_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\ + echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "pic_object='none'" >> \$@ ;\\ + fi + if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $ac_srcdir$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\ + echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\ + else \\ + echo "non_pic_object='none'" >> \$@ ;\\ + fi + +EOF + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&2;} +cat>>Makefile.objects<>confdefs.h + + shared_objects_oci8="$shared_objects_oci8 ext/oci8/oci8_dtrace.d.lo" + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PHP_OCI8_OH_LIBDIR=lib32 + PHP_OCI8_IC_LIBDIR_SUFFIX="" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PHP_OCI8_OH_LIBDIR=lib + PHP_OCI8_IC_LIBDIR_SUFFIX=64 + +fi + + + PHP_OCI8_INSTANT_CLIENT="no" + + if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 +$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} + PHP_OCI8=instantclient + fi + + if test "`echo $PHP_OCI8`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="yes" + elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then + PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`" + PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`" + if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then + PHP_OCI8_INSTANT_CLIENT="yes" + fi + if test -z "$PHP_OCI8"; then + PHP_OCI8=yes + fi + fi + + if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 +$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; } + + if test "$PHP_OCI8" = "yes"; then + OCI8_DIR=$ORACLE_HOME + else + OCI8_DIR=$PHP_OCI8 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 +$as_echo "$OCI8_DIR" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 +$as_echo_n "checking ORACLE_HOME library validity... " >&6; } + if test ! -d "$OCI8_DIR"; then + as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 + fi + if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib + elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=lib32 + elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then + OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR + else + if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then + as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 + else + as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 +$as_echo "$OCI8_LIB_DIR" >&6; } + + + if test -d "$OCI8_DIR/rdbms/public"; then + + if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/public + else + + ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" + fi + if test -d "$OCI8_DIR/rdbms/demo"; then + + if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/rdbms/demo + else + + ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" + fi + if test -d "$OCI8_DIR/network/public"; then + + if test "$OCI8_DIR/network/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/network/public + else + + ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" + fi + if test -d "$OCI8_DIR/plsql/public"; then + + if test "$OCI8_DIR/plsql/public" != "/usr/include"; then + + if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/plsql/public + else + + ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" + fi + + if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then + + for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 +$as_echo_n "checking Oracle library version compatibility... " >&6; } + OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3 + elif test -f "$OCI8_LCS"; then + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $OCI8_LCS_BASE.9.0; then + OCI8_ORACLE_VERSION=9.0 + elif test -f $OCI8_LCS_BASE.8.0; then + OCI8_ORACLE_VERSION=8.1 + elif test -f $OCI8_LCS_BASE.1.0; then + OCI8_ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then + if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then + OCI8_ORACLE_VERSION=8.0 + else + OCI8_ORACLE_VERSION=8.1 + fi + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + case $OCI8_ORACLE_VERSION in + 7.3|8.0|8.1|9.0) + as_fn_error $? "Oracle client libraries < 10 are not supported" "$LINENO" 5 + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then + + if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$OCI8_DIR/$OCI8_LIB_DIR + else + + ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + ext_dir=ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_DIR "$OCI8_DIR" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD" +_ACEOF + + + else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 +$as_echo_n "checking Oracle Instant Client directory... " >&6; } + + if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then + PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` + if test -z "$PHP_OCI8_INSTANT_CLIENT"; then + as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 +$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; } + + OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 +$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; } + + OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` + + OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include + + OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'` + + if test -f "$OCISDKRPMINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKRPMINC + elif test -f "$OCISDKZIPINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKZIPINC + elif test -f "$OCISDKMANINC/oci.h"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + OCI8INCDIR=$OCISDKMANINC + else + as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5 + fi + + OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` + if test -f "$OCISYSLIBLIST"; then + + for ac_i in `cat $OCISYSLIBLIST`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 +$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; } + OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME + OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` + OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` + if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then + if test ! -f "$OCI8_LCS_BASE"; then + as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 + fi + OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + else + as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +$as_echo "$OCI8_ORACLE_VERSION" >&6; } + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then + + if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then + ai_p=$PHP_OCI8_INSTANT_CLIENT + else + + ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"` + fi + + + if test "$ext_shared" = "yes"; then + OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + +$as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h + + + + ext_builddir=ext/oci8 + ext_srcdir=$abs_srcdir/ext/oci8 + ext_dir=ext/oci8 + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_OCI8_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OCI8 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_OCI8_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION" + + + + + fi +fi + + + + + + + + + + + + + + + + +php_with_odbcver=0x0350 + + + +# Check whether --with-odbcver was given. +if test "${with_odbcver+set}" = set; then : + withval=$with_odbcver; PHP_ODBCVER=$withval +else + + PHP_ODBCVER=0x0350 + test "$PHP_ENABLE_ALL" && PHP_ODBCVER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ODBCVER in +shared,*) + PHP_ODBCVER=`echo "$PHP_ODBCVER"|$SED 's/^shared,//'` + ;; +shared) + PHP_ODBCVER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + +if test -z "$ODBC_TYPE"; then + +php_with_adabas=no + + + +# Check whether --with-adabas was given. +if test "${with_adabas+set}" = set; then : + withval=$with_adabas; PHP_ADABAS=$withval +else + + PHP_ADABAS=no + test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ADABAS in +shared,*) + PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'` + ;; +shared) + PHP_ADABAS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 +$as_echo_n "checking for Adabas support... " >&6; } + if test "$PHP_ADABAS" != "no"; then + if test "$PHP_ADABAS" = "yes"; then + PHP_ADABAS=/usr/local + fi + + if test "$PHP_ADABAS/incl" != "/usr/include"; then + + if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/incl + else + + ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ADABAS/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a" + ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a" + $srcdir/build/shtool mkdir -f -p ext/odbc + rm -f "$ODBC_LIB" + cp "$ODBC_OBJS" "$ODBC_LIB" + + + case sqlptc in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlptc $LIBS" + ;; + esac + + + + + case sqlrte in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlrte $LIBS" + ;; + esac + + + + + if test -n "$abs_builddir/ext/odbc"; then + + if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then + + if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then + ai_p=$abs_builddir/ext/odbc + else + + ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case odbc_adabas in + c|c_r|pthread*) ;; + *) + LIBS="-lodbc_adabas $LIBS" + ;; + esac + + + + + ODBC_TYPE=adabas + ODBC_INCDIR=$PHP_ADABAS/incl + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + +$as_echo "#define HAVE_ADABAS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_sapdb=no + + + +# Check whether --with-sapdb was given. +if test "${with_sapdb+set}" = set; then : + withval=$with_sapdb; PHP_SAPDB=$withval +else + + PHP_SAPDB=no + test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SAPDB in +shared,*) + PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'` + ;; +shared) + PHP_SAPDB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 +$as_echo_n "checking for SAP DB support... " >&6; } + if test "$PHP_SAPDB" != "no"; then + if test "$PHP_SAPDB" = "yes"; then + PHP_SAPDB=/usr/local + fi + + if test "$PHP_SAPDB/incl" != "/usr/include"; then + + if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/incl + else + + ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_SAPDB/$PHP_LIBDIR + else + + ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + + + case sqlod in + c|c_r|pthread*) ;; + *) + LIBS="-lsqlod $LIBS" + ;; + esac + + + ODBC_TYPE=sapdb + +$as_echo "#define HAVE_SAPDB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_solid=no + + + +# Check whether --with-solid was given. +if test "${with_solid+set}" = set; then : + withval=$with_solid; PHP_SOLID=$withval +else + + PHP_SOLID=no + test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOLID in +shared,*) + PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOLID=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 +$as_echo_n "checking for Solid support... " >&6; } + if test "$PHP_SOLID" != "no"; then + if test "$PHP_SOLID" = "yes"; then + PHP_SOLID=/usr/local/solid + fi + ODBC_INCDIR=$PHP_SOLID/include + ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_TYPE=solid + if test -f $ODBC_LIBDIR/soc*35.a; then + +$as_echo "#define HAVE_SOLID_35 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*30.a; then + +$as_echo "#define HAVE_SOLID_30 1" >>confdefs.h + + elif test -f $ODBC_LIBDIR/scl*23.a; then + +$as_echo "#define HAVE_SOLID 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 +$as_echo_n "checking Solid library file... " >&6; } + ac_solid_uname_r=`uname -r 2>/dev/null` + ac_solid_uname_s=`uname -s 2>/dev/null` + case $ac_solid_uname_s in + AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only + HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10 + IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only + Linux) + if ldd -v /bin/sh | grep GLIBC > /dev/null; then + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=l2x + else + +$as_echo "#define SS_LINUX 1" >>confdefs.h + + ac_solid_os=lux + fi;; + SunOS) + ac_solid_os=ssx;; # should we deal with SunOS 4? + FreeBSD) + if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fex + else + +$as_echo "#define SS_FBX 1" >>confdefs.h + + ac_solid_os=fbx + fi;; + esac + + if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then + ac_solid_version=35 + ac_solid_prefix=soc + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then + ac_solid_version=30 + ac_solid_prefix=scl + elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then + ac_solid_version=23 + ac_solid_prefix=scl + fi + +if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \ + ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then + echo "" + echo "*********************************************************************" + echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* Please correct this by creating the following links and reconfiguring:" + echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a" + echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so" + echo "*********************************************************************" +else + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_ibm_db2=no + + + +# Check whether --with-ibm-db2 was given. +if test "${with_ibm_db2+set}" = set; then : + withval=$with_ibm_db2; PHP_IBM_DB2=$withval +else + + PHP_IBM_DB2=no + test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IBM_DB2 in +shared,*) + PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'` + ;; +shared) + PHP_IBM_DB2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 +$as_echo_n "checking for IBM DB2 support... " >&6; } + if test "$PHP_IBM_DB2" != "no"; then + if test "$PHP_IBM_DB2" = "yes"; then + ODBC_INCDIR=/home/db2inst1/sqllib/include + ODBC_LIBDIR=/home/db2inst1/sqllib/lib + else + ODBC_INCDIR=$PHP_IBM_DB2/include + ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR + fi + + +if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 +fi + + + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=ibm-db2 + ODBC_LIBS=-ldb2 + + + old_LIBS=$LIBS + LIBS=" + $ODBC_LFLAGS $ODBC_LIBS + $LIBS" + if test "$cross_compiling" = yes; then : + + LIBS=$old_LIBS + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + char SQLExecute(); + int main() { + SQLExecute(); + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBS=$old_LIBS + + +$as_echo "#define HAVE_IBMDB2 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + +else + + LIBS=$old_LIBS + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? " +build test failed. Please check the config.log for details. +You need to source your DB2 environment before running PHP configure: +# . \$IBM_DB2/db2profile +" "$LINENO" 5 + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress=no + + + +# Check whether --with-empress was given. +if test "${with_empress+set}" = set; then : + withval=$with_empress; PHP_EMPRESS=$withval +else + + PHP_EMPRESS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS in +shared,*) + PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 +$as_echo_n "checking for Empress support... " >&6; } + if test "$PHP_EMPRESS" != "no"; then + if test "$PHP_EMPRESS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS/shlib + fi + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_TYPE=empress + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 +$as_echo_n "checking Empress library file... " >&6; } + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + if test ! -f $ODBC_LIBS; then + ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_empress_bcs=no + + + +# Check whether --with-empress-bcs was given. +if test "${with_empress_bcs+set}" = set; then : + withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval +else + + PHP_EMPRESS_BCS=no + test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_EMPRESS_BCS in +shared,*) + PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'` + ;; +shared) + PHP_EMPRESS_BCS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 +$as_echo_n "checking for Empress local access support... " >&6; } + if test "$PHP_EMPRESS_BCS" != "no"; then + if test "$PHP_EMPRESS_BCS" = "yes"; then + ODBC_INCDIR=$EMPRESSPATH/include/odbc + ODBC_LIBDIR=$EMPRESSPATH/shlib + else + ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc + ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib + fi + CC="empocc -bcs";export CC; + LD="empocc -bcs";export LD; + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + LIST=`empocc -listlines -bcs -o a a.c` + + NEWLIST= + for I in $LIST + do + case $I in + $EMPRESSPATH/odbccl/lib/* | \ + $EMPRESSPATH/rdbms/lib/* | \ + $EMPRESSPATH/common/lib/*) + NEWLIST="$NEWLIST $I" + ;; + esac + done + ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" + ODBC_TYPE=empress-bcs + +$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 +$as_echo_n "checking Empress local access library file... " >&6; } + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + if test ! -f $ODBCBCS_LIBS; then + ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 +$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_custom_odbc=no + + + +# Check whether --with-custom-odbc was given. +if test "${with_custom_odbc+set}" = set; then : + withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval +else + + PHP_CUSTOM_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_CUSTOM_ODBC in +shared,*) + PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_CUSTOM_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 +$as_echo_n "checking for a custom ODBC support... " >&6; } + if test "$PHP_CUSTOM_ODBC" != "no"; then + if test "$PHP_CUSTOM_ODBC" = "yes"; then + PHP_CUSTOM_ODBC=/usr/local + fi + ODBC_INCDIR=$PHP_CUSTOM_ODBC/include + ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=$CUSTOM_ODBC_LIBS + ODBC_TYPE=custom-odbc + +$as_echo "#define HAVE_CODBC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_iodbc=no + + + +# Check whether --with-iodbc was given. +if test "${with_iodbc+set}" = set; then : + withval=$with_iodbc; PHP_IODBC=$withval +else + + PHP_IODBC=no + test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_IODBC in +shared,*) + PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_IODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with iODBC support" >&5 +$as_echo_n "checking whether to build with iODBC support... " >&6; } + if test "$PHP_IODBC" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiodbc" >&5 +$as_echo_n "checking for libiodbc... " >&6; } + +if test -n "$ODBC_CFLAGS"; then + pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "libiodbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ODBC_LIBS"; then + pkg_cv_ODBC_LIBS="$ODBC_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "libiodbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ODBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libiodbc" 2>&1` + else + ODBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libiodbc" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ODBC_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libiodbc) were not met: + +$ODBC_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS + ODBC_LIBS=$pkg_cv_ODBC_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ODBC_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + ODBC_TYPE=iodbc + +$as_echo "#define HAVE_IODBC 1" >>confdefs.h + + +$as_echo "#define HAVE_ODBC2 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_esoob=no + + + +# Check whether --with-esoob was given. +if test "${with_esoob+set}" = set; then : + withval=$with_esoob; PHP_ESOOB=$withval +else + + PHP_ESOOB=no + test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ESOOB in +shared,*) + PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'` + ;; +shared) + PHP_ESOOB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 +$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } + if test "$PHP_ESOOB" != "no"; then + if test "$PHP_ESOOB" = "yes"; then + PHP_ESOOB=/usr/local/easysoft/oob/client + fi + ODBC_INCDIR=$PHP_ESOOB/include + ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=-lesoobclient + ODBC_TYPE=esoob + +$as_echo "#define HAVE_ESOOB 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_unixodbc=no + + + +# Check whether --with-unixODBC was given. +if test "${with_unixODBC+set}" = set; then : + withval=$with_unixODBC; PHP_UNIXODBC=$withval +else + + PHP_UNIXODBC=no + test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_UNIXODBC in +shared,*) + PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_UNIXODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with unixODBC support" >&5 +$as_echo_n "checking whether to build with unixODBC support... " >&6; } + if test "$PHP_UNIXODBC" != "no"; then + if test "$PHP_UNIXODBC" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from pkgconfig" >&5 +$as_echo "yes from pkgconfig" >&6; } + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc" >&5 +$as_echo_n "checking for odbc... " >&6; } + +if test -n "$ODBC_CFLAGS"; then + pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "odbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$ODBC_LIBS"; then + pkg_cv_ODBC_LIBS="$ODBC_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "odbc" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + ODBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "odbc" 2>&1` + else + ODBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "odbc" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$ODBC_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (odbc) were not met: + +$ODBC_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables ODBC_CFLAGS +and ODBC_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS + ODBC_LIBS=$pkg_cv_ODBC_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $ODBC_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + else + ODBC_INCDIR=$PHP_UNIXODBC/include + ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LIBS=-lodbc + +if ! test -f "$ODBC_INCDIR/sqlext.h"; then + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes in $PHP_UNIXODBC" >&5 +$as_echo "yes in $PHP_UNIXODBC" >&6; } + fi + ODBC_TYPE=unixODBC + +$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test -z "$ODBC_TYPE"; then + +php_with_dbmaker=no + + + +# Check whether --with-dbmaker was given. +if test "${with_dbmaker+set}" = set; then : + withval=$with_dbmaker; PHP_DBMAKER=$withval +else + + PHP_DBMAKER=no + test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_DBMAKER in +shared,*) + PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'` + ;; +shared) + PHP_DBMAKER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 +$as_echo_n "checking for DBMaker support... " >&6; } + if test "$PHP_DBMAKER" != "no"; then + if test "$PHP_DBMAKER" = "yes"; then + DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` + + DBMAKER_VERSION=5.0 + + while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do + DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'` + MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'` + MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'` + DBMAKER_VERSION=$MAJOR_V.$MINOR_V + done + + if test "$DBMAKER_VERSION" = "2.9"; then + PHP_DBMAKER=$DBMAKER_HOME + else + PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION + fi + fi + + ODBC_INCDIR=$PHP_DBMAKER/include + ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR + ODBC_CFLAGS=-I$ODBC_INCDIR + ODBC_LFLAGS=-L$ODBC_LIBDIR + ODBC_LIBS="-ldmapic -lc" + ODBC_TYPE=dbmaker + + +$as_echo "#define HAVE_DBMAKER 1" >>confdefs.h + + + if test "$ext_shared" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 +$as_echo "yes (shared)" >&6; } + ODBC_LIBS="-ldmapic -lc -lm" + ODBC_SHARED="odbc.la" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 +$as_echo "yes (static)" >&6; } + + + if test -n "$ODBC_LIBDIR"; then + + if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then + + if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_LIBDIR + else + + ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dmapic in + c|c_r|pthread*) ;; + *) + LIBS="-ldmapic $LIBS" + ;; + esac + + + + + + if test "$ODBC_INCDIR" != "/usr/include"; then + + if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$ODBC_INCDIR + else + + ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ODBC_STATIC="libphpext_odbc.la" + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi +fi + +if test "no" != "$PHP_ODBCVER"; then + if test "$PHP_ODBCVER" != "0"; then + +cat >>confdefs.h <<_ACEOF +#define ODBCVER $PHP_ODBCVER +_ACEOF + + fi +else + +$as_echo "#define ODBCVER 0x0300" >>confdefs.h + +fi + +if test -n "$ODBC_TYPE"; then + if test "$ODBC_TYPE" != "dbmaker"; then + + for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + if test "$ODBC_TYPE" != "solid"; then + +$as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h + + fi + fi + + +$as_echo "#define HAVE_UODBC 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE" + + + + + + ext_builddir=ext/odbc + ext_srcdir=$abs_srcdir/ext/odbc + ext_dir=ext/odbc + + ac_extra=`echo "$ODBC_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ODBC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_odbc.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for any ODBC driver support... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +php_enable_opcache=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend OPcache support" >&5 +$as_echo_n "checking whether to enable Zend OPcache support... " >&6; } +# Check whether --enable-opcache was given. +if test "${enable_opcache+set}" = set; then : + enableval=$enable_opcache; PHP_OPCACHE=$enableval +else + + PHP_OPCACHE=yes + test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_OPCACHE in +shared,*) + PHP_OPCACHE=`echo "$PHP_OPCACHE"|$SED 's/^shared,//'` + ;; +shared) + PHP_OPCACHE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_huge_code_pages=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable copying PHP CODE pages into HUGE PAGES" >&5 +$as_echo_n "checking whether to enable copying PHP CODE pages into HUGE PAGES... " >&6; } +# Check whether --enable-huge-code-pages was given. +if test "${enable_huge_code_pages+set}" = set; then : + enableval=$enable_huge_code_pages; PHP_HUGE_CODE_PAGES=$enableval +else + + PHP_HUGE_CODE_PAGES=yes + + +fi + + +ext_output=$PHP_HUGE_CODE_PAGES +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_OPCACHE" != "no"; then + + ext_shared=yes + + if test "$PHP_HUGE_CODE_PAGES" = "yes"; then + +$as_echo "#define HAVE_HUGE_CODE_PAGES 1" >>confdefs.h + + fi + + for ac_func in mprotect +do : + ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" +if test "x$ac_cv_func_mprotect" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MPROTECT 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 +$as_echo_n "checking for sysvipc shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include + +int main() { + pid_t pid; + int status; + int ipc_id; + char *shm; + struct shmid_ds shmbuf; + + ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W)); + if (ipc_id == -1) { + return 1; + } + + shm = shmat(ipc_id, NULL, 0); + if (shm == (void *)-1) { + shmctl(ipc_id, IPC_RMID, NULL); + return 2; + } + + if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 3; + } + + shmbuf.shm_perm.uid = getuid(); + shmbuf.shm_perm.gid = getgid(); + shmbuf.shm_perm.mode = 0600; + + if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) { + shmdt(shm); + shmctl(ipc_id, IPC_RMID, NULL); + return 4; + } + + shmctl(ipc_id, IPC_RMID, NULL); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 +$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + msg=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + +#ifndef MAP_ANON +# ifdef MAP_ANONYMOUS +# define MAP_ANON MAP_ANONYMOUS +# endif +#endif +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + char *shm; + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + if (shm == MAP_FAILED) { + return 1; + } + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h + + msg=yes +else + msg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } + + + + unset ac_cv_lib_rt_shm_open + unset ac_cv_lib_rt___shm_open + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 +$as_echo_n "checking for shm_open in -lrt... " >&6; } +if ${ac_cv_lib_rt_shm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shm_open (); +int +main () +{ +return shm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_shm_open=yes +else + ac_cv_lib_rt_shm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 +$as_echo "$ac_cv_lib_rt_shm_open" >&6; } +if test "x$ac_cv_lib_rt_shm_open" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lrt" >&5 +$as_echo_n "checking for __shm_open in -lrt... " >&6; } +if ${ac_cv_lib_rt___shm_open+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __shm_open (); +int +main () +{ +return __shm_open (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt___shm_open=yes +else + ac_cv_lib_rt___shm_open=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___shm_open" >&5 +$as_echo "$ac_cv_lib_rt___shm_open" >&6; } +if test "x$ac_cv_lib_rt___shm_open" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lrt" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="-lrt $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRT 1" >>confdefs.h + + ac_cv_func_shm_open=yes + else + + : + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 +$as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef MAP_FAILED +# define MAP_FAILED ((void*)-1) +#endif + +int main() { + pid_t pid; + int status; + int fd; + char *shm; + char tmpname[4096]; + + sprintf(tmpname,"/opcache.test.shm.%dXXXXXX", getpid()); + if (mktemp(tmpname) == NULL) { + return 1; + } + fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + if (fd == -1) { + return 2; + } + if (ftruncate(fd, 4096) < 0) { + close(fd); + shm_unlink(tmpname); + return 3; + } + + shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (shm == MAP_FAILED) { + return 4; + } + shm_unlink(tmpname); + close(fd); + + strcpy(shm, "hello"); + + pid = fork(); + if (pid < 0) { + return 5; + } else if (pid == 0) { + strcpy(shm, "bye"); + return 6; + } + if (wait(&status) != pid) { + return 7; + } + if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) { + return 8; + } + if (strcmp(shm, "bye") != 0) { + return 9; + } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_unlink in -lrt" >&5 +$as_echo_n "checking for shm_unlink in -lrt... " >&6; } +if ${ac_cv_lib_rt_shm_unlink+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shm_unlink (); +int +main () +{ +return shm_unlink (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_shm_unlink=yes +else + ac_cv_lib_rt_shm_unlink=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_unlink" >&5 +$as_echo "$ac_cv_lib_rt_shm_unlink" >&6; } +if test "x$ac_cv_lib_rt_shm_unlink" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + case rt in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + OPCACHE_SHARED_LIBADD="$OPCACHE_SHARED_LIBADD -lrt" + else + + + case rt in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lrt" + ;; + esac + + + fi + ;; + esac + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_rt_shm_unlink + + +fi + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + + ext_builddir=ext/opcache + ext_srcdir=$abs_srcdir/ext/opcache + ext_dir=ext/opcache + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "shared" != "shared" && test "shared" != "yes" && test "" != "cli"; then + PHP_OPCACHE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_file_cache.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c \ + Optimizer/pass1_5.c \ + Optimizer/pass2.c \ + Optimizer/pass3.c \ + Optimizer/optimize_func_calls.c \ + Optimizer/block_pass.c \ + Optimizer/optimize_temp_vars_5.c \ + Optimizer/nop_removal.c \ + Optimizer/compact_literals.c \ + Optimizer/zend_cfg.c \ + Optimizer/zend_dfg.c \ + Optimizer/dfa_pass.c \ + Optimizer/zend_ssa.c \ + Optimizer/zend_inference.c \ + Optimizer/zend_func_info.c \ + Optimizer/zend_call_graph.c \ + Optimizer/sccp.c \ + Optimizer/scdf.c \ + Optimizer/dce.c \ + Optimizer/escape_analysis.c \ + Optimizer/compact_vars.c \ + Optimizer/zend_dump.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_OPCACHE 1 +_ACEOF + + fi + fi + + if test "shared" != "shared" && test "shared" != "yes" && test "" = "cli"; then + PHP_OPCACHE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in ZendAccelerator.c \ + zend_accelerator_blacklist.c \ + zend_accelerator_debug.c \ + zend_accelerator_hash.c \ + zend_accelerator_module.c \ + zend_persist.c \ + zend_persist_calc.c \ + zend_file_cache.c \ + zend_shared_alloc.c \ + zend_accelerator_util_funcs.c \ + shared_alloc_shm.c \ + shared_alloc_mmap.c \ + shared_alloc_posix.c \ + Optimizer/zend_optimizer.c \ + Optimizer/pass1_5.c \ + Optimizer/pass2.c \ + Optimizer/pass3.c \ + Optimizer/optimize_func_calls.c \ + Optimizer/block_pass.c \ + Optimizer/optimize_temp_vars_5.c \ + Optimizer/nop_removal.c \ + Optimizer/compact_literals.c \ + Optimizer/zend_cfg.c \ + Optimizer/zend_dfg.c \ + Optimizer/dfa_pass.c \ + Optimizer/zend_ssa.c \ + Optimizer/zend_inference.c \ + Optimizer/zend_func_info.c \ + Optimizer/zend_call_graph.c \ + Optimizer/sccp.c \ + Optimizer/scdf.c \ + Optimizer/dce.c \ + Optimizer/escape_analysis.c \ + Optimizer/compact_vars.c \ + Optimizer/zend_dump.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable pcntl support... " >&6; } +# Check whether --enable-pcntl was given. +if test "${enable_pcntl+set}" = set; then : + enableval=$enable_pcntl; PHP_PCNTL=$enableval +else + + PHP_PCNTL=no + test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PCNTL in +shared,*) + PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PCNTL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PCNTL" != "no"; then + for ac_func in fork +do : + ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" +if test "x$ac_cv_func_fork" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FORK 1 +_ACEOF + +else + as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in waitpid +do : + ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" +if test "x$ac_cv_func_waitpid" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITPID 1 +_ACEOF + +else + as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +else + as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 +fi +done + + for ac_func in getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 +$as_echo_n "checking for siginfo_t... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifdef HAVE_SIGINFO_H + #include + #endif + +int +main () +{ + + siginfo_t info; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + ext_builddir=ext/pcntl + ext_srcdir=$abs_srcdir/ext/pcntl + ext_dir=ext/pcntl + + ac_extra=`echo "$PCNTL_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_PCNTL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PCNTL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_PCNTL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pcntl.c php_signal.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PDO support... " >&6; } +# Check whether --enable-pdo was given. +if test "${enable_pdo+set}" = set; then : + enableval=$enable_pdo; PHP_PDO=$enableval +else + + PHP_PDO=yes + test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO in +shared,*) + PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO" != "no"; then + + PHP_PDO=yes + + + ext_builddir=ext/pdo + ext_srcdir=$abs_srcdir/ext/pdo + ext_dir=ext/pdo + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_with_pdo_dblib=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 +$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; } + +# Check whether --with-pdo-dblib was given. +if test "${with_pdo_dblib+set}" = set; then : + withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval +else + + PHP_PDO_DBLIB=no + test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_DBLIB in +shared,*) + PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_DBLIB=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_DBLIB" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_DBLIB" = "yes"; then + + for i in /usr/local /usr; do + if test -f $i/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include + break + elif test -f $i/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$i + PDO_FREETDS_INCLUDE_DIR=$i/include/freetds + break; + fi + done + + if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + fi + + elif test "$PHP_PDO_DBLIB" != "no"; then + + if test -f $PHP_PDO_DBLIB/include/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include + elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then + PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB + PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds + else + as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 + fi + fi + + if test "x$PHP_LIBDIR" = "x" ; then + PHP_LIBDIR=lib + fi + + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + fi + + + if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then + + if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INCLUDE_DIR + else + + ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD" + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then + + if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case sybdb in + c|c_r|pthread*) ;; + *) + LIBS="-lsybdb $LIBS" + ;; + esac + + + + + fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\"" + + ext_builddir=ext/pdo_dblib + ext_srcdir=$abs_srcdir/ext/pdo_dblib + ext_dir=ext/pdo_dblib + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_DBLIB_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_DBLIB 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_DBLIB_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dnet_addr (); +int +main () +{ +return dnet_addr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dnet_stub_dnet_addr=yes +else + ac_cv_lib_dnet_stub_dnet_addr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : + + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD" + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + if test "$ext_shared" = "yes"; then + PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n ""; then + + if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then + + if test -z "" || echo "" | grep '^/' >/dev/null ; then + ai_p= + else + + ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename ""` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case dnet_stub in + c|c_r|pthread*) ;; + *) + LIBS="-ldnet_stub $LIBS" + ;; + esac + + + + + fi + + + +fi + + +$as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD" + + + + am_i_shared=$PHP_PDO_DBLIB_SHARED + is_it_shared=$PHP_PDO_SHARED + is_it_enabled=$PHP_PDO + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension pdo_dblib to build statically, but it +depends on extension pdo, which you've configured to build shared. +You either need to build pdo_dblib shared or build pdo statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension pdo_dblib, which depends on extension pdo, +but you've either not enabled pdo, or have disabled it. +" "$LINENO" 5 + fi + +fi + + + + + +php_with_pdo_firebird=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 +$as_echo_n "checking for Firebird support for PDO... " >&6; } + +# Check whether --with-pdo-firebird was given. +if test "${with_pdo_firebird+set}" = set; then : + withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval +else + + PHP_PDO_FIREBIRD=no + test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_FIREBIRD in +shared,*) + PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_FIREBIRD=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_FIREBIRD" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + # Extract the first word of "fb_config", so it can be a program name with args. +set dummy fb_config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_FB_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $FB_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_FB_CONFIG="$FB_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_FB_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_FB_CONFIG" && ac_cv_path_FB_CONFIG="no" + ;; +esac +fi +FB_CONFIG=$ac_cv_path_FB_CONFIG +if test -n "$FB_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5 +$as_echo "$FB_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5 +$as_echo_n "checking for libfbconfig... " >&6; } + FB_CFLAGS=`$FB_CONFIG --cflags` + FB_LIBDIR=`$FB_CONFIG --libs` + FB_VERSION=`$FB_CONFIG --version` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5 +$as_echo "version $FB_VERSION" >&6; } + + for ac_i in $FB_LIBDIR; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $FB_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + else + if test "$PHP_PDO_FIREBIRD" = "yes"; then + FIREBIRD_INCDIR= + FIREBIRD_LIBDIR= + FIREBIRD_LIBDIR_FLAG= + else + FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include + FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR + FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfbclient $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fbclient_isc_detach_database=yes +else + ac_cv_lib_fbclient_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=fbclient + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_fbclient_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgds $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gds_isc_detach_database=yes +else + ac_cv_lib_gds_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=gds + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_gds_isc_detach_database + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $FIREBIRD_LIBDIR_FLAG + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lib_util $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char isc_detach_database (); +int +main () +{ +return isc_detach_database (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ib_util_isc_detach_database=yes +else + ac_cv_lib_ib_util_isc_detach_database=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + FIREBIRD_LIBNAME=ib_util + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_ib_util_isc_detach_database + + as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 + + +fi + + + +fi + + + +fi + + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD" + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$FIREBIRD_LIBDIR"; then + + if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then + + if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_LIBDIR + else + + ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $FIREBIRD_LIBNAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$FIREBIRD_LIBNAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$FIREBIRD_INCDIR" != "/usr/include"; then + + if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$FIREBIRD_INCDIR + else + + ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + +$as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h + + + ext_builddir=ext/pdo_firebird + ext_srcdir=$abs_srcdir/ext/pdo_firebird + ext_dir=ext/pdo_firebird + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_FIREBIRD 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_FIREBIRD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for MySQL support for PDO... " >&6; } + +# Check whether --with-pdo-mysql was given. +if test "${with_pdo_mysql+set}" = set; then : + withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval +else + + PHP_PDO_MYSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_MYSQL in +shared,*) + PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_MYSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test -z "$PHP_ZLIB_DIR"; then + +php_with_zlib_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +$as_echo_n "checking for the location of libz... " >&6; } + +# Check whether --with-zlib-dir was given. +if test "${with_zlib_dir+set}" = set; then : + withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval +else + + PHP_ZLIB_DIR=no + + +fi + + +ext_output=$PHP_ZLIB_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +fi + +if test "$PHP_PDO_MYSQL" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then + MYSQL_SOCK=$PHP_MYSQL_SOCK + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + elif test "$PHP_MYSQL_SOCK" = "yes"; then + + for i in \ + /var/run/mysqld/mysqld.sock \ + /var/tmp/mysql.sock \ + /var/run/mysql/mysql.sock \ + /var/lib/mysql/mysql.sock \ + /var/mysql/mysql.sock \ + /usr/local/mysql/var/mysql.sock \ + /Private/tmp/mysql.sock \ + /private/tmp/mysql.sock \ + /tmp/mysql.sock \ + ; do + if test -r $i; then + MYSQL_SOCK=$i + break 2 + fi + done + + if test -n "$MYSQL_SOCK"; then + +cat >>confdefs.h <<_ACEOF +#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +$as_echo "$MYSQL_SOCK" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then + if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then + PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL + else + if test -d "$PHP_PDO_MYSQL" ; then + if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then + PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config" + else + PDO_MYSQL_DIR="$PHP_PDO_MYSQL" + fi + fi + fi + fi + + if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then + PHP_MYSQLND_ENABLED=yes + +$as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h + + else + +$as_echo "#define HAVE_MYSQL 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 +$as_echo_n "checking for mysql_config... " >&6; } + if test -n "$PDO_MYSQL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 +$as_echo "$PDO_MYSQL_CONFIG" >&6; } + if test "x$SED" = "x"; then + # Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SED in + [\\/]* | ?:[\\/]*) + ac_cv_path_SED="$SED" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi + if test "$enable_maintainer_zts" = "yes"; then + PDO_MYSQL_LIBNAME=mysqlclient_r + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` + else + PDO_MYSQL_LIBNAME=mysqlclient + PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` + fi + PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` + elif test -n "$PDO_MYSQL_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 +$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } + if test -r $PDO_MYSQL_DIR/include/mysql; then + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql + else + PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include + fi + if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql + else + PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR + fi + + if test -r "$PDO_MYSQL_LIB_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 +$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 +$as_echo "can not find it" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then + + if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_MYSQL_INC_DIR + else + + ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $PDO_MYSQL_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + if test "$PHP_ZLIB_DIR" != "no"; then + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PHP_ZLIB_DIR"; then + + if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then + + if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PHP_ZLIB_DIR + else + + ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_commit (); +int +main () +{ +return mysql_commit (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit + + as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + + + case z in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" + else + + + case z in + c|c_r|pthread*) ;; + *) + LIBS="-lz $LIBS" + ;; + esac + + + fi + ;; + esac + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_MYSQL_LIB_DIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5 +$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$PDO_MYSQL_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mysql_query (); +int +main () +{ +return mysql_query (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query + + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + + +fi + + PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz" + fi + + + for ac_i in $PDO_MYSQL_INCLUDE; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $PDO_MYSQL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + if test -n "$PDO_MYSQL_CONFIG"; then + PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` + +cat >>confdefs.h <<_ACEOF +#define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET" +_ACEOF + + fi + + + ext_builddir=ext/pdo_mysql + ext_srcdir=$abs_srcdir/ext/pdo_mysql + ext_dir=ext/pdo_mysql + + ac_extra=`echo "-I$pdo_cv_inc_path -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_MYSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_MYSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_MYSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null` +if test "$PHP_PDO_OCI_TAIL1" = "a"; then + PHP_PDO_OCI_TAIL1="tail -n1" +else + PHP_PDO_OCI_TAIL1="tail -1" +fi + + + + + + +php_with_pdo_oci=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5 +$as_echo_n "checking Oracle OCI support for PDO... " >&6; } + +# Check whether --with-pdo-oci was given. +if test "${with_pdo_oci+set}" = set; then : + withval=$with_pdo_oci; PHP_PDO_OCI=$withval +else + + PHP_PDO_OCI=no + test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_OCI in +shared,*) + PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_OCI=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_OCI" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 +$as_echo_n "checking Oracle Install-Dir... " >&6; } + if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then + PDO_OCI_DIR=$ORACLE_HOME + else + PDO_OCI_DIR=$PHP_PDO_OCI + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 +$as_echo "$PHP_PDO_OCI" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 +$as_echo_n "checking if that is sane... " >&6; } + if test -z "$PDO_OCI_DIR"; then + as_fn_error $? "You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME." "$LINENO" 5 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + + if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PDO_OCI_CLIENT_DIR="client" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + PDO_OCI_CLIENT_DIR="client64" + +fi + + PDO_OCI_LIB_DIR="`echo $PDO_OCI_DIR | cut -d, -f2`" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` + if test -f "$PDO_OCI_LCS"; then + PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $PDO_OCI_LCS_BASE.9.0; then + PDO_OCI_VERSION=9.0 + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 +$as_echo_n "checking for oci.h... " >&6; } + OCISDKRPMINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/oracle/\(.*\)/\('${PDO_OCI_CLIENT_DIR}'\)/lib/*$!\1/include/oracle/\2/\3!'` + + OCISDKMANINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/*$!\1/include!'` + + OCISDKZIPINC=$PDO_OCI_LIB_DIR/sdk/include + + + if test -f "$OCISDKRPMINC/oci.h" ; then + + if test "$OCISDKRPMINC" != "/usr/include"; then + + if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKRPMINC + else + + ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +$as_echo "$OCISDKRPMINC" >&6; } + elif test -f "$OCISDKMANINC/oci.h" ; then + + if test "$OCISDKMANINC" != "/usr/include"; then + + if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKMANINC + else + + ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKMANINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +$as_echo "$OCISDKMANINC" >&6; } + elif test -f "$OCISDKZIPINC/oci.h" ; then + + if test "$OCISDKZIPINC" != "/usr/include"; then + + if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then + ai_p=$OCISDKZIPINC + else + + ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +$as_echo "$OCISDKZIPINC" >&6; } + else + as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 + fi + else + + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } + else + ac_cv_sizeof_long=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +$as_echo_n "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 +$as_echo_n "checking OCI8 libraries dir... " >&6; } + if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" + elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" + elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then + PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR + else + as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 +$as_echo "$PDO_OCI_LIB_DIR" >&6; } + + + if test -d "$PDO_OCI_DIR/rdbms/public"; then + + if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/public + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public" + fi + if test -d "$PDO_OCI_DIR/rdbms/demo"; then + + if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/rdbms/demo + else + + ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo" + fi + if test -d "$PDO_OCI_DIR/network/public"; then + + if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/network/public + else + + ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public" + fi + if test -d "$PDO_OCI_DIR/plsql/public"; then + + if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/plsql/public + else + + ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public" + fi + if test -d "$PDO_OCI_DIR/include"; then + + if test "$PDO_OCI_DIR/include" != "/usr/include"; then + + if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_DIR/include + else + + ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include" + fi + + if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then + + for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then + + for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +$as_echo_n "checking Oracle version... " >&6; } + PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME + PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` + if test -f "$PDO_OCI_LCS"; then + PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` + elif test -f $PDO_OCI_LCS_BASE.9.0; then + PDO_OCI_VERSION=9.0 + else + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +$as_echo "$PDO_OCI_VERSION" >&6; } + + fi + + case $PDO_OCI_VERSION in + 7.3|8.0|8.1) + as_fn_error $? "Oracle client libraries < 9 are not supported" "$LINENO" 5 + ;; + esac + + + + case clntsh in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh" + else + + + case clntsh in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -lclntsh" + ;; + esac + + + fi + ;; + esac + + + + if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then + + if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then + ai_p=$PDO_OCI_LIB_DIR + else + + ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvCreate (); +int +main () +{ +return OCIEnvCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvCreate=yes +else + ac_cv_lib_clntsh_OCIEnvCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIEnvNlsCreate (); +int +main () +{ +return OCIEnvNlsCreate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIEnvNlsCreate=yes +else + ac_cv_lib_clntsh_OCIEnvNlsCreate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIEnvNlsCreate + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 +$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } +if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclntsh $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char OCIStmtFetch2 (); +int +main () +{ +return OCIStmtFetch2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_clntsh_OCIStmtFetch2=yes +else + ac_cv_lib_clntsh_OCIStmtFetch2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 +$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_clntsh_OCIStmtFetch2 + + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + ext_builddir=ext/pdo_oci + ext_srcdir=$abs_srcdir/ext/pdo_oci + ext_dir=ext/pdo_oci + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_OCI_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_OCI 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_OCI_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION" +_ACEOF + +fi + + + + + + + +php_with_pdo_odbc=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 +$as_echo_n "checking for ODBC v3 support for PDO... " >&6; } + +# Check whether --with-pdo-odbc was given. +if test "${with_pdo_odbc+set}" = set; then : + withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval +else + + PHP_PDO_ODBC=no + test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_ODBC in +shared,*) + PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_ODBC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + + +if test "$PHP_PDO_ODBC" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 +$as_echo_n "checking for selected PDO ODBC flavour... " >&6; } + + pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" + pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" + + if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then + pdo_odbc_dir= + fi + + case $pdo_odbc_flavour in + ibm-db2) + pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib + pdo_odbc_def_incdir=/home/db2inst1/sqllib/include + pdo_odbc_def_lib=db2 + ;; + + iODBC|iodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=iodbc + ;; + + unixODBC|unixodbc) + pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/local/include + pdo_odbc_def_lib=odbc + ;; + + ODBCRouter|odbcrouter) + pdo_odbc_def_libdir=/usr/$PHP_LIBDIR + pdo_odbc_def_incdir=/usr/include + pdo_odbc_def_lib=odbcsdk + ;; + + generic) + pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`" + pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`" + pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`" + pdo_odbc_flavour="generic-$pdo_odbc_def_lib" + ;; + + *) + as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour + The include and lib dirs are looked for under 'dir'. The 'flavour' can be one + of: ibm-db2, iODBC, unixODBC, generic. If ',dir' part is omitted, default for + the flavour you have selected will be used. e.g.: --with-pdo-odbc=unixODBC + will check for unixODBC under /usr/local. You may attempt to use an otherwise + unsupported driver using the 'generic' flavour. The syntax for generic ODBC + support is: --with-pdo-odbc=generic,dir,libname,ldflags,cflags. When built as + 'shared' the extension filename is always pdo_odbc.so" "$LINENO" 5 + ;; + esac + + if test -n "$pdo_odbc_dir"; then + PDO_ODBC_INCDIR="$pdo_odbc_dir/include" + PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR" + else + PDO_ODBC_INCDIR="$pdo_odbc_def_incdir" + PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&5 +$as_echo "$pdo_odbc_flavour + libs $PDO_ODBC_LIBDIR, + headers $PDO_ODBC_INCDIR" >&6; } + + if test ! -d "$PDO_ODBC_LIBDIR" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 +$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_IODBC_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isql.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQL_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 +$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } + if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then + php_pdo_have_header=yes + +$as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + + if test "$php_pdo_have_header" != "yes"; then + as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 + fi + + PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" + PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib" + + + for ac_i in $PDO_ODBC_LDFLAGS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLBindCol (); +int +main () +{ +return SQLBindCol (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="$PDO_ODBC_LDFLAGS" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 +$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$pdo_odbc_def_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SQLAllocHandle (); +int +main () +{ +return SQLAllocHandle (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle + + as_fn_error $? " +Your ODBC library does not appear to be ODBC 3 compatible. +You should consider using iODBC or unixODBC instead, and loading your +libraries as a driver in that environment; it will emulate the +functions required for PDO support. +" "$LINENO" 5 + +fi + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol + + as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 + + +fi + + + + ext_builddir=ext/pdo_odbc + ext_srcdir=$abs_srcdir/ext/pdo_odbc + ext_dir=ext/pdo_odbc + + ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_ODBC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_ODBC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_ODBC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support for PDO... " >&6; } + +# Check whether --with-pdo-pgsql was given. +if test "${with_pdo_pgsql+set}" = set; then : + withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval +else + + PHP_PDO_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_PGSQL in +shared,*) + PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_PGSQL" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PDO_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h + + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPQ 1 +_ACEOF + + LIBS="-lpq $LIBS" + +else + as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5 +fi + + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + + ext_builddir=ext/pdo_pgsql + ext_srcdir=$abs_srcdir/ext/pdo_pgsql + ext_dir=ext/pdo_pgsql + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_PGSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sqlite 3 support for PDO... " >&6; } + +# Check whether --with-pdo-sqlite was given. +if test "${with_pdo_sqlite+set}" = set; then : + withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval +else + + PHP_PDO_SQLITE=$PHP_PDO + test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO_SQLITE in +shared,*) + PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO_SQLITE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PDO_SQLITE" != "no"; then + + if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +$as_echo_n "checking for PDO includes... " >&6; } +if ${pdo_cv_inc_path+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$abs_srcdir/ext + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then + pdo_cv_inc_path=$phpincludedir/ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +$as_echo "$pdo_cv_inc_path" >&6; } + if test -n "$pdo_cv_inc_path"; then +: + else +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 > 3.7.4" >&5 +$as_echo_n "checking for sqlite3 > 3.7.4... " >&6; } + +if test -n "$SQLITE_CFLAGS"; then + pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$SQLITE_LIBS"; then + pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7.4") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7.4" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + else + SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7.4" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$SQLITE_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (sqlite3 > 3.7.4) were not met: + +$SQLITE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables SQLITE_CFLAGS +and SQLITE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS + SQLITE_LIBS=$pkg_cv_SQLITE_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_open_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_open_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_open_v2 (); +int +main () +{ +return sqlite3_open_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_open_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_open_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_open_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_open_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + for ac_i in $SQLITE_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $SQLITE_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="$PDO_SQLITE_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="$PDO_SQLITE_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_open_v2 + + as_fn_error $? "Please install SQLite 3.7.4 first or check libsqlite3 is present" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close_v2 in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_close_v2 in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_close_v2+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_close_v2 (); +int +main () +{ +return sqlite3_close_v2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_close_v2=yes +else + ac_cv_lib_sqlite3_sqlite3_close_v2=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close_v2" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_close_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_close_v2" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_close_v2 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsqlite3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sqlite3_column_table_name (); +int +main () +{ +return sqlite3_column_table_name (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_column_table_name=yes +else + ac_cv_lib_sqlite3_sqlite3_column_table_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SQLITE3_COLUMN_TABLE_NAME 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_sqlite3_sqlite3_column_table_name + + +fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD" + + + ext_builddir=ext/pdo_sqlite + ext_srcdir=$abs_srcdir/ext/pdo_sqlite + ext_dir=ext/pdo_sqlite + + ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SQLITE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_sqlite.c sqlite_driver.c sqlite_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PDO_SQLITE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SQLITE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo_sqlite.c sqlite_driver.c sqlite_statement.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for PostgreSQL support... " >&6; } + +# Check whether --with-pgsql was given. +if test "${with_pgsql+set}" = set; then : + withval=$with_pgsql; PHP_PGSQL=$withval +else + + PHP_PGSQL=no + test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PGSQL in +shared,*) + PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PGSQL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PGSQL" != "no"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + PGSQL_INCLUDE=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +$as_echo_n "checking for pg_config... " >&6; } + for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do + if test -x $i/pg_config; then + PG_CONFIG="$i/pg_config" + break; + fi + done + + if test -n "$PG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +$as_echo "$PG_CONFIG" >&6; } + PGSQL_INCLUDE=`$PG_CONFIG --includedir` + PGSQL_LIBDIR=`$PG_CONFIG --libdir` + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + if test "$PHP_PGSQL" = "yes"; then + PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" + else + PGSQL_SEARCH_PATHS=$PHP_PGSQL + fi + + for i in $PGSQL_SEARCH_PATHS; do + for j in include include/pgsql include/postgres include/postgresql ""; do + if test -r "$i/$j/libpq-fe.h"; then + PGSQL_INC_BASE=$i + PGSQL_INCLUDE=$i/$j + if test -r "$i/$j/pg_config.h"; then + +$as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h + + fi + fi + done + + for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do + if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then + PGSQL_LIBDIR=$i/$j + fi + done + done + fi + + if test -z "$PGSQL_INCLUDE"; then + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_LIBDIR"; then + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + fi + + if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_PGSQL 1" >>confdefs.h + + old_LIBS=$LIBS + old_LDFLAGS=$LDFLAGS + LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5 +$as_echo_n "checking for PQescapeString in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeString+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeString (); +int +main () +{ +return PQescapeString (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeString=yes +else + ac_cv_lib_pq_PQescapeString=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeString" >&6; } +if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5 +$as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQunescapeBytea (); +int +main () +{ +return PQunescapeBytea (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQunescapeBytea=yes +else + ac_cv_lib_pq_PQunescapeBytea=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5 +$as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; } +if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then : + +$as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5 +$as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetnonblocking (); +int +main () +{ +return PQsetnonblocking (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetnonblocking=yes +else + ac_cv_lib_pq_PQsetnonblocking=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5 +$as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; } +if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then : + +$as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5 +$as_echo_n "checking for PQcmdTuples in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQcmdTuples+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQcmdTuples (); +int +main () +{ +return PQcmdTuples (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQcmdTuples=yes +else + ac_cv_lib_pq_PQcmdTuples=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5 +$as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; } +if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then : + +$as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5 +$as_echo_n "checking for PQoidValue in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQoidValue+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQoidValue (); +int +main () +{ +return PQoidValue (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQoidValue=yes +else + ac_cv_lib_pq_PQoidValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5 +$as_echo "$ac_cv_lib_pq_PQoidValue" >&6; } +if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then : + +$as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5 +$as_echo_n "checking for PQclientEncoding in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQclientEncoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQclientEncoding (); +int +main () +{ +return PQclientEncoding (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQclientEncoding=yes +else + ac_cv_lib_pq_PQclientEncoding=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5 +$as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; } +if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then : + +$as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 +$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQparameterStatus (); +int +main () +{ +return PQparameterStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQparameterStatus=yes +else + ac_cv_lib_pq_PQparameterStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : + +$as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5 +$as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprotocolVersion (); +int +main () +{ +return PQprotocolVersion (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprotocolVersion=yes +else + ac_cv_lib_pq_PQprotocolVersion=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5 +$as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; } +if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then : + +$as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5 +$as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQtransactionStatus (); +int +main () +{ +return PQtransactionStatus (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQtransactionStatus=yes +else + ac_cv_lib_pq_PQtransactionStatus=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5 +$as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; } +if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then : + +$as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 +$as_echo_n "checking for PQexecParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecParams (); +int +main () +{ +return PQexecParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecParams=yes +else + ac_cv_lib_pq_PQexecParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 +$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : + +$as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 +$as_echo_n "checking for PQprepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQprepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQprepare (); +int +main () +{ +return PQprepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQprepare=yes +else + ac_cv_lib_pq_PQprepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 +$as_echo "$ac_cv_lib_pq_PQprepare" >&6; } +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : + +$as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 +$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQexecPrepared (); +int +main () +{ +return PQexecPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQexecPrepared=yes +else + ac_cv_lib_pq_PQexecPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : + +$as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5 +$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQresultErrorField+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQresultErrorField (); +int +main () +{ +return PQresultErrorField (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQresultErrorField=yes +else + ac_cv_lib_pq_PQresultErrorField=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5 +$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; } +if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then : + +$as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5 +$as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryParams (); +int +main () +{ +return PQsendQueryParams (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryParams=yes +else + ac_cv_lib_pq_PQsendQueryParams=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5 +$as_echo_n "checking for PQsendPrepare in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendPrepare+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendPrepare (); +int +main () +{ +return PQsendPrepare (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendPrepare=yes +else + ac_cv_lib_pq_PQsendPrepare=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5 +$as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; } +if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then : + +$as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 +$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsendQueryPrepared (); +int +main () +{ +return PQsendQueryPrepared (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsendQueryPrepared=yes +else + ac_cv_lib_pq_PQsendQueryPrepared=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 +$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } +if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : + +$as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5 +$as_echo_n "checking for PQputCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQputCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQputCopyData (); +int +main () +{ +return PQputCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQputCopyData=yes +else + ac_cv_lib_pq_PQputCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then : + +$as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5 +$as_echo_n "checking for PQgetCopyData in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQgetCopyData+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQgetCopyData (); +int +main () +{ +return PQgetCopyData (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQgetCopyData=yes +else + ac_cv_lib_pq_PQgetCopyData=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5 +$as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; } +if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then : + +$as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5 +$as_echo_n "checking for PQfreemem in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQfreemem+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQfreemem (); +int +main () +{ +return PQfreemem (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQfreemem=yes +else + ac_cv_lib_pq_PQfreemem=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5 +$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; } +if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then : + +$as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5 +$as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQsetErrorVerbosity (); +int +main () +{ +return PQsetErrorVerbosity (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQsetErrorVerbosity=yes +else + ac_cv_lib_pq_PQsetErrorVerbosity=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5 +$as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; } +if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then : + +$as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5 +$as_echo_n "checking for PQftable in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQftable+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQftable (); +int +main () +{ +return PQftable (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQftable=yes +else + ac_cv_lib_pq_PQftable=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5 +$as_echo "$ac_cv_lib_pq_PQftable" >&6; } +if test "x$ac_cv_lib_pq_PQftable" = xyes; then : + +$as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 +$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeStringConn (); +int +main () +{ +return PQescapeStringConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeStringConn=yes +else + ac_cv_lib_pq_PQescapeStringConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 +$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeByteaConn (); +int +main () +{ +return PQescapeByteaConn (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeByteaConn=yes +else + ac_cv_lib_pq_PQescapeByteaConn=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : + +$as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pg_encoding_to_char (); +int +main () +{ +return pg_encoding_to_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_pg_encoding_to_char=yes +else + ac_cv_lib_pq_pg_encoding_to_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : + +$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5 +$as_echo_n "checking for lo_create in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_create (); +int +main () +{ +return lo_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_create=yes +else + ac_cv_lib_pq_lo_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5 +$as_echo "$ac_cv_lib_pq_lo_create" >&6; } +if test "x$ac_cv_lib_pq_lo_create" = xyes; then : + +$as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5 +$as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_import_with_oid (); +int +main () +{ +return lo_import_with_oid (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_import_with_oid=yes +else + ac_cv_lib_pq_lo_import_with_oid=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5 +$as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; } +if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then : + +$as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate in -lpq" >&5 +$as_echo_n "checking for lo_truncate in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_truncate+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_truncate (); +int +main () +{ +return lo_truncate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_truncate=yes +else + ac_cv_lib_pq_lo_truncate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate" >&5 +$as_echo "$ac_cv_lib_pq_lo_truncate" >&6; } +if test "x$ac_cv_lib_pq_lo_truncate" = xyes; then : + +$as_echo "#define HAVE_PG_LO_TRUNCATE 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate64 in -lpq" >&5 +$as_echo_n "checking for lo_truncate64 in -lpq... " >&6; } +if ${ac_cv_lib_pq_lo_truncate64+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lo_truncate64 (); +int +main () +{ +return lo_truncate64 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_lo_truncate64=yes +else + ac_cv_lib_pq_lo_truncate64=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate64" >&5 +$as_echo "$ac_cv_lib_pq_lo_truncate64" >&6; } +if test "x$ac_cv_lib_pq_lo_truncate64" = xyes; then : + +$as_echo "#define HAVE_PG_LO64 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5 +$as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; } +if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpq $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char PQescapeLiteral (); +int +main () +{ +return PQescapeLiteral (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pq_PQescapeLiteral=yes +else + ac_cv_lib_pq_PQescapeLiteral=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5 +$as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; } +if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then : + +$as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h + +fi + + LIBS=$old_LIBS + LDFLAGS=$old_LDFLAGS + + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD" + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PGSQL_LIBDIR"; then + + if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then + + if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_LIBDIR + else + + ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pq in + c|c_r|pthread*) ;; + *) + LIBS="-lpq $LIBS" + ;; + esac + + + + + fi + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD" + + + + if test "$PGSQL_INCLUDE" != "/usr/include"; then + + if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then + ai_p=$PGSQL_INCLUDE + else + + ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + ext_builddir=ext/pgsql + ext_srcdir=$abs_srcdir/ext/pgsql + ext_dir=ext/pgsql + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PGSQL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PGSQL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PGSQL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pgsql.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar archive support... " >&6; } +# Check whether --enable-phar was given. +if test "${enable_phar+set}" = set; then : + enableval=$enable_phar; PHP_PHAR=$enableval +else + + PHP_PHAR=yes + test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PHAR in +shared,*) + PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PHAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PHAR" != "no"; then + + ext_builddir=ext/phar + ext_srcdir=$abs_srcdir/ext/phar + ext_dir=ext/phar + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PHAR_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PHAR 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PHAR_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for phar openssl support... " >&6; } + if test "$PHP_OPENSSL_SHARED" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 +$as_echo "no (shared openssl)" >&6; } + else + if test "$PHP_OPENSSL" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_HASH_SHARED + is_it_enabled=$PHP_HASH + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension hash, which you've configured to build shared. +You either need to build phar shared or build hash statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension hash, +but you've either not enabled hash, or have disabled it. +" "$LINENO" 5 + fi + + + am_i_shared=$PHP_PHAR_SHARED + is_it_shared=$PHP_SPL_SHARED + is_it_enabled=$PHP_SPL + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension phar to build statically, but it +depends on extension spl, which you've configured to build shared. +You either need to build phar shared or build spl statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then + as_fn_error $? " +You've configured extension phar, which depends on extension spl, +but you've either not enabled spl, or have disabled it. +" "$LINENO" 5 + fi + + + src=$ext_srcdir/Makefile.frag + ac_srcdir=$ext_srcdir + ac_builddir=$ext_builddir + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + + header_path=ext/phar + for header_file in php_phar.h; do + hp_hf="$header_path/$header_file" + + + unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf" + + fi + + done + + + + + PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1" + +fi + + + + + +php_enable_posix=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 +$as_echo_n "checking whether to enable POSIX-like functions... " >&6; } +# Check whether --enable-posix was given. +if test "${enable_posix+set}" = set; then : + enableval=$enable_posix; PHP_POSIX=$enableval +else + + PHP_POSIX=yes + test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_POSIX in +shared,*) + PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'` + ;; +shared) + PHP_POSIX=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_POSIX" = "yes"; then + +$as_echo "#define HAVE_POSIX 1" >>confdefs.h + + + ext_builddir=ext/posix + ext_srcdir=$abs_srcdir/ext/posix + ext_dir=ext/posix + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_POSIX_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_POSIX 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_POSIX_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in posix.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + for ac_func in seteuid setegid setsid getsid getpgid ctermid mkfifo mknod setrlimit getrlimit getgroups makedev initgroups getgrgid_r +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 +$as_echo_n "checking for working ttyname_r() implementation... " >&6; } + if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main(int argc, char *argv[]) +{ + char buf[64]; + + return !ttyname_r(0, buf, 64); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 +$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 +$as_echo_n "checking for utsname.domainname... " >&6; } +if ${ac_cv_have_utsname_domainname+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _GNU_SOURCE + #include + +int +main () +{ + + return sizeof(((struct utsname *)0)->domainname); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_have_utsname_domainname=yes + +else + + ac_cv_have_utsname_domainname=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 +$as_echo "$ac_cv_have_utsname_domainname" >&6; } + if test "$ac_cv_have_utsname_domainname" = yes; then + +$as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h + + fi +fi + + + + + +php_with_pspell=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 +$as_echo_n "checking for PSPELL support... " >&6; } + +# Check whether --with-pspell was given. +if test "${with_pspell+set}" = set; then : + withval=$with_pspell; PHP_PSPELL=$withval +else + + PHP_PSPELL=no + test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PSPELL in +shared,*) + PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'` + ;; +shared) + PHP_PSPELL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PSPELL" != "no"; then + + ext_builddir=ext/pspell + ext_srcdir=$abs_srcdir/ext/pspell + ext_dir=ext/pspell + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PSPELL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_PSPELL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PSPELL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pspell.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects</dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case pspell in + c|c_r|pthread*) ;; + *) + LIBS="-lpspell $LIBS" + ;; + esac + + + + + fi + + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$PSPELL_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 +$as_echo_n "checking for new_aspell_config in -laspell... " >&6; } +if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laspell $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char new_aspell_config (); +int +main () +{ +return new_aspell_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_aspell_new_aspell_config=yes +else + ac_cv_lib_aspell_new_aspell_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 +$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD" + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$PSPELL_LIBDIR"; then + + if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then + + if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_LIBDIR + else + + ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case aspell in + c|c_r|pthread*) ;; + *) + LIBS="-laspell $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_aspell_new_aspell_config + + +fi + + + + if test "$PSPELL_INCDIR" != "/usr/include"; then + + if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$PSPELL_INCDIR + else + + ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD" + + +$as_echo "#define HAVE_PSPELL 1" >>confdefs.h + +fi + + + + + +php_with_libedit=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 +$as_echo_n "checking for libedit readline replacement... " >&6; } + +# Check whether --with-libedit was given. +if test "${with_libedit+set}" = set; then : + withval=$with_libedit; PHP_LIBEDIT=$withval +else + + PHP_LIBEDIT=no + test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_LIBEDIT in +shared,*) + PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'` + ;; +shared) + PHP_LIBEDIT=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_LIBEDIT" = "no"; then + +php_with_readline=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 +$as_echo_n "checking for readline support... " >&6; } + +# Check whether --with-readline was given. +if test "${with_readline+set}" = set; then : + withval=$with_readline; PHP_READLINE=$withval +else + + PHP_READLINE=no + test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_READLINE in +shared,*) + PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'` + ;; +shared) + PHP_READLINE=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + +else + php_with_readline=no +fi + +if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do + test -f $i/include/readline/readline.h && READLINE_DIR=$i && break + done + + if test -z "$READLINE_DIR"; then + as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 + fi + + + if test "$READLINE_DIR/include" != "/usr/include"; then + + if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/include + else + + ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + PHP_READLINE_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 +$as_echo_n "checking for readline in -lreadline... " >&6; } +if ${ac_cv_lib_readline_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_readline=yes +else + ac_cv_lib_readline_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 +$as_echo "$ac_cv_lib_readline_readline" >&6; } +if test "x$ac_cv_lib_readline_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD" + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$READLINE_DIR/$PHP_LIBDIR"; then + + if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$READLINE_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case readline in + c|c_r|pthread*) ;; + *) + LIBS="-lreadline $LIBS" + ;; + esac + + + + + fi + + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_readline + + as_fn_error $? "readline library not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 +$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_pending_input+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_pending_input (); +int +main () +{ +return rl_pending_input (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_pending_input=yes +else + ac_cv_lib_readline_rl_pending_input=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 +$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_pending_input + + as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_callback_read_char=yes +else + ac_cv_lib_readline_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -lreadline" >&5 +$as_echo_n "checking for rl_on_new_line in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_on_new_line=yes +else + ac_cv_lib_readline_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_readline_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_readline_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_on_new_line + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 +$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } +if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lreadline $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_completion_matches (); +int +main () +{ +return rl_completion_matches (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_readline_rl_completion_matches=yes +else + ac_cv_lib_readline_rl_completion_matches=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 +$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_readline_rl_completion_matches + + +fi + + + +$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h + + +elif test "$PHP_LIBEDIT" != "no"; then + if test "$PHP_LIBEDIT" != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libedit directory ignored, rely on pkg-config" >&5 +$as_echo "$as_me: WARNING: libedit directory ignored, rely on pkg-config" >&2;} + fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 +$as_echo_n "checking for libedit... " >&6; } + +if test -n "$EDIT_CFLAGS"; then + pkg_cv_EDIT_CFLAGS="$EDIT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EDIT_LIBS"; then + pkg_cv_EDIT_LIBS="$EDIT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` + else + EDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EDIT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libedit) were not met: + +$EDIT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EDIT_CFLAGS +and EDIT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EDIT_CFLAGS +and EDIT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EDIT_CFLAGS=$pkg_cv_EDIT_CFLAGS + EDIT_LIBS=$pkg_cv_EDIT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + for ac_i in $EDIT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="$READLINE_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="$READLINE_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $EDIT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +$as_echo_n "checking for tgetent in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_tgetent=yes +else + ac_cv_lib_ncurses_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : + + + + case ncurses in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" + else + + + case ncurses in + c|c_r|pthread*) ;; + *) + LIBS="-lncurses $LIBS" + ;; + esac + + + fi + ;; + esac + + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; } +if ${ac_cv_lib_termcap_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltermcap $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termcap_tgetent=yes +else + ac_cv_lib_termcap_tgetent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : + + + + case termcap in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" + else + + + case termcap in + c|c_r|pthread*) ;; + *) + LIBS="-ltermcap $LIBS" + ;; + esac + + + fi + ;; + esac + + + +fi + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 +$as_echo_n "checking for readline in -ledit... " >&6; } +if ${ac_cv_lib_edit_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_readline=yes +else + ac_cv_lib_edit_readline=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 +$as_echo "$ac_cv_lib_edit_readline" >&6; } +if test "x$ac_cv_lib_edit_readline" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_readline + + as_fn_error $? "edit library required by readline not found" "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 +$as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_callback_read_char (); +int +main () +{ +return rl_callback_read_char (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_callback_read_char=yes +else + ac_cv_lib_edit_rl_callback_read_char=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 +$as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_callback_read_char + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_on_new_line (); +int +main () +{ +return rl_on_new_line (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_on_new_line=yes +else + ac_cv_lib_edit_rl_on_new_line=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_on_new_line + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" >&5 +$as_echo_n "checking for rl_completion_matches in -ledit... " >&6; } +if ${ac_cv_lib_edit_rl_completion_matches+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char rl_completion_matches (); +int +main () +{ +return rl_completion_matches (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_rl_completion_matches=yes +else + ac_cv_lib_edit_rl_completion_matches=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_completion_matches" >&5 +$as_echo "$ac_cv_lib_edit_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_edit_rl_completion_matches" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_rl_completion_matches + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $READLINE_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -ledit" >&5 +$as_echo_n "checking for history_list in -ledit... " >&6; } +if ${ac_cv_lib_edit_history_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ledit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char history_list (); +int +main () +{ +return history_list (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_edit_history_list=yes +else + ac_cv_lib_edit_history_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_list" >&5 +$as_echo "$ac_cv_lib_edit_history_list" >&6; } +if test "x$ac_cv_lib_edit_history_list" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_edit_history_list + + +fi + + + +$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h + +fi + +if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then + + ext_builddir=ext/readline + ext_srcdir=$abs_srcdir/ext/readline + ext_dir=ext/readline + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then + PHP_READLINE_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_READLINE 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then + PHP_READLINE_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in readline.c readline_cli.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_REFLECTION 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_REFLECTION_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_reflection.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable PHP sessions... " >&6; } +# Check whether --enable-session was given. +if test "${enable_session+set}" = set; then : + enableval=$enable_session; PHP_SESSION=$enableval +else + + PHP_SESSION=yes + test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SESSION in +shared,*) + PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'` + ;; +shared) + PHP_SESSION=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_mm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 +$as_echo_n "checking for mm support... " >&6; } + +# Check whether --with-mm was given. +if test "${with_mm+set}" = set; then : + withval=$with_mm; PHP_MM=$withval +else + + PHP_MM=no + + +fi + + +ext_output=$PHP_MM +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SESSION" != "no"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 +$as_echo_n "checking whether pwrite works... " >&6; } +if ${ac_cv_pwrite+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "no"; then + + if test "$cross_compiling" = yes; then : + + ac_cv_pwrite=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pwrite(int, void *, size_t, off64_t); + main() { + int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600); + + if (fd < 0) exit(1); + if (pwrite(fd, "text", 4, 0) != 4) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pwrite=yes + +else + + ac_cv_pwrite=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + if test "$ac_cv_pwrite" = "yes"; then + ac_cv_pwrite=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 +$as_echo "$ac_cv_pwrite" >&6; } + + if test "$ac_cv_pwrite" != "no"; then + +$as_echo "#define HAVE_PWRITE 1" >>confdefs.h + + if test "$ac_cv_pwrite" = "64"; then + +$as_echo "#define PHP_PWRITE_64 1" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 +$as_echo_n "checking whether pread works... " >&6; } +if ${ac_cv_pread+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include + + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "no"; then + + echo test > conftest_in + if test "$cross_compiling" = yes; then : + + ac_cv_pread=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include +#include +ssize_t pread(int, void *, size_t, off64_t); + main() { + char buf[3]; + int fd = open("conftest_in", O_RDONLY); + if (fd < 0) exit(1); + if (pread(fd, buf, 2, 0) != 2) exit(1); + /* Linux glibc breakage until 2.2.5 */ + if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1); + exit(0); + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_pread=yes + +else + + ac_cv_pread=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest_in + + if test "$ac_cv_pread" = "yes"; then + ac_cv_pread=64 + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 +$as_echo "$ac_cv_pread" >&6; } + + if test "$ac_cv_pread" != "no"; then + +$as_echo "#define HAVE_PREAD 1" >>confdefs.h + + if test "$ac_cv_pread" = "64"; then + +$as_echo "#define PHP_PREAD_64 1" >>confdefs.h + + fi + fi + + + ext_builddir=ext/session + ext_srcdir=$abs_srcdir/ext/session + ext_dir=ext/session + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SESSION_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SESSION 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SESSION_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + +if test "$PHP_MM" != "no"; then + for i in $PHP_MM /usr/local /usr; do + test -f "$i/include/mm.h" && MM_DIR=$i && break + done + + if test -z "$MM_DIR" ; then + as_fn_error $? "cannot find mm library" "$LINENO" 5 + fi + + if test "$enable_maintainer_zts" = "yes"; then + as_fn_error $? "--with-mm cannot be combined with --enable-maintainer-zts" "$LINENO" 5 + fi + + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD" + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$MM_DIR/$PHP_LIBDIR"; then + + if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case mm in + c|c_r|pthread*) ;; + *) + LIBS="-lmm $LIBS" + ;; + esac + + + + + fi + + + + if test "$MM_DIR/include" != "/usr/include"; then + + if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$MM_DIR/include + else + + ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$MM_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + for header_file in ext/session/mod_mm.h; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + +$as_echo "#define HAVE_LIBMM 1" >>confdefs.h + +fi + + + + + +php_enable_shmop=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 +$as_echo_n "checking whether to enable shmop support... " >&6; } +# Check whether --enable-shmop was given. +if test "${enable_shmop+set}" = set; then : + enableval=$enable_shmop; PHP_SHMOP=$enableval +else + + PHP_SHMOP=no + test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SHMOP in +shared,*) + PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SHMOP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SHMOP" != "no"; then + +$as_echo "#define HAVE_SHMOP 1" >>confdefs.h + + + ext_builddir=ext/shmop + ext_srcdir=$abs_srcdir/ext/shmop + ext_dir=ext/shmop + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SHMOP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SHMOP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SHMOP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in shmop.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SimpleXML support... " >&6; } +# Check whether --enable-simplexml was given. +if test "${enable_simplexml+set}" = set; then : + enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval +else + + PHP_SIMPLEXML=yes + test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SIMPLEXML in +shared,*) + PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'` + ;; +shared) + PHP_SIMPLEXML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SIMPLEXML" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SimpleXML extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h + + + ext_builddir=ext/simplexml + ext_srcdir=$abs_srcdir/ext/simplexml + ext_dir=ext/simplexml + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SIMPLEXML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SIMPLEXML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SIMPLEXML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in simplexml.c sxe.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for SNMP support... " >&6; } + +# Check whether --with-snmp was given. +if test "${with_snmp+set}" = set; then : + withval=$with_snmp; PHP_SNMP=$withval +else + + PHP_SNMP=no + test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SNMP in +shared,*) + PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SNMP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_openssl_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5 +$as_echo_n "checking OpenSSL dir for SNMP... " >&6; } + +# Check whether --with-openssl-dir was given. +if test "${with_openssl_dir+set}" = set; then : + withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval +else + + PHP_OPENSSL_DIR=no + + +fi + + +ext_output=$PHP_OPENSSL_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SNMP" != "no"; then + + if test "$PHP_SNMP" = "yes"; then + # Extract the first word of "net-snmp-config", so it can be a program name with args. +set dummy net-snmp-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SNMP_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SNMP_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="/usr/local/bin:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG +if test -n "$SNMP_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 +$as_echo "$SNMP_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config" + fi + + if test -x "$SNMP_CONFIG"; then + SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs` + SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`" + SNMP_PREFIX=`$SNMP_CONFIG --prefix` + snmp_full_version=`$SNMP_CONFIG --version` + ac_IFS=$IFS + IFS="." + set $snmp_full_version + IFS=$ac_IFS + SNMP_VERSION=`expr $1 \* 1000 + $2` + if test "$SNMP_VERSION" -ge "5003"; then + if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then + + if test "${SNMP_PREFIX}/include" != "/usr/include"; then + + if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then + ai_p=${SNMP_PREFIX}/include + else + + ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + for ac_i in $SNMP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + SNMP_LIBNAME=netsnmp + else + as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 + fi + else + as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 + fi + else + as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 + fi + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char init_snmp (); +int +main () +{ +return init_snmp (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SNMP 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_init_snmp + + as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $SNMP_SHARED_LIBADD + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 +$as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$SNMP_LIBNAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shutdown_snmp_logging (); +int +main () +{ +return shutdown_snmp_logging (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging + + +fi + + + + ext_builddir=ext/snmp + ext_srcdir=$abs_srcdir/ext/snmp + ext_dir=ext/snmp + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SNMP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SNMP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SNMP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in snmp.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable SOAP support... " >&6; } +# Check whether --enable-soap was given. +if test "${enable_soap+set}" = set; then : + enableval=$enable_soap; PHP_SOAP=$enableval +else + + PHP_SOAP=no + test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOAP in +shared,*) + PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOAP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOAP" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "SOAP extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_SOAP 1" >>confdefs.h + + + ext_builddir=ext/soap + ext_srcdir=$abs_srcdir/ext/soap + ext_dir=ext/soap + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOAP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOAP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOAP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable sockets support... " >&6; } +# Check whether --enable-sockets was given. +if test "${enable_sockets+set}" = set; then : + enableval=$enable_sockets; PHP_SOCKETS=$enableval +else + + PHP_SOCKETS=no + test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SOCKETS in +shared,*) + PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'` + ;; +shared) + PHP_SOCKETS=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SOCKETS" != "no"; then + for ac_func in hstrerror if_nametoindex if_indextoname +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_header in netinet/tcp.h sys/un.h sys/sockio.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 +$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } +if ${ac_cv_ss_family+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_ss_family=yes +else + ac_cv_ss_family=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 +$as_echo "$ac_cv_ss_family" >&6; } + + if test "$ac_cv_ss_family" = yes; then + +$as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 +$as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } +if ${ac_cv_gai_ai_v4mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_V4MAPPED; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_v4mapped=yes +else + ac_cv_gai_ai_v4mapped=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 +$as_echo "$ac_cv_gai_ai_v4mapped" >&6; } + + if test "$ac_cv_gai_ai_v4mapped" = yes; then + +$as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_ALL" >&5 +$as_echo_n "checking if getaddrinfo supports AI_ALL... " >&6; } +if ${ac_cv_gai_ai_all+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_ALL; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_all=yes +else + ac_cv_gai_ai_all=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_all" >&5 +$as_echo "$ac_cv_gai_ai_all" >&6; } + + if test "$ac_cv_gai_ai_all" = yes; then + +$as_echo "#define HAVE_AI_ALL 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_IDN" >&5 +$as_echo_n "checking if getaddrinfo supports AI_IDN... " >&6; } +if ${ac_cv_gai_ai_idn+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +int flag = AI_IDN; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_gai_ai_idn=yes +else + ac_cv_gai_ai_idn=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_idn" >&5 +$as_echo "$ac_cv_gai_ai_idn" >&6; } + + if test "$ac_cv_gai_ai_idn" = yes; then + +$as_echo "#define HAVE_AI_IDN 1" >>confdefs.h + + fi + + PHP_SOCKETS_CFLAGS=-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 + case $host_alias in + *darwin*) PHP_SOCKETS_CFLAGS="$PHP_SOCKETS_CFLAGS -D__APPLE_USE_RFC_3542" + esac + + ext_builddir=ext/sockets + ext_srcdir=$abs_srcdir/ext/sockets + ext_dir=ext/sockets + + ac_extra=`echo "$PHP_SOCKETS_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SOCKETS_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SOCKETS 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SOCKETS_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for sodium support... " >&6; } + +# Check whether --with-sodium was given. +if test "${with_sodium+set}" = set; then : + withval=$with_sodium; PHP_SODIUM=$withval +else + + PHP_SODIUM=no + test "$PHP_ENABLE_ALL" && PHP_SODIUM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SODIUM in +shared,*) + PHP_SODIUM=`echo "$PHP_SODIUM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SODIUM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SODIUM" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsodium >= 1.0.8" >&5 +$as_echo_n "checking for libsodium >= 1.0.8... " >&6; } + +if test -n "$LIBSODIUM_CFLAGS"; then + pkg_cv_LIBSODIUM_CFLAGS="$LIBSODIUM_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBSODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium >= 1.0.8" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBSODIUM_LIBS"; then + pkg_cv_LIBSODIUM_LIBS="$LIBSODIUM_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBSODIUM_LIBS=`$PKG_CONFIG --libs "libsodium >= 1.0.8" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium >= 1.0.8" 2>&1` + else + LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsodium >= 1.0.8" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBSODIUM_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libsodium >= 1.0.8) were not met: + +$LIBSODIUM_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBSODIUM_CFLAGS +and LIBSODIUM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBSODIUM_CFLAGS +and LIBSODIUM_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBSODIUM_CFLAGS=$pkg_cv_LIBSODIUM_CFLAGS + LIBSODIUM_LIBS=$pkg_cv_LIBSODIUM_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBSODIUM_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBSODIUM_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + SODIUM_SHARED_LIBADD="-L$ai_p $SODIUM_SHARED_LIBADD" + test -n "$ld_runpath_switch" && SODIUM_SHARED_LIBADD="$ld_runpath_switch$ai_p $SODIUM_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBSODIUMLIB 1" >>confdefs.h + + + + ext_builddir=ext/sodium + ext_srcdir=$abs_srcdir/ext/sodium + ext_dir=ext/sodium + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SODIUM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libsodium.c sodium_pwhash.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SODIUM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SODIUM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in libsodium.c sodium_pwhash.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SPL 1 +_ACEOF + + fi + fi + + if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then + PHP_SPL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } +if ${ac_cv_flush_io+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_flush_io=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int main(int argc, char **argv) +{ + char *filename = tmpnam(NULL); + char buffer[64]; + int result = 0; + + FILE *fp = fopen(filename, "wb"); + if (NULL == fp) + return 0; + fputs("line 1\n", fp); + fputs("line 2\n", fp); + fclose(fp); + + fp = fopen(filename, "rb+"); + if (NULL == fp) + return 0; + fgets(buffer, sizeof(buffer), fp); + fputs("line 3\n", fp); + rewind(fp); + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 1\n")) + result = 1; + fgets(buffer, sizeof(buffer), fp); + if (0 != strcmp(buffer, "line 3\n")) + result = 1; + fclose(fp); + unlink(filename); + + exit(result); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_flush_io=no + +else + + ac_cv_flush_io=yes + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 +$as_echo "$ac_cv_flush_io" >&6; } +if test "$ac_cv_flush_io" = "yes"; then + +$as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h + +fi + +if test "$ac_cv_func_crypt" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +$as_echo_n "checking for crypt in -lcrypt... " >&6; } +if ${ac_cv_lib_crypt_crypt+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypt_crypt=yes +else + ac_cv_lib_crypt_crypt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +$as_echo "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : + + LIBS="-lcrypt $LIBS -lcrypt" + +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h + + +fi + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +$as_echo_n "checking for standard DES crypt... " >&6; } +if ${ac_cv_crypt_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_des=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char *encrypted = crypt("rasmuslerdorf","rl"); + exit(!encrypted || strcmp(encrypted,"rl.3StKT.4T8M")); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_des=yes + +else + + ac_cv_crypt_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +$as_echo "$ac_cv_crypt_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +$as_echo_n "checking for extended DES crypt... " >&6; } +if ${ac_cv_crypt_ext_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_ext_des=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char *encrypted = crypt("rasmuslerdorf","_J9..rasm"); + exit(!encrypted || strcmp(encrypted,"_J9..rasmBYk8r9AiWNc")); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_ext_des=yes + +else + + ac_cv_crypt_ext_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 +$as_echo "$ac_cv_crypt_ext_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 +$as_echo_n "checking for MD5 crypt... " >&6; } +if ${ac_cv_crypt_md5+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_md5=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[15], answer[40]; + char *encrypted; + + salt[0]='$'; salt[1]='1'; salt[2]='$'; + salt[3]='r'; salt[4]='a'; salt[5]='s'; + salt[6]='m'; salt[7]='u'; salt[8]='s'; + salt[9]='l'; salt[10]='e'; salt[11]='$'; + salt[12]='\0'; + strcpy(answer,salt); + strcat(answer,"rISCgZzpwk3UhDidwXvin0"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_md5=yes + +else + + ac_cv_crypt_md5=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 +$as_echo "$ac_cv_crypt_md5" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 +$as_echo_n "checking for Blowfish crypt... " >&6; } +if ${ac_cv_crypt_blowfish+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_blowfish=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[30], answer[70]; + char *encrypted; + + salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0'; + strcat(salt,"rasmuslerd............"); + strcpy(answer,salt); + strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_blowfish=yes + +else + + ac_cv_crypt_blowfish=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 +$as_echo "$ac_cv_crypt_blowfish" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 +$as_echo_n "checking for SHA512 crypt... " >&6; } +if ${ac_cv_crypt_sha512+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_sha512=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[21], answer[21+86]; + char *encrypted; + + strcpy(salt,"\$6\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_sha512=yes + +else + + ac_cv_crypt_sha512=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha512" >&5 +$as_echo "$ac_cv_crypt_sha512" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 +$as_echo_n "checking for SHA256 crypt... " >&6; } +if ${ac_cv_crypt_sha256+:} false; then : + $as_echo_n "(cached) " >&6 +else + +if test "$cross_compiling" = yes; then : + + ac_cv_crypt_sha256=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +int main() { +#if HAVE_CRYPT + char salt[21], answer[21+43]; + char *encrypted; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); + strcpy(answer, salt); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + encrypted = crypt("rasmuslerdorf",salt); + exit(!encrypted || strcmp(encrypted,answer)); +#else + exit(1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_sha256=yes + +else + + ac_cv_crypt_sha256=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha256" >&5 +$as_echo "$ac_cv_crypt_sha256" >&6; } + + +if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "$ac_cv_crypt_md5" = "no" || test "$ac_cv_crypt_sha512" = "no" || test "$ac_cv_crypt_sha256" = "no" || test "x$php_crypt_r" = "x0"; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 +$as_echo_n "checking whether the compiler supports __alignof__... " >&6; } +if ${ac_cv_alignof_exists+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + int align = __alignof__(int); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_alignof_exists=yes + +else + + ac_cv_alignof_exists=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 +$as_echo "$ac_cv_alignof_exists" >&6; } + if test "$ac_cv_alignof_exists" = "yes"; then + +$as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h + + fi + + +cat >>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 1 +_ACEOF + + + + + case ext/standard in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>confdefs.h <<_ACEOF +#define PHP_USE_PHP_CRYPT_R 0 +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 +$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } +if ${ac_cv_attribute_aligned+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ + + unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_attribute_aligned=yes + +else + + ac_cv_attribute_aligned=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 +$as_echo "$ac_cv_attribute_aligned" >&6; } +if test "$ac_cv_attribute_aligned" = "yes"; then + +$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h + +fi + +for ac_func in asinh acosh atanh log1p hypot +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 +$as_echo_n "checking for working POSIX fnmatch... " >&6; } +if ${ac_cv_func_fnmatch_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Some versions of Solaris, SCO, and the GNU C Library + # have a broken or incompatible fnmatch. + # So we run a test program. If we are cross-compiling, take no chance. + # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. + if test "$cross_compiling" = yes; then : + ac_cv_func_fnmatch_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +# define y(a, b, c) (fnmatch (a, b, c) == 0) +# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) + +int +main () +{ +return + (!(y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && 1)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fnmatch_works=yes +else + ac_cv_func_fnmatch_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 +$as_echo "$ac_cv_func_fnmatch_works" >&6; } +if test $ac_cv_func_fnmatch_works = yes; then : + +$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h + +fi + + + +for ac_func in fork CreateProcess +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + + php_can_support_proc_open=yes + break + +else + + php_can_support_proc_open=no + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 +$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; } +if test "$php_can_support_proc_open" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +PHP_ENABLE_CHROOT_FUNC=no +case "$PHP_SAPI" in + embed) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + none) + for PROG in $PHP_BINARIES; do + case "$PROG" in + cgi|cli|phpdbg) + PHP_ENABLE_CHROOT_FUNC=yes + ;; + + *) + PHP_ENABLE_CHROOT_FUNC=no + break + ;; + esac + done + ;; +esac + +if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then + +$as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h + +fi + + + unset ac_cv_func_res_nsearch + unset ac_cv_func___res_nsearch + unset found + + ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" +if test "x$ac_cv_func_res_nsearch" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" +if test "x$ac_cv_func___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_nsearch + unset ac_cv_lib_resolv___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 +$as_echo_n "checking for res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_nsearch=yes +else + ac_cv_lib_resolv_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 +$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_nsearch=yes +else + ac_cv_lib_resolv___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 +$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_bind_res_nsearch + unset ac_cv_lib_bind___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 +$as_echo_n "checking for res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_nsearch=yes +else + ac_cv_lib_bind_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } +if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 +$as_echo_n "checking for __res_nsearch in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_nsearch=yes +else + ac_cv_lib_bind___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 +$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } +if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + + unset ac_cv_lib_socket_res_nsearch + unset ac_cv_lib_socket___res_nsearch + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 +$as_echo_n "checking for res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_nsearch (); +int +main () +{ +return res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_nsearch=yes +else + ac_cv_lib_socket_res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } +if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 +$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_nsearch+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_nsearch (); +int +main () +{ +return __res_nsearch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_nsearch=yes +else + ac_cv_lib_socket___res_nsearch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 +$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } +if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_nsearch=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_res_ndestroy + unset ac_cv_func___res_ndestroy + unset found + + ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" +if test "x$ac_cv_func_res_ndestroy" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_ndestroy" "ac_cv_func___res_ndestroy" +if test "x$ac_cv_func___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_ndestroy + unset ac_cv_lib_resolv___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lresolv" >&5 +$as_echo_n "checking for res_ndestroy in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_ndestroy=yes +else + ac_cv_lib_resolv_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_resolv_res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lresolv" >&5 +$as_echo_n "checking for __res_ndestroy in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_ndestroy=yes +else + ac_cv_lib_resolv___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_resolv___res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + + unset ac_cv_lib_bind_res_ndestroy + unset ac_cv_lib_bind___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lbind" >&5 +$as_echo_n "checking for res_ndestroy in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_ndestroy=yes +else + ac_cv_lib_bind_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_bind_res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lbind" >&5 +$as_echo_n "checking for __res_ndestroy in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_ndestroy=yes +else + ac_cv_lib_bind___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_bind___res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + + unset ac_cv_lib_socket_res_ndestroy + unset ac_cv_lib_socket___res_ndestroy + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lsocket" >&5 +$as_echo_n "checking for res_ndestroy in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_ndestroy (); +int +main () +{ +return res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_ndestroy=yes +else + ac_cv_lib_socket_res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_ndestroy" >&5 +$as_echo "$ac_cv_lib_socket_res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket_res_ndestroy" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lsocket" >&5 +$as_echo_n "checking for __res_ndestroy in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_ndestroy+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_ndestroy (); +int +main () +{ +return __res_ndestroy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_ndestroy=yes +else + ac_cv_lib_socket___res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_ndestroy" >&5 +$as_echo "$ac_cv_lib_socket___res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket___res_ndestroy" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_ndestroy=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dns_search + unset ac_cv_func___dns_search + unset found + + ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" +if test "x$ac_cv_func_dns_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" +if test "x$ac_cv_func___dns_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + ac_cv_func_dns_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_dns_search + unset ac_cv_lib_resolv___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 +$as_echo_n "checking for dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dns_search=yes +else + ac_cv_lib_resolv_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 +$as_echo "$ac_cv_lib_resolv_dns_search" >&6; } +if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 +$as_echo_n "checking for __dns_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dns_search=yes +else + ac_cv_lib_resolv___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 +$as_echo "$ac_cv_lib_resolv___dns_search" >&6; } +if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_bind_dns_search + unset ac_cv_lib_bind___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 +$as_echo_n "checking for dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dns_search=yes +else + ac_cv_lib_bind_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 +$as_echo "$ac_cv_lib_bind_dns_search" >&6; } +if test "x$ac_cv_lib_bind_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 +$as_echo_n "checking for __dns_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dns_search=yes +else + ac_cv_lib_bind___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 +$as_echo "$ac_cv_lib_bind___dns_search" >&6; } +if test "x$ac_cv_lib_bind___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + + unset ac_cv_lib_socket_dns_search + unset ac_cv_lib_socket___dns_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 +$as_echo_n "checking for dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dns_search (); +int +main () +{ +return dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dns_search=yes +else + ac_cv_lib_socket_dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 +$as_echo "$ac_cv_lib_socket_dns_search" >&6; } +if test "x$ac_cv_lib_socket_dns_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 +$as_echo_n "checking for __dns_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dns_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dns_search (); +int +main () +{ +return __dns_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dns_search=yes +else + ac_cv_lib_socket___dns_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 +$as_echo "$ac_cv_lib_socket___dns_search" >&6; } +if test "x$ac_cv_lib_socket___dns_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dns_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_expand + unset ac_cv_func___dn_expand + unset found + + ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" +if test "x$ac_cv_func_dn_expand" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" +if test "x$ac_cv_func___dn_expand" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_expand + unset ac_cv_lib_resolv___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 +$as_echo_n "checking for dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_expand=yes +else + ac_cv_lib_resolv_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } +if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 +$as_echo_n "checking for __dn_expand in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_expand=yes +else + ac_cv_lib_resolv___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 +$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } +if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_bind_dn_expand + unset ac_cv_lib_bind___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 +$as_echo_n "checking for dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_expand=yes +else + ac_cv_lib_bind_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 +$as_echo "$ac_cv_lib_bind_dn_expand" >&6; } +if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 +$as_echo_n "checking for __dn_expand in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_expand=yes +else + ac_cv_lib_bind___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 +$as_echo "$ac_cv_lib_bind___dn_expand" >&6; } +if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + + unset ac_cv_lib_socket_dn_expand + unset ac_cv_lib_socket___dn_expand + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 +$as_echo_n "checking for dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_expand (); +int +main () +{ +return dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_expand=yes +else + ac_cv_lib_socket_dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 +$as_echo "$ac_cv_lib_socket_dn_expand" >&6; } +if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 +$as_echo_n "checking for __dn_expand in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_expand+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_expand (); +int +main () +{ +return __dn_expand (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_expand=yes +else + ac_cv_lib_socket___dn_expand=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 +$as_echo "$ac_cv_lib_socket___dn_expand" >&6; } +if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_expand=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + unset ac_cv_func_dn_skipname + unset ac_cv_func___dn_skipname + unset found + + ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" +if test "x$ac_cv_func_dn_skipname" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" +if test "x$ac_cv_func___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + ;; + + *) + + unset ac_cv_lib_resolv_dn_skipname + unset ac_cv_lib_resolv___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 +$as_echo_n "checking for dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_dn_skipname=yes +else + ac_cv_lib_resolv_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 +$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___dn_skipname=yes +else + ac_cv_lib_resolv___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 +$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_bind_dn_skipname + unset ac_cv_lib_bind___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 +$as_echo_n "checking for dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_dn_skipname=yes +else + ac_cv_lib_bind_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } +if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 +$as_echo_n "checking for __dn_skipname in -lbind... " >&6; } +if ${ac_cv_lib_bind___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___dn_skipname=yes +else + ac_cv_lib_bind___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 +$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } +if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + + unset ac_cv_lib_socket_dn_skipname + unset ac_cv_lib_socket___dn_skipname + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 +$as_echo_n "checking for dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket_dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dn_skipname (); +int +main () +{ +return dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_dn_skipname=yes +else + ac_cv_lib_socket_dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } +if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 +$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } +if ${ac_cv_lib_socket___dn_skipname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __dn_skipname (); +int +main () +{ +return __dn_skipname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___dn_skipname=yes +else + ac_cv_lib_socket___dn_skipname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 +$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } +if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_dn_skipname=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + + + + unset ac_cv_func_res_search + unset ac_cv_func___res_search + unset found + + ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" +if test "x$ac_cv_func_res_search" = xyes; then : + found=yes +else + ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" +if test "x$ac_cv_func___res_search" = xyes; then : + found=yes +else + found=no +fi + +fi + + + case $found in + yes) + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + ac_cv_func_res_search=yes + ;; + + *) + + unset ac_cv_lib_resolv_res_search + unset ac_cv_lib_resolv___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 +$as_echo_n "checking for res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_res_search=yes +else + ac_cv_lib_resolv_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 +$as_echo "$ac_cv_lib_resolv_res_search" >&6; } +if test "x$ac_cv_lib_resolv_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 +$as_echo_n "checking for __res_search in -lresolv... " >&6; } +if ${ac_cv_lib_resolv___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv___res_search=yes +else + ac_cv_lib_resolv___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 +$as_echo "$ac_cv_lib_resolv___res_search" >&6; } +if test "x$ac_cv_lib_resolv___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lresolv" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case resolv in + c|c_r|pthread*) ;; + *) + LIBS="-lresolv $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_bind_res_search + unset ac_cv_lib_bind___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 +$as_echo_n "checking for res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_res_search=yes +else + ac_cv_lib_bind_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 +$as_echo "$ac_cv_lib_bind_res_search" >&6; } +if test "x$ac_cv_lib_bind_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 +$as_echo_n "checking for __res_search in -lbind... " >&6; } +if ${ac_cv_lib_bind___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind___res_search=yes +else + ac_cv_lib_bind___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 +$as_echo "$ac_cv_lib_bind___res_search" >&6; } +if test "x$ac_cv_lib_bind___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lbind" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case bind in + c|c_r|pthread*) ;; + *) + LIBS="-lbind $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + + unset ac_cv_lib_socket_res_search + unset ac_cv_lib_socket___res_search + unset found + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 +$as_echo_n "checking for res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket_res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_res_search=yes +else + ac_cv_lib_socket_res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 +$as_echo "$ac_cv_lib_socket_res_search" >&6; } +if test "x$ac_cv_lib_socket_res_search" = xyes; then : + found=yes +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 +$as_echo_n "checking for __res_search in -lsocket... " >&6; } +if ${ac_cv_lib_socket___res_search+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket___res_search=yes +else + ac_cv_lib_socket___res_search=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 +$as_echo "$ac_cv_lib_socket___res_search" >&6; } +if test "x$ac_cv_lib_socket___res_search" = xyes; then : + found=yes +else + found=no +fi + + +fi + + + if test "$found" = "yes"; then + ac_libs=$LIBS + LIBS="$LIBS -lsocket" + if test "$cross_compiling" = yes; then : + found=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +main() { return (0); } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + found=yes +else + found=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS=$ac_libs + fi + + if test "$found" = "yes"; then + + + case socket in + c|c_r|pthread*) ;; + *) + LIBS="-lsocket $LIBS" + ;; + esac + + + +$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h + + +$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h + + ac_cv_func_res_search=yes + else + + : + + fi + + + fi + + + fi + + ;; + + esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 +$as_echo_n "checking whether strptime() declaration fails... " >&6; } +if ${ac_cv_strptime_decl_fails+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ + +#ifndef HAVE_STRPTIME +#error no strptime() on this platform +#else +/* use invalid strptime() declaration to see if it fails to compile */ +int strptime(const char *s, const char *format, struct tm *tm); +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_strptime_decl_fails=no + +else + + ac_cv_strptime_decl_fails=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 +$as_echo "$ac_cv_strptime_decl_fails" >&6; } +if test "$ac_cv_strptime_decl_fails" = "yes"; then + +$as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h + +fi + +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + +fi + +done + +for ac_func in mblen +do : + ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" +if test "x$ac_cv_func_mblen" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MBLEN 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if ${ac_cv_type_mbstate_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_WCHAR_H +# include +#endif + +int +main () +{ + +mbstate_t a; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ac_cv_type_mbstate_t=yes + +else + + ac_cv_type_mbstate_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } +if test "$ac_cv_type_mbstate_t" = "yes"; then + +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + +fi + +for ac_header in atomic.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" +if test "x$ac_cv_header_atomic_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ATOMIC_H 1 +_ACEOF + +fi + +done + + +ac_fn_c_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" +if test "x$ac_cv_have_decl_arc4random_buf" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl +_ACEOF + + + +php_with_password_argon2=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 support" >&5 +$as_echo_n "checking for Argon2 support... " >&6; } + +# Check whether --with-password-argon2 was given. +if test "${with_password_argon2+set}" = set; then : + withval=$with_password_argon2; PHP_PASSWORD_ARGON2=$withval +else + + PHP_PASSWORD_ARGON2=no + test "$PHP_ENABLE_ALL" && PHP_PASSWORD_ARGON2=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PASSWORD_ARGON2 in +shared,*) + PHP_PASSWORD_ARGON2=`echo "$PHP_PASSWORD_ARGON2"|$SED 's/^shared,//'` + ;; +shared) + PHP_PASSWORD_ARGON2=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PASSWORD_ARGON2" != "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 library" >&5 +$as_echo_n "checking for Argon2 library... " >&6; } + for i in $PHP_PASSWORD_ARGON2 /usr /usr/local ; do + if test -r $i/include/argon2.h; then + ARGON2_DIR=$i; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + + if test -z "$ARGON2_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please ensure the argon2 header and library are installed" "$LINENO" 5 + fi + + + + if test -n "$ARGON2_DIR/$PHP_LIBDIR"; then + + if test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ARGON2_DIR/$PHP_LIBDIR" || echo "$ARGON2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ARGON2_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ARGON2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ARGON2_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case argon2 in + c|c_r|pthread*) ;; + *) + LIBS="-largon2 $LIBS" + ;; + esac + + + + + + if test "$ARGON2_DIR/include" != "/usr/include"; then + + if test -z "$ARGON2_DIR/include" || echo "$ARGON2_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ARGON2_DIR/include + else + + ep_dir=`echo $ARGON2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ARGON2_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argon2id_hash_raw in -largon2" >&5 +$as_echo_n "checking for argon2id_hash_raw in -largon2... " >&6; } +if ${ac_cv_lib_argon2_argon2id_hash_raw+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-largon2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char argon2id_hash_raw (); +int +main () +{ +return argon2id_hash_raw (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_argon2_argon2id_hash_raw=yes +else + ac_cv_lib_argon2_argon2id_hash_raw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2id_hash_raw" >&5 +$as_echo "$ac_cv_lib_argon2_argon2id_hash_raw" >&6; } +if test "x$ac_cv_lib_argon2_argon2id_hash_raw" = xyes; then : + + LIBS="$LIBS -largon2" + +$as_echo "#define HAVE_ARGON2LIB 1" >>confdefs.h + + +else + + as_fn_error $? "Problem with libargon2.(a|so). Please verify that Argon2 header and libraries >= 20161029 are installed" "$LINENO" 5 + +fi + +fi + +for ac_header in net/if.h +do : + ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " + #ifdef HAVE_SYS_SOCKET_H + #include + #endif + #include + +" +if test "x$ac_cv_header_net_if_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NET_IF_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable getifaddrs" >&5 +$as_echo_n "checking for usable getifaddrs... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + struct ifaddrs *interfaces; + if (!getifaddrs(&interfaces)) { + freeifaddrs(interfaces); + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_have_getifaddrs=yes +else + ac_have_getifaddrs=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test "$ac_have_getifaddrs" = "yes" ; then + +$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + ext_builddir=ext/standard + ext_srcdir=$abs_srcdir/ext/standard + ext_dir=ext/standard + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "" != "shared" && test "" != "yes" && test "" != "cli"; then + PHP_STANDARD_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c \ + random.c net.c hrtime.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_STANDARD 1 +_ACEOF + + fi + fi + + if test "" != "shared" && test "" != "yes" && test "" = "cli"; then + PHP_STANDARD_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ + cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \ + flock_compat.c formatted_print.c fsock.c head.c html.c image.c \ + info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \ + microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \ + soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \ + var.c versioning.c assert.c strnatcmp.c levenshtein.c \ + incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \ + http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \ + var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \ + filters.c proc_open.c streamsfuncs.c http.c password.c \ + random.c net.c hrtime.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + + for header_file in ext/standard/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + + +php_enable_sysvmsg=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 +$as_echo_n "checking whether to enable System V IPC support... " >&6; } +# Check whether --enable-sysvmsg was given. +if test "${enable_sysvmsg+set}" = set; then : + enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval +else + + PHP_SYSVMSG=no + test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVMSG in +shared,*) + PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVMSG=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVMSG" != "no"; then + ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_msg_h" = xyes; then : + +else + as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + +fi + + + + +$as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h + + + ext_builddir=ext/sysvmsg + ext_srcdir=$abs_srcdir/ext/sysvmsg + ext_dir=ext/sysvmsg + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVMSG_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVMSG 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVMSG_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvmsg.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable System V semaphore support... " >&6; } +# Check whether --enable-sysvsem was given. +if test "${enable_sysvsem+set}" = set; then : + enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval +else + + PHP_SYSVSEM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSEM in +shared,*) + PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSEM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSEM" != "no"; then + + ext_builddir=ext/sysvsem + ext_srcdir=$abs_srcdir/ext/sysvsem + ext_dir=ext/sysvsem + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSEM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSEM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSEM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvsem.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 +$as_echo_n "checking for union semun... " >&6; } +if ${php_cv_semun+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ +union semun x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + php_cv_semun=yes + +else + + php_cv_semun=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 +$as_echo "$php_cv_semun" >&6; } + if test "$php_cv_semun" = "yes"; then + +$as_echo "#define HAVE_SEMUN 1" >>confdefs.h + + else + +$as_echo "#define HAVE_SEMUN 0" >>confdefs.h + + fi +fi + + + + + +php_enable_sysvshm=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 +$as_echo_n "checking whether to enable System V shared memory support... " >&6; } +# Check whether --enable-sysvshm was given. +if test "${enable_sysvshm+set}" = set; then : + enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval +else + + PHP_SYSVSHM=no + test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_SYSVSHM in +shared,*) + PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'` + ;; +shared) + PHP_SYSVSHM=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSVSHM" != "no"; then + +$as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h + + + ext_builddir=ext/sysvshm + ext_srcdir=$abs_srcdir/ext/sysvshm + ext_dir=ext/sysvshm + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_SYSVSHM_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_SYSVSHM 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_SYSVSHM_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in sysvshm.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for TIDY support... " >&6; } + +# Check whether --with-tidy was given. +if test "${with_tidy+set}" = set; then : + withval=$with_tidy; PHP_TIDY=$withval +else + + PHP_TIDY=no + test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TIDY in +shared,*) + PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'` + ;; +shared) + PHP_TIDY=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TIDY" != "no"; then + + if test "$PHP_TIDY" != "yes"; then + TIDY_SEARCH_DIRS=$PHP_TIDY + else + TIDY_SEARCH_DIRS="/usr/local /usr" + fi + + for i in $TIDY_SEARCH_DIRS; do + for j in tidy tidyp; do + if test -f $i/include/$j/$j.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include/$j + TIDY_LIB_NAME=$j + break + elif test -f $i/include/$j.h; then + TIDY_DIR=$i + TIDY_INCDIR=$i/include + TIDY_LIB_NAME=$j + break + fi + done + done + + if test -z "$TIDY_DIR"; then + as_fn_error $? "Cannot find libtidy" "$LINENO" 5 + else + if test -f "$TIDY_INCDIR/tidybuffio.h"; then + +$as_echo "#define HAVE_TIDYBUFFIO_H 1" >>confdefs.h + + fi + fi + + TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR + if test "$TIDY_LIB_NAME" == 'tidyp'; then + +$as_echo "#define HAVE_TIDYP_H 1" >>confdefs.h + + else + +$as_echo "#define HAVE_TIDY_H 1" >>confdefs.h + + fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyOptGetDoc" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -l$TIDY_LIB_NAME" >&5 +$as_echo_n "checking for tidyOptGetDoc in -l$TIDY_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$TIDY_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$TIDY_LIB_NAME_tidyOptGetDoc + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy5" >&5 +$as_echo_n "checking for tidyOptGetDoc in -ltidy5... " >&6; } +if ${ac_cv_lib_tidy5_tidyOptGetDoc+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltidy5 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyOptGetDoc (); +int +main () +{ +return tidyOptGetDoc (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tidy5_tidyOptGetDoc=yes +else + ac_cv_lib_tidy5_tidyOptGetDoc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy5_tidyOptGetDoc" >&5 +$as_echo "$ac_cv_lib_tidy5_tidyOptGetDoc" >&6; } +if test "x$ac_cv_lib_tidy5_tidyOptGetDoc" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + TIDY_LIB_NAME=tidy5 + +$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_tidy5_tidyOptGetDoc + + +fi + + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff="" + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyReleaseDate" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyReleaseDate in -l$TIDY_LIB_NAME" >&5 +$as_echo_n "checking for tidyReleaseDate in -l$TIDY_LIB_NAME... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$TIDY_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tidyReleaseDate (); +int +main () +{ +return tidyReleaseDate (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_TIDYRELEASEDATE 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$TIDY_LIB_NAME_tidyReleaseDate + + +fi + + + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-l$TIDY_LIB_NAME $TIDY_SHARED_LIBADD" + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD" + test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$TIDY_LIBDIR"; then + + if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then + + if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_LIBDIR + else + + ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $TIDY_LIB_NAME in + c|c_r|pthread*) ;; + *) + LIBS="-l$TIDY_LIB_NAME $LIBS" + ;; + esac + + + + + fi + + + + if test "$TIDY_INCDIR" != "/usr/include"; then + + if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then + ai_p=$TIDY_INCDIR + else + + ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + + ext_builddir=ext/tidy + ext_srcdir=$abs_srcdir/ext/tidy + ext_dir=ext/tidy + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TIDY_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TIDY 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TIDY_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tidy.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_enable_tokenizer=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 +$as_echo_n "checking whether to enable tokenizer support... " >&6; } +# Check whether --enable-tokenizer was given. +if test "${enable_tokenizer+set}" = set; then : + enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval +else + + PHP_TOKENIZER=yes + test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_TOKENIZER in +shared,*) + PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'` + ;; +shared) + PHP_TOKENIZER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_TOKENIZER" != "no"; then + + ext_builddir=ext/tokenizer + ext_srcdir=$abs_srcdir/ext/tokenizer + ext_dir=ext/tokenizer + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_TOKENIZER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_TOKENIZER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_TOKENIZER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in tokenizer.c tokenizer_data.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_enable_xml=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5 +$as_echo_n "checking whether to enable XML support... " >&6; } +# Check whether --enable-xml was given. +if test "${enable_xml+set}" = set; then : + enableval=$enable_xml; PHP_XML=$enableval +else + + PHP_XML=yes + test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XML in +shared,*) + PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'` + ;; +shared) + PHP_XML=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_expat=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 +$as_echo_n "checking whether to build with expat support... " >&6; } + +# Check whether --with-expat was given. +if test "${with_expat+set}" = set; then : + withval=$with_expat; PHP_EXPAT=$withval +else + + PHP_EXPAT=no + + +fi + + +ext_output=$PHP_EXPAT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XML" != "no"; then + + if test "$PHP_EXPAT" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + xml_extra_sources="compat.c" + + am_i_shared=$PHP_XML_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xml to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xml shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xml, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + + else + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5 +$as_echo_n "checking for expat... " >&6; } + +if test -n "$EXPAT_CFLAGS"; then + pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXPAT_LIBS"; then + pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` + else + EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXPAT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (expat) were not met: + +$EXPAT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS + EXPAT_LIBS=$pkg_cv_EXPAT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $EXPAT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXPAT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + fi + + + ext_builddir=ext/xml + ext_srcdir=$abs_srcdir/ext/xml + ext_dir=ext/xml + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XML_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XML 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XML_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xml.c $xml_extra_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + +fi + + + + + +php_enable_xmlreader=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 +$as_echo_n "checking whether to enable XMLReader support... " >&6; } +# Check whether --enable-xmlreader was given. +if test "${enable_xmlreader+set}" = set; then : + enableval=$enable_xmlreader; PHP_XMLREADER=$enableval +else + + PHP_XMLREADER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLREADER in +shared,*) + PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLREADER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLREADER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLReader extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_XMLREADER 1" >>confdefs.h + + + ext_builddir=ext/xmlreader + ext_srcdir=$abs_srcdir/ext/xmlreader + ext_dir=ext/xmlreader + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLREADER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLREADER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLREADER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlreader.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with XMLRPC-EPI support... " >&6; } + +# Check whether --with-xmlrpc was given. +if test "${with_xmlrpc+set}" = set; then : + withval=$with_xmlrpc; PHP_XMLRPC=$withval +else + + PHP_XMLRPC=no + test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLRPC in +shared,*) + PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLRPC=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_expat=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 +$as_echo_n "checking whether to build with expat support... " >&6; } + +# Check whether --with-expat was given. +if test "${with_expat+set}" = set; then : + withval=$with_expat; PHP_EXPAT=$withval +else + + PHP_EXPAT=no + + +fi + + +ext_output=$PHP_EXPAT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_with_iconv_dir=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5 +$as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; } + +# Check whether --with-iconv-dir was given. +if test "${with_iconv_dir+set}" = set; then : + withval=$with_iconv_dir; PHP_ICONV_DIR=$withval +else + + PHP_ICONV_DIR=no + + +fi + + +ext_output=$PHP_ICONV_DIR +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLRPC" != "no"; then + + + am_i_shared=$PHP_XMLRPC_SHARED + is_it_shared=$PHP_LIBXML_SHARED + is_it_enabled=$PHP_LIBXML + if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then + as_fn_error $? " +You've configured extension xmlrpc to build statically, but it +depends on extension libxml, which you've configured to build shared. +You either need to build xmlrpc shared or build libxml statically for the +build to be successful. +" "$LINENO" 5 + fi + if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then + as_fn_error $? " +You've configured extension xmlrpc, which depends on extension libxml, +but you've either not enabled libxml, or have disabled it. +" "$LINENO" 5 + fi + + + PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD" + + +$as_echo "#define HAVE_XMLRPC 1" >>confdefs.h + + + if test "$PHP_EXPAT" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XML-RPC extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + if test "$PHP_XML" = "no"; then + + + case ext/xml in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in compat.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<&5 +$as_echo_n "checking for expat... " >&6; } + +if test -n "$EXPAT_CFLAGS"; then + pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXPAT_LIBS"; then + pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + ($PKG_CONFIG --exists --print-errors "expat") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` + else + EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXPAT_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (expat) were not met: + +$EXPAT_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables EXPAT_CFLAGS +and EXPAT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS + EXPAT_LIBS=$pkg_cv_EXPAT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $EXPAT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXPAT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h + + + fi + + if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then + + if test "$PHP_ICONV_DIR" != "no"; then + PHP_ICONV=$PHP_ICONV_DIR + fi + + if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi + + + found_iconv=no + unset ICONV_DIR + + $php_shtool mkdir -p ext/iconv + + echo > ext/iconv/php_have_bsd_iconv.h + echo > ext/iconv/php_have_ibm_iconv.h + echo > ext/iconv/php_have_glibc_iconv.h + echo > ext/iconv/php_have_libiconv.h + echo > ext/iconv/php_have_iconv.h + echo > ext/iconv/php_php_iconv_impl.h + echo > ext/iconv/php_iconv_aliased_libiconv.h + echo > ext/iconv/php_php_iconv_h_path.h + echo > ext/iconv/php_iconv_supports_errno.h + + if test "$PHP_ICONV" = "yes"; then + LIBS_save="$LIBS" + LIBS= + ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" +if test "x$ac_cv_func_iconv" = xyes; then : + + found_iconv=yes + +else + + ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" +if test "x$ac_cv_func_libiconv" = xyes; then : + + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + found_iconv=yes + +fi + + +fi + + LIBS="$LIBS_save" + fi + + if test "$found_iconv" = "no"; then + + for i in $PHP_ICONV /usr/local /usr; do + if test -r $i/include/giconv.h; then + +$as_echo "#define HAVE_GICONV_H 1" >>confdefs.h + + ICONV_DIR=$i + iconv_lib_name=giconv + break + elif test -r $i/include/iconv.h; then + ICONV_DIR=$i + iconv_lib_name=iconv + break + fi + done + + if test -z "$ICONV_DIR"; then + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME || + test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd + then + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char libiconv (); +int +main () +{ +return libiconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h + + +$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h + + + echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h + + +$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_libiconv + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + -L$ICONV_DIR/$PHP_LIBDIR + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$iconv_lib_name $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char iconv (); +int +main () +{ +return iconv (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + found_iconv=yes + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_$iconv_lib_name_iconv + + +fi + + + +fi + + fi + fi + + if test "$found_iconv" = "yes"; then + + echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h + + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + if test -n "$ICONV_DIR"; then + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD" + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$ICONV_DIR/$PHP_LIBDIR"; then + + if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case $iconv_lib_name in + c|c_r|pthread*) ;; + *) + LIBS="-l$iconv_lib_name $LIBS" + ;; + esac + + + + + fi + + + + if test "$ICONV_DIR/include" != "/usr/include"; then + + if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then + ai_p=$ICONV_DIR/include + else + + ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + fi + +else + as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 + + fi + + fi +fi + +if test "$PHP_XMLRPC" = "yes"; then + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + ext_dir=ext/xmlrpc + + ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \ + libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \ + libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \ + libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \ + libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \ + libxmlrpc/xml_to_soap.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>confdefs.h + + +elif test "$PHP_XMLRPC" != "no"; then + + if test -r $PHP_XMLRPC/include/xmlrpc.h; then + XMLRPC_DIR=$PHP_XMLRPC/include + elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then + XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5 +$as_echo_n "checking for XMLRPC-EPI in default path... " >&6; } + for i in /usr/local /usr; do + if test -r $i/include/xmlrpc.h; then + XMLRPC_DIR=$i/include + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +$as_echo "found in $i" >&6; } + break + fi + done + fi + + if test -z "$XMLRPC_DIR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +$as_echo "not found" >&6; } + as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 + fi + + + if test "$XMLRPC_DIR" != "/usr/include"; then + + if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR + else + + ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD" + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + if test "$ext_shared" = "yes"; then + XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + fi + else + + + if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then + + if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then + + if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then + ai_p=$XMLRPC_DIR/$PHP_LIBDIR + else + + ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"` + fi + + + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + + fi + + fi + + + case xmlrpc in + c|c_r|pthread*) ;; + *) + LIBS="-lxmlrpc $LIBS" + ;; + esac + + + + + fi + + + + ext_builddir=ext/xmlrpc + ext_srcdir=$abs_srcdir/ext/xmlrpc + ext_dir=ext/xmlrpc + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLRPC_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLRPC 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLRPC_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in xmlrpc-epi-php.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable XMLWriter support... " >&6; } +# Check whether --enable-xmlwriter was given. +if test "${enable_xmlwriter+set}" = set; then : + enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval +else + + PHP_XMLWRITER=yes + test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XMLWRITER in +shared,*) + PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'` + ;; +shared) + PHP_XMLWRITER=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XMLWRITER" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XMLWriter extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.7.6" >&5 +$as_echo_n "checking for libxml-2.0 >= 2.7.6... " >&6; } + +if test -n "$LIBXML_CFLAGS"; then + pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBXML_LIBS"; then + pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.7.6\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.7.6") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.7.6" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + else + LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.7.6" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBXML_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxml-2.0 >= 2.7.6) were not met: + +$LIBXML_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBXML_CFLAGS +and LIBXML_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS + LIBXML_LIBS=$pkg_cv_LIBXML_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBXML_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBXML_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +$as_echo "#define HAVE_LIBXML 1" >>confdefs.h + + + + +$as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h + + + ext_builddir=ext/xmlwriter + ext_srcdir=$abs_srcdir/ext/xmlwriter + ext_dir=ext/xmlwriter + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XMLWRITER_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XMLWRITER 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XMLWRITER_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xmlwriter.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to build with XSL support... " >&6; } + +# Check whether --with-xsl was given. +if test "${with_xsl+set}" = set; then : + withval=$with_xsl; PHP_XSL=$withval +else + + PHP_XSL=no + test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_XSL in +shared,*) + PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'` + ;; +shared) + PHP_XSL=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_XSL" != "no"; then + + if test "$PHP_LIBXML" = "no"; then + as_fn_error $? "XSL extension requires LIBXML extension, add --with-libxml" "$LINENO" 5 + fi + + if test "$PHP_DOM" = "no"; then + as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 + fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.0" >&5 +$as_echo_n "checking for libxslt >= 1.1.0... " >&6; } + +if test -n "$XSL_CFLAGS"; then + pkg_cv_XSL_CFLAGS="$XSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XSL_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$XSL_LIBS"; then + pkg_cv_XSL_LIBS="$XSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XSL_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + XSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= 1.1.0" 2>&1` + else + XSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= 1.1.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$XSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libxslt >= 1.1.0) were not met: + +$XSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables XSL_CFLAGS +and XSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables XSL_CFLAGS +and XSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XSL_CFLAGS=$pkg_cv_XSL_CFLAGS + XSL_LIBS=$pkg_cv_XSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $XSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $XSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexslt" >&5 +$as_echo_n "checking for libexslt... " >&6; } + +if test -n "$EXSLT_CFLAGS"; then + pkg_cv_EXSLT_CFLAGS="$EXSLT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXSLT_CFLAGS=`$PKG_CONFIG --cflags "libexslt" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EXSLT_LIBS"; then + pkg_cv_EXSLT_LIBS="$EXSLT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EXSLT_LIBS=`$PKG_CONFIG --libs "libexslt" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexslt" 2>&1` + else + EXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexslt" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$EXSLT_PKG_ERRORS" >&5 + + +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + EXSLT_CFLAGS=$pkg_cv_EXSLT_CFLAGS + EXSLT_LIBS=$pkg_cv_EXSLT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + + for ac_i in $EXSLT_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $EXSLT_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + +$as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h + + +fi + + +$as_echo "#define HAVE_XSL 1" >>confdefs.h + + + ext_builddir=ext/xsl + ext_srcdir=$abs_srcdir/ext/xsl + ext_dir=ext/xsl + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_XSL_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_XSL 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_XSL_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in php_xsl.c xsltprocessor.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking whether to enable zend-test extension... " >&6; } +# Check whether --enable-zend-test was given. +if test "${enable_zend_test+set}" = set; then : + enableval=$enable_zend_test; PHP_ZEND_TEST=$enableval +else + + PHP_ZEND_TEST=no + test "$PHP_ENABLE_ALL" && PHP_ZEND_TEST=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZEND_TEST in +shared,*) + PHP_ZEND_TEST=`echo "$PHP_ZEND_TEST"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZEND_TEST=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZEND_TEST" != "no"; then + + ext_builddir=ext/zend_test + ext_srcdir=$abs_srcdir/ext/zend_test + ext_dir=ext/zend_test + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZEND_TEST_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in test.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZEND_TEST 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZEND_TEST_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in test.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo_n "checking for zip archive read/write support... " >&6; } + +# Check whether --with-zip was given. +if test "${with_zip+set}" = set; then : + withval=$with_zip; PHP_ZIP=$withval +else + + PHP_ZIP=no + test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_ZIP in +shared,*) + PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'` + ;; +shared) + PHP_ZIP=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_ZIP" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzip >= 0.11" >&5 +$as_echo_n "checking for libzip >= 0.11... " >&6; } + +if test -n "$LIBZIP_CFLAGS"; then + pkg_cv_LIBZIP_CFLAGS="$LIBZIP_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzip >= 0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$LIBZIP_LIBS"; then + pkg_cv_LIBZIP_LIBS="$LIBZIP_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libzip >= 0.11") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_LIBZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 0.11" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + LIBZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 0.11" 2>&1` + else + LIBZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 0.11" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$LIBZIP_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (libzip >= 0.11) were not met: + +$LIBZIP_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables LIBZIP_CFLAGS +and LIBZIP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables LIBZIP_CFLAGS +and LIBZIP_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + LIBZIP_CFLAGS=$pkg_cv_LIBZIP_CFLAGS + LIBZIP_LIBS=$pkg_cv_LIBZIP_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + for ac_i in $LIBZIP_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + + for ac_i in $LIBZIP_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="$ZIP_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="$ZIP_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD" + test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LIBZIP_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_encryption in -lzip" >&5 +$as_echo_n "checking for zip_file_set_encryption in -lzip... " >&6; } +if ${ac_cv_lib_zip_zip_file_set_encryption+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lzip $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char zip_file_set_encryption (); +int +main () +{ +return zip_file_set_encryption (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_zip_zip_file_set_encryption=yes +else + ac_cv_lib_zip_zip_file_set_encryption=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_encryption" >&5 +$as_echo "$ac_cv_lib_zip_zip_file_set_encryption" >&6; } +if test "x$ac_cv_lib_zip_zip_file_set_encryption" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_ENCRYPTION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_zip_zip_file_set_encryption + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.2.0 needed for encryption support" >&5 +$as_echo "$as_me: WARNING: Libzip >= 1.2.0 needed for encryption support" >&2;} + + +fi + + + + save_old_LDFLAGS=$LDFLAGS + ac_stuff=" + $LIBZIP_LIBS + " + + save_ext_shared=$ext_shared + ext_shared=yes + + for ac_i in $ac_stuff; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + LDFLAGS="$LDFLAGS -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + LDFLAGS="-L$ai_p $LDFLAGS" + test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_libzip_version in -lzip" >&5 +$as_echo_n "checking for zip_libzip_version in -lzip... " >&6; } +if ${ac_cv_lib_zip_zip_libzip_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lzip $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char zip_libzip_version (); +int +main () +{ +return zip_libzip_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_zip_zip_libzip_version=yes +else + ac_cv_lib_zip_zip_libzip_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_libzip_version" >&5 +$as_echo "$ac_cv_lib_zip_zip_libzip_version" >&6; } +if test "x$ac_cv_lib_zip_zip_libzip_version" = xyes; then : + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + + +$as_echo "#define HAVE_LIBZIP_VERSION 1" >>confdefs.h + + + +else + + LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared + unset ac_cv_lib_zip_zip_libzip_version + + + +fi + + + +$as_echo "#define HAVE_ZIP 1" >>confdefs.h + + + PHP_ZIP_SOURCES="php_zip.c zip_stream.c" + + ext_builddir=ext/zip + ext_srcdir=$abs_srcdir/ext/zip + ext_dir=ext/zip + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_ZIP_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_ZIP 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_ZIP_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $PHP_ZIP_SOURCES; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + +php_enable_mysqlnd=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 +$as_echo_n "checking whether to enable mysqlnd... " >&6; } +# Check whether --enable-mysqlnd was given. +if test "${enable_mysqlnd+set}" = set; then : + enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval +else + + PHP_MYSQLND=no + test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_MYSQLND in +shared,*) + PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'` + ;; +shared) + PHP_MYSQLND=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + + +php_enable_mysqlnd_compression_support=yes + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 +$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; } +# Check whether --enable-mysqlnd_compression_support was given. +if test "${enable_mysqlnd_compression_support+set}" = set; then : + enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval +else + + PHP_MYSQLND_COMPRESSION_SUPPORT=yes + + +fi + + +ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then + mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c" + mysqlnd_base_sources="mysqlnd_connection.c mysqlnd_alloc.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ + mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_vio.c mysqlnd_protocol_frame_codec.c \ + mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \ + mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c mysqlnd_commands.c \ + mysqlnd_block_alloc.c mysqlnd_read_buffer.c mysqlnd_plugin.c php_mysqlnd.c" + + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + +$as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h + + fi + + +$as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h + + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + + if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then + + found_openssl=no + + test -z "$PHP_OPENSSL" && PHP_OPENSSL=no + test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no + + if test "$PHP_OPENSSL" != "no"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5 +$as_echo_n "checking for openssl >= 1.0.1... " >&6; } + +if test -n "$OPENSSL_CFLAGS"; then + pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OPENSSL_LIBS"; then + pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + else + OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OPENSSL_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (openssl >= 1.0.1) were not met: + +$OPENSSL_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables OPENSSL_CFLAGS +and OPENSSL_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS + OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + found_openssl=yes +fi + fi + + if test "$found_openssl" = "yes"; then + + for ac_i in $OPENSSL_LIBS; do + case $ac_i in + -pthread) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -pthread" + else + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS$unique=set" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i" + fi + + + + unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "EXTRA_LDFLAGS_PROGRAM$unique=set" + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i" + fi + + fi + ;; + -l*) + ac_ii=`echo $ac_i|cut -c 3-` + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -l$ac_ii" + else + + + case $ac_ii in + c|c_r|pthread*) ;; + *) + LIBS="$LIBS -l$ac_ii" + ;; + esac + + + fi + ;; + esac + + + ;; + -L*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + if test "$ext_shared" = "yes"; then + MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD" + test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD" + else + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "LIBPATH$unique=set" + + test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" + LDFLAGS="$LDFLAGS -L$ai_p" + PHP_RPATHS="$PHP_RPATHS $ai_p" + + fi + + + fi + + fi + + ;; + esac + done + + + for ac_i in $OPENSSL_CFLAGS; do + case $ac_i in + -I*) + ac_ii=`echo $ac_i|cut -c 3-` + + if test "$ac_ii" != "/usr/include"; then + + if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then + ai_p=$ac_ii + else + + ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'` + + ep_realdir=`(cd "$ep_dir" && pwd)` + ai_p="$ep_realdir"/`basename "$ac_ii"` + fi + + + + unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INCLUDEPATH$unique=set" + + if test ""; then + INCLUDES="-I$ai_p $INCLUDES" + else + INCLUDES="$INCLUDES -I$ai_p" + fi + + fi + + fi + + ;; + esac + done + + +$as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h + + + fi + + fi + + mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources" + + ext_builddir=ext/mysqlnd + ext_srcdir=$abs_srcdir/ext/mysqlnd + ext_dir=ext/mysqlnd + + ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g` + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_MYSQLND_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF +#define COMPILE_DL_MYSQLND 1 +_ACEOF + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_MYSQLND_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in $mysqlnd_sources; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 +$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; } + + +if test -z "$with_pear" && test "$enable_pear" = "no"; then + with_pear=no +fi + +if test "$PHP_CLI" = "no"; then + with_pear=no +fi + + +php_with_pear=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 +$as_echo_n "checking whether to install PEAR... " >&6; } + +# Check whether --with-pear was given. +if test "${with_pear+set}" = set; then : + withval=$with_pear; PHP_PEAR=$withval +else + + PHP_PEAR=no + test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL + +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PEAR in +shared,*) + PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'` + ;; +shared) + PHP_PEAR=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_PEAR" != "no"; then + + if test "$PHP_XML" = "no"; then + pear_error_msg="$pear_error_msg + PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)" + fi + + if test "$pear_error_msg"; then + as_fn_error $? "$pear_error_msg" "$LINENO" 5 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-pear option is deprecated" >&5 +$as_echo "$as_me: WARNING: The --with-pear option is deprecated" >&2;} + + install_pear="install-pear" + PEAR_INSTALLDIR=$PHP_PEAR + + if test "$PHP_PEAR" = "yes"; then + case $PHP_LAYOUT in + GNU) PEAR_INSTALLDIR=$datadir/pear;; + *) PEAR_INSTALLDIR=$libdir/php;; + esac + fi + + + src=$abs_srcdir/pear/Makefile.frag + ac_srcdir=$abs_srcdir/pear + ac_builddir=pear + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 +$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; } + + + + + +for ac_header in cpuid.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" +if test "x$ac_cv_header_cpuid_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CPUID_H 1 +_ACEOF + +fi + +done + + + + +for ac_func in getpid kill finite sigsetjmp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include +" +if test "x$ac_cv_have_decl_isfinite" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISFINITE $ac_have_decl +_ACEOF +ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include +" +if test "x$ac_cv_have_decl_isnan" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISNAN $ac_have_decl +_ACEOF +ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include +" +if test "x$ac_cv_have_decl_isinf" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISINF $ac_have_decl +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 +$as_echo_n "checking for usable _FPU_SETCW... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fpu_control_t fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _FPU_GETCW(fpu_oldcw); + fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE; + _FPU_SETCW(fpu_cw); + result = a / b; + _FPU_SETCW(fpu_oldcw); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__fpu_setcw=yes +else + ac_cfp_have__fpu_setcw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__fpu_setcw" = "yes" ; then + +$as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 +$as_echo_n "checking for usable fpsetprec... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + fp_prec_t fpu_oldprec; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldprec = fpgetprec(); + fpsetprec(FP_PD); + result = a / b; + fpsetprec(fpu_oldprec); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpsetprec=yes +else + ac_cfp_have_fpsetprec=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpsetprec" = "yes" ; then + +$as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 +$as_echo_n "checking for usable _controlfp... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + fpu_oldcw = _controlfp(0, 0); + _controlfp(_PC_53, _MCW_PC); + result = a / b; + _controlfp(fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp=yes +else + ac_cfp_have__controlfp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 +$as_echo_n "checking for usable _controlfp_s... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int fpu_oldcw, fpu_cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + _controlfp_s(&fpu_cw, 0, 0); + fpu_oldcw = fpu_cw; + _controlfp_s(&fpu_cw, _PC_53, _MCW_PC); + result = a / b; + _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have__controlfp_s=yes +else + ac_cfp_have__controlfp_s=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have__controlfp_s" = "yes" ; then + +$as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 +$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* nothing */ + +int +main () +{ + + unsigned int oldcw, cw; + volatile double result; + double a = 2877.0; + volatile double b = 1000000.0; + + __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw)); + cw = (oldcw & ~0x0 & ~0x300) | 0x200; + __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw)); + + result = a / b; + + __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw)); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cfp_have_fpu_inline_asm_x86=yes +else + ac_cfp_have_fpu_inline_asm_x86=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then + +$as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5 +$as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; } + +if test "$cross_compiling" = yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int main() +{ + if (sizeof(long) == 4) { + double d = (double) LONG_MIN * LONG_MIN + 2e9; + + if ((long) d == 2e9 && (long) -d == -2e9) { + exit(0); + } + } else if (sizeof(long) == 8) { + double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */ + + if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */ + exit(0); + } + } + exit(1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + +$as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 +$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } +if test "$cross_compiling" = yes; then : + +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + x$lt_dlneed_uscore) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h + + ;; + x$lt_dlunknown|x*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac + else : + # compilation failed + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + fi +fi +rm -fr conftest* + + + + +# Check whether --enable-maintainer-zts was given. +if test "${enable_maintainer_zts+set}" = set; then : + enableval=$enable_maintainer_zts; ZEND_MAINTAINER_ZTS=$enableval +else + ZEND_MAINTAINER_ZTS=no +fi + + +# Check whether --enable-inline-optimization was given. +if test "${enable_inline_optimization+set}" = set; then : + enableval=$enable_inline_optimization; ZEND_INLINE_OPTIMIZATION=$enableval +else + ZEND_INLINE_OPTIMIZATION=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 +$as_echo_n "checking whether to enable thread-safety... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5 +$as_echo "$ZEND_MAINTAINER_ZTS" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5 +$as_echo_n "checking whether to enable inline optimization for GCC... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5 +$as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 +$as_echo_n "checking whether to enable Zend debugging... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 +$as_echo "$ZEND_DEBUG" >&6; } + +if test "$ZEND_DEBUG" = "yes"; then + +$as_echo "#define ZEND_DEBUG 1" >>confdefs.h + + echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + if test "$CFLAGS" = "-g -O2"; then + CFLAGS=-g + fi +else + +$as_echo "#define ZEND_DEBUG 0" >>confdefs.h + +fi + +test -n "$GCC" && CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing" +test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZTS" +fi + + +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then + INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` +else + INLINE_CFLAGS="$CFLAGS" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 +$as_echo_n "checking target system is Darwin... " >&6; } +if echo "$target" | grep "darwin" > /dev/null; then + +$as_echo "#define DARWIN 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 +$as_echo_n "checking for MM alignment and log values... " >&6; } + +if test "$cross_compiling" = yes; then : + + LIBZEND_MM_ALIGN=8 + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +typedef union _mm_align_test { + void *ptr; + double dbl; + long lng; +} mm_align_test; + +#if (defined (__GNUC__) && __GNUC__ >= 2) +#define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test)) +#else +#define ZEND_MM_ALIGNMENT (sizeof(mm_align_test)) +#endif + +int main() +{ + int i = ZEND_MM_ALIGNMENT; + int zeros = 0; + FILE *fp; + + while (i & ~0x1) { + zeros++; + i = i >> 1; + } + + fp = fopen("conftest.zend", "w"); + fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros); + fclose(fp); + + exit(0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1` + LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2` + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2 +_ACEOF + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + +for ac_func in mremap +do : + ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" +if test "x$ac_cv_func_mremap" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MREMAP 1 +_ACEOF + +fi +done + + +# Check whether --enable-zend-signals was given. +if test "${enable_zend_signals+set}" = set; then : + enableval=$enable_zend_signals; ZEND_SIGNALS=$enableval +else + ZEND_SIGNALS=yes +fi + + +for ac_func in sigaction +do : + ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" +if test "x$ac_cv_func_sigaction" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGACTION 1 +_ACEOF + +else + + ZEND_SIGNALS=no + +fi +done + +if test "$ZEND_SIGNALS" = "yes"; then + +$as_echo "#define ZEND_SIGNALS 1" >>confdefs.h + + CFLAGS="$CFLAGS -DZEND_SIGNALS" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 +$as_echo_n "checking whether to enable zend signal handling... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 +$as_echo "$ZEND_SIGNALS" >&6; } + + + +if test "$ZEND_MAINTAINER_ZTS" = "yes"; then + +$as_echo "#define ZTS 1" >>confdefs.h + + PHP_THREAD_SAFETY=yes +else + PHP_THREAD_SAFETY=no +fi + +INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM" +INCLUDES="$INCLUDES -I\$(top_builddir)/Zend" + +if test "$abs_srcdir" != "$abs_builddir"; then + INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend" + INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/" +fi + +ZEND_EXTRA_LIBS="$LIBS" +unset LIBS LDFLAGS + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 +$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; } + +if test "$PHP_THREAD_SAFETY" = "yes"; then + + +# Check whether --with-tsrm-pth was given. +if test "${with_tsrm_pth+set}" = set; then : + withval=$with_tsrm_pth; TSRM_PTH=$withval +else + TSRM_PTH=no +fi + + + +# Check whether --with-tsrm-st was given. +if test "${with_tsrm_st+set}" = set; then : + withval=$with_tsrm_st; TSRM_ST=$withval +else + TSRM_ST=no +fi + + + +# Check whether --with-tsrm-pthreads was given. +if test "${with_tsrm_pthreads+set}" = set; then : + withval=$with_tsrm_pthreads; TSRM_PTHREADS=$withval +else + TSRM_PTHREADS=yes +fi + + +test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config + +if test "$TSRM_PTH" != "no"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5 +$as_echo_n "checking for GNU Pth... " >&6; } +PTH_PREFIX="`$TSRM_PTH --prefix`" +if test -z "$PTH_PREFIX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5 +$as_echo "Please check your Pth installation" >&6; } +fi + +CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`" +LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`" +LIBS="$LIBS `$TSRM_PTH --libs`" + + +$as_echo "#define GNUPTH 1" >>confdefs.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5 +$as_echo "yes - installed in $PTH_PREFIX" >&6; } + +elif test "$TSRM_ST" != "no"; then + + if test -r "$TSRM_ST/include/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include" + LDFLAGS="$LDFLAGS -L$TSRM_ST/lib" + elif test -r "$TSRM_ST/st.h"; then + CPPFLAGS="$CPPFLAGS -I$TSRM_ST" + LDFLAGS="$LDFLAGS -L$TSRM_ST" + fi + for ac_header in st.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default" +if test "x$ac_cv_header_st_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ST_H 1 +_ACEOF + +else + + as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 + +fi + +done + + LIBS="$LIBS -lst" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5 +$as_echo_n "checking for SGI's State Threads... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define TSRM_ST 1" >>confdefs.h + + +elif test "$TSRM_PTHREADS" != "no"; then + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +$as_echo_n "checking for pthreads_cflags... " >&6; } +if ${ac_cv_pthreads_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_cflags= +if test "$pthreads_working" != "yes"; then + for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do + ac_save=$CFLAGS + CFLAGS="$CFLAGS $flag" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_cflags=$flag + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +$as_echo "$ac_cv_pthreads_cflags" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +$as_echo_n "checking for pthreads_lib... " >&6; } +if ${ac_cv_pthreads_lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + +ac_cv_pthreads_lib= +if test "$pthreads_working" != "yes"; then + for lib in pthread pthreads c_r; do + ac_save=$LIBS + LIBS="$LIBS -l$lib" + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +void *thread_routine(void *data) { + return data; +} + +int main() { + pthread_t thd; + pthread_mutexattr_t mattr; + int data = 1; + pthread_mutexattr_init(&mattr); + return pthread_create(&thd, NULL, thread_routine, &data); +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + pthreads_checked=yes + +else + + pthreads_checked=no + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_save + if test "$pthreads_checked" = "yes"; then + ac_cv_pthreads_lib=$lib + break + fi + done +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +$as_echo "$ac_cv_pthreads_lib" >&6; } + +if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then + pthreads_working="yes" +fi + + +if test "$pthreads_working" != "yes"; then + as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5 +fi + + +$as_echo "#define PTHREADS 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 +$as_echo_n "checking for POSIX threads... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + +fi + +case $host_alias in + i[3456]86-*-linux-* | x86_64-*-linux-*) + EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152" + ;; +esac + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS" +EXTRA_LIBS="$EXTRA_LIBS $LIBS" +unset LIBS LDFLAGS + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + + +test "$prefix" = "NONE" && prefix=/usr/local +test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' +test "$program_prefix" = "NONE" && program_prefix= +test "$program_suffix" = "NONE" && program_suffix= + +case $libdir in + '${exec_prefix}/lib') + libdir=$libdir/php + ;; +esac +case `eval echo $datadir` in + '${prefix}/share') + datadir=$datadir/php + ;; +esac + +phplibdir=`pwd`/modules +$php_shtool mkdir -p $phplibdir +phptempdir=`pwd`/libs + +old_exec_prefix=$exec_prefix +old_libdir=$libdir +old_datadir=$datadir +exec_prefix=`eval echo $exec_prefix` +libdir=`eval echo $libdir` +datadir=`eval eval echo $datadir` + +ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|"${SED}" 's/#define ZEND_MODULE_API_NO //'` + +if test -z "$EXTENSION_DIR"; then + extbasedir=$ZEND_MODULE_API_NO + if test "$oldstyleextdir" = "yes"; then + if test "$PHP_DEBUG" = "1"; then + part1=debug + else + part1=no-debug + fi + if test "$enable_maintainer_zts" = "yes"; then + part2=zts + else + part2=non-zts + fi + extbasedir=$part1-$part2-$extbasedir + EXTENSION_DIR=$libdir/extensions/$extbasedir + else + if test "$enable_maintainer_zts" = "yes"; then + extbasedir=$extbasedir-zts + fi + + if test "$PHP_DEBUG" = "1"; then + extbasedir=$extbasedir-debug + fi + EXTENSION_DIR=$libdir/$extbasedir + fi +fi + +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + +EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` +EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` +EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir` +EXPANDED_BINDIR=`eval echo $bindir` +EXPANDED_SBINDIR=`eval echo $sbindir` +EXPANDED_MANDIR=`eval echo $mandir` +EXPANDED_LIBDIR=$libdir +EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` +EXPANDED_DATADIR=$datadir +EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` +EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR + +exec_prefix=$old_exec_prefix +libdir=$old_libdir +datadir=$old_datadir + + + + + + + + + + + + + + +if test -n "$php_ldflags_add_usr_lib"; then + PHP_RPATHS="$PHP_RPATHS /usr/lib" +fi + + + OLD_RPATHS=$PHP_RPATHS + unset PHP_RPATHS + + for i in $OLD_RPATHS; do + PHP_LDFLAGS="$PHP_LDFLAGS -L$i" + PHP_RPATHS="$PHP_RPATHS -R $i" + NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i" + done + + if test "$PHP_RPATH" = "no"; then + unset PHP_RPATHS + unset NATIVE_RPATHS + fi + + +if test -z "$php_ldflags_add_usr_lib"; then + + unset ac_new_flags + for i in $PHP_LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + PHP_LDFLAGS=$ac_new_flags + + + unset ac_new_flags + for i in $LDFLAGS; do + case $i in + -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;; + *) ac_new_flags="$ac_new_flags $i" ;; + esac + done + LDFLAGS=$ac_new_flags + +fi + +EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" +EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" + +PHP_BUILD_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d 2>/dev/null` +if test $? -ne 0 ; then +PHP_BUILD_DATE=`date -u +%Y-%m-%d` +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_BUILD_DATE "$PHP_BUILD_DATE" +_ACEOF + + +PHP_UNAME=`uname -a | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_UNAME "$PHP_UNAME" +_ACEOF + +PHP_OS=`uname | xargs` + +cat >>confdefs.h <<_ACEOF +#define PHP_OS "$PHP_OS" +_ACEOF + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FASTCGI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST bindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST includedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST libdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST mandir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datadir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CC" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPP" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXX" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI" + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION" + + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS" + + +old_CC=$CC + +if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then + CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" + INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" + CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags" +fi + +if test "$PHP_WERROR" = "yes"; then + CFLAGS="$CFLAGS -Werror" + CPPFLAGS="$CPPFLAGS -Werror" +fi + + + +# Check whether --enable- was given. +if test "${enable_+set}" = set; then : + enableval=$enable_; +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 +$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; } + + +AR_FLAGS=cr + + + +# Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${lt_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + +fi + +SED=$lt_cv_path_SED +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 +$as_echo_n "checking for BSD-compatible nm... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +NM="$lt_cv_path_NM" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +#AC_ARG_ENABLE([libtool-lock], +#[ --disable-libtool-lock avoid locking (might break parallel builds)]) +#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 84180 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + + +esac + +need_locks="$enable_libtool_lock" + + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi + + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + lt_cv_ld_exported_symbols_list=yes + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +lt_cv_ld_exported_symbols_list=no + rm -rf conftest* +fi +rm -f conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[0123]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac + + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:85736: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:85740: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:86034: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:86038: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:86138: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:86142: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +} +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# Report which library types will actually be built +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + compiler_lib_search_dirs \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + fix_srcfile_path \ + exclude_expsyms \ + include_expsyms; do + + case $var in + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: +creating $ofile" >&5 +$as_echo " +creating $ofile" >&6; } + + cat <<__EOF__ >> "$cfgfile" +#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU C compiler? +with_gcc=$GCC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# ### END LIBTOOL CONFIG + +__EOF__ + + + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags was given. +if test "${with_tags+set}" = set; then : + withval=$with_tags; tagnames="$withval" +fi + + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5 + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5 + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= +compiler_lib_search_dirs_CXX= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + +cat > conftest.$ac_ext <&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi + rm -rf conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&6 +fi +rm -f conftest* +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12].*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + ld_shlibs_CXX=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +compiler_lib_search_dirs_CXX= +if test -n "$compiler_lib_search_path_CXX"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc*) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc*) + # Intel C++, used to be incompatible with GCC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:90621: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "configure:90625: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"configure:90725: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "configure:90729: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" + +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +if ${lt_cv_sys_lib_search_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +fi + +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +fi + +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + compiler_lib_search_dirs_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + fix_srcfile_path_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + *) + as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5 + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5 + fi +fi + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Prevent multiple expansion + + + + + + + + + + + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' + else + LIBTOOL="$LIBTOOL --silent" + fi + + + + if test -z "$LIBTOOL"; then + LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps' + else + LIBTOOL="$LIBTOOL --preserve-dup-deps" + fi + + +test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' +test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<' +SHARED_LIBTOOL='$(LIBTOOL)' + +CC=$old_CC + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 +$as_echo "" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 +$as_echo "${T_MD}Generating files${T_ME}" >&6; } + + +CXXFLAGS_CLEAN=$CXXFLAGS +CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)" +CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag" +INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag" +CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)" + +if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then + pharcmd=pharcmd + pharcmd_install=install-pharcmd +else + pharcmd= + pharcmd_install= +fi; + +all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" +install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets" + + + PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets" + + + + + for header_file in Zend/ TSRM/ include/ main/ main/streams/; do + + + unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` + + cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\"" + if test -n "$unique" && test "`eval $cmd`" = "" ; then + eval "INSTALLHEADERS$unique=set" + + INSTALL_HEADERS="$INSTALL_HEADERS $header_file" + + fi + + done + + + + + + case TSRM in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in TSRM.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<>Makefile.objects<> Makefile.fragments + + + src=$abs_srcdir/Zend/Makefile.frag + ac_srcdir=$abs_srcdir/Zend + ac_builddir=Zend + test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments + + + + $php_shtool mkdir -p $BUILD_DIR + + + cat >Makefile <> Makefile + done + + cat $abs_srcdir/build/Makefile.global Makefile.fragments Makefile.objects >> Makefile + + + +$as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h + + +$php_shtool mkdir -p pear +$php_shtool mkdir -p scripts +$php_shtool mkdir -p scripts/man1 + +ALL_OUTPUT_FILES="main/build-defs.h \ +scripts/phpize scripts/man1/phpize.1 \ +scripts/php-config scripts/man1/php-config.1 \ +$PHP_OUTPUT_FILES" + +ac_config_files="$ac_config_files $ALL_OUTPUT_FILES" + + + + +ac_config_commands="$ac_config_commands default" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: patching main/php_config.h.in" >&5 +$as_echo "$as_me: patching main/php_config.h.in" >&6;} + + $SED -e 's/^#undef PACKAGE_[^ ]*/\/\* & \*\//g' < $srcdir/main/php_config.h.in \ + > $srcdir/main/php_config.h.in.tmp && mv $srcdir/main/php_config.h.in.tmp $srcdir/main/php_config.h.in + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by PHP $as_me 7.4.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +PHP home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +PHP config.status 7.4.0 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# + + +if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then + REDO_ALL=yes +fi + +test -d Zend || $php_shtool mkdir Zend + +cat >Zend/zend_config.h < +FEO + +if test -n "\$REDO_ALL"; then + echo "creating main/internal_functions.c" + AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_STATIC" > main/internal_functions.c + + echo "creating main/internal_functions_cli.c" + AWK="$AWK" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in "$EXT_CLI_STATIC" > main/internal_functions_cli.c + + if test "$PHP_SAPI" = "apache2handler"; then + if test "$APACHE_VERSION" -ge 2004001; then + if test -z "$APACHE_THREADED_MPM"; then +cat < processes when using a local Oracle | +| database, set the value BEQUEATH_DETACH=YES in Oracle Net's | +| sqlnet.ora file on the PHP host, or set the environment variable | +| BEQUEATH_DETACH to YES before starting Apache. If the problem | +| still occurs, then recompile PHP and specify --enable-sigchild | +| when configuring. | +X + fi + fi + fi + +fi + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;; + "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;; + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "default":C) +cat </dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/tests/fixtures/vcr_cassettes/Command/KnownCommandTest b/tests/fixtures/vcr_cassettes/Command/KnownCommandTest new file mode 100644 index 000000000..3df02650a --- /dev/null +++ b/tests/fixtures/vcr_cassettes/Command/KnownCommandTest @@ -0,0 +1,117 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=7&max=1000", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:52:46 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:52:46 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:52:46 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff80902\"" + }, + "body": "{\"7.4.0\":{\"announcement\":true,\"tags\":[],\"date\":\"28 Nov 2019\",\"source\":[{\"filename\":\"php-7.4.0.tar.bz2\",\"name\":\"PHP 7.4.0 (tar.bz2)\",\"sha256\":\"bf206be96a39e643180013df39ddcd0493966692a2422c4b7d3355b6a15a01c0\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.gz\",\"name\":\"PHP 7.4.0 (tar.gz)\",\"sha256\":\"004a1a8176176ee1b5c112e73d705977507803f425f9e48cb4a84f42b22abf22\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.xz\",\"name\":\"PHP 7.4.0 (tar.xz)\",\"sha256\":\"9bb751b20e5d6cc1ea9b1ebf23ef2d5f07f99b2d9cc417bf1d70c04f8b20ec42\",\"date\":\"28 Nov 2019\"}]},\"7.3.12\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.3.12.tar.bz2\",\"name\":\"PHP 7.3.12 (tar.bz2)\",\"sha256\":\"d317b029f991410578cc38ba4b76c9f764ec29c67e7124e1fec57bceb3ad8c39\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.gz\",\"name\":\"PHP 7.3.12 (tar.gz)\",\"sha256\":\"d617e5116f8472a628083f448ebe4afdbc4ac013c9a890b08946649dcbe61b34\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.xz\",\"name\":\"PHP 7.3.12 (tar.xz)\",\"sha256\":\"aafe5e9861ad828860c6af8c88cdc1488314785962328eb1783607c1fdd855df\",\"date\":\"21 Nov 2019\"}]},\"7.2.25\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.2.25.tar.bz2\",\"name\":\"PHP 7.2.25 (tar.bz2)\",\"sha256\":\"7cb336b1ed0f9d87f46bbcb7b3437ee252d0d5060c0fb1a985adb6cbc73a6b9e\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.gz\",\"name\":\"PHP 7.2.25 (tar.gz)\",\"sha256\":\"b2cb1bd46454d33b2c65c2fd559f464cd14e57dd47b953adf5caa77fdf0de52b\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.xz\",\"name\":\"PHP 7.2.25 (tar.xz)\",\"sha256\":\"746efeedc38e6ff7b1ec1432440f5fa801537adf6cd21e4afb3f040e5b0760a9\",\"date\":\"21 Nov 2019\"}]},\"7.1.33\":{\"announcement\":true,\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.1.33.tar.bz2\",\"name\":\"PHP 7.1.33 (tar.bz2)\",\"sha256\":\"95a5e5f2e2b79b376b737a82d9682c91891e60289fa24183463a2aca158f4f4b\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.gz\",\"name\":\"PHP 7.1.33 (tar.gz)\",\"sha256\":\"0055f368ffefe51d5a4483755bd17475e88e74302c08b727952831c5b2682ea2\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.xz\",\"name\":\"PHP 7.1.33 (tar.xz)\",\"sha256\":\"bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968\",\"date\":\"24 Oct 2019\"}]},\"7.2.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_24.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.2.24.tar.bz2\",\"name\":\"PHP 7.2.24 (tar.bz2)\",\"sha256\":\"a079934db63068bbcc9bbd2e7b916b9891fc97719862697e5f954c639984f603\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.gz\",\"name\":\"PHP 7.2.24 (tar.gz)\",\"sha256\":\"01baf7a34c856d2c552121fbad7296a8cde18389ce83db32f18252bc1cee4dd6\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.xz\",\"name\":\"PHP 7.2.24 (tar.xz)\",\"sha256\":\"a6a6cc03388060aa5f8f9e45799b72bce1c7ed7b9d7b3f1187787202aad91d25\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.3.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_11.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.3.11.tar.bz2\",\"name\":\"PHP 7.3.11 (tar.bz2)\",\"sha256\":\"92d1ff4b13c7093635f1ec338a5e6891ca99b10e65fbcadd527e5bb84d11b5e7\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.gz\",\"name\":\"PHP 7.3.11 (tar.gz)\",\"sha256\":\"8f385f5bdf9193791f6c0f6303f518f3c324b6655ac108fdb3c426da7f3cf4d4\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.xz\",\"name\":\"PHP 7.3.11 (tar.xz)\",\"sha256\":\"657cf6464bac28e9490c59c07a2cf7bb76c200f09cfadf6e44ea64e95fa01021\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.1.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_32.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.32.tar.bz2\",\"name\":\"PHP 7.1.32 (tar.bz2)\",\"sha256\":\"d7c7a1adddc75ac17f63349e966db25930b6b3ce736640349bea9e10909cab7a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.gz\",\"name\":\"PHP 7.1.32 (tar.gz)\",\"sha256\":\"6e51a2fc610352438b2a1c40310468a1e2b5baf2fff43be77f9f408a9111590c\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.xz\",\"name\":\"PHP 7.1.32 (tar.xz)\",\"sha256\":\"7f38b5bdaae3184d325a8c70e86c010afcc33651d15faafe277a0db6d2ea2741\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_10.php\"},\"tags\":[\"security\"],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.3.10.tar.bz2\",\"name\":\"PHP 7.3.10 (tar.bz2)\",\"sha256\":\"506dd871c0fb8f00f872f53dd3b1dfa5f23a9edb4dfc521e5669c78a78c45448\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.gz\",\"name\":\"PHP 7.3.10 (tar.gz)\",\"sha256\":\"fb670723a9b8fda31c89529f27e0dda289d8af4b6ce9f152c8010876639c0fb4\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.xz\",\"name\":\"PHP 7.3.10 (tar.xz)\",\"sha256\":\"42f00a15419e05771734b7159c8d39d639b8a5a6770413adfa2615f6f923d906\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_23.php\"},\"tags\":[],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.2.23.tar.bz2\",\"name\":\"PHP 7.2.23 (tar.bz2)\",\"sha256\":\"a17af3643d29d7e730f977e3776dc3e325d5ca00b361e41dbfc2368ebad5430d\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.gz\",\"name\":\"PHP 7.2.23 (tar.gz)\",\"sha256\":\"b32b426c84ff45154d6c11f00aff433bcac831a5c0a09bf0297075eefaea8fcc\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.xz\",\"name\":\"PHP 7.2.23 (tar.xz)\",\"sha256\":\"74e045ec8ff26290db6a3688826dcdf43b87bc509e508e9cb76dab742804ca14\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_22.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.22.tar.bz2\",\"name\":\"PHP 7.2.22 (tar.bz2)\",\"sha256\":\"c10a9883b586ada5ef1149f2571625b27efdcc3e70a04fbb9121979633b0f08a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.gz\",\"name\":\"PHP 7.2.22 (tar.gz)\",\"sha256\":\"6e2ccc77484c27971d4550b7071a57b79bc910bfb2d4a74a57ae2c18b78c3dc7\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.xz\",\"name\":\"PHP 7.2.22 (tar.xz)\",\"sha256\":\"eb597fcf8dc0a6211a42a6346de4f63ee166829a6df6d8ed767fe14be8d1c3a3\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_9.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.9.tar.bz2\",\"name\":\"PHP 7.3.9 (tar.bz2)\",\"sha256\":\"a39c9709a8c9eb7ea8ac4933ef7a78b92f7e5735a405c8b8e42ee39541d963c4\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.gz\",\"name\":\"PHP 7.3.9 (tar.gz)\",\"sha256\":\"5ecc1b1ad7228ed2e99a970c45358871644fcab1d9fd079a7b129326a7bde42d\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.xz\",\"name\":\"PHP 7.3.9 (tar.xz)\",\"sha256\":\"4007f24a39822bef2805b75c625551d30be9eeed329d52eb0838fa5c1b91c1fd\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.1.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_31.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.31.tar.bz2\",\"name\":\"PHP 7.1.31 (tar.bz2)\",\"sha256\":\"767573c2b732e78cc647602ec61fc948941a941a4071db59b522cf5e076825dd\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.gz\",\"name\":\"PHP 7.1.31 (tar.gz)\",\"sha256\":\"ea0558735653b9ce63e9cea41dd8f0d0b90dba6c39d39dd9a6aad5cc58b0bdfc\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.xz\",\"name\":\"PHP 7.1.31 (tar.xz)\",\"sha256\":\"5cb53b63592ec4361f0ab12c684b10430344821a024881a387ead4299df78fa5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.2.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_21.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.21.tar.bz2\",\"name\":\"PHP 7.2.21 (tar.bz2)\",\"sha256\":\"343183a1be8336670171885c761d57ffcae99cbbcf1db43da7cb5565056b14ef\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.gz\",\"name\":\"PHP 7.2.21 (tar.gz)\",\"sha256\":\"8327682bee4a8fd2edf5bbfcc393d986b945bec433fc74458d05e766701b313c\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.xz\",\"name\":\"PHP 7.2.21 (tar.xz)\",\"sha256\":\"de06aff019d8f5079115795bd7d8eedd4cd03daecb62d58abb18f492dd995c95\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.3.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_8.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.8.tar.bz2\",\"name\":\"PHP 7.3.8 (tar.bz2)\",\"sha256\":\"d566c630175d9fa84a98d3c9170ec033069e9e20c8d23dea49ae2a976b6c76f5\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.gz\",\"name\":\"PHP 7.3.8 (tar.gz)\",\"sha256\":\"31af3eff3337fb70733c9b02a3444c3dae662ecab20aeec7fdc3c42e22071490\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.xz\",\"name\":\"PHP 7.3.8 (tar.xz)\",\"sha256\":\"f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.1.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_30.php\"},\"tags\":[\"security\"],\"date\":\"30 May 2019\",\"source\":[{\"filename\":\"php-7.1.30.tar.bz2\",\"name\":\"PHP 7.1.30 (tar.bz2)\",\"sha256\":\"664850774fca19d2710b9aa35e9ae91214babbde9cd8d27fd3479cc97171ecb3\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.gz\",\"name\":\"PHP 7.1.30 (tar.gz)\",\"sha256\":\"a604edf85d5dfc28e6ff3016dad3954c50b93db69afc42295178b4fdf42e026c\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.xz\",\"name\":\"PHP 7.1.30 (tar.xz)\",\"sha256\":\"6310599811536dbe87e4bcf212bf93196bdfaff519d0c821e4c0068efd096a7c\",\"date\":\"30 May 2019\"}],\"museum\":false},\"7.2.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_20.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.2.20.tar.bz2\",\"name\":\"PHP 7.2.20 (tar.bz2)\",\"sha256\":\"9fb829e54e54c483ae8892d1db0f7d79115cc698f2f3591a8a5e58d9410dca84\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.gz\",\"name\":\"PHP 7.2.20 (tar.gz)\",\"sha256\":\"d1dbf6f299514c9aa55b2995928b798b27c21811a0447f0688993cdf36be0749\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.xz\",\"name\":\"PHP 7.2.20 (tar.xz)\",\"sha256\":\"eff09da83e235c2ba25c85deea1d4f663bd71d50fd51ad11e1acebe26d733494\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.3.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_7.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.3.7.tar.bz2\",\"name\":\"PHP 7.3.7 (tar.bz2)\",\"sha256\":\"c3608fa7114642725854119ccffe722f42fc7c31e5e4c00d5cb4cb1a0d16bf18\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.gz\",\"name\":\"PHP 7.3.7 (tar.gz)\",\"sha256\":\"4230bbc862df712b013369de94b131eddea1e5e946a8c5e286b82d441c313328\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.xz\",\"name\":\"PHP 7.3.7 (tar.xz)\",\"sha256\":\"ba067200ba649956b3a92ec8b71a6ed8ce8a099921212443c1bcf3260a29274c\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.2.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/19.php\"},\"source\":[{\"filename\":\"php-7.2.19.tar.bz2\",\"name\":\"PHP 7.2.19 (tar.bz2)\",\"sha256\":\"ebd0b1f375fe07ed4925acc213d2f5ef76a61bd5de174e7b666b98421a90a099\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.gz\",\"name\":\"PHP 7.2.19 (tar.gz)\",\"sha256\":\"1cd2266a058f3224d3cba594540045542606996f026eeef96747f27f6b3d22b6\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.xz\",\"name\":\"PHP 7.2.19 (tar.xz)\",\"sha256\":\"4ffa2404a88d60e993a9fe69f829ebec3eb1e006de41b6048ce5e91bbeaa9282\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_6.php\"},\"source\":[{\"filename\":\"php-7.3.6.tar.bz2\",\"name\":\"PHP 7.3.6 (tar.bz2)\",\"sha256\":\"1e5ac8700154835c0910e3a814517da9b87bb4a82cc7011fea1a82096b6f6f77\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.gz\",\"name\":\"PHP 7.3.6 (tar.gz)\",\"sha256\":\"72fbf223ff8659a61eed08eebffb4ede0256e7a69d2151ae24affa5377b70bb8\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.xz\",\"name\":\"PHP 7.3.6 (tar.xz)\",\"sha256\":\"fefc8967daa30ebc375b2ab2857f97da94ca81921b722ddac86b29e15c54a164\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_29.php\"},\"source\":[{\"filename\":\"php-7.1.29.tar.bz2\",\"name\":\"PHP 7.1.29 (tar.bz2)\",\"sha256\":\"8528d17efe82662dc740d96ddb32217f4e161a597d709f19571b0c82fbb88335\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.gz\",\"name\":\"PHP 7.1.29 (tar.gz)\",\"sha256\":\"bdd0e1707100c8b87f1be516f5b95a26e3eb4114d4316eaf0663bf292ead35bb\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.xz\",\"name\":\"PHP 7.1.29 (tar.xz)\",\"sha256\":\"b9a9b094687edc2d9c9553d5531e38e249b569127cf3b32fe1c84280509746fb\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_18.php\"},\"source\":[{\"filename\":\"php-7.2.18.tar.bz2\",\"name\":\"PHP 7.2.18 (tar.bz2)\",\"sha256\":\"fa1a27b12d1173207e81e798a48d4a7f77ba897f5c5200ac0b5d62aa8b4c4b72\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.gz\",\"name\":\"PHP 7.2.18 (tar.gz)\",\"sha256\":\"48aeb291814f3cd3ba03c52e79e8e61896d0271fd4c228198f80a072e568f84b\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.xz\",\"name\":\"PHP 7.2.18 (tar.xz)\",\"sha256\":\"9970dbb3ab1298c9e6aac54bebfa841c8ad14b18eead65594a68fa841364cb8d\",\"date\":\"02 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_5.php\"},\"source\":[{\"filename\":\"php-7.3.5.tar.bz2\",\"name\":\"PHP 7.3.5 (tar.bz2)\",\"sha256\":\"4380b80ef98267c3823c3416eb05f7729ba7a33de6b3d14ec96013215d62c35e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.gz\",\"name\":\"PHP 7.3.5 (tar.gz)\",\"sha256\":\"c953749b7f3310a3a74f920ef698f6d1c04636d11656ac9ffb3ab10d34e30e1e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.xz\",\"name\":\"PHP 7.3.5 (tar.xz)\",\"sha256\":\"e1011838a46fd4a195c8453b333916622d7ff5bce4aca2d9d99afac142db2472\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_28.php\"},\"source\":[{\"filename\":\"php-7.1.28.tar.bz2\",\"name\":\"PHP 7.1.28 (tar.bz2)\",\"sha256\":\"739e8733fe1fc5e69e6226da6dba7a31bacfd2e3871ad2c97a792638f22c54c9\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.gz\",\"name\":\"PHP 7.1.28 (tar.gz)\",\"sha256\":\"4df587338d4c5dfe27050c7ac72a6b7583ecaee9d3fbfc03427667a86e081999\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.xz\",\"name\":\"PHP 7.1.28 (tar.xz)\",\"sha256\":\"45131497ec0a947e3f9145c000e8fcc1f86b46518ee3f6810d80efa2d39521e2\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_17.php\"},\"source\":[{\"filename\":\"php-7.2.17.tar.bz2\",\"name\":\"PHP 7.2.17 (tar.bz2)\",\"sha256\":\"91a811ab6f6d7acb312159cf6b0a3cffe968676fdebf042e9253245cc6094f75\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.gz\",\"name\":\"PHP 7.2.17 (tar.gz)\",\"sha256\":\"e1c6c2553cdb7edbfa65b89e259690ed01b31b12d57349c90b6ed00a410f62b5\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.xz\",\"name\":\"PHP 7.2.17 (tar.xz)\",\"sha256\":\"a3e5f51a9ae08813b3925bea3a4de02cd4906fcccf75646e267a213bb63bcf84\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_4.php\"},\"source\":[{\"filename\":\"php-7.3.4.tar.bz2\",\"name\":\"PHP 7.3.4 (tar.bz2)\",\"sha256\":\"2e2c3d8212c83649e443b61efffbd03df4b9edd0f9c7a679081fe4cb2da12b78\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.gz\",\"name\":\"PHP 7.3.4 (tar.gz)\",\"sha256\":\"dd41ecf43fe1172030f41d2581909457a0af7bd137a057c3874e0b0f3c2e8761\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.xz\",\"name\":\"PHP 7.3.4 (tar.xz)\",\"sha256\":\"6fe79fa1f8655f98ef6708cde8751299796d6c1e225081011f4104625b923b83\",\"date\":\"04 Apr 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_27.php\"},\"source\":[{\"filename\":\"php-7.1.27.tar.bz2\",\"name\":\"PHP 7.1.27 (tar.bz2)\",\"sha256\":\"dad7ecd30941911528e471c555a01911a68aa9219696bfc1e005f8b669f4ec4b\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.gz\",\"name\":\"PHP 7.1.27 (tar.gz)\",\"sha256\":\"353b9ed341048388cc95e6fa6dab587eee44a3d4d297989aa297936090864357\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.xz\",\"name\":\"PHP 7.1.27 (tar.xz)\",\"sha256\":\"25672a3a6060eff37c865a0c84e284da50b7ee8cd57174c78f0ae244b90a96a8\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_16.php\"},\"source\":[{\"filename\":\"php-7.2.16.tar.bz2\",\"name\":\"PHP 7.2.16 (tar.bz2)\",\"sha256\":\"2c0ad10053d58694cd14323248ecd6d9ba71d2733d160973c356ad01d09e7f38\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.gz\",\"name\":\"PHP 7.2.16 (tar.gz)\",\"sha256\":\"fb95e0bb69caba1dfd3bbac4eeef7a0485e5ea3d6191d35ad5657e18243aa02d\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.xz\",\"name\":\"PHP 7.2.16 (tar.xz)\",\"sha256\":\"7d91ed3c1447c6358a3d53f84599ef854aca4c3622de7435e2df115bf196e482\",\"date\":\"07 Mar 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_3.php\"},\"source\":[{\"filename\":\"php-7.3.3.tar.bz2\",\"name\":\"PHP 7.3.3 (tar.bz2)\",\"sha256\":\"61969e943adfea79701a34b8e701edd3f95be829d16601a4aabeb05f83023ce6\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.gz\",\"name\":\"PHP 7.3.3 (tar.gz)\",\"sha256\":\"9bde40cbf8608ae9c595a6643a02cf0c692c131e2b3619af3fd2af8425d8e677\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.xz\",\"name\":\"PHP 7.3.3 (tar.xz)\",\"sha256\":\"6bb03e79a183d0cb059a6d117bbb2e0679cab667fb713a13c6a16f56bebab9b3\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_26.php\"},\"source\":[{\"filename\":\"php-7.1.26.tar.bz2\",\"name\":\"PHP 7.1.26 (tar.bz2)\",\"sha256\":\"5b351ca86bc7e4600778aaf1d61ab9e4e38864efa86ab4cc4d5b02ea7f542ae6\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.gz\",\"name\":\"PHP 7.1.26 (tar.gz)\",\"sha256\":\"069315d3c3f964fd165bbbb3c2fc56005813e2cf97bed05055318dcc4e775328\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.xz\",\"name\":\"PHP 7.1.26 (tar.xz)\",\"sha256\":\"10b7ae634c12852fae52a22dc2262e5f12418ad59fd20da2d00d71a212235d31\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_15.php\"},\"source\":[{\"filename\":\"php-7.2.15.tar.bz2\",\"name\":\"PHP 7.2.15 (tar.bz2)\",\"sha256\":\"c93e7616946a463911818c7e9f9e21276c7793fb8c7cb15877188dd0546d0554\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.gz\",\"name\":\"PHP 7.2.15 (tar.gz)\",\"sha256\":\"9b13bde9f5a32d6f6bdb8b911bb55bb818d0c4073538f8dc48aa2deb560f55a3\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.xz\",\"name\":\"PHP 7.2.15 (tar.xz)\",\"sha256\":\"75e90012faef700dffb29311f3d24fa25f1a5e0f70254a9b8d5c794e25e938ce\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false},\"7.3.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_2.php\"},\"source\":[{\"filename\":\"php-7.3.2.tar.bz2\",\"name\":\"PHP 7.3.2 (tar.bz2)\",\"sha256\":\"946f50dacbd2f61e643bb737021cbe8b1816e780ee7ad3e0cd999a1892ab0add\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.gz\",\"name\":\"PHP 7.3.2 (tar.gz)\",\"sha256\":\"4597294b00edc1c63a021b6c7838eb43384f62eeb9e392f0b91c38a3c090f499\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.xz\",\"name\":\"PHP 7.3.2 (tar.xz)\",\"sha256\":\"010b868b4456644ae227d05ad236c8b0a1f57dc6320e7e5ad75e86c5baf0a9a8\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false},\"7.2.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_14.php\"},\"source\":[{\"filename\":\"php-7.2.14.tar.bz2\",\"name\":\"PHP 7.2.14 (tar.bz2)\",\"sha256\":\"f56132d248c7bf1e0efc8a680a4b598d6ff73fc6b9c84b5d7b539ad8db7a6597\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.gz\",\"name\":\"PHP 7.2.14 (tar.gz)\",\"sha256\":\"87e13d80b0c3a66bd463d1cb47dc101335884a0d192ab924f547f8aed7f70c08\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.xz\",\"name\":\"PHP 7.2.14 (tar.xz)\",\"sha256\":\"ee3f1cc102b073578a3c53ba4420a76da3d9f0c981c02b1664ae741ca65af84f\",\"date\":\"10 Jan 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_1.php\"},\"source\":[{\"filename\":\"php-7.3.1.tar.bz2\",\"name\":\"PHP 7.3.1 (tar.bz2)\",\"sha256\":\"afef2b0cd7f2641274a1a0aabe67e30f2334970d7c530382dfa9d79cfe74388e\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.gz\",\"name\":\"PHP 7.3.1 (tar.gz)\",\"sha256\":\"8006211f7a041dde22fffedc416d142e0ebf22066014077ca936d7e6f655ead5\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.xz\",\"name\":\"PHP 7.3.1 (tar.xz)\",\"sha256\":\"cfe93e40be0350cd53c4a579f52fe5d8faf9c6db047f650a4566a2276bf33362\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_33.php\"},\"source\":[{\"filename\":\"php-7.0.33.tar.bz2\",\"name\":\"PHP 7.0.33 (tar.bz2)\",\"sha256\":\"4933ea74298a1ba046b0246fe3771415c84dfb878396201b56cb5333abe86f07\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.gz\",\"name\":\"PHP 7.0.33 (tar.gz)\",\"sha256\":\"d71a6ecb6b13dc53fed7532a7f8f949c4044806f067502f8fb6f9facbb40452a\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.xz\",\"name\":\"PHP 7.0.33 (tar.xz)\",\"sha256\":\"ab8c5be6e32b1f8d032909dedaaaa4bbb1a209e519abb01a52ce3914f9a13d96\",\"date\":\"06 Dec 2018\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_25.php\"},\"source\":[{\"filename\":\"php-7.1.25.tar.bz2\",\"name\":\"PHP 7.1.25 (tar.bz2)\",\"sha256\":\"002cdc880ac7cfaede2c389204d366108847db0f3ac72edf1ba95c0577f9aaac\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.gz\",\"name\":\"PHP 7.1.25 (tar.gz)\",\"sha256\":\"7dc40e202140e8b4fb3d992c15a68d98dc06b805e6b218497d260abbe51f5958\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.xz\",\"name\":\"PHP 7.1.25 (tar.xz)\",\"sha256\":\"0fd8dad1903cd0b2d615a1fe4209f99e53b7292403c8ffa1919c0f4dd1eada88\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_0.php\"},\"source\":[{\"filename\":\"php-7.3.0.tar.bz2\",\"name\":\"PHP 7.3.0 (tar.bz2)\",\"sha256\":\"7a267daec9969a997c5c8028c350229646748e0fcc71e2f2dbb157ddcee87c67\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.gz\",\"name\":\"PHP 7.3.0 (tar.gz)\",\"sha256\":\"391bd0f91d9bdd01ab47ef9607bad8c65e35bc9bb098fb7777b2556e2c847b11\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.xz\",\"name\":\"PHP 7.3.0 (tar.xz)\",\"sha256\":\"7d195cad55af8b288c3919c67023a14ff870a73e3acc2165a6d17a4850a560b5\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"7.2.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_13.php\"},\"source\":[{\"filename\":\"php-7.2.13.tar.bz2\",\"name\":\"PHP 7.2.13 (tar.bz2)\",\"sha256\":\"5b4a46fb76491bcd3eee1213773382e570f6ecf9b22d623b24e2822298b3e92d\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.gz\",\"name\":\"PHP 7.2.13 (tar.gz)\",\"sha256\":\"e563cee406b1ec96649c22ed2b35796cfe4e9aa9afa6eab6be4cf2fe5d724744\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.xz\",\"name\":\"PHP 7.2.13 (tar.xz)\",\"sha256\":\"14b0429abdb46b65c843e5882c9a8c46b31dfbf279c747293b8ab950c2644a4b\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_32.php\"},\"source\":[{\"filename\":\"php-7.0.32.tar.bz2\",\"name\":\"PHP 7.0.32 (tar.bz2)\",\"sha256\":\"56e8d8cf9c08178afa8663589805f83bdb01634efd98131977038e24066492e1\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.gz\",\"name\":\"PHP 7.0.32 (tar.gz)\",\"sha256\":\"08d13389f611ec55f3b9164347a97e410099238a3dd85946e556a288ce366fbe\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.xz\",\"name\":\"PHP 7.0.32 (tar.xz)\",\"sha256\":\"ff6f62afeb32c71b3b89ecbd42950ef6c5e0c329cc6e1c58ffac47e6f1f883c4\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_24.php\"},\"source\":[{\"filename\":\"php-7.1.24.tar.bz2\",\"name\":\"PHP 7.1.24 (tar.bz2)\",\"sha256\":\"66de24e73c7f6006f090c1b187d6b218c8fa6a513acca4ff5c14b695a7391e0b\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.gz\",\"name\":\"PHP 7.1.24 (tar.gz)\",\"sha256\":\"1e780b1af3eeb8fba9e5af6205c960184a0c3a0ef091aaa192e7b7d6b67405d0\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.xz\",\"name\":\"PHP 7.1.24 (tar.xz)\",\"sha256\":\"e70dcec0ae28b6bc308b78972ec15aa850808819cc765f505aa51e5a7e2fa5d7\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.2.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_12.php\"},\"source\":[{\"filename\":\"php-7.2.12.tar.bz2\",\"name\":\"PHP 7.2.12 (tar.bz2)\",\"sha256\":\"b724c4c20347b6105be109d98cc395a610174e8aadb506c82e8cb645b65ef6b6\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.gz\",\"name\":\"PHP 7.2.12 (tar.gz)\",\"sha256\":\"d7cabdf4e51db38121daf0d494dc074743b24b6c79e592037eeedd731f1719dd\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.xz\",\"name\":\"PHP 7.2.12 (tar.xz)\",\"sha256\":\"989c04cc879ee71a5e1131db867f3c5102f1f7565f805e2bb8bde33f93147fe1\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.1.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_23.php\"},\"source\":[{\"filename\":\"php-7.1.23.tar.bz2\",\"name\":\"PHP 7.1.23 (tar.bz2)\",\"sha256\":\"2d79aa86d8f0faa760a712a1d7be50b57838a9770c1dff34020876630c2ecc4b\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.gz\",\"name\":\"PHP 7.1.23 (tar.gz)\",\"sha256\":\"b839a4de32e6770d10b87c2495c070d09277fe61008804b2992466f0dcc5f0fa\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.xz\",\"name\":\"PHP 7.1.23 (tar.xz)\",\"sha256\":\"227a3c76133c3dc1cec937989456cbd89ed00e68e7260c651900dbe1f5b798bc\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.2.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_11.php\"},\"source\":[{\"filename\":\"php-7.2.11.tar.bz2\",\"name\":\"PHP 7.2.11 (tar.bz2)\",\"sha256\":\"4a0d7f402d07966b37a600796283f4ca4079d955d96d5bec024dd02009d8b4c5\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.gz\",\"name\":\"PHP 7.2.11 (tar.gz)\",\"sha256\":\"180c63a9647c0a50d438b6bd5c7a8e7a11bceee8ad613a59d3ef15151fc158d4\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.xz\",\"name\":\"PHP 7.2.11 (tar.xz)\",\"sha256\":\"da1a705c0bc46410e330fc6baa967666c8cd2985378fb9707c01a8e33b01d985\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.1.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_22.php\"},\"source\":[{\"filename\":\"php-7.1.22.tar.bz2\",\"name\":\"PHP 7.1.22 (tar.bz2)\",\"sha256\":\"c8e91f19c8aa810ae95f228ff31cf0e4805cb89f4c10870ee12c85491b26e763\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.gz\",\"name\":\"PHP 7.1.22 (tar.gz)\",\"sha256\":\"1d275115593a33315647094a5a4ee9bd73c7960c08686cee35dc2e683a68b157\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.xz\",\"name\":\"PHP 7.1.22 (tar.xz)\",\"sha256\":\"9194c9b3a592d8376fde837dde711ec01ee26f8607fc2884047ef6f7c089b15d\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_10.php\"},\"source\":[{\"filename\":\"php-7.2.10.tar.bz2\",\"name\":\"PHP 7.2.10 (tar.bz2)\",\"sha256\":\"01b6129a0921a1636b07da9bc598a876669e45a462cef4b5844fc26862dbda9d\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.gz\",\"name\":\"PHP 7.2.10 (tar.gz)\",\"sha256\":\"d2d908b49b6005e65dcc46cdc986603a19b7ff103119fce8ddd4648586d430a4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.xz\",\"name\":\"PHP 7.2.10 (tar.xz)\",\"sha256\":\"01c2154a3a8e3c0818acbdbc1a956832c828a0380ce6d1d14fea495ea21804f0\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_21.php\"},\"source\":[{\"filename\":\"php-7.1.21.tar.bz2\",\"name\":\"PHP 7.1.21 (tar.bz2)\",\"sha256\":\"c2409c574bde23763b48a96b93922f530156df044585ff60108bce7b27b19580\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.gz\",\"name\":\"PHP 7.1.21 (tar.gz)\",\"sha256\":\"4b448ba9b3c81b88543c1e1fbef465391fecd64d7f19a744df26e9923295dd00\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.xz\",\"name\":\"PHP 7.1.21 (tar.xz)\",\"sha256\":\"d4da6dc69d3fe1e6b2b80f16b262f391037bfeb21213c966e026bd45d7ca2813\",\"date\":\"17 Aug 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"7.0.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_31.php\"},\"source\":[{\"filename\":\"php-7.0.31.tar.bz2\",\"name\":\"PHP 7.0.31 (tar.bz2)\",\"sha256\":\"7e8bd73eced6e679a179d39571e8fee6c83e51c86f43338f65c2dc88c1106b91\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.gz\",\"name\":\"PHP 7.0.31 (tar.gz)\",\"sha256\":\"182f36e5709837158bd4970ce57fe80735bdf79025133c00d6ad882d1c4d98dd\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.xz\",\"name\":\"PHP 7.0.31 (tar.xz)\",\"sha256\":\"68f57b3f4587071fb54a620cb83a1cfb3f0bd4ee071e0ce3bf7046a5f2d2f3cf\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_9.php\"},\"source\":[{\"filename\":\"php-7.2.9.tar.bz2\",\"name\":\"PHP 7.2.9 (tar.bz2)\",\"sha256\":\"e9e3aaa6c317b7fea78246a758b017544366049d2789ad5a44fe9398464c53a8\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.gz\",\"name\":\"PHP 7.2.9 (tar.gz)\",\"sha256\":\"23fcc1e4d10e06ddfdbc1163a8f0d147a7813467273f7946eb0de1b825d1d3e6\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.xz\",\"name\":\"PHP 7.2.9 (tar.xz)\",\"sha256\":\"3585c1222e00494efee4f5a65a8e03a1e6eca3dfb834814236ee7f02c5248ae0\",\"date\":\"16 Aug 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false},\"7.1.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_20.php\"},\"source\":[{\"filename\":\"php-7.1.20.tar.bz2\",\"name\":\"PHP 7.1.20 (tar.bz2)\",\"sha256\":\"3a1b476c88fb81254ea572e891a1d65053ab54068348e00c75e8b54fae691d45\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.gz\",\"name\":\"PHP 7.1.20 (tar.gz)\",\"sha256\":\"77a2091f4ab50367a6c68274a0d92e0da9ecdbf428b280c9836c5c6d512da450\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.xz\",\"name\":\"PHP 7.1.20 (tar.xz)\",\"sha256\":\"cd7d1006201459d43fae0790cce4eb3451add5c87f4cadb13b228d4c179b850c\",\"date\":\"19 Jul 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_8.php\"},\"source\":[{\"filename\":\"php-7.2.8.tar.bz2\",\"name\":\"PHP 7.2.8 (tar.bz2)\",\"sha256\":\"1f8068f520a60fff3db19be1b849f0c02a33a0fd8b34b7ae05556ef682187ee6\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.gz\",\"name\":\"PHP 7.2.8 (tar.gz)\",\"sha256\":\"a0cb9bf2f78498fc090eb553df03cdacc198785dec0818efa7a1804c2b7a8722\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.xz\",\"name\":\"PHP 7.2.8 (tar.xz)\",\"sha256\":\"53ba0708be8a7db44256e3ae9fcecc91b811e5b5119e6080c951ffe7910ffb0f\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_19.php\"},\"source\":[{\"filename\":\"php-7.1.19.tar.bz2\",\"name\":\"PHP 7.1.19 (tar.bz2)\",\"sha256\":\"13c43e7be3040ad53f192b0770c7ed99e5b3e348dfc6674666179d557fd770f3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.gz\",\"name\":\"PHP 7.1.19 (tar.gz)\",\"sha256\":\"e1ae477b72bed02cdcb04f0157b8f8767bd4f6030416ae06408b4f6d85ee66a1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.xz\",\"name\":\"PHP 7.1.19 (tar.xz)\",\"sha256\":\"7cab88f269b90a8a38dbcccf3ec0d5c6eba86122431a53eaa94405bbb60370a8\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.0.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_30.php\"},\"source\":[{\"filename\":\"php-7.0.30.tar.bz2\",\"name\":\"PHP 7.0.30 (tar.bz2)\",\"sha256\":\"213f38400c239b8fab2f6f59d6f4d4bd463d0a75bd4edf723dd4d5fea8850b50\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.gz\",\"name\":\"PHP 7.0.30 (tar.gz)\",\"sha256\":\"54e7615205123b940b996300bf99c707c2317b6b78388061a204b23ab3388a26\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.xz\",\"name\":\"PHP 7.0.30 (tar.xz)\",\"sha256\":\"c90892fb68ab9b8476519658d3f78f6388f2609ae1309bdc2a2e1cc9f92dd686\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_7.php\"},\"source\":[{\"filename\":\"php-7.2.7.tar.bz2\",\"name\":\"PHP 7.2.7 (tar.bz2)\",\"sha256\":\"cc81675a96af4dd18d8ffc02f26a36c622abadf86af7ecfea7bcde8d3c96d5a3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.gz\",\"name\":\"PHP 7.2.7 (tar.gz)\",\"sha256\":\"014f0560cfa22e6301b0024a6fd888c3612a0dc102ff355fa2b49544d16d43b1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.xz\",\"name\":\"PHP 7.2.7 (tar.xz)\",\"sha256\":\"eb01c0153b3baf1f64b8b044013ce414b52fede222df3f509e8ff209478f31f0\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.1.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_18.php\"},\"source\":[{\"filename\":\"php-7.1.18.tar.bz2\",\"name\":\"PHP 7.1.18 (tar.bz2)\",\"sha256\":\"580e375515ede831a6d82e13c0ec25dd08b225c6d87dfc24d7cd5f3bd542bf8e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.gz\",\"name\":\"PHP 7.1.18 (tar.gz)\",\"sha256\":\"07c24ae4dd59d81d3dc0ce89025ae667979150e2ee0e9e30dd89e04e31d510fb\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.xz\",\"name\":\"PHP 7.1.18 (tar.xz)\",\"sha256\":\"8bd91cea072ea5b368cc9b4533a1a683eb426abdacbf024bb6ffa9b799cd3b01\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.2.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_6.php\"},\"source\":[{\"filename\":\"php-7.2.6.tar.bz2\",\"name\":\"PHP 7.2.6 (tar.bz2)\",\"sha256\":\"ae5d3e8ada80b9d293d0c8bd643d07c2d988538ff1052a3f7144c6b0cd0ff2c3\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.gz\",\"name\":\"PHP 7.2.6 (tar.gz)\",\"sha256\":\"a9f30daf6af82ac02e692465cfd65b04a60d56106c961926e264d2621d313f0e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.xz\",\"name\":\"PHP 7.2.6 (tar.xz)\",\"sha256\":\"1f004e049788a3effc89ef417f06a6cf704c95ae2a718b2175185f2983381ae7\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.1.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_17.php\"},\"source\":[{\"filename\":\"php-7.1.17.tar.bz2\",\"name\":\"PHP 7.1.17 (tar.bz2)\",\"sha256\":\"e124e3ac552c50f3890ed981d07b2ee473cac961885e75186ded0bbb5b78dbcf\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.gz\",\"name\":\"PHP 7.1.17 (tar.gz)\",\"sha256\":\"aba44265bf814a020282afa63321323e1f81da61bd7318ab2b941857a15cb144\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.xz\",\"name\":\"PHP 7.1.17 (tar.xz)\",\"sha256\":\"1a784806866e06367f7a5c88775d239d6f30041c7ce65a8232d03a3d4de56d56\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_5.php\"},\"source\":[{\"filename\":\"php-7.2.5.tar.bz2\",\"name\":\"PHP 7.2.5 (tar.bz2)\",\"sha256\":\"f3820efa8efa79628b6e1b5b2f8c1b04c08d32e6721fa1654039ce5f89796031\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.gz\",\"name\":\"PHP 7.2.5 (tar.gz)\",\"sha256\":\"c198aedd4cd16db0803e0ef955036722a1f4ce9ad3827546709fac05f1567ba5\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.xz\",\"name\":\"PHP 7.2.5 (tar.xz)\",\"sha256\":\"af70a33b3f7a51510467199b39af151333fbbe4cc21923bad9c7cf64268cddb2\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_16.php\"},\"source\":[{\"filename\":\"php-7.1.16.tar.bz2\",\"name\":\"PHP 7.1.16 (tar.bz2)\",\"sha256\":\"348e2af9c7c0f327a57a972674078777dfde189e2598acbcb8618b9645b0e7e5\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.gz\",\"name\":\"PHP 7.1.16 (tar.gz)\",\"sha256\":\"c8e6fed5b350b29a5b9eaa9fce7c5e8618629346e9a58212f3dc380046065442\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.xz\",\"name\":\"PHP 7.1.16 (tar.xz)\",\"sha256\":\"a5d67e477248a3911af7ef85c8400c1ba8cd632184186fd31070b96714e669f1\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_29.php\"},\"source\":[{\"filename\":\"php-7.0.29.tar.bz2\",\"name\":\"PHP 7.0.29 (tar.bz2)\",\"sha256\":\"989142d5c5ff7a11431254f9c1995235bad61a3364b99c966e11e06aa10d3fbc\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.gz\",\"name\":\"PHP 7.0.29 (tar.gz)\",\"sha256\":\"5efe45e345f967cb20f9ff92cd514753872a65feffea1bf311c71864344bd8e8\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.xz\",\"name\":\"PHP 7.0.29 (tar.xz)\",\"sha256\":\"ca79d3ecc123bff4b623d4a1bbf5ad53ad39f5f2f5912fecc0ea97e95eba21cc\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_4.php\"},\"source\":[{\"filename\":\"php-7.2.4.tar.bz2\",\"name\":\"PHP 7.2.4 (tar.bz2)\",\"sha256\":\"11658a0d764dc94023b9fb60d4b5eb75d438ad17981efe70abb0d0d09a447ef3\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.gz\",\"name\":\"PHP 7.2.4 (tar.gz)\",\"sha256\":\"58e28e978baea0fe9009432bcb436934eaacccfdcb5f5409c7526431a595857b\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.xz\",\"name\":\"PHP 7.2.4 (tar.xz)\",\"sha256\":\"7916b1bd148ddfd46d7f8f9a517d4b09cd8a8ad9248734e7c8dd91ef17057a88\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_15.php\"},\"source\":[{\"filename\":\"php-7.1.15.tar.bz2\",\"name\":\"PHP 7.1.15 (tar.bz2)\",\"sha256\":\"e117a54738e9485de5fc75673d39dbe937dd87f0f9cc9e281960ef9b961adcbd\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.gz\",\"name\":\"PHP 7.1.15 (tar.gz)\",\"sha256\":\"0669c68a52cbd2f1cfa83354918ed03b0bcaa34ed9bafaee7dfd343461b881d4\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.xz\",\"name\":\"PHP 7.1.15 (tar.xz)\",\"sha256\":\"0e17192fb43532e4ebaa190ecec9c7e59deea7dadb7dab67b19c2081a68bd817\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_3.php\"},\"source\":[{\"filename\":\"php-7.2.3.tar.bz2\",\"name\":\"PHP 7.2.3 (tar.bz2)\",\"sha256\":\"4a735aac0ba764dd8208ea29007d3916396c5292e003ba8d3bec49edcdd5bf92\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.gz\",\"name\":\"PHP 7.2.3 (tar.gz)\",\"sha256\":\"5dc98f2266db40c5e4d9b5edf5e29e2449e819fff8321a07eb3830cf0b104bbb\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.xz\",\"name\":\"PHP 7.2.3 (tar.xz)\",\"sha256\":\"b3a94f1b562f413c0b96f54bc309706d83b29ac65d9b172bc7ed9fb40a5e651f\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_28.php\"},\"source\":[{\"filename\":\"php-7.0.28.tar.bz2\",\"name\":\"PHP 7.0.28 (tar.bz2)\",\"sha256\":\"ae5491b4613f3710e3d09e688ba3d30d3acc1112c7b96a8703663b8a95063c7f\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.gz\",\"name\":\"PHP 7.0.28 (tar.gz)\",\"sha256\":\"cd2fd94feb0d5809ffb9d900138643fa74e70656436e5f2595b03239dd97aa9c\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.xz\",\"name\":\"PHP 7.0.28 (tar.xz)\",\"sha256\":\"e738ffce2c30bc0e84be9446af86bef0a0607d321f1a3d04bbfe2402fb5f6de0\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_14.php\"},\"source\":[{\"filename\":\"php-7.1.14.tar.bz2\",\"name\":\"PHP 7.1.14 (tar.bz2)\",\"sha256\":\"63b2fd139ed7656756b0fa290bc42f8fff854723c3d2710a700e646370c581f4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.gz\",\"name\":\"PHP 7.1.14 (tar.gz)\",\"sha256\":\"8c7360209d255ee46d388bdcd43ef1a2d14b370c331be30ea628ece18a1e7683\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.xz\",\"name\":\"PHP 7.1.14 (tar.xz)\",\"sha256\":\"c09f0c1074f5689b492d79034adb84e6a6c6d08c6763c02282e6318d41156779\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.2.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_2.php\"},\"source\":[{\"filename\":\"php-7.2.2.tar.bz2\",\"name\":\"PHP 7.2.2 (tar.bz2)\",\"sha256\":\"f841ac58e17471f2241ea892b34edb01dc9b93ad9f661ffe4e3f1f476a8f4aee\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.gz\",\"name\":\"PHP 7.2.2 (tar.gz)\",\"sha256\":\"5963df05fec21927c03fe9f7bf379be2d1eacde6c0f9dcde6143c7133e55abd4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.xz\",\"name\":\"PHP 7.2.2 (tar.xz)\",\"sha256\":\"47d7607d38a1d565fc43ea942c92229a7cd165f156737f210937e375b243cb11\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.0.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_27.php\"},\"source\":[{\"filename\":\"php-7.0.27.tar.bz2\",\"name\":\"PHP 7.0.27 (tar.bz2)\",\"sha256\":\"99fa2563bb4c4c1cde9febe87cfe97324227d7b4b8828f2e936e507127394131\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.gz\",\"name\":\"PHP 7.0.27 (tar.gz)\",\"sha256\":\"809c0181e970dd17c6a6cabbf64518e719c7253e7490f8e1279bc1e1fbdf7996\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.xz\",\"name\":\"PHP 7.0.27 (tar.xz)\",\"sha256\":\"4b2bc823e806dbf7b62fe0b92b0d14b0c6e03f88c3fc5d96278416c54ce11f6c\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_1.php\"},\"source\":[{\"filename\":\"php-7.2.1.tar.bz2\",\"name\":\"PHP 7.2.1 (tar.bz2)\",\"sha256\":\"fe06793f268a4dd29cbc5f4ef415f01e786877152b02221ad7d18dbb6864eb79\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.gz\",\"name\":\"PHP 7.2.1 (tar.gz)\",\"sha256\":\"8ecb2950571054a00687ccbd023874a4a075ccd1e2ec3dc00fc25ef589a77dba\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.xz\",\"name\":\"PHP 7.2.1 (tar.xz)\",\"sha256\":\"6c6cf82fda6660ed963821eb0525214bb3547e8e29f447b9c15b2d8e6efd8822\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.1.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_13.php\"},\"source\":[{\"filename\":\"php-7.1.13.tar.bz2\",\"name\":\"PHP 7.1.13 (tar.bz2)\",\"sha256\":\"35fda51d2d44600940185fd5818d336a79e77ab3c98e2bd075091f2f91cf98a1\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.gz\",\"name\":\"PHP 7.1.13 (tar.gz)\",\"sha256\":\"12fcbf59c9eb9af215ef38815d5da39b9d74549092c34b0dfc31442699740ce9\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.xz\",\"name\":\"PHP 7.1.13 (tar.xz)\",\"sha256\":\"1a0b3f2fb61959b57a3ee01793a77ed3f19bde5aa90c43dcacc85ea32f64fc10\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.2.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_0.php\"},\"source\":[{\"filename\":\"php-7.2.0.tar.bz2\",\"name\":\"PHP 7.2.0 (tar.bz2)\",\"sha256\":\"2bfefae4226b9b97879c9d33078e50bdb5c17f45ff6e255951062a529720c64a\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.gz\",\"name\":\"PHP 7.2.0 (tar.gz)\",\"sha256\":\"801876abd52e0dc58a44701344252035fd50702d8f510cda7fdb317ab79897bc\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.xz\",\"name\":\"PHP 7.2.0 (tar.xz)\",\"sha256\":\"87572a6b924670a5d4aac276aaa4a94321936283df391d702c845ffc112db095\",\"date\":\"30 Nov 2017\"}],\"date\":\"30 Nov 2017\",\"museum\":false},\"7.1.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_12.php\"},\"source\":[{\"filename\":\"php-7.1.12.tar.bz2\",\"name\":\"PHP 7.1.12 (tar.bz2)\",\"sha256\":\"f9ce3361ab99dce8f3f2fba663695ac9b18a3579bc8014dc280368d1577d87c4\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.gz\",\"name\":\"PHP 7.1.12 (tar.gz)\",\"sha256\":\"188c67d8e424ce7a6fe93475aa64f53182c1d80ca3ac99439651ca91569d969c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.xz\",\"name\":\"PHP 7.1.12 (tar.xz)\",\"sha256\":\"a0118850774571b1f2d4e30b4fe7a4b958ca66f07d07d65ebdc789c54ba6eeb3\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.0.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_26.php\"},\"source\":[{\"filename\":\"php-7.0.26.tar.bz2\",\"name\":\"PHP 7.0.26 (tar.bz2)\",\"sha256\":\"2590d722f7b23b6a903c5a00cf04e7ee728df79d10ae473e3a81ba41588509a7\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.gz\",\"name\":\"PHP 7.0.26 (tar.gz)\",\"sha256\":\"04c345f7c9e3f1cd02f275bfec893a4e0290e724073f2f3d7282a219128b537c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.xz\",\"name\":\"PHP 7.0.26 (tar.xz)\",\"sha256\":\"ed5cbb4bbb0ddef8985f100bba2e94002ad22a230b5da2dccfe148915df5f199\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.1.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_11.php\"},\"source\":[{\"filename\":\"php-7.1.11.tar.bz2\",\"name\":\"PHP 7.1.11 (tar.bz2)\",\"sha256\":\"7646d7de701fc969e3305eeeb2eddda3d46af6a88ee20ef4a47270c447228573\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.gz\",\"name\":\"PHP 7.1.11 (tar.gz)\",\"sha256\":\"de41b2c166bc5ec8ea96a337d4dd675c794f7b115a8a47bb04595c03dbbdf425\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.xz\",\"name\":\"PHP 7.1.11 (tar.xz)\",\"sha256\":\"074093e9d7d21afedc5106904218a80a47b854abe368d2728ed22184c884893e\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"7.0.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_25.php\"},\"source\":[{\"filename\":\"php-7.0.25.tar.bz2\",\"name\":\"PHP 7.0.25 (tar.bz2)\",\"sha256\":\"95a24d96d126a196e1550e394182b43a6460cdd2026f1a77bef01e422415cc25\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.gz\",\"name\":\"PHP 7.0.25 (tar.gz)\",\"sha256\":\"081b46bf588d38c636fd6cd1dab8855b6b3e171550d1e65f770f53aede594ee7\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.xz\",\"name\":\"PHP 7.0.25 (tar.xz)\",\"sha256\":\"5cc14bd20fb2226f6d34465662425cd100441bde9042ea1cef2e4506d6ded8cc\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_10.php\"},\"source\":[{\"filename\":\"php-7.1.10.tar.bz2\",\"name\":\"PHP 7.1.10 (tar.bz2)\",\"sha256\":\"0ee51b9b1ae7eca3e9558f772ce20cbacd1f76420009b3af630c87027f9a41af\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.gz\",\"name\":\"PHP 7.1.10 (tar.gz)\",\"sha256\":\"edc6a7c3fe89419525ce51969c5f48610e53613235bbef255c3a4db33b458083\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.xz\",\"name\":\"PHP 7.1.10 (tar.xz)\",\"sha256\":\"2b8efa771a2ead0bb3ae67b530ca505b5b286adc873cca9ce97a6e1d6815c50b\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.0.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_24.php\"},\"source\":[{\"filename\":\"php-7.0.24.tar.bz2\",\"name\":\"PHP 7.0.24 (tar.bz2)\",\"sha256\":\"9bf91982694f178821c0aaf03563a20494873ece6933e2eeecfd76f325bdcf19\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.gz\",\"name\":\"PHP 7.0.24 (tar.gz)\",\"sha256\":\"151015b578c14a4ab47d1e5894b36c85cf5655237599b805a08d106fe18a8c8e\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.xz\",\"name\":\"PHP 7.0.24 (tar.xz)\",\"sha256\":\"4dba7aa365193c9229f89f1975fad4c01135d29922a338ffb4a27e840d6f1c98\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.1.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_9.php\"},\"source\":[{\"filename\":\"php-7.1.9.tar.bz2\",\"name\":\"PHP 7.1.9 (tar.bz2)\",\"sha256\":\"314dcc10dfdd7c4443edb4fe1e133a44f2b2a8351be8c9eb6ab9222d45fd9bae\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.gz\",\"name\":\"PHP 7.1.9 (tar.gz)\",\"sha256\":\"499c31ad19b2ff553ae686ebf53749aa2351af7d955ee9f1986f144089561a4b\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.xz\",\"name\":\"PHP 7.1.9 (tar.xz)\",\"sha256\":\"ec9ca348dd51f19a84dc5d33acfff1fba1f977300604bdac08ed46ae2c281e8c\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.0.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_23.php\"},\"source\":[{\"filename\":\"php-7.0.23.tar.bz2\",\"name\":\"PHP 7.0.23 (tar.bz2)\",\"sha256\":\"6fe94cefc7d2c60ee2c1648b977beed756ad9cd0a7e4ea8bb8cf521d9355a09c\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.gz\",\"name\":\"PHP 7.0.23 (tar.gz)\",\"sha256\":\"d511089ecaf386f3ab752efba76558c03558afa6b5b3fe71d84881c76644b466\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.xz\",\"name\":\"PHP 7.0.23 (tar.xz)\",\"sha256\":\"8e526e3551a58e00c8055fa4a72804aa1bd3ee1c0411b25bf1504cc4992609df\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.1.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_8.php\"},\"source\":[{\"filename\":\"php-7.1.8.tar.bz2\",\"name\":\"PHP 7.1.8 (tar.bz2)\",\"sha256\":\"7064a00a9450565190890c7a4be04e646e0be73b2e0f8c46ae34419f343ca2f8\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.gz\",\"name\":\"PHP 7.1.8 (tar.gz)\",\"sha256\":\"63517b3264f7cb17fb58e1ce60a6cd8903160239b7cf568d52024e9cf4d6cb04\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.xz\",\"name\":\"PHP 7.1.8 (tar.xz)\",\"sha256\":\"8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.0.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_22.php\"},\"source\":[{\"filename\":\"php-7.0.22.tar.bz2\",\"name\":\"PHP 7.0.22 (tar.bz2)\",\"sha256\":\"88e0b27f69abdd12ecde81f000c5a9ea479af7218456ea7f6557edb43c6dfdde\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.gz\",\"name\":\"PHP 7.0.22 (tar.gz)\",\"sha256\":\"04292eaea0eeb75e9b6a36a3db8e90a3d43f939646fd9d7d1e083e5b70884383\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.xz\",\"name\":\"PHP 7.0.22 (tar.xz)\",\"sha256\":\"408c3fbc235ec940433bfac1f3ed4bf797f61b4a1693b9fb0b6a04b2c1832501\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.1.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_7.php\"},\"source\":[{\"filename\":\"php-7.1.7.tar.bz2\",\"name\":\"PHP 7.1.7 (tar.bz2)\",\"sha256\":\"079b6792987f38dc485f92258c04f9e02dedd593f9d260ebe725343f812d1ff8\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.gz\",\"name\":\"PHP 7.1.7 (tar.gz)\",\"sha256\":\"e0dbab8da601ee5119368d6f93dc1a86ad53b799d2f8c1209d6b827a2b259f92\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.xz\",\"name\":\"PHP 7.1.7 (tar.xz)\",\"sha256\":\"0d42089729be7b2bb0308cbe189c2782f9cb4b07078c8a235495be5874fff729\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_21.php\"},\"source\":[{\"filename\":\"php-7.0.21.tar.bz2\",\"name\":\"PHP 7.0.21 (tar.bz2)\",\"sha256\":\"2ba133c392de6f86aacced8c54e0adefd1c81d3840ac323b9926b8ed3dc6231f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.gz\",\"name\":\"PHP 7.0.21 (tar.gz)\",\"sha256\":\"f2f05f629dd02c75834ddf033916bd5ff92a720602839d81fd8b6d90e37b6225\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.xz\",\"name\":\"PHP 7.0.21 (tar.xz)\",\"sha256\":\"6713fe3024365d661593235b525235045ef81f18d0043654658c9de1bcb8b9e3\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_6.php\"},\"source\":[{\"filename\":\"php-7.1.6.tar.bz2\",\"name\":\"PHP 7.1.6 (tar.bz2)\",\"sha256\":\"6e3576ca77672a18461a4b089c5790647f1b2c19f82e4f5e94c962609aabffcf\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.gz\",\"name\":\"PHP 7.1.6 (tar.gz)\",\"sha256\":\"7ff8c01af791c7e499ee77e1b82e4b1d56e379efe1f706b1203d48751481fd9f\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.xz\",\"name\":\"PHP 7.1.6 (tar.xz)\",\"sha256\":\"01584dc521ab7ec84b502b61952f573652fe6aa00c18d6d844fb9209f14b245b\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.0.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_20.php\"},\"source\":[{\"filename\":\"php-7.0.20.tar.bz2\",\"name\":\"PHP 7.0.20 (tar.bz2)\",\"sha256\":\"cdfddfe01cc615218e333e34a1c761c9ef8fdf5199b27617264a02705eda7fc3\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.gz\",\"name\":\"PHP 7.0.20 (tar.gz)\",\"sha256\":\"b44947f0c1926928d5c2f176506b878c32b5cd09ce3b5b52bbbecf4328ab812d\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.xz\",\"name\":\"PHP 7.0.20 (tar.xz)\",\"sha256\":\"31b9cf1fb83fe3cd82c2f6603a0ae81ae6abacb5286827e362d8f85e68908e0a\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.1.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_5.php\"},\"source\":[{\"filename\":\"php-7.1.5.tar.bz2\",\"name\":\"PHP 7.1.5 (tar.bz2)\",\"sha256\":\"28eaa4784f1bd8b7dc71206dc8c4375510199432dc17af6906b14d16b3058697\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.gz\",\"name\":\"PHP 7.1.5 (tar.gz)\",\"sha256\":\"f7ff8039f5c3a7da4d62a3cce6378280224acfa27ab5a5bee25b7439bce01c17\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.xz\",\"name\":\"PHP 7.1.5 (tar.xz)\",\"sha256\":\"d149a3c396c45611f5dc6bf14be190f464897145a76a8e5851cf18ff7094f6ac\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.0.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_19.php\"},\"source\":[{\"filename\":\"php-7.0.19.tar.bz2\",\"name\":\"PHP 7.0.19 (tar.bz2)\",\"sha256\":\"0f3ac0afc02aec22f6b1659045da9287453e9309439d0499622bc8e94a7f7d59\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.gz\",\"name\":\"PHP 7.0.19 (tar.gz)\",\"sha256\":\"4b4120acdbb8cbf5f7a18625c2eb5cdd2fdb4fc69a4831bc7ffdfd1ee78b1ce0\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.xz\",\"name\":\"PHP 7.0.19 (tar.xz)\",\"sha256\":\"640e5e3377d15a6d19adce2b94a9d876eeddabdb862d154a5e347987f4225ef6\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.1.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_4.php\"},\"source\":[{\"filename\":\"php-7.1.4.tar.bz2\",\"name\":\"PHP 7.1.4 (tar.bz2)\",\"sha256\":\"39bf697836e2760b3a44ea322e9e5f1f5b1f07abeb0111f6495eff7538e25805\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.gz\",\"name\":\"PHP 7.1.4 (tar.gz)\",\"sha256\":\"ed0006c86de503684dde04c6dd811ea2354a3b6d10ebd9f0cb103dcd28f0e70f\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.xz\",\"name\":\"PHP 7.1.4 (tar.xz)\",\"sha256\":\"71514386adf3e963df087c2044a0b3747900b8b1fc8da3a99f0a0ae9180d300b\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.0.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_18.php\"},\"source\":[{\"filename\":\"php-7.0.18.tar.bz2\",\"name\":\"PHP 7.0.18 (tar.bz2)\",\"sha256\":\"b20cc63d507032b39d8bb14cb64784e460b0e47997e90a8704b703bcbb233fd1\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.gz\",\"name\":\"PHP 7.0.18 (tar.gz)\",\"sha256\":\"e0fb336749d72e6c9cfcebb9b48497f004fa99f93b68c21cb3eb657053665e1d\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.xz\",\"name\":\"PHP 7.0.18 (tar.xz)\",\"sha256\":\"679cffcdf2495dee5ab89bda595e678a1096136678b3a1d08f1f57ba347c234d\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.1.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_3.php\"},\"source\":[{\"filename\":\"php-7.1.3.tar.bz2\",\"name\":\"PHP 7.1.3 (tar.bz2)\",\"sha256\":\"c145924d91b7a253eccc31f8d22f15b61589cd24d78105e56240c1bb6413b94f\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.gz\",\"name\":\"PHP 7.1.3 (tar.gz)\",\"sha256\":\"4bfadd0012b966eced448497272150ffeede13136a961aacb9e71553b8e929ec\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.xz\",\"name\":\"PHP 7.1.3 (tar.xz)\",\"sha256\":\"e4887c2634778e37fd962fbdf5c4a7d32cd708482fe07b448804625570cb0bb0\",\"date\":\"16 Mar 2017\"}],\"date\":\"16 Mar 2017\",\"museum\":false},\"7.0.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_17.php\"},\"source\":[{\"filename\":\"php-7.0.17.tar.bz2\",\"name\":\"PHP 7.0.17 (tar.bz2)\",\"sha256\":\"aee503926b96d807692fac3e0fd64e3259788f5139819a983152679cb6e91d4b\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.gz\",\"name\":\"PHP 7.0.17 (tar.gz)\",\"sha256\":\"1f42ffe9895dad746baf4a0e8d81f2272f55fdef66cf298ac911d8791ceb1e80\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.xz\",\"name\":\"PHP 7.0.17 (tar.xz)\",\"sha256\":\"471c16fcdd6a5e1a37199e97bcaeea6117626229785185be7532aaa7c6ee04be\",\"date\":\"30 Mar 2017\"}],\"date\":\"30 Mar 2017\",\"museum\":false},\"7.1.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_2.php\"},\"source\":[{\"filename\":\"php-7.1.2.tar.bz2\",\"name\":\"PHP 7.1.2 (tar.bz2)\",\"sha256\":\"e0f2214e2366434ee231156ba70cfefd0c59790f050d8727a3f1dc2affa67004\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.gz\",\"name\":\"PHP 7.1.2 (tar.gz)\",\"sha256\":\"e6773217c9c719ca22abb104ae3d437d53daceaf31faf2e5eeb1f9f5028005d8\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.xz\",\"name\":\"PHP 7.1.2 (tar.xz)\",\"sha256\":\"d815a0c39fd57bab1434a77ff0610fb507c22f790c66cd6f26e27030c4b3e971\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.0.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_16.php\"},\"source\":[{\"filename\":\"php-7.0.16.tar.bz2\",\"name\":\"PHP 7.0.16 (tar.bz2)\",\"sha256\":\"83c5f57575dc0feca563af529d6f1d60183bf9c2c13e98a6da131fbd0a3597ab\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.gz\",\"name\":\"PHP 7.0.16 (tar.gz)\",\"sha256\":\"bc6709dc7612957d0533c09c9c8a9c2e7c4fd9d64e697707bb1b39670eab61d4\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.xz\",\"name\":\"PHP 7.0.16 (tar.xz)\",\"sha256\":\"244ac39bc657448962860aa7a590e4417f68513ad5e86ee2727b1328b0537309\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.1.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_1.php\"},\"source\":[{\"filename\":\"php-7.1.1.tar.bz2\",\"name\":\"PHP 7.1.1 (tar.bz2)\",\"sha256\":\"d791d39d7b54ec42441a05a5f06d68a495647d843210e3ae4f2c6adb99c675bc\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.gz\",\"name\":\"PHP 7.1.1 (tar.gz)\",\"sha256\":\"c136279d539c3c2c25176bf149c14913670e79bb27ee6b73e1cd69003985a70d\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.xz\",\"name\":\"PHP 7.1.1 (tar.xz)\",\"sha256\":\"b3565b0c1441064eba204821608df1ec7367abff881286898d900c2c2a5ffe70\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"7.0.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_15.php\"},\"source\":[{\"filename\":\"php-7.0.15.tar.bz2\",\"name\":\"PHP 7.0.15 (tar.bz2)\",\"sha256\":\"a8c8f947335683fa6dd1b7443ed70f2a42bc33e8b6c215f139138cee89e47dd9\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.gz\",\"name\":\"PHP 7.0.15 (tar.gz)\",\"sha256\":\"c24324c6d4bf27e8bc1d12da0aae4f15a43c8374f681e23e9b1e67f5b719c3a6\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.xz\",\"name\":\"PHP 7.0.15 (tar.xz)\",\"sha256\":\"300364d57fc4a6176ff7d52d390ee870ab6e30df121026649f8e7e0b9657fe93\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_14.php\"},\"source\":[{\"filename\":\"php-7.0.14.tar.bz2\",\"name\":\"PHP 7.0.14 (tar.bz2)\",\"sha256\":\"fbc4369a0d42b55fd1ce75eb4f3d17b012da754a67567d8e3288fbfbb7490534\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.gz\",\"name\":\"PHP 7.0.14 (tar.gz)\",\"sha256\":\"320cfd2184e7252d3d77eae5d5474554fa04ab9fbee7c6094c07e8bd3b5b632b\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.xz\",\"name\":\"PHP 7.0.14 (tar.xz)\",\"sha256\":\"0f1dff6392a1cc2ed126b9695f580a2ed77eb09d2c23b41cabfb41e6f27a8c89\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_0.php\"},\"source\":[{\"filename\":\"php-7.1.0.tar.bz2\",\"name\":\"PHP 7.1.0 (tar.bz2)\",\"sha256\":\"68bcfd7deed5b3474d81dec9f74d122058327e2bed0ac25bbc9ec70995228e61\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.gz\",\"name\":\"PHP 7.1.0 (tar.gz)\",\"sha256\":\"9e84c5b13005c56374730edf534fe216f6a2e63792a9703d4b894e770bbccbae\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.xz\",\"name\":\"PHP 7.1.0 (tar.xz)\",\"sha256\":\"a810b3f29c21407c24caa88f50649320d20ba6892ae1923132598b8a0ca145b6\",\"date\":\"01 Dec 2016\"}],\"date\":\"01 Dec 2016\",\"museum\":false},\"7.0.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_13.php\"},\"source\":[{\"filename\":\"php-7.0.13.tar.bz2\",\"name\":\"PHP 7.0.13 (tar.bz2)\",\"sha256\":\"d090bb523812117ec0c08d8f0b5c5f0616aa7a29a2eeee0374efe53a7cfe88c1\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.gz\",\"name\":\"PHP 7.0.13 (tar.gz)\",\"sha256\":\"c8d8cf1b29e7f7e89be9ee64f453cb7ef6d20e1d13a83cba037bd654ef2da42c\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.xz\",\"name\":\"PHP 7.0.13 (tar.xz)\",\"sha256\":\"357ba7f93975d7d836abed0852dc3ed96a988af539e87750613294cbee82f1bf\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_12.php\"},\"source\":[{\"filename\":\"php-7.0.12.tar.bz2\",\"name\":\"PHP 7.0.12 (tar.bz2)\",\"sha256\":\"38c47294fe8fb239b0230dc63a93c3e4044f472ab93b5dff8b65feb4103a6a27\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.gz\",\"name\":\"PHP 7.0.12 (tar.gz)\",\"sha256\":\"c4693cc363b4bbc7224294cc94faf3598e616cbe8540dd6975f68c7d3c52682f\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.xz\",\"name\":\"PHP 7.0.12 (tar.xz)\",\"sha256\":\"f3d6c49e1c242e5995dec15e503fde996c327eb86cd7ec45c690e93c971b83ff\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_11.php\"},\"source\":[{\"filename\":\"php-7.0.11.tar.bz2\",\"name\":\"PHP 7.0.11 (tar.bz2)\",\"sha256\":\"f99b729dc1149858844b18af1e8c0de6dd1cdfdd52e22fbb4de2aa78bf9bf7f1\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.gz\",\"name\":\"PHP 7.0.11 (tar.gz)\",\"sha256\":\"02d27b5d140dbad8d400a95af808e1e9ce87aa8d2a2100870734ba26e6700d79\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.xz\",\"name\":\"PHP 7.0.11 (tar.xz)\",\"sha256\":\"d4cccea8da1d27c11b89386f8b8e95692ad3356610d571253d00ca67d524c735\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_10.php\"},\"source\":[{\"filename\":\"php-7.0.10.tar.bz2\",\"name\":\"PHP 7.0.10 (tar.bz2)\",\"sha256\":\"8055bbe5a736986931c0c6a08b765d6d778271ec7d2d56c50a1ad259ec09f6de\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.gz\",\"name\":\"PHP 7.0.10 (tar.gz)\",\"sha256\":\"46216e05db09c0fffbf832e3b64f3722ccbdd6d4ae16d9791e41adf0a4b00641\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.xz\",\"name\":\"PHP 7.0.10 (tar.xz)\",\"sha256\":\"348476ff7ba8d95a1e28e1059430c10470c5f8110f6d9133d30153dda4cdf56a\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_9.php\"},\"source\":[{\"filename\":\"php-7.0.9.tar.bz2\",\"name\":\"PHP 7.0.9 (tar.bz2)\",\"sha256\":\"2ee6968b5875f2f38700c58a189aad859a6a0b85fc337aa102ec2dc3652c3b7b\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.gz\",\"name\":\"PHP 7.0.9 (tar.gz)\",\"sha256\":\"93895a6a610c94751c890e5ee91a7f4bc0eae476b95fe30425d13f7ae88753d5\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.xz\",\"name\":\"PHP 7.0.9 (tar.xz)\",\"sha256\":\"970c322ba3e472cb0264b8ba9d4d92e87918da5d0cca53c4aba2a70545b8626d\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_8.php\"},\"source\":[{\"filename\":\"php-7.0.8.tar.bz2\",\"name\":\"PHP 7.0.8 (tar.bz2)\",\"sha256\":\"66dc7ba388490e07b1313fe3a06b1fa822e1310585fe29f4909995f131e27c8d\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.gz\",\"name\":\"PHP 7.0.8 (tar.gz)\",\"sha256\":\"1f024fa6d87594b99fa312e3185c357dcffa42e07d21c726f41d1fa6f773720b\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.xz\",\"name\":\"PHP 7.0.8 (tar.xz)\",\"sha256\":\"0a2142c458b0846f556b16da1c927d74c101aa951bb840549abe5c58584fb394\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_7.php\"},\"source\":[{\"filename\":\"php-7.0.7.tar.bz2\",\"name\":\"PHP 7.0.7 (tar.bz2)\",\"sha256\":\"474f2925c4782b94016e3afbb17b14ff9cc6f4fdb6f6e231b36a378bb18a3d1a\",\"date\":\"26 May 2016\"},{\"filename\":\"php-7.0.7.tar.gz\",\"name\":\"PHP 7.0.7 (tar.gz)\",\"sha256\":\"66282ff4a9f88fe9607d9574e15bf335885b964245591a1740adb3f79c514a67\",\"date\":\"26 May 2016\"},{\"filename\":\"php-7.0.7.tar.xz\",\"name\":\"PHP 7.0.7 (tar.xz)\",\"sha256\":\"9cc64a7459242c79c10e79d74feaf5bae3541f604966ceb600c3d2e8f5fe4794\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_6.php\"},\"source\":[{\"filename\":\"php-7.0.6.tar.bz2\",\"name\":\"PHP 7.0.6 (tar.bz2)\",\"sha256\":\"14ddf192a9965c858c1e742a61456be2f34a4db87556172c0d76f08de96329b7\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-7.0.6.tar.gz\",\"name\":\"PHP 7.0.6 (tar.gz)\",\"sha256\":\"f6b47cb3e02530d96787ae5c7888aefbd1db6ae4164d68b88808ee6f4da94277\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-7.0.6.tar.xz\",\"name\":\"PHP 7.0.6 (tar.xz)\",\"sha256\":\"1b237a9455e5476a425dbb9d99966bad68107747c601958cb9558a7fb49ab419\",\"date\":\"28 Apr 2016\"}],\"date\":\"28 Apr 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_5.php\"},\"source\":[{\"filename\":\"php-7.0.5.tar.bz2\",\"name\":\"PHP 7.0.5 (tar.bz2)\",\"sha256\":\"2c09af7fe64537ea795f098b9b542ead407ef83f7cdc65b3787115ccbbb51de9\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-7.0.5.tar.gz\",\"name\":\"PHP 7.0.5 (tar.gz)\",\"sha256\":\"f9d93419031b4df663fc48f03b8a833545de8776225e46637563e2be6029908d\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-7.0.5.tar.xz\",\"name\":\"PHP 7.0.5 (tar.xz)\",\"sha256\":\"c41f1a03c24119c0dd9b741cdb67880486e64349fc33527767f6dc28d3803abb\",\"date\":\"31 Mar 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_4.php\"},\"source\":[{\"filename\":\"php-7.0.4.tar.bz2\",\"name\":\"PHP 7.0.4 (tar.bz2)\",\"sha256\":\"a246c503709c189ba8e1e22ed2cb22abc27da43a997ff1b3318e181baf529dcc\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-7.0.4.tar.gz\",\"name\":\"PHP 7.0.4 (tar.gz)\",\"sha256\":\"f6cdac2fd37da0ac0bbcee0187d74b3719c2f83973dfe883d5cde81c356fe0a8\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-7.0.4.tar.xz\",\"name\":\"PHP 7.0.4 (tar.xz)\",\"sha256\":\"584e0e374e357a71b6e95175a2947d787453afc7f9ab7c55651c10491c4df532\",\"date\":\"03 Mar 2016\"}],\"date\":\"03 Mar 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_3.php\"},\"source\":[{\"filename\":\"php-7.0.3.tar.bz2\",\"name\":\"PHP 7.0.3 (tar.bz2)\",\"sha256\":\"826823d754f09c779222a99becf9c53a4dc719dba2d777aca7807c6ca68e6fc6\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-7.0.3.tar.gz\",\"name\":\"PHP 7.0.3 (tar.gz)\",\"sha256\":\"5521df8db153aba35c90cf1a1829106b6bbdac32425216d440f9cc29f00a7c08\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-7.0.3.tar.xz\",\"name\":\"PHP 7.0.3 (tar.xz)\",\"sha256\":\"3af2b62617a0e46214500fc3e7f4a421067224913070844d3665d6cc925a1cca\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_2.php\"},\"source\":[{\"filename\":\"php-7.0.2.tar.bz2\",\"name\":\"PHP 7.0.2 (tar.bz2)\",\"sha256\":\"9b1b75fbd9c92c6b0003b234e550965038826d11ea1f430bf279964da9da2236\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-7.0.2.tar.gz\",\"name\":\"PHP 7.0.2 (tar.gz)\",\"sha256\":\"040198aef3dc5f17c253c1282160aabc6a05ca0b18b3d6fc9213970363083412\",\"date\":\"07 Jan 2015\"},{\"filename\":\"php-7.0.2.tar.xz\",\"name\":\"PHP 7.0.2 (tar.xz)\",\"sha256\":\"556121271a34c442b48e3d7fa3d3bbb4413d91897abbb92aaeced4a7df5f2ab2\",\"date\":\"07 Jan 2015\"}],\"date\":\"07 Jan 2015\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_1.php\"},\"source\":[{\"filename\":\"php-7.0.1.tar.bz2\",\"name\":\"PHP 7.0.1 (tar.bz2)\",\"sha256\":\"04ce3bd1da001397b342c2219a5093be9ecbbc97f022e1e6a0ec2fedc3d93e42\",\"date\":\"17 Dec 2015\"},{\"filename\":\"php-7.0.1.tar.gz\",\"name\":\"PHP 7.0.1 (tar.gz)\",\"sha256\":\"d12aaba2bead056322aa53bd5fbe762b27a42d37f451cd42ff2e7a549ca21dbf\",\"date\":\"17 Dec 2015\"},{\"filename\":\"php-7.0.1.tar.xz\",\"name\":\"PHP 7.0.1 (tar.xz)\",\"sha256\":\"84fcb8b9c61f70db802d3b6636c6ba602470a375e593375c0c744483aa0c0357\",\"date\":\"17 Dec 2015\"}],\"date\":\"17 Dec 2015\",\"museum\":false},\"7.0.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_0.php\"},\"source\":[{\"filename\":\"php-7.0.0.tar.bz2\",\"name\":\"PHP 7.0.0 (tar.bz2)\",\"sha256\":\"a92a54306832167a39f7c0ec00524fc6f3f7d985c806caa7632561d0ddedfcea\",\"date\":\"03 Dec 2015\"},{\"filename\":\"php-7.0.0.tar.gz\",\"name\":\"PHP 7.0.0 (tar.gz)\",\"sha256\":\"d6ae7b4a2e5c43a9945a97e83b6b3adfb7d0df0b91ef78b647a6dffefaa9c71b\",\"date\":\"03 Dec 2015\"},{\"filename\":\"php-7.0.0.tar.xz\",\"name\":\"PHP 7.0.0 (tar.xz)\",\"sha256\":\"7dbdda74c502960febe0544b3e3a7c430389a7a4260e94c73fd8ca26c33b8540\",\"date\":\"03 Dec 2015\"}],\"date\":\"03 Dec 2015\",\"museum\":false}}" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=5&max=1000", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:52:46 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:52:46 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:52:46 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff80902\"" + }, + "body": "{\"5.6.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_40.php\"},\"source\":[{\"filename\":\"php-5.6.40.tar.bz2\",\"name\":\"PHP 5.6.40 (tar.bz2)\",\"sha256\":\"ffd025d34623553ab2f7fd8fb21d0c9e6f9fa30dc565ca03a1d7b763023fba00\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.gz\",\"name\":\"PHP 5.6.40 (tar.gz)\",\"sha256\":\"56fb9878d12fdd921f6a0897e919f4e980d930160e154cbde2cc6d9206a27cac\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.xz\",\"name\":\"PHP 5.6.40 (tar.xz)\",\"sha256\":\"1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false},\"5.6.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_39.php\"},\"source\":[{\"filename\":\"php-5.6.39.tar.bz2\",\"name\":\"PHP 5.6.39 (tar.bz2)\",\"sha256\":\"b3db2345f50c010b01fe041b4e0f66c5aa28eb325135136f153e18da01583ad5\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.gz\",\"name\":\"PHP 5.6.39 (tar.gz)\",\"sha256\":\"127b122b7d6c7f3c211c0ffa554979370c3131196137404a51a391d8e2e9c7bb\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.xz\",\"name\":\"PHP 5.6.39 (tar.xz)\",\"sha256\":\"8147576001a832ff3d03cb2980caa2d6b584a10624f87ac459fcd3948c6e4a10\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"5.6.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_38.php\"},\"source\":[{\"filename\":\"php-5.6.38.tar.bz2\",\"name\":\"PHP 5.6.38 (tar.bz2)\",\"sha256\":\"d65b231bbdd63be4439ef5ced965cfd63e62983429dbd4dfcfb49981593ebc03\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.gz\",\"name\":\"PHP 5.6.38 (tar.gz)\",\"sha256\":\"3b74d46cd79a45cce90c8059e09d8bd0beeb5de562cbb0cb42f96ff8fa665fd4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.xz\",\"name\":\"PHP 5.6.38 (tar.xz)\",\"sha256\":\"c2fac47dc6316bd230f0ea91d8a5498af122fb6a3eb43f796c9ea5f59b04aa1e\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"5.6.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_37.php\"},\"source\":[{\"filename\":\"php-5.6.37.tar.bz2\",\"name\":\"PHP 5.6.37 (tar.bz2)\",\"sha256\":\"886ad63d05d94ea3e54322691aadea0cf1d4bcdb4450b02fe300e5b570788b23\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.gz\",\"name\":\"PHP 5.6.37 (tar.gz)\",\"sha256\":\"b7ec077f35ef3a8cdd33c29124140b1761111a1429878b4c463bb20d2a31b184\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.xz\",\"name\":\"PHP 5.6.37 (tar.xz)\",\"sha256\":\"5000d82610f9134aaedef28854ec3591f68dedf26a17b8935727dac2843bd256\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false},\"5.6.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_36.php\"},\"source\":[{\"filename\":\"php-5.6.36.tar.bz2\",\"name\":\"PHP 5.6.36 (tar.bz2)\",\"sha256\":\"626a0e3f5d8a0e686a2b930f0dd3a0601fe3dcb5e43dd0e8c3fab631e64e172a\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.gz\",\"name\":\"PHP 5.6.36 (tar.gz)\",\"sha256\":\"06086a8b6a9964ef8009c4d9176b4eeb0c564ea39c1213f015e24f3466d2d69f\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.xz\",\"name\":\"PHP 5.6.36 (tar.xz)\",\"sha256\":\"18f536bf548e909b4e980379d0c4e56d024b2b1eb1c9768fd169360491f1d6dd\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false},\"5.6.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_35.php\"},\"source\":[{\"filename\":\"php-5.6.35.tar.bz2\",\"name\":\"PHP 5.6.35 (tar.bz2)\",\"sha256\":\"ee78a7e9ca21d8ea394d037c55effff477a49dbae31c7753c547036f5bd73b92\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.gz\",\"name\":\"PHP 5.6.35 (tar.gz)\",\"sha256\":\"dd0242304f510d48a5216dd2f5796bcf59e8e18366658259aaf205e1d63abf71\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.xz\",\"name\":\"PHP 5.6.35 (tar.xz)\",\"sha256\":\"9985cb64cb8224c289effff5b34f670d14f838175f76daea0507d643eec650d2\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false},\"5.6.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_34.php\"},\"source\":[{\"filename\":\"php-5.6.34.tar.bz2\",\"name\":\"PHP 5.6.34 (tar.bz2)\",\"sha256\":\"e19f499d8cee4b0b0780361ecb6a00c41654772a754803ab9ea866b8d47cf2cd\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.gz\",\"name\":\"PHP 5.6.34 (tar.gz)\",\"sha256\":\"de28251ef6d7eb945eb7b770ff668b9f978d9adad52a8c763f6ee409a96732ea\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.xz\",\"name\":\"PHP 5.6.34 (tar.xz)\",\"sha256\":\"21453be3a045204cd2717543ef42771324f411f40962ecda4fe841930a933128\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false},\"5.6.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_33.php\"},\"source\":[{\"filename\":\"php-5.6.33.tar.bz2\",\"name\":\"PHP 5.6.33 (tar.bz2)\",\"sha256\":\"07f696a9761dcd839e2045c95c3a4d2ffb52c54417477cca9d30a14975b831cc\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.gz\",\"name\":\"PHP 5.6.33 (tar.gz)\",\"sha256\":\"bedfac81cfaa25961812a1aec458c4109411a14991b43a416343ffb830b8da6a\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.xz\",\"name\":\"PHP 5.6.33 (tar.xz)\",\"sha256\":\"9004995fdf55f111cd9020e8b8aff975df3d8d4191776c601a46988c375f3553\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false},\"5.6.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_32.php\"},\"source\":[{\"filename\":\"php-5.6.32.tar.bz2\",\"name\":\"PHP 5.6.32 (tar.bz2)\",\"sha256\":\"3ee44e7a5fa42b563652b3ea0d3487bc236fcc9e5ea74b583775cab867abcb51\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.gz\",\"name\":\"PHP 5.6.32 (tar.gz)\",\"sha256\":\"7bef1ae8cd633df5b9c5964262d276d2dc21acbfcd94022d1e2084d199315df4\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.xz\",\"name\":\"PHP 5.6.32 (tar.xz)\",\"sha256\":\"8c2b4f721c7475fb9eabda2495209e91ea933082e6f34299d11cba88cd76e64b\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"5.6.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_31.php\"},\"source\":[{\"filename\":\"php-5.6.31.tar.bz2\",\"name\":\"PHP 5.6.31 (tar.bz2)\",\"sha256\":\"8f397169cb65f0539f3bcb04060f97770d73e19074a37bd2c58b98ebf6ecb10f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.gz\",\"name\":\"PHP 5.6.31 (tar.gz)\",\"sha256\":\"6687ed2f09150b2ad6b3780ff89715891f83a9c331e69c90241ef699dec4c43f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.xz\",\"name\":\"PHP 5.6.31 (tar.xz)\",\"sha256\":\"c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false},\"5.6.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_30.php\"},\"source\":[{\"filename\":\"php-5.6.30.tar.bz2\",\"name\":\"PHP 5.6.30 (tar.bz2)\",\"sha256\":\"a105c293fa1dbff118b5b0ca74029e6c461f8c78f49b337a2a98be9e32c27906\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.gz\",\"name\":\"PHP 5.6.30 (tar.gz)\",\"sha256\":\"8bc7d93e4c840df11e3d9855dcad15c1b7134e8acf0cf3b90b932baea2d0bde2\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.xz\",\"name\":\"PHP 5.6.30 (tar.xz)\",\"sha256\":\"a363185c786432f75e3c7ff956b49c3369c3f6906a6b10459f8d1ddc22f70805\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"5.6.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_29.php\"},\"source\":[{\"filename\":\"php-5.6.29.tar.bz2\",\"name\":\"PHP 5.6.29 (tar.bz2)\",\"sha256\":\"499b844c8aa7be064c111692e51a093ba94e54d2d9abb01e70ea76183a1825bb\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.gz\",\"name\":\"PHP 5.6.29 (tar.gz)\",\"sha256\":\"0b1b939129a7286c5a474ac2cf845b979477f26dff36639e04022def9e252574\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.xz\",\"name\":\"PHP 5.6.29 (tar.xz)\",\"sha256\":\"0ff352a433f73e2c82b0d5b283b600402518569bf72a74e247f356dacbf322a7\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false},\"5.6.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_28.php\"},\"source\":[{\"filename\":\"php-5.6.28.tar.bz2\",\"name\":\"PHP 5.6.28 (tar.bz2)\",\"sha256\":\"c55ea3f4aad5a0b65631d01c4468930fd981ad208ffcd242acdf731bcb47548f\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.gz\",\"name\":\"PHP 5.6.28 (tar.gz)\",\"sha256\":\"27a47ac15e0868d51181d3909cfe3c63ae9b643a3ab40dc30a75b5b500bce500\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.xz\",\"name\":\"PHP 5.6.28 (tar.xz)\",\"sha256\":\"07187ba2870f89cef334cd2ad6cb801aeec5eaf283da0293a9a6be75d6786d11\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false},\"5.6.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_27.php\"},\"source\":[{\"filename\":\"php-5.6.27.tar.bz2\",\"name\":\"PHP 5.6.27 (tar.bz2)\",\"sha256\":\"3b77d3a067b6e9cc7bb282d4d5b0e6eeb0623a828bb0479241e3b030446f2a3c\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.gz\",\"name\":\"PHP 5.6.27 (tar.gz)\",\"sha256\":\"3e6cecec615907587a2b35fa8e7f915f038034dc57530734c2b94d381e664a1a\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.xz\",\"name\":\"PHP 5.6.27 (tar.xz)\",\"sha256\":\"16eb544498339d1d855292826e2e547ab01a31600141094959073e5e10e93ab5\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false},\"5.6.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_26.php\"},\"source\":[{\"filename\":\"php-5.6.26.tar.bz2\",\"name\":\"PHP 5.6.26 (tar.bz2)\",\"sha256\":\"d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.gz\",\"name\":\"PHP 5.6.26 (tar.gz)\",\"sha256\":\"f76b6cc23739d9dabf875aee57d91ae73f15e88ddf78803369b8b4728b19b924\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.xz\",\"name\":\"PHP 5.6.26 (tar.xz)\",\"sha256\":\"203a854f0f243cb2810d1c832bc871ff133eccdf1ff69d32846f93bc1bef58a8\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false},\"5.6.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_25.php\"},\"source\":[{\"filename\":\"php-5.6.25.tar.bz2\",\"name\":\"PHP 5.6.25 (tar.bz2)\",\"sha256\":\"58ce6032aced7f3e42ced492bd9820e5b3f2a3cd3ef71429aa92fd7b3eb18dde\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.gz\",\"name\":\"PHP 5.6.25 (tar.gz)\",\"sha256\":\"733f1c811d51c2d4031a0c058dc94d09d03858d781ca2eb2cce78853bc76db58\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.xz\",\"name\":\"PHP 5.6.25 (tar.xz)\",\"sha256\":\"7535cd6e20040ccec4594cc386c6f15c3f2c88f24163294a31068cf7dfe7f644\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false},\"5.6.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_24.php\"},\"source\":[{\"filename\":\"php-5.6.24.tar.bz2\",\"name\":\"PHP 5.6.24 (tar.bz2)\",\"sha256\":\"bf23617ec3ed0a125ec8bde2b7bca9d3804b2ff4df8de192890c84dc9fac38c6\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.gz\",\"name\":\"PHP 5.6.24 (tar.gz)\",\"sha256\":\"5f8b2e4e00360fee6eb1b89447266ae45993265955bd1ea9866270d75cdb6ec1\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.xz\",\"name\":\"PHP 5.6.24 (tar.xz)\",\"sha256\":\"ed7c38c6dac539ade62e08118258f4dac0c49beca04d8603bee4e0ea6ca8250b\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.5.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_38.php\"},\"source\":[{\"filename\":\"php-5.5.38.tar.bz2\",\"name\":\"PHP 5.5.38 (tar.bz2)\",\"sha256\":\"473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.gz\",\"name\":\"PHP 5.5.38 (tar.gz)\",\"sha256\":\"4f458c9b504269615715a62f182b7c2f89bb8284f484befc221b56a1571b506e\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.xz\",\"name\":\"PHP 5.5.38 (tar.xz)\",\"sha256\":\"cb527c44b48343c8557fe2446464ff1d4695155a95601083e5d1f175df95580f\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.6.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_23.php\"},\"source\":[{\"filename\":\"php-5.6.23.tar.bz2\",\"name\":\"PHP 5.6.23 (tar.bz2)\",\"sha256\":\"facd280896d277e6f7084b60839e693d4db68318bfc92085d3dc0251fd3558c7\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.gz\",\"name\":\"PHP 5.6.23 (tar.gz)\",\"sha256\":\"5f2274a13970887e8c81500c2afe292d51c3524d1a06554b0a87c74ce0a24ffe\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.xz\",\"name\":\"PHP 5.6.23 (tar.xz)\",\"sha256\":\"39141e9a617af172aedbbacee7a63eb15502850f7cea20d759a9cffa7cfb0a1a\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_37.php\"},\"source\":[{\"filename\":\"php-5.5.37.tar.bz2\",\"name\":\"PHP 5.5.37 (tar.bz2)\",\"sha256\":\"d2380ebe46caf17f2c4cd055867d00a82e6702dc5f62dc29ce864a5742905d88\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.gz\",\"name\":\"PHP 5.5.37 (tar.gz)\",\"sha256\":\"7cef04b549fdbe00c26dc785b6ba10439672a1596db518fc46632ecba45f44b9\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.xz\",\"name\":\"PHP 5.5.37 (tar.xz)\",\"sha256\":\"c322444fdf6d3ba26aa67d67ee32d1e815a877f35831351c83763431a80e3612\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_36.php\"},\"source\":[{\"filename\":\"php-5.5.36.tar.bz2\",\"name\":\"PHP 5.5.36 (tar.bz2)\",\"sha256\":\"2484edfaa3de606d74f927b55c5206f51b1ae24ea8e428aa9fc15474c7bb71bb\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.gz\",\"name\":\"PHP 5.5.36 (tar.gz)\",\"sha256\":\"ef829f9a9600a858e2363533b80c4e4773505bdc8ea3692d703fc893f267728a\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.xz\",\"name\":\"PHP 5.5.36 (tar.xz)\",\"sha256\":\"e1bbe33d6b4da66b15c483131520a9fc505eeb6629fa70c5cfba79590a1d0801\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_22.php\"},\"source\":[{\"filename\":\"php-5.6.22.tar.bz2\",\"name\":\"PHP 5.6.22 (tar.bz2)\",\"sha256\":\"90da8a80cc52fa699cf2bfa4c6fa737c772df7c92b81ef483460aa3b1e9f88c6\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.gz\",\"name\":\"PHP 5.6.22 (tar.gz)\",\"sha256\":\"4ce0f58c3842332c4e3bb2ec1c936c6817294273abaa37ea0ef7ca2a68cf9b21\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.xz\",\"name\":\"PHP 5.6.22 (tar.xz)\",\"sha256\":\"c96980d7de1d66c821a4ee5809df0076f925b2fe0b8c362d234d92f2f0a178e2\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_21.php\"},\"source\":[{\"filename\":\"php-5.6.21.tar.bz2\",\"name\":\"PHP 5.6.21 (tar.bz2)\",\"sha256\":\"b4ed7ab574b689fd6d6494fde954826c06efc85c505e017b8d776c7c7f479590\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.gz\",\"name\":\"PHP 5.6.21 (tar.gz)\",\"sha256\":\"5997668c1f6f2d86a59cf75cc86b4a94687884614dec481fad7e13a76b70fcd5\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.xz\",\"name\":\"PHP 5.6.21 (tar.xz)\",\"sha256\":\"566ff1a486cb0485ed477a91ea292423f77a58671270ff73b74e67e3ce7084f9\",\"date\":\"28 Apr 2016\"}],\"date\":\"28 Apr 2016\",\"museum\":false},\"5.5.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_35.php\"},\"source\":[{\"filename\":\"php-5.5.35.tar.bz2\",\"name\":\"PHP 5.5.35 (tar.bz2)\",\"sha256\":\"2d648dd648e820fd64693ce72f9bf07064d147220e594e39fb9f6310238258d7\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.gz\",\"name\":\"PHP 5.5.35 (tar.gz)\",\"sha256\":\"21e10a49c62ab34a7edc976af686a952e70142f19135ca8da67758e1c8c3df30\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.xz\",\"name\":\"PHP 5.5.35 (tar.xz)\",\"sha256\":\"9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873\",\"date\":\"28 Apr 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_20.php\"},\"source\":[{\"filename\":\"php-5.6.20.tar.bz2\",\"name\":\"PHP 5.6.20 (tar.bz2)\",\"sha256\":\"5ac7bf7caec7a79b18cf458e786fd1609ad2da771224b80bc15cc6f01b22bf1f\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.gz\",\"name\":\"PHP 5.6.20 (tar.gz)\",\"sha256\":\"9a7ec6e1080ee93dcbe7df3e49ea1c3c3da5fc2258aff763f39ab3786baf8d56\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.xz\",\"name\":\"PHP 5.6.20 (tar.xz)\",\"sha256\":\"2b87d40213361112af49157a435e0d4cdfd334c9b7c731c8b844932b1f444e7a\",\"date\":\"31 Marc 2016\"}],\"date\":\"31 Marc 2016\",\"museum\":false},\"5.5.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_34.php\"},\"source\":[{\"filename\":\"php-5.5.34.tar.bz2\",\"name\":\"PHP 5.5.34 (tar.bz2)\",\"sha256\":\"af88884416a92619de842ad0fd23f7f7e8140efb0b9194f98a38a78781e5851c\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.gz\",\"name\":\"PHP 5.5.34 (tar.gz)\",\"sha256\":\"0e573b406441294b233e35e1f2e12d7896d68457e3e10bf6e1f4825e75271cca\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.xz\",\"name\":\"PHP 5.5.34 (tar.xz)\",\"sha256\":\"6989a4f9900e6ddec7248790449bbb4aa55728730bff4973acb49d236c9e9e2a\",\"date\":\"31 Mar 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_19.php\"},\"source\":[{\"filename\":\"php-5.6.19.tar.bz2\",\"name\":\"PHP 5.6.19 (tar.bz2)\",\"sha256\":\"2a24a3f84971680ac0a4c71050067de4f76ee235aa4a041fae21bfa69975c168\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.gz\",\"name\":\"PHP 5.6.19 (tar.gz)\",\"sha256\":\"fce49cddac9337f0c83afbafac5acfb82ba9f876a5a880c88240feac8c9b7a22\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.xz\",\"name\":\"PHP 5.6.19 (tar.xz)\",\"sha256\":\"bb32337f93a00b71789f116bddafa8848139120e7fb6f4f98a84f52dbcb8329f\",\"date\":\"03 Marc 2016\"}],\"date\":\"03 Marc 2016\",\"museum\":false},\"5.5.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_33.php\"},\"source\":[{\"filename\":\"php-5.5.33.tar.bz2\",\"name\":\"PHP 5.5.33 (tar.bz2)\",\"sha256\":\"c490b1ed4df596b48eb68f630d89ca512945e2650840e7dace1119cc7e600aa9\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.gz\",\"name\":\"PHP 5.5.33 (tar.gz)\",\"sha256\":\"d2747bcf2cc94f652ac216f522904863a22042c66fabcf82ad7449d261d7a45b\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.xz\",\"name\":\"PHP 5.5.33 (tar.xz)\",\"sha256\":\"b91dbd3c53f9895e8f7b29e5fed25a64dd3a76b454f6ef7265e73c96b4303f30\",\"date\":\"03 Mar 2016\"}],\"date\":\"03 Mar 2016\",\"museum\":false},\"5.6.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_18.php\"},\"source\":[{\"filename\":\"php-5.6.18.tar.bz2\",\"name\":\"PHP 5.6.18 (tar.bz2)\",\"sha256\":\"c3cd4a29a9562309d36e2b128407d6eaa5c7dde590d2b1a464457383e517f4ed\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.gz\",\"name\":\"PHP 5.6.18 (tar.gz)\",\"sha256\":\"76da4150dc2da86b7b63b1aad3c20d1d11964796251ac0dd4d26d0a3f5045015\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.xz\",\"name\":\"PHP 5.6.18 (tar.xz)\",\"sha256\":\"54dd9106c3469bc7028644d72ac140af00655420bbaaf4a742a64e9ed02ec1b0\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.5.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_32.php\"},\"source\":[{\"filename\":\"php-5.5.32.tar.bz2\",\"name\":\"PHP 5.5.32 (tar.bz2)\",\"sha256\":\"b0f2c108db8e05db9f6366aaba9a754fd0ee31f3f86ee889561b608dfd6e92ee\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.gz\",\"name\":\"PHP 5.5.32 (tar.gz)\",\"sha256\":\"419aa62a68a640192799928a29e5cd4cd5b965458223bea2b3209a68c3e95989\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.xz\",\"name\":\"PHP 5.5.32 (tar.xz)\",\"sha256\":\"02f569dcf5bd57dd5e390ddcab8609e3957a698e2db0b793cf2c11a7e33743c9\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.6.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_17.php\"},\"source\":[{\"filename\":\"php-5.6.17.tar.bz2\",\"name\":\"PHP 5.6.17 (tar.bz2)\",\"sha256\":\"77b45f56a1e63e75bb22b42cfb8b438ec4083c59ce774b4d7c1685544b7add3b\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.gz\",\"name\":\"PHP 5.6.17 (tar.gz)\",\"sha256\":\"f5036535651e919415f4b6589391c95e4ff48f2d391818251c45da216791aac8\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.xz\",\"name\":\"PHP 5.6.17 (tar.xz)\",\"sha256\":\"ea9d5749380c7c7171e131616466deacd7cb124b5010eafc34e551b0a7b0fb2c\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.5.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_31.php\"},\"source\":[{\"filename\":\"php-5.5.31.tar.bz2\",\"name\":\"PHP 5.5.31 (tar.bz2)\",\"sha256\":\"fb4a382b9a9dceb749b7ef047d8251320bc8d371c843714e5b4f4b70d61ba277\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.gz\",\"name\":\"PHP 5.5.31 (tar.gz)\",\"sha256\":\"59a4417029ba5497d17ee02b65f419129ecf9ca8a1d864e0bccd5a3d4407a597\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.xz\",\"name\":\"PHP 5.5.31 (tar.xz)\",\"sha256\":\"a9ac5b94fcc3811b661a090dddd716f81e43947240b35e6a0123e609a135ac54\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.6.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_16.php\"},\"source\":[{\"filename\":\"php-5.6.16.tar.bz2\",\"name\":\"PHP 5.6.16 (tar.bz2)\",\"sha256\":\"4fe6f40964c1bfaba05fc144ba20a2cdad33e11685f4f101ea5a48b98bbcd2ae\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.gz\",\"name\":\"PHP 5.6.16 (tar.gz)\",\"sha256\":\"b6618df6b11a275fa28596f1775727679f8492e100f3bd488d8a8bfbfc19349f\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.xz\",\"name\":\"PHP 5.6.16 (tar.xz)\",\"sha256\":\"8ef43271d9bd8cc8f8d407d3ba569de9fa14a28985ae97c76085bb50d597de98\",\"date\":\"26 Nov 2015\"}],\"date\":\"26 Nov 2015\",\"museum\":false},\"5.5.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_30.php\"},\"source\":[{\"filename\":\"php-5.5.30.tar.bz2\",\"name\":\"PHP 5.5.30 (tar.bz2)\",\"sha256\":\"e7332a713cecdd1cb44a1b1336739885c9789f633f0f51236b25e48ab03c3b29\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.gz\",\"name\":\"PHP 5.5.30 (tar.gz)\",\"sha256\":\"8ad57f4317391354e66c83d26752f67515b2e923277eb97b2b420dfeff3c1007\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.xz\",\"name\":\"PHP 5.5.30 (tar.xz)\",\"sha256\":\"d00dc06fa5e0f3de048fb0cf940b3cc59b43b3f8cad825d4fffb35503cf2e8f2\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_15.php\"},\"source\":[{\"filename\":\"php-5.6.15.tar.bz2\",\"name\":\"PHP 5.6.15 (tar.bz2)\",\"sha256\":\"11a0645c4d4b749e256da1e0d6df89dd886b5b06b83c914d942653661dbd1c38\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.gz\",\"name\":\"PHP 5.6.15 (tar.gz)\",\"sha256\":\"bb2d4c226a4897b7c3659c2538a87aef7ec104f58f5ae930a263dd77fb8ebc40\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.xz\",\"name\":\"PHP 5.6.15 (tar.xz)\",\"sha256\":\"cf52e2e621e60997269663fa4bc06253191fa2a41dc9b08c8c911435b3ebcca9\",\"date\":\"29 Oct 2015\"}],\"date\":\"29 Oct 2015\",\"museum\":false},\"5.6.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_14.php\"},\"source\":[{\"filename\":\"php-5.6.14.tar.bz2\",\"name\":\"PHP 5.6.14 (tar.bz2)\",\"sha256\":\"36f295f11641c1839a5df00e693f685fd134c65e8a1d46e8ee0abae8662b2eb0\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.gz\",\"name\":\"PHP 5.6.14 (tar.gz)\",\"sha256\":\"29baf7ffca644f7f8e86028c40275b9e460342bdf9562d45f8f0498899cb738d\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.xz\",\"name\":\"PHP 5.6.14 (tar.xz)\",\"sha256\":\"c8edf6b05fd8a69ebd88d90c5c0975ee168502204622ad5cfcd550bc222632d9\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_13.php\"},\"source\":[{\"filename\":\"php-5.6.13.tar.bz2\",\"name\":\"PHP 5.6.13 (tar.bz2)\",\"sha256\":\"6358837c9cbab41b91ede59dbf0670ae0fb925a1369ecbc1a44a27212420f893\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.gz\",\"name\":\"PHP 5.6.13 (tar.gz)\",\"sha256\":\"92acc6c067f5e015a6881b4119eafec10eca11722e810f2c2083f72e17119bcf\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.xz\",\"name\":\"PHP 5.6.13 (tar.xz)\",\"sha256\":\"c1f0837df20cd3bed149033924770deca3e7e2d18e2e7e81395096576f153fdc\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_29.php\"},\"source\":[{\"filename\":\"php-5.5.29.tar.bz2\",\"name\":\"PHP 5.5.29 (tar.bz2)\",\"sha256\":\"fbcee579ecc77cad6960a541116aee669cf145c2cd9a54bf60503a870843b946\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.gz\",\"name\":\"PHP 5.5.29 (tar.gz)\",\"sha256\":\"c25a4c4eae558cc9899d2994813dd272eafff9466926f30821a83edaafe620a9\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.xz\",\"name\":\"PHP 5.5.29 (tar.xz)\",\"sha256\":\"22c72d1b88c8d9a8ab9ca565e9ca5844287c006134098805d9a373a862bbbcad\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_28.php\"},\"source\":[{\"filename\":\"php-5.5.28.tar.bz2\",\"name\":\"PHP 5.5.28 (tar.bz2)\",\"sha256\":\"197d2c572e030c177e53d3763d59ac6d363d7c78dc22e6cc1e2ac65573d9c2f3\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.gz\",\"name\":\"PHP 5.5.28 (tar.gz)\",\"sha256\":\"6084f25a39ab2f79ade46bf0258a1cd6c9bbb09a106b40dd996dbdf8cd3b08f2\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.xz\",\"name\":\"PHP 5.5.28 (tar.xz)\",\"sha256\":\"d060455c804c622cda9f3f5f084b10c6ceba73ee76c1720897e17137a0f75ecd\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_12.php\"},\"source\":[{\"filename\":\"php-5.6.12.tar.bz2\",\"name\":\"PHP 5.6.12 (tar.bz2)\",\"sha256\":\"6f27104272af7b2a996f85e4100fac627630fbdaf39d7bd263f16cf529c8853a\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.gz\",\"name\":\"PHP 5.6.12 (tar.gz)\",\"sha256\":\"7799b42606c1770d1ad90bfc7521d2b6c294c4c27dcf1a206dee562533b4f984\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.xz\",\"name\":\"PHP 5.6.12 (tar.xz)\",\"sha256\":\"f8a8446866c0dc3f33319aa196ce87b64d71cab3dd96e39c8816adccc7e8ef33\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_11.php\"},\"source\":[{\"filename\":\"php-5.6.11.tar.bz2\",\"name\":\"PHP 5.6.11 (tar.bz2)\",\"sha256\":\"bd6b260816764c267244749ead07482120dbf8d1920ebbbb0dcb2aa411033866\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.gz\",\"name\":\"PHP 5.6.11 (tar.gz)\",\"sha256\":\"85916b46c0d1f2a5315c84fb2773293f4084c3676ba4ed420d0432cbb60ff9d8\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.xz\",\"name\":\"PHP 5.6.11 (tar.xz)\",\"sha256\":\"3f97dbb1c646b90e1ef638defabe429ef036f903b5baa1c34769d3de4fe62bd4\",\"date\":\"10 Jul 2015\"}],\"date\":\"10 Jul 2015\",\"museum\":false},\"5.5.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_27.php\"},\"source\":[{\"filename\":\"php-5.5.27.tar.bz2\",\"name\":\"PHP 5.5.27 (tar.bz2)\",\"sha256\":\"c4b4c6a534c0ca67a9ae39bec4f51e52d13e820135dd016eae230e15337e1f70\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.gz\",\"name\":\"PHP 5.5.27 (tar.gz)\",\"sha256\":\"57cc716ebb37a62654c154582e48a282055b08ce91995c79b0be41b9940237f0\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.xz\",\"name\":\"PHP 5.5.27 (tar.xz)\",\"sha256\":\"7ee398058067a7d8184e402fcdccb25003852cb8dc94eefa3cda051a3e47fdd8\",\"date\":\"09 Jul 2015\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.6.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_10.php\"},\"source\":[{\"filename\":\"php-5.6.10.tar.bz2\",\"name\":\"PHP 5.6.10 (tar.bz2)\",\"sha256\":\"0a579c81c724ea41815eee0caa8ea7d8eeb302458519d8cc4fc5b055577c8c45\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.gz\",\"name\":\"PHP 5.6.10 (tar.gz)\",\"sha256\":\"7759d6e178be524085e1482921748c14d11cbd0a133ba8aabb96c391ce7ed3fc\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.xz\",\"name\":\"PHP 5.6.10 (tar.xz)\",\"sha256\":\"1af720c955b0a57aa47606e928616e84c78868aff2a5f269c70601a77d6da8c1\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.5.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_26.php\"},\"source\":[{\"filename\":\"php-5.5.26.tar.bz2\",\"name\":\"PHP 5.5.26 (tar.bz2)\",\"sha256\":\"816afffdb03ff4c542bc172a2f77f9c69b817df82d60cce05c1b4f578c2c926e\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.gz\",\"name\":\"PHP 5.5.26 (tar.gz)\",\"sha256\":\"bee980d433bab99d07ee2bf6f2dcb87d746e49d57adec7d0ce7edb39306695ec\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.xz\",\"name\":\"PHP 5.5.26 (tar.xz)\",\"sha256\":\"97672c41cf2f95628dbffb63648147b43b23ea41b99ad22ccf5f4fe9b6e91b51\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.6.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_9.php\"},\"source\":[{\"filename\":\"php-5.6.9.tar.bz2\",\"name\":\"PHP 5.6.9 (tar.bz2)\",\"sha256\":\"19d3b87b7b8bba3be24cf6d757d16b723a98881c3af8d15469fd25501e9abcb9\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.gz\",\"name\":\"PHP 5.6.9 (tar.gz)\",\"sha256\":\"49527ba66357fe65bcd463dfb8dcff1b8879419f88b3c334f50696a2aceacb87\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.xz\",\"name\":\"PHP 5.6.9 (tar.xz)\",\"sha256\":\"1fac497b596f5e4e87d87a7ca90f8725e39a8ca3f9d7adb500fa83c4bb70a73f\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.5.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_25.php\"},\"source\":[{\"filename\":\"php-5.5.25.tar.bz2\",\"name\":\"PHP 5.5.25 (tar.bz2)\",\"sha256\":\"68df37e725ddd05675c0df906041038127938ecc52113a54d10e1e4029262c63\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.gz\",\"name\":\"PHP 5.5.25 (tar.gz)\",\"sha256\":\"c9397f60bff139e0df441c5e2766108c5bc7ad690de136eb9f5b2f9bbf771240\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.xz\",\"name\":\"PHP 5.5.25 (tar.xz)\",\"sha256\":\"ac10015dddfc103b58ccc949504bd50f0d79d0abe74a0cc7842251af06ce8b07\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.6.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_8.php\"},\"source\":[{\"filename\":\"php-5.6.8.tar.bz2\",\"name\":\"PHP 5.6.8 (tar.bz2)\",\"sha256\":\"0af0045745d61eeb74a3ea744529a2481b27cb689da720e6c0250675043724e4\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.gz\",\"name\":\"PHP 5.6.8 (tar.gz)\",\"sha256\":\"c5b1c75c5671c239473eb611129f33ac432a55a1c341990b70009a2aa3b8dbc3\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.xz\",\"name\":\"PHP 5.6.8 (tar.xz)\",\"sha256\":\"4c417387b88e100ca306adeda8051eb9fad93dae8da983f962dabf91a14b2b7b\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.5.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_24.php\"},\"source\":[{\"filename\":\"php-5.5.24.tar.bz2\",\"name\":\"PHP 5.5.24 (tar.bz2)\",\"sha256\":\"801b5cf2e0c01b07314d4ac3c8a7c28d524bdd8263ebdd0e33a99008251316a2\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.gz\",\"name\":\"PHP 5.5.24 (tar.gz)\",\"sha256\":\"43e6b83fe8151f8d2062ca4da915312fc92e47789801049231c705a8b29b05bc\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.xz\",\"name\":\"PHP 5.5.24 (tar.xz)\",\"sha256\":\"ffb6235a25043cab71e6445cfc9e8bf16ae80a2835f0373cdd948fcc31eafe57\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.6.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_7.php\"},\"source\":[{\"filename\":\"php-5.6.7.tar.bz2\",\"name\":\"PHP 5.6.7 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"02954fb74c61a7879d48ebdcd4ecb78aa0056f4215ca9b096232de28eb8f17bc\"},{\"filename\":\"php-5.6.7.tar.gz\",\"name\":\"PHP 5.6.7 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"11398540a582c876f5e070207231afde975eb49bb2eeae20b052e8ca325c0f47\"},{\"filename\":\"php-5.6.7.tar.xz\",\"name\":\"PHP 5.6.7 (tar.xz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"a85522dd2e6f80ee5637e537447ee54896c77a8fabe49d2310830d0e20952787\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.5.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_23.php\"},\"source\":[{\"filename\":\"php-5.5.23.tar.bz2\",\"name\":\"PHP 5.5.23 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"a99ab264dcd40181baa9defeaa4b21eb2c20d4e9316b904cc05f628762e6ada7\"},{\"filename\":\"php-5.5.23.tar.gz\",\"name\":\"PHP 5.5.23 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"bf1246d4aca5b1a4e26f5cea273565ad3ee4607f20b7f28a508e3cab1a4d0c82\"},{\"filename\":\"php-5.5.23.tar.xz\",\"name\":\"PHP 5.5.23 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"2fc8315606cd6a51dae2e1fe9ac7a9bead76dace3eaf888ba372506695403af4\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_6.php\"},\"source\":[{\"filename\":\"php-5.6.6.tar.bz2\",\"name\":\"PHP 5.6.6 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"09625c9b65e0c8198dc76995a35f0feec0e13ea4489526e64a00954b12adbb4c\"},{\"filename\":\"php-5.6.6.tar.gz\",\"name\":\"PHP 5.6.6 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"164fb27bab0a0ca4902bc67d5f5638e43466c88153aee3b54546d8ec682ec03b\"},{\"filename\":\"php-5.6.6.tar.xz\",\"name\":\"PHP 5.6.6 (tar.xz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"b963b2d45baeebeeb421c05ee60889e87971e3e27a4be873d265fee3250fde20\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.5.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_22.php\"},\"source\":[{\"filename\":\"php-5.5.22.tar.bz2\",\"name\":\"PHP 5.5.22 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"c218c184bef2905bc79fcdda6040f3d1738261395fb706396935d1c6f6e162bb\"},{\"filename\":\"php-5.5.22.tar.gz\",\"name\":\"PHP 5.5.22 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"cb6174e1e74de233ec7b461302f823a7eacf7bcc946d347486c930e53f2b7db7\"},{\"filename\":\"php-5.5.22.tar.xz\",\"name\":\"PHP 5.5.22 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"5256a7e3999eb11f8b4b407408ea4780f60aa959e0c48cfcf376091e721df223\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_5.php\"},\"source\":[{\"filename\":\"php-5.6.5.tar.bz2\",\"name\":\"PHP 5.6.5 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"adab4c0775512a5ca0ae74e08efdc941d92529b75283e0f44d3f53822cdfd06d\"},{\"filename\":\"php-5.6.5.tar.gz\",\"name\":\"PHP 5.6.5 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f67c480bcf2f6f703ec8d8a772540f4a518f766b08d634d7a919402c13a636cf\"},{\"filename\":\"php-5.6.5.tar.xz\",\"name\":\"PHP 5.6.5 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"c5ef4abaef8c1ea66dcfd5a075a2f357b666aff5c5b686fca7c78c1cfd64e996\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.5.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_21.php\"},\"source\":[{\"filename\":\"php-5.5.21.tar.bz2\",\"name\":\"PHP 5.5.21 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"62e9429975c4ca5d7067a5052d5388fbf2ac8c51eeee581d59b04cc5a8da83fe\"},{\"filename\":\"php-5.5.21.tar.gz\",\"name\":\"PHP 5.5.21 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"45adba5b4d2519f6174b85fd5b07a77389f397603d84084bdd26c44b3d7dc8af\"},{\"filename\":\"php-5.5.21.tar.xz\",\"name\":\"PHP 5.5.21 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f2583540b2698d7d0ee9cfc071c2b56ccc64a52a2b53101511ba8df5b126d6d2\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.6.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_4.php\"},\"source\":[{\"filename\":\"php-5.6.4.tar.bz2\",\"name\":\"PHP 5.6.4 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1\"},{\"filename\":\"php-5.6.4.tar.gz\",\"name\":\"PHP 5.6.4 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"9c318f10af598e3d0b306a00860cfeb13c34024a9032a59ff53e3cd3c7791e97\"},{\"filename\":\"php-5.6.4.tar.xz\",\"name\":\"PHP 5.6.4 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"8cf44c59f467cdc2dd76c1167d1f368575ccff9b12941e199a362eb44a79acea\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.5.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_20.php\"},\"source\":[{\"filename\":\"php-5.5.20.tar.bz2\",\"name\":\"PHP 5.5.20 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"f28a150d1cd8991bd1a41dce4fdff4e343d1dbe01a48b9b44bea74532ce0391a\"},{\"filename\":\"php-5.5.20.tar.gz\",\"name\":\"PHP 5.5.20 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"7454e4f2dba3b08b2c88bb178e7bf704ed100f3d7ab6b83ea5046a6e4acb7295\"},{\"filename\":\"php-5.5.20.tar.xz\",\"name\":\"PHP 5.5.20 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"a0649450f8b0a23cd4c9ad15d0aa271d956f9516fc37b9e9dc492459b57721c8\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.6.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_3.php\"},\"source\":[{\"filename\":\"php-5.6.3.tar.bz2\",\"name\":\"PHP 5.6.3 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8986b20124d14430d795165e47801ef065a38d5855bea39d0d47b13ab9ad4009\"},{\"filename\":\"php-5.6.3.tar.gz\",\"name\":\"PHP 5.6.3 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ac79fe7ef50c2d5893375f5d8854909337adf1632e42bb08b36b66a0d8016a7\"},{\"filename\":\"php-5.6.3.tar.xz\",\"name\":\"PHP 5.6.3 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"fad244506cc7f10fe56aba8129b3c39a4f9316d9544a4fba932c3f81fc2244b5\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.5.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_19.php\"},\"source\":[{\"filename\":\"php-5.5.19.tar.bz2\",\"name\":\"PHP 5.5.19 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"4366dbb904cba8c8dd32224ac9408495d20aecaed86a871d78df420f5a23bbff\"},{\"filename\":\"php-5.5.19.tar.gz\",\"name\":\"PHP 5.5.19 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8d39f224424f37644da913353f1e773c20b7fc55bb3cc81526c18f91d1d6394e\"},{\"filename\":\"php-5.5.19.tar.xz\",\"name\":\"PHP 5.5.19 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"ccff8dfcd342e48a5b1e8b85c1c8c95d2e2eefab869757dcaa5224f11bb30e21\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.6.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_2.php\"},\"source\":[{\"filename\":\"php-5.6.2.tar.bz2\",\"name\":\"PHP 5.6.2 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"671dcf1f636410c63bb9eb015c4c180d904f5436f81217be0adbf52da9becdb5\"},{\"filename\":\"php-5.6.2.tar.gz\",\"name\":\"PHP 5.6.2 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"4bb316831979317caf738bb9e2c590bf3b7951ce60c69b9ca33f26069d9a2f39\"},{\"filename\":\"php-5.6.2.tar.xz\",\"name\":\"PHP 5.6.2 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"9be1322d33520fb2164282fb0fcdc212f66ffedcd912bff60955d5696454fe39\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.5.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_18.php\"},\"source\":[{\"filename\":\"php-5.5.18.tar.bz2\",\"name\":\"PHP 5.5.18 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"f974279927b72b672dda4ef4b4362b4847fd3d19ce1d4f2e982230a4e93bb842\"},{\"filename\":\"php-5.5.18.tar.gz\",\"name\":\"PHP 5.5.18 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"71f6445cc21c944a3b98592193c62e29a58af3fe26d097312502b4fd400286e4\"},{\"filename\":\"php-5.5.18.tar.xz\",\"name\":\"PHP 5.5.18 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"ccfbf6af18d1e56145867454dcbc75d90512f40ee9d3e57fdc6cb5fe3fc9726e\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.6.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_1.php\"},\"source\":[{\"filename\":\"php-5.6.1.tar.bz2\",\"name\":\"PHP 5.6.1 (tar.bz2)\",\"date\":\"02 Oct 2014\",\"sha256\":\"82c1ccd17830d697d7a4d75bb60ea12be58fa80b4dba101e97db1a6372ca45f0\"},{\"filename\":\"php-5.6.1.tar.gz\",\"name\":\"PHP 5.6.1 (tar.gz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"e34f0ab6b1f431f3115f60094f6d7ded12a90db2361194b8ef9e6eff812db21c\"},{\"filename\":\"php-5.6.1.tar.xz\",\"name\":\"PHP 5.6.1 (tar.xz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"57640a700364949292da06e55423f162428a864451d05751a8829ae04d65745e\"}],\"date\":\"02 Oct 2014\",\"museum\":false},\"5.5.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_17.php\"},\"source\":[{\"filename\":\"php-5.5.17.tar.bz2\",\"name\":\"PHP 5.5.17 (tar.bz2)\",\"date\":\"18 Sep 2014\",\"sha256\":\"5d81db0c8b2a68da05715c363d037922b82a45c966785d64a77482e5c01e4e1b\"},{\"filename\":\"php-5.5.17.tar.gz\",\"name\":\"PHP 5.5.17 (tar.gz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"657169be88ae70625d97bb94dd29140c2b602f1ba8d5e42ca14a400b63cf4720\"},{\"filename\":\"php-5.5.17.tar.xz\",\"name\":\"PHP 5.5.17 (tar.xz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"382b2a1cfbf67ca9e30171c9c49bfe260d5e458e07850d4b036e8430e1829093\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.6.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_0.php\"},\"source\":[{\"filename\":\"php-5.6.0.tar.bz2\",\"name\":\"PHP 5.6.0 (tar.bz2)\",\"date\":\"28 Aug 2014\",\"sha256\":\"097af1be34fc73965e6f8401fd10e73eb56e1969ed4ffd691fb7e91606d0fc09\"},{\"filename\":\"php-5.6.0.tar.gz\",\"name\":\"PHP 5.6.0 (tar.gz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"284b85376c630a6a7163e5278d64b8526fa1324fe5fd5d21174b54e2c056533f\"},{\"filename\":\"php-5.6.0.tar.xz\",\"name\":\"PHP 5.6.0 (tar.xz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"8fc5411cd05cc6cc663247e588931fe67b1dc0e42550fa28ab2c943ad84eda02\"}],\"date\":\"28 Aug 2014\",\"museum\":false},\"5.5.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_16.php\"},\"source\":[{\"filename\":\"php-5.5.16.tar.bz2\",\"name\":\"PHP 5.5.16 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"a1d7c4556a80bed744a348211b33bc35303edd56dd0a34e0a75a948c879cc5f6\"},{\"filename\":\"php-5.5.16.tar.gz\",\"name\":\"PHP 5.5.16 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"cdea80ab1b0466f4656b46155e341b700799e78569a5cc582eeaededb448086c\"},{\"filename\":\"php-5.5.16.tar.xz\",\"name\":\"PHP 5.5.16 (tar.xz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"8276e8de4928e8e7011d1ac6c841c5adfc4561c7329ef2f5e055e7f4e1af0e48\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.5.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_15.php\"},\"source\":[{\"filename\":\"php-5.5.15.tar.bz2\",\"name\":\"PHP 5.5.15 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"00f24226b12fee27e332383b6304f1b9ed3f4d9173dd728a68c5c3f5a59b8ba7\"},{\"filename\":\"php-5.5.15.tar.gz\",\"name\":\"PHP 5.5.15 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"578febd686018401c4857699b29502b1aecaf82bf43525d810867f583961ac6e\"},{\"filename\":\"php-5.5.15.tar.xz\",\"name\":\"PHP 5.5.15 (tar.xz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"c20e360cf06bd4279ab423a7785d36aba0e2a9fdcd0b817883ab01cf0d914dd6\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.5.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_14.php\"},\"source\":[{\"filename\":\"php-5.5.14.tar.bz2\",\"name\":\"PHP 5.5.14 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"df5a057877f827549e0a60b43fb01e4bd440814bcf04fbd70bacbddf74482610\"},{\"filename\":\"php-5.5.14.tar.gz\",\"name\":\"PHP 5.5.14 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"ef7e4f4942c5767e01b96650a5bd4178c663738436f99b5695c3144732ff7166\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.5.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_13.php\"},\"source\":[{\"filename\":\"php-5.5.13.tar.bz2\",\"name\":\"PHP 5.5.13 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"e58a4a754eb18d2d8b1a120cad5cce4ed24a7db5d49eca5830a40e4c8ca78b9c\"},{\"filename\":\"php-5.5.13.tar.gz\",\"name\":\"PHP 5.5.13 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"15e34eb7c45e66963cbece29fb41e53cc6c6e3ec4a54c291a53cf6a1527771b6\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.5.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_12.php\"},\"source\":[{\"filename\":\"php-5.5.12.tar.bz2\",\"name\":\"PHP 5.5.12 (tar.bz2)\",\"date\":\"30 Apr 2014\",\"sha256\":\"519ee29e28532782676f3d8e31a808ffbfee383e0279ccc8cbd2b12ed53c2335\"},{\"filename\":\"php-5.5.12.tar.gz\",\"name\":\"PHP 5.5.12 (tar.gz)\",\"date\":\"30 Apr 2014\",\"sha256\":\"a10c6e6ce1145762d6c15ca7ce1aeaab69662c197d24e1294c2519aa85c97bd6\"}],\"date\":\"30 Apr 2014\",\"museum\":false},\"5.5.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_11.php\"},\"source\":[{\"filename\":\"php-5.5.11.tar.bz2\",\"name\":\"PHP 5.5.11 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96\"},{\"filename\":\"php-5.5.11.tar.gz\",\"name\":\"PHP 5.5.11 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a8b7bb1049732bf806e94090661f39f8359e0bf36d59ce6b98a53ea80411b450\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.5.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_10.php\"},\"source\":[{\"filename\":\"php-5.5.10.tar.bz2\",\"name\":\"PHP 5.5.10 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"bb34e61f8e6f56c612867bfe85d144d5045cd5e44497539bc126a4e8c6795419\"},{\"filename\":\"php-5.5.10.tar.gz\",\"name\":\"PHP 5.5.10 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"abf751810593844e0897007797210828b193a213d9b204f203e0331019cadb90\"}],\"date\":\"6 Mar 2014\",\"museum\":false},\"5.5.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_9.php\"},\"source\":[{\"filename\":\"php-5.5.9.tar.bz2\",\"name\":\"PHP 5.5.9 (tar.bz2)\",\"date\":\"6 Feb 2014\",\"sha256\":\"9d1dea5195e2bcd928416130a6e19173d02bd36fb76c382522bf145c458fbed3\"},{\"filename\":\"php-5.5.9.tar.gz\",\"name\":\"PHP 5.5.9 (tar.gz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"ec1bf0cb3be80240049dbd92c272d4bf242a614fa5f9dcc42a15adb5fd01ccde\"},{\"filename\":\"php-5.5.9.tar.xz\",\"name\":\"PHP 5.5.9 (tar.xz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"7f7a7b1189472e59b234233daab9aa9692bb5eb8404485e9a78221f75ee4664a\"}],\"date\":\"6 Feb 2014\",\"museum\":false},\"5.5.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_8.php\"},\"source\":[{\"filename\":\"php-5.5.8.tar.bz2\",\"name\":\"PHP 5.5.8 (tar.bz2)\",\"date\":\"9 Jan 2014\",\"sha256\":\"6d5f45659d13383fc8429f185cc9da0b30c7bb72dcae9baf568f0511eb7f8b68\"},{\"filename\":\"php-5.5.8.tar.gz\",\"name\":\"PHP 5.5.8 (tar.gz)\",\"date\":\"9 Jan 2014\",\"sha256\":\"67c74a9a2357dc65f5b1701cadb574f1309c4c3a20a2a5c56aeae4c4be90f2f8\"}],\"date\":\"9 Jan 2014\",\"museum\":false},\"5.5.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_7.php\"},\"source\":[{\"filename\":\"php-5.5.7.tar.bz2\",\"name\":\"PHP 5.5.7 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"2cb9425ef514b984dd233097d82a66f4623b9bf48f2ef265bc7ba25d697d6008\"},{\"filename\":\"php-5.5.7.tar.gz\",\"name\":\"PHP 5.5.7 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"7b954338d7dd538ef6fadbc110e6a0f50d0b39dabec2c12a7f000c17332591b8\"},{\"filename\":\"php-5.5.7.tar.xz\",\"name\":\"PHP 5.5.7 (tar.xz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"b7bae5d878b8fc3f4b481eb8f2179b5e71d30dfb3bc3640a5068c1b46633f08c\"}],\"date\":\"12 Dec 2013\",\"museum\":false},\"5.5.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_6.php\"},\"source\":[{\"filename\":\"php-5.5.6.tar.bz2\",\"name\":\"PHP 5.5.6 (tar.bz2)\",\"date\":\"14 Nov 2013\",\"sha256\":\"a9b7d291199d7e6b90ef1d78eb791d738944d66856e76bde9463ce2645b0e4a4\"},{\"filename\":\"php-5.5.6.tar.gz\",\"name\":\"PHP 5.5.6 (tar.gz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"01f9c45154d4c9a47a825aa662bd64493082bd57dafdc720cf899ee194220a67\"},{\"filename\":\"php-5.5.6.tar.xz\",\"name\":\"PHP 5.5.6 (tar.xz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"3235a5c15e8fc55498dd80fe43f4aecc51dba35a7fc916aee7ef12d4e1f8767a\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.6 binaries and source\"}],\"date\":\"14 Nov 2013\",\"museum\":false},\"5.5.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_5.php\"},\"source\":[{\"filename\":\"php-5.5.5.tar.bz2\",\"name\":\"PHP 5.5.5 (tar.bz2)\",\"date\":\"17 Oct 2013\",\"sha256\":\"a400b324ae288eb0c9285e550fe5fd7f92c0f4e126496c3b05f9041da6cc04de\"},{\"filename\":\"php-5.5.5.tar.gz\",\"name\":\"PHP 5.5.5 (tar.gz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"483ff2370fa3a8863e6b023383c4bcfcc3ba462137c30c5fc75043e1755b7d17\"},{\"filename\":\"php-5.5.5.tar.xz\",\"name\":\"PHP 5.5.5 (tar.xz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"82cc9c88b946354bfe629917a85ed33d8cfc901460d432a75f823667d94f29ee\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.5 binaries and source\"}],\"date\":\"17 Oct 2013\",\"museum\":false},\"5.5.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_4.php\"},\"source\":[{\"filename\":\"php-5.5.4.tar.bz2\",\"name\":\"PHP 5.5.4 (tar.bz2)\",\"md5\":\"456f2eb1ee36f2a277bd4cc778e720eb\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.gz\",\"name\":\"PHP 5.5.4 (tar.gz)\",\"md5\":\"bf842770ac64a47ff599f463e6cf1334\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.xz\",\"name\":\"PHP 5.5.4 (tar.xz)\",\"md5\":\"32c1dc56701d21def91a39a312392b54\",\"date\":\"19 Sep 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.4 binaries and source\"}],\"date\":\"19 Sep 2013\",\"museum\":true},\"5.5.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_3.php\"},\"source\":[{\"filename\":\"php-5.5.3.tar.bz2\",\"name\":\"PHP 5.5.3 (tar.bz2)\",\"md5\":\"886b08ee6865d654911a6bb02ae98ee8\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.gz\",\"name\":\"PHP 5.5.3 (tar.gz)\",\"md5\":\"a5dfdd41ccf539942db966310f7429da\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.xz\",\"name\":\"PHP 5.5.3 (tar.xz)\",\"md5\":\"437e98144ef014dfab0922a9eed36853\",\"date\":\"22 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.3 binaries and source\"}],\"date\":\"22 Aug 2013\",\"museum\":true},\"5.5.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_2.php\"},\"source\":[{\"filename\":\"php-5.5.2.tar.bz2\",\"name\":\"PHP 5.5.2 (tar.bz2)\",\"md5\":\"caf7f4d86514a568fb3c8021b096a9f0\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.gz\",\"name\":\"PHP 5.5.2 (tar.gz)\",\"md5\":\"2a90884749f97868071538098b3debc1\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.xz\",\"name\":\"PHP 5.5.2 (tar.xz)\",\"md5\":\"95c6d7a4c36c475b10447954dea056a5\",\"date\":\"15 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.2 binaries and source\"}],\"date\":\"15 Aug 2013\",\"museum\":true},\"5.5.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_1.php\"},\"source\":[{\"filename\":\"php-5.5.1.tar.bz2\",\"name\":\"PHP 5.5.1 (tar.bz2)\",\"md5\":\"e6520ba8f86e03451f1e9226ca2be681\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.gz\",\"name\":\"PHP 5.5.1 (tar.gz)\",\"md5\":\"a7d9598c0e60b47960b8e803e51c4309\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.xz\",\"name\":\"PHP 5.5.1 (tar.xz)\",\"md5\":\"365403c216d22255c3aa57fe54944f8e\",\"date\":\"18 Jul 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.1 binaries and source\"}],\"date\":\"18 Jul 2013\",\"museum\":true},\"5.5.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_0.php\"},\"source\":[{\"filename\":\"php-5.5.0.tar.bz2\",\"name\":\"PHP 5.5.0 (tar.bz2)\",\"md5\":\"daf2d54e79def9fd0fb2ac7dfcefb7f3\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.gz\",\"name\":\"PHP 5.5.0 (tar.gz)\",\"md5\":\"79c4e7a8cb0f8e2e072120775b92c523\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.xz\",\"name\":\"PHP 5.5.0 (tar.xz)\",\"md5\":\"c7df0cb28cfff4e277fd9cd9b73cebfb\",\"date\":\"20 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.0 binaries and source\"}],\"date\":\"20 Jun 2013\",\"museum\":true},\"5.4.45\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_45.php\"},\"source\":[{\"filename\":\"php-5.4.45.tar.bz2\",\"name\":\"PHP 5.4.45 (tar.bz2)\",\"sha256\":\"4e0d28b1554c95cfaea6fa2b64aac85433f158ce72bb571bcd5574f98f4c6582\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.4.45.tar.gz\",\"name\":\"PHP 5.4.45 (tar.gz)\",\"sha256\":\"25bc4723955f4e352935258002af14a14a9810b491a19400d76fcdfa9d04b28f\",\"date\":\"03 Sep 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.45 binaries and source\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.4.44\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_44.php\"},\"source\":[{\"filename\":\"php-5.4.44.tar.bz2\",\"name\":\"PHP 5.4.44 (tar.bz2)\",\"sha256\":\"8dd59e5ce9248cf36ac3de5412a518b8b24c01ace6c46ce3d12e4ce981a3856d\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.4.44.tar.gz\",\"name\":\"PHP 5.4.44 (tar.gz)\",\"sha256\":\"1799998e48da3d8f34722840628e18789e26ea21741d4e498ade6749b3266602\",\"date\":\"06 Aug 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.44 binaries and source\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.4.43\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_43.php\"},\"source\":[{\"filename\":\"php-5.4.43.tar.bz2\",\"name\":\"PHP 5.4.43 (tar.bz2)\",\"sha256\":\"25d7724fb00ad1b520f5bad2173717031153d0a8e3de2c75e7a084c76f8ecd6b\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.4.43.tar.gz\",\"name\":\"PHP 5.4.43 (tar.gz)\",\"sha256\":\"cfc2176adc05f009666ecfab4a1cc66cc546c5d071245b2a048b3d113f67a2af\",\"date\":\"09 Jul 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.43 binaries and source\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.4.42\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_42.php\"},\"source\":[{\"filename\":\"php-5.4.42.tar.bz2\",\"name\":\"PHP 5.4.42 (tar.bz2)\",\"sha256\":\"6285b2e64bfaa69e5d983d7d981b4f254f5259ad3fd591ca832722a4cc1ae0f9\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.4.42.tar.gz\",\"name\":\"PHP 5.4.42 (tar.gz)\",\"sha256\":\"f0b40c097a6f11c4c2f5078d34f50fb9428d79b9e9821117bd7d6cca6af78d11\",\"date\":\"11 Jun 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.42 binaries and source\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.4.41\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_41.php\"},\"source\":[{\"filename\":\"php-5.4.41.tar.bz2\",\"name\":\"PHP 5.4.41 (tar.bz2)\",\"sha256\":\"5bc4b45a1280ff80a3cf5b8563716f325cfd0121d7fd25aa54d56ff38b3b8272\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.4.41.tar.gz\",\"name\":\"PHP 5.4.41 (tar.gz)\",\"sha256\":\"638cf19c865bc4eba2a4bab8952116a62691d1a72e1e2c9a9a2aadee92d1ce2e\",\"date\":\"14 May 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.41 binaries and source\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.4.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_40.php\"},\"source\":[{\"filename\":\"php-5.4.40.tar.bz2\",\"name\":\"PHP 5.4.40 (tar.bz2)\",\"sha256\":\"4898ffe8ac3ccb2d8cc94f7d76a9ea0414d954f5d4479895ddfccdc2e158a51a\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.4.40.tar.gz\",\"name\":\"PHP 5.4.40 (tar.gz)\",\"sha256\":\"663f5d06cd648e81ba4f2d6ad621bb580d83de70240c832dae527c97954da33d\",\"date\":\"16 Apr 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.40 binaries and source\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.4.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_39.php\"},\"source\":[{\"filename\":\"php-5.4.39.tar.bz2\",\"name\":\"PHP 5.4.39 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"7ceb76538e709c74533210ae41148d5c01c330ac8a73220954bbc4fcae69d77e\"},{\"filename\":\"php-5.4.39.tar.gz\",\"name\":\"PHP 5.4.39 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"9af5d2c3782aa94b7336401755dc44b62dc4ea881bf5e39540a4c7181b54d945\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.39 binaries and source\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.4.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_38.php\"},\"source\":[{\"filename\":\"php-5.4.38.tar.bz2\",\"name\":\"PHP 5.4.38 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"abf37db0cfadc9bb814f9df35f6aa966ad63f4f4c4475e432ec625568a5d3e88\"},{\"filename\":\"php-5.4.38.tar.gz\",\"name\":\"PHP 5.4.38 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"e694b7265f314f73c9df43538e0e54e2495cb72252e8a91c1aec66ffcf47241f\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.38 binaries and source\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.4.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_37.php\"},\"source\":[{\"filename\":\"php-5.4.37.tar.bz2\",\"name\":\"PHP 5.4.37 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"857bf6675eeb0ae9c3cd6f9ccdb2a9b7bf89dcfda7f0a80857638fe023f3a8ad\"},{\"filename\":\"php-5.4.37.tar.gz\",\"name\":\"PHP 5.4.37 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"6bf3b3ebefa600cfb6dd7f2678f23b17a958e82e8ce2d012286818d7c36dfd31\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.37 binaries and source\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.4.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_36.php\"},\"source\":[{\"filename\":\"php-5.4.36.tar.bz2\",\"name\":\"PHP 5.4.36 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241\"},{\"filename\":\"php-5.4.36.tar.gz\",\"name\":\"PHP 5.4.36 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"e11851662222765d6ab6e671adc983c657d5358a183856b43a5bad0c612d2959\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.36 binaries and source\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.4.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_35.php\"},\"source\":[{\"filename\":\"php-5.4.35.tar.bz2\",\"name\":\"PHP 5.4.35 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8cdb4265cd0f778befacd1e6b5939ec23315fff38400e17e77a36e4c55b9746b\"},{\"filename\":\"php-5.4.35.tar.gz\",\"name\":\"PHP 5.4.35 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ecab4ebb880b6d4f68bd4e3e49d837d4704fe26d81dc992b17b74151ee950a7\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.35 binaries and source\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.4.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_34.php\"},\"source\":[{\"filename\":\"php-5.4.34.tar.bz2\",\"name\":\"PHP 5.4.34 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"57d4ea10f0c18b096a7c8fd0a98dcbe40c8f4dc94453fd3ca0a10e35fb2f8234\"},{\"filename\":\"php-5.4.34.tar.gz\",\"name\":\"PHP 5.4.34 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"c8d909062ad7616cedb54dc03d85b40d40f6d4adce986ec8cabd9b8b94872096\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.34 binaries and source\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.4.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_33.php\"},\"source\":[{\"filename\":\"php-5.4.33.tar.bz2\",\"name\":\"PHP 5.4.33 (tar.bz2)\",\"sha256\":\"1a75b2d0835e74b8886cd3980d9598a0e06691441bb7f91d19b74c2278e40bb5\",\"date\":\"18 Sep 2014\"},{\"filename\":\"php-5.4.33.tar.gz\",\"name\":\"PHP 5.4.33 (tar.gz)\",\"sha256\":\"74e542dd2f15ebbc123738a71e867d57d2996a6edb40e6ac62fcf5ab85763d19\",\"date\":\"18 Sep 2014\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.33 binaries and source\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.4.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_32.php\"},\"source\":[{\"filename\":\"php-5.4.32.tar.bz2\",\"name\":\"PHP 5.4.32 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"26d0717669a098f18cd22dc3ae8282101d38508054500c26775ddcc26ca7c826\"},{\"filename\":\"php-5.4.32.tar.gz\",\"name\":\"PHP 5.4.32 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"80ebdf34f91b8e1d516080363804137177368777aa9ecffee600f2957e8b0f94\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.32 binaries and source\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.4.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_31.php\"},\"source\":[{\"filename\":\"php-5.4.31.tar.bz2\",\"name\":\"PHP 5.4.31 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"5e8e491431fd1d99df925d762b05da05c80b02cb38c9b3db616e8894a307914d\"},{\"filename\":\"php-5.4.31.tar.gz\",\"name\":\"PHP 5.4.31 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"332f62e4f751482d40ad08544ee97e004170d0382c84d01ce8efe405d0972f66\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.31 binaries and source\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.4.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_30.php\"},\"source\":[{\"filename\":\"php-5.4.30.tar.bz2\",\"name\":\"PHP 5.4.30 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"32b83644e42d57388d6e5ec700c3502cde5f5e1207395b1e361e4cb2ce496ce6\"},{\"filename\":\"php-5.4.30.tar.gz\",\"name\":\"PHP 5.4.30 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"c17da64890b728bdc146bdc69b37085412d4e2585fac98848ac2e824bb564c85\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.30 binaries and source\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.4.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_29.php\"},\"source\":[{\"filename\":\"php-5.4.29.tar.bz2\",\"name\":\"PHP 5.4.29 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"62ce3ca063cf04f6065eeac82117e43b44e20487bc0a0a8d05436e17a0b1e2a7\"},{\"filename\":\"php-5.4.29.tar.gz\",\"name\":\"PHP 5.4.29 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"9fa51d3e44783802ea51b910719ad524a8994524f7cf7307f683fe89191bc401\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.29 binaries and source\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.4.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_28.php\"},\"source\":[{\"filename\":\"php-5.4.28.tar.bz2\",\"name\":\"PHP 5.4.28 (tar.bz2)\",\"date\":\"2 May 2014\",\"sha256\":\"3fe780e5179e90c4d37276e79acc0d0692f1bc0911985af694b92c664c0ef3c4\"},{\"filename\":\"php-5.4.28.tar.gz\",\"name\":\"PHP 5.4.28 (tar.gz)\",\"date\":\"2 May 2014\",\"sha256\":\"5140292c94a0301db7a807e6b3aadf6ee966346d0005aa3d15464bd4c595a786\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.28 binaries and source\"}],\"date\":\"2 May 2014\",\"museum\":false},\"5.4.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_27.php\"},\"source\":[{\"filename\":\"php-5.4.27.tar.bz2\",\"name\":\"PHP 5.4.27 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"09dcc44cded735e1cf1b1b9f2749d1a0fd90e03378b6a70364a662f4740e61e2\"},{\"filename\":\"php-5.4.27.tar.gz\",\"name\":\"PHP 5.4.27 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a70dc68eeed902f8378fded473d53e4e37be645b941554dcf4237559cbda2bb3\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.27 binaries and source\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.4.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_26.php\"},\"source\":[{\"filename\":\"php-5.4.26.tar.bz2\",\"name\":\"PHP 5.4.26 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"5053649317b9331df40bd836c976a32b31dbc5c5d68997d3ae01cb90db22d240\"},{\"filename\":\"php-5.4.26.tar.gz\",\"name\":\"PHP 5.4.26 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"ec3f902b5e8cbdd660e01e784b537f1210a12182d9bbd62164776075bc097eca\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.26 binaries and source\"}],\"date\":\"6 Mar 2014\",\"museum\":false},\"5.4.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_25.php\"},\"source\":[{\"filename\":\"php-5.4.25.tar.bz2\",\"name\":\"PHP 5.4.25 (tar.bz2)\",\"date\":\"6 Feb 2014\",\"sha256\":\"b6c18c07c6bf34f75e601b28829d636e44c1c9f4267aac4ed013443c32a2245f\"},{\"filename\":\"php-5.4.25.tar.gz\",\"name\":\"PHP 5.4.25 (tar.gz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"0c66cec73bfbd31f68c96e5a4d8454599271f0b0462c2ff7dedce4262fda8fe3\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.25 binaries and source\"}],\"date\":\"6 Feb 2014\",\"museum\":false},\"5.4.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_24.php\"},\"source\":[{\"filename\":\"php-5.4.24.tar.bz2\",\"name\":\"PHP 5.4.24 (tar.bz2)\",\"date\":\"9 Jan 2014\",\"sha256\":\"97fe70eddaf5b93969714a551870fe03f6b0a387f85b83a6d63a40a76199a327\"},{\"filename\":\"php-5.4.24.tar.gz\",\"name\":\"PHP 5.4.24 (tar.gz)\",\"date\":\"9 Jan 2014\",\"sha256\":\"c64d6e3b428e78b44760167557e26cd16a9f83f449a255e69d5e035bdd7057ed\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.24 binaries and source\"}],\"date\":\"9 Jan 2014\",\"museum\":false},\"5.4.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_23.php\"},\"source\":[{\"filename\":\"php-5.4.23.tar.bz2\",\"name\":\"PHP 5.4.23 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"ae7c070fa9b9e16413ef944d910b68f3ba79192eca4010b0af132b8631bd91cc\"},{\"filename\":\"php-5.4.23.tar.gz\",\"name\":\"PHP 5.4.23 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"c9add0e59f41298a253bbb9090c47a03064b099120a563ca8ad289e18fcd1ce7\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.23 binaries and source\"}],\"date\":\"12 Dec 2013\",\"museum\":false},\"5.4.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_22.php\"},\"source\":[{\"filename\":\"php-5.4.22.tar.bz2\",\"name\":\"PHP 5.4.22 (tar.bz2)\",\"date\":\"14 Nov 2013\",\"sha256\":\"3b8619b030e372f2b64e3a059d05a3ef3354e81f8a72923ba45475bf222f7cca\"},{\"filename\":\"php-5.4.22.tar.gz\",\"name\":\"PHP 5.4.22 (tar.gz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"ca6e52a0ba11e9521c6a26f293a602cdc00cad1adbb4658e35b8d3f41057cbb8\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.22 binaries and source\"}],\"date\":\"14 Nov 2013\",\"museum\":false},\"5.4.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_21.php\"},\"source\":[{\"filename\":\"php-5.4.21.tar.bz2\",\"name\":\"PHP 5.4.21 (tar.bz2)\",\"md5\":\"3dcf021e89b039409d0b1c346b936b5f\",\"date\":\"17 Oct 2013\"},{\"filename\":\"php-5.4.21.tar.gz\",\"name\":\"PHP 5.4.21 (tar.gz)\",\"md5\":\"cc8da0d18683e3a83b332f264af7ca83\",\"date\":\"17 Oct 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.21 binaries and source\"}],\"date\":\"17 Oct 2013\",\"museum\":true},\"5.4.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_20.php\"},\"source\":[{\"filename\":\"php-5.4.20.tar.bz2\",\"name\":\"PHP 5.4.20 (tar.bz2)\",\"md5\":\"e25db5592ed14842b4239be9d990cce8\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.4.20.tar.gz\",\"name\":\"PHP 5.4.20 (tar.gz)\",\"md5\":\"e505b63ebe383ef9a378467216ba69d4\",\"date\":\"19 Sep 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.20 binaries and source\"}],\"date\":\"19 Sep 2013\",\"museum\":true},\"5.4.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_19.php\"},\"source\":[{\"filename\":\"php-5.4.19.tar.bz2\",\"name\":\"PHP 5.4.19 (tar.bz2)\",\"md5\":\"f06f99b9872b503758adab5ba7a7e755\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.4.19.tar.gz\",\"name\":\"PHP 5.4.19 (tar.gz)\",\"md5\":\"9e7ad2494ba3de519328f74267de8342\",\"date\":\"22 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.19 binaries and source\"}],\"date\":\"22 Aug 2013\",\"museum\":true},\"5.4.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_18.php\"},\"source\":[{\"filename\":\"php-5.4.18.tar.bz2\",\"name\":\"PHP 5.4.18 (tar.bz2)\",\"md5\":\"b2e185b46b22a48a385cf21a0dc76e65\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.4.18.tar.gz\",\"name\":\"PHP 5.4.18 (tar.gz)\",\"md5\":\"d0a3f55deceaec921f45f76d7b4e764b\",\"date\":\"15 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.18 binaries and source\"}],\"date\":\"04 Jul 2013\",\"museum\":true},\"5.4.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_17.php\"},\"source\":[{\"filename\":\"php-5.4.17.tar.bz2\",\"name\":\"PHP 5.4.17 (tar.bz2)\",\"md5\":\"1e027e99e2a874310fd518e87e3947af\",\"date\":\"04 Jul 2013\"},{\"filename\":\"php-5.4.17.tar.gz\",\"name\":\"PHP 5.4.17 (tar.gz)\",\"md5\":\"cc698032dcdcb9ad158edcc90fe798d6\",\"date\":\"04 Jul 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.17 binaries and source\"}],\"date\":\"04 Jul 2013\",\"museum\":true},\"5.4.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_16.php\"},\"source\":[{\"filename\":\"php-5.4.16.tar.bz2\",\"name\":\"PHP 5.4.16 (tar.bz2)\",\"md5\":\"3d2c694d28861d707b2622c3cc941cff\",\"date\":\"06 Jun 2013\"},{\"filename\":\"php-5.4.16.tar.gz\",\"name\":\"PHP 5.4.16 (tar.gz)\",\"md5\":\"3940a5295872964495f9c56596272d68\",\"date\":\"06 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.16 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.4.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_15.php\"},\"source\":[{\"filename\":\"php-5.4.15.tar.bz2\",\"name\":\"PHP 5.4.15 (tar.bz2)\",\"md5\":\"145ea5e845e910443ff1eddb3dbcf56a\",\"date\":\"09 May 2013\"},{\"filename\":\"php-5.4.15.tar.gz\",\"name\":\"PHP 5.4.15 (tar.gz)\",\"md5\":\"2651b983c18df9d455ec4c69aef45834\",\"date\":\"09 May 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.15 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.4.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_14.php\"},\"source\":[{\"filename\":\"php-5.4.14.tar.bz2\",\"name\":\"PHP 5.4.14 (tar.bz2)\",\"md5\":\"cfdc044be2c582991a1fe0967898fa38\",\"date\":\"11 Apr 2013\"},{\"filename\":\"php-5.4.14.tar.gz\",\"name\":\"PHP 5.4.14 (tar.gz)\",\"md5\":\"08df8196af12bc850409a7bff13bf8f0\",\"date\":\"11 Apr 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.14 binaries and source\"}],\"date\":\"11 Apr 2013\",\"museum\":true},\"5.4.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_13.php\"},\"source\":[{\"filename\":\"php-5.4.13.tar.bz2\",\"name\":\"PHP 5.4.13 (tar.bz2)\",\"md5\":\"cacd308e978b7cf9ba4993196612ccf7\",\"date\":\"14 Mar 2013\"},{\"filename\":\"php-5.4.13.tar.gz\",\"name\":\"PHP 5.4.13 (tar.gz)\",\"md5\":\"445025340677d5bfe22eb670d6db6795\",\"date\":\"14 Mar 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.13 binaries and source\"}],\"date\":\"14 Mar 2013\",\"museum\":true},\"5.4.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_12.php\"},\"source\":[{\"filename\":\"php-5.4.12.tar.bz2\",\"name\":\"PHP 5.4.12 (tar.bz2)\",\"md5\":\"5c7b614242ae12e9cacca21c8ab84818\",\"date\":\"21 Feb 2013\"},{\"filename\":\"php-5.4.12.tar.gz\",\"name\":\"PHP 5.4.12 (tar.gz)\",\"md5\":\"81b20cac4f977b8764ae904302048d84\",\"date\":\"21 Feb 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.12 binaries and source\"}],\"date\":\"21 Feb 2013\",\"museum\":true},\"5.4.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_11.php\"},\"source\":[{\"filename\":\"php-5.4.11.tar.bz2\",\"name\":\"PHP 5.4.11 (tar.bz2)\",\"md5\":\"9975e68c22b86b013b934743ad2d2276\",\"date\":\"17 Jan 2013\"},{\"filename\":\"php-5.4.11.tar.gz\",\"name\":\"PHP 5.4.11 (tar.gz)\",\"md5\":\"32fa16b3abd5527316c3c076b3395914\",\"date\":\"17 Jan 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.11 binaries and source\"}],\"date\":\"17 Jan 2013\",\"museum\":true},\"5.4.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_10.php\"},\"source\":[{\"filename\":\"php-5.4.10.tar.bz2\",\"name\":\"PHP 5.4.10 (tar.bz2)\",\"md5\":\"cb716b657a30570b9b468b9e7bc551a1\",\"date\":\"20 Dec 2012\"},{\"filename\":\"php-5.4.10.tar.gz\",\"name\":\"PHP 5.4.10 (tar.gz)\",\"md5\":\"1e7fbe418658d5433bd315030584c45c\",\"date\":\"20 Dec 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.10 binaries and source\"}],\"date\":\"20 Dec 2012\",\"museum\":true},\"5.4.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_9.php\"},\"source\":[{\"filename\":\"php-5.4.9.tar.bz2\",\"name\":\"PHP 5.4.9 (tar.bz2)\",\"md5\":\"076a9f84d861d3f664a2878d5773ba78\",\"date\":\"22 Nov 2012\"},{\"filename\":\"php-5.4.9.tar.gz\",\"name\":\"PHP 5.4.9 (tar.gz)\",\"md5\":\"e1ac28e1cf20738f0aeeba8261aa4537\",\"date\":\"22 Nov 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.9 binaries and source\"}],\"date\":\"22 Nov 2012\",\"museum\":true},\"5.4.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_8.php\"},\"source\":[{\"filename\":\"php-5.4.8.tar.bz2\",\"name\":\"PHP 5.4.8 (tar.bz2)\",\"md5\":\"bb8c816a9299be8995255ef70c63b800\",\"date\":\"18 Oct 2012\"},{\"filename\":\"php-5.4.8.tar.gz\",\"name\":\"PHP 5.4.8 (tar.gz)\",\"md5\":\"b25b735f342efbfdcdaf00b83189f183\",\"date\":\"18 Oct 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.8 binaries and source\"}],\"date\":\"18 Oct 2012\",\"museum\":true},\"5.4.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_7.php\"},\"source\":[{\"filename\":\"php-5.4.7.tar.bz2\",\"name\":\"PHP 5.4.7 (tar.bz2)\",\"md5\":\"9cd421f1cc8fa8e7f215e44a1b06199f\",\"date\":\"13 Sep 2012\"},{\"filename\":\"php-5.4.7.tar.gz\",\"name\":\"PHP 5.4.7 (tar.gz)\",\"md5\":\"94661b761dcfdfdd5108e8b12e0dd4f8\",\"date\":\"13 Sep 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.7 binaries and source\"}],\"date\":\"13 Sep 2012\",\"museum\":true},\"5.4.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_6.php\"},\"source\":[{\"filename\":\"php-5.4.6.tar.bz2\",\"name\":\"PHP 5.4.6 (tar.bz2)\",\"md5\":\"c9aa0f4996d1b91ee9e45afcfaeb5d2e\",\"date\":\"16 Aug 2012\"},{\"filename\":\"php-5.4.6.tar.gz\",\"name\":\"PHP 5.4.6 (tar.gz)\",\"md5\":\"efe59afb73190c9bd6d50614998ffceb\",\"date\":\"16 Aug 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.6 binaries and source\"}],\"date\":\"16 Aug 2012\",\"museum\":true},\"5.4.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_5.php\"},\"source\":[{\"filename\":\"php-5.4.5.tar.bz2\",\"name\":\"PHP 5.4.5 (tar.bz2)\",\"md5\":\"ffcc7f4dcf2b79d667fe0c110e6cb724\",\"date\":\"19 July 2012\"},{\"filename\":\"php-5.4.5.tar.gz\",\"name\":\"PHP 5.4.5 (tar.gz)\",\"md5\":\"51fb5bf974d92359f0606dffc810735a\",\"date\":\"19 July 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.5 binaries and source\"}],\"date\":\"19 July 2012\",\"museum\":true},\"5.4.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_4.php\"},\"source\":[{\"filename\":\"php-5.4.4.tar.bz2\",\"name\":\"PHP 5.4.4 (tar.bz2)\",\"md5\":\"1fd98dc3f6f3805cd67bff12a26ed77f\",\"date\":\"14 June 2012\"},{\"filename\":\"php-5.4.4.tar.gz\",\"name\":\"PHP 5.4.4 (tar.gz)\",\"md5\":\"8366c3626f2275ab8c7ef5e2d6bc5bd7\",\"date\":\"14 June 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.4 binaries and source\"}],\"date\":\"14 June 2012\",\"museum\":true},\"5.4.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_3.php\"},\"source\":[{\"filename\":\"php-5.4.3.tar.bz2\",\"name\":\"PHP 5.4.3 (tar.bz2)\",\"md5\":\"51f9488bf8682399b802c48656315cac\",\"date\":\"08 May 2012\"},{\"filename\":\"php-5.4.3.tar.gz\",\"name\":\"PHP 5.4.3 (tar.gz)\",\"md5\":\"c9dccc89cc89d39e84f6e6f0cf1c8a65\",\"date\":\"08 May 2012\"}],\"date\":\"08 May 2012\",\"museum\":true},\"5.4.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_2.php\"},\"source\":[{\"filename\":\"php-5.4.2.tar.bz2\",\"name\":\"PHP 5.4.2 (tar.bz2)\",\"md5\":\"252a6546db3a26260b419a883c875615\",\"date\":\"03 May 2012\"},{\"filename\":\"php-5.4.2.tar.gz\",\"name\":\"PHP 5.4.2 (tar.gz)\",\"md5\":\"4b62935cbea385a23335f17d64d716c7\",\"date\":\"03 May 2012\"}],\"date\":\"03 May 2012\",\"museum\":true},\"5.4.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_1.php\"},\"source\":[{\"filename\":\"php-5.4.1.tar.bz2\",\"name\":\"PHP 5.4.1 (tar.bz2)\",\"md5\":\"5b9529ed89dbc48c498e9693d1af3caf\",\"date\":\"26 April 2012\"},{\"filename\":\"php-5.4.1.tar.gz\",\"name\":\"PHP 5.4.1 (tar.gz)\",\"md5\":\"acd566dbd70f855c19d17fc3c0e876a2\",\"date\":\"26 April 2012\"}],\"date\":\"26 April 2012\",\"museum\":true},\"5.4.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_0.php\"},\"source\":[{\"filename\":\"php-5.4.0.tar.bz2\",\"name\":\"PHP 5.4.0 (tar.bz2)\",\"md5\":\"04bb6f9d71ea86ba05685439d50db074\",\"date\":\"01 March 2012\"},{\"filename\":\"php-5.4.0.tar.gz\",\"name\":\"PHP 5.4.0 (tar.gz)\",\"md5\":\"46b72e274c6ea7e775245ffdb81c9ce5\",\"date\":\"01 March 2012\"}],\"date\":\"01 March 2012\",\"museum\":true},\"5.3.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_29.php\"},\"source\":[{\"filename\":\"php-5.3.29.tar.bz2\",\"name\":\"PHP 5.3.29 (tar.bz2)\",\"date\":\"14 Aug 2014\",\"sha256\":\"c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091\"},{\"filename\":\"php-5.3.29.tar.gz\",\"name\":\"PHP 5.3.29 (tar.gz)\",\"date\":\"14 Aug 2014\",\"sha256\":\"57cf097de3d6c3152dda342f62b1b2e9c988f4cfe300ccfe3c11f3c207a0e317\"},{\"filename\":\"php-5.3.29.tar.xz\",\"name\":\"PHP 5.3.29 (tar.xz)\",\"date\":\"14 Aug 2014\",\"sha256\":\"8438c2f14ab8f3d6cd2495aa37de7b559e33b610f9ab264f0c61b531bf0c262d\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.29 binaries and source\"}],\"date\":\"14 Aug 2014\",\"museum\":false},\"5.3.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_28.php\"},\"source\":[{\"filename\":\"php-5.3.28.tar.bz2\",\"name\":\"PHP 5.3.28 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"0cac960c651c4fbb3d21cf2f2b279a06e21948fb35a0d1439b97296cac1d8513\"},{\"filename\":\"php-5.3.28.tar.gz\",\"name\":\"PHP 5.3.28 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"ace8fde82a4275d6dcec4e15feb047416e1813fea46e159dfd113298371396d0\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.28 binaries and source\"}],\"date\":\"11 Jul 2013\",\"museum\":false},\"5.3.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_27.php\"},\"source\":[{\"filename\":\"php-5.3.27.tar.bz2\",\"name\":\"PHP 5.3.27 (tar.bz2)\",\"date\":\"11 Jul 2013\",\"sha256\":\"e12db21c623b82a2244c4dd9b06bb75af20868c1b748a105a6829a5acc36b287\"},{\"filename\":\"php-5.3.27.tar.gz\",\"name\":\"PHP 5.3.27 (tar.gz)\",\"date\":\"11 Jul 2013\",\"sha256\":\"5ecd737fc79ad33b5c79a9784c0b4211d211ba682d4d721ac6ce975907a5b12b\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.27 binaries and source\"}],\"date\":\"11 Jul 2013\",\"museum\":false},\"5.3.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_26.php\"},\"source\":[{\"filename\":\"php-5.3.26.tar.bz2\",\"name\":\"PHP 5.3.26 (tar.bz2)\",\"md5\":\"d71db8d92edbb48beb5b645b55471139\",\"date\":\"06 Jun 2013\"},{\"filename\":\"php-5.3.26.tar.gz\",\"name\":\"PHP 5.3.26 (tar.gz)\",\"md5\":\"a430a48b8939fe1f8915ee38681b0afa\",\"date\":\"06 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.26 binaries and source\"}],\"date\":\"06 Jun 2013\",\"museum\":true},\"5.3.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_25.php\"},\"source\":[{\"filename\":\"php-5.3.25.tar.bz2\",\"name\":\"PHP 5.3.25 (tar.bz2)\",\"md5\":\"d71db8d92edbb48beb5b645b55471139\",\"date\":\"09 May 2013\"},{\"filename\":\"php-5.3.25.tar.gz\",\"name\":\"PHP 5.3.25 (tar.gz)\",\"md5\":\"a430a48b8939fe1f8915ee38681b0afa\",\"date\":\"09 May 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.25 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.3.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_24.php\"},\"source\":[{\"filename\":\"php-5.3.24.tar.bz2\",\"name\":\"PHP 5.3.24 (tar.bz2)\",\"md5\":\"9820604df98c648297dcd31ffb8214e8\",\"date\":\"11 Apr 2013\"},{\"filename\":\"php-5.3.24.tar.gz\",\"name\":\"PHP 5.3.24 (tar.gz)\",\"md5\":\"cb0311a6a5ed6ffff8f41f713f9d8e84\",\"date\":\"11 Apr 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.24 binaries and source\"}],\"date\":\"11 Apr 2013\",\"museum\":true},\"5.3.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_23.php\"},\"source\":[{\"filename\":\"php-5.3.23.tar.bz2\",\"name\":\"PHP 5.3.23 (tar.bz2)\",\"md5\":\"ab7bd1dd3bbc8364cb9fcaa2d79fb502\",\"date\":\"14 Mar 2013\"},{\"filename\":\"php-5.3.23.tar.gz\",\"name\":\"PHP 5.3.23 (tar.gz)\",\"md5\":\"9cd92b0de2b51dcd372f46fa623984f4\",\"date\":\"14 Mar 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.23 binaries and source\"}],\"date\":\"14 Mar 2013\",\"museum\":true},\"5.3.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_22.php\"},\"source\":[{\"filename\":\"php-5.3.22.tar.bz2\",\"name\":\"PHP 5.3.22 (tar.bz2)\",\"md5\":\"bf351426fc7f97aa13914062958a6100\",\"date\":\"21 Feb 2013\"},{\"filename\":\"php-5.3.22.tar.gz\",\"name\":\"PHP 5.3.22 (tar.gz)\",\"md5\":\"5008d8e70195d933e30bfbae3651b4ed\",\"date\":\"21 Feb 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.22 binaries and source\"}],\"date\":\"21 Feb 2013\",\"museum\":true},\"5.3.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_21.php\"},\"source\":[{\"filename\":\"php-5.3.21.tar.bz2\",\"name\":\"PHP 5.3.21 (tar.bz2)\",\"md5\":\"1b214fc19bb5f5c0902ba27c74d5f4a2\",\"date\":\"17 Jan 2013\"},{\"filename\":\"php-5.3.21.tar.gz\",\"name\":\"PHP 5.3.21 (tar.gz)\",\"md5\":\"f47fbe3407520e5d9d895168950aa683\",\"date\":\"17 Jan 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.21 binaries and source\"}],\"date\":\"17 Jan 2013\",\"museum\":true},\"5.3.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_20.php\"},\"source\":[{\"filename\":\"php-5.3.20.tar.bz2\",\"name\":\"PHP 5.3.20 (tar.bz2)\",\"md5\":\"00241b9e89e93adf3baac32c56211e4e\",\"date\":\"20 Dec 2012\"},{\"filename\":\"php-5.3.20.tar.gz\",\"name\":\"PHP 5.3.20 (tar.gz)\",\"md5\":\"1e202851bf2ba1ee96d7dc5b48944119\",\"date\":\"20 Dec 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.20 binaries and source\"}],\"date\":\"20 Dec 2012\",\"museum\":true},\"5.3.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_19.php\"},\"source\":[{\"filename\":\"php-5.3.19.tar.bz2\",\"name\":\"PHP 5.3.19 (tar.bz2)\",\"md5\":\"e1d2a3ec7849d4b3032bd1abf1916aa4\",\"date\":\"22 Nov 2012\"},{\"filename\":\"php-5.3.19.tar.gz\",\"name\":\"PHP 5.3.19 (tar.gz)\",\"md5\":\"e1bcda4f14bb39ba041297abbf18f8d1\",\"date\":\"22 Nov 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.3.19 binaries and source\"}],\"date\":\"22 Nov 2012\",\"museum\":true},\"5.3.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_18.php\"},\"source\":[{\"filename\":\"php-5.3.18.tar.bz2\",\"name\":\"PHP 5.3.18 (tar.bz2)\",\"md5\":\"52539c19d0f261560af3c030143dfa8f\",\"date\":\"18 Oct 2012\"},{\"filename\":\"php-5.3.18.tar.gz\",\"name\":\"PHP 5.3.18 (tar.gz)\",\"md5\":\"ff2009aadc7c4d1444f6cd8e45f39a41\",\"date\":\"18 Oct 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.18 binaries and source\"}],\"date\":\"18 Oct 2012\",\"museum\":true},\"5.3.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_17.php\"},\"source\":[{\"filename\":\"php-5.3.17.tar.bz2\",\"name\":\"PHP 5.3.17 (tar.bz2)\",\"md5\":\"29ee79c941ee85d6c1555c176f12f7ef\",\"date\":\"13 Sep 2012\"},{\"filename\":\"php-5.3.17.tar.gz\",\"name\":\"PHP 5.3.17 (tar.gz)\",\"md5\":\"002e02e36c2cbcada8c49a7e5956d787\",\"date\":\"13 Sep 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.17 binaries and source\"}],\"date\":\"13 Sep 2012\",\"museum\":true},\"5.3.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_16.php\"},\"source\":[{\"filename\":\"php-5.3.16.tar.bz2\",\"name\":\"PHP 5.3.16 (tar.bz2)\",\"md5\":\"99cfd78531643027f60c900e792d21be\",\"date\":\"16 Aug 2012\"},{\"filename\":\"php-5.3.16.tar.gz\",\"name\":\"PHP 5.3.16 (tar.gz)\",\"md5\":\"59b776edeac2897ebe3712dcc94b6706\",\"date\":\"16 Aug 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.16 binaries and source\"}],\"date\":\"16 Aug 2012\",\"museum\":true},\"5.3.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_15.php\"},\"source\":[{\"filename\":\"php-5.3.15.tar.bz2\",\"name\":\"PHP 5.3.15 (tar.bz2)\",\"md5\":\"5cfcfd0fa4c4da7576f397073e7993cc\",\"date\":\"19 July 2012\"},{\"filename\":\"php-5.3.15.tar.gz\",\"name\":\"PHP 5.3.15 (tar.gz)\",\"md5\":\"7c885c79a611b89f3a1095fce6eae5c6\",\"date\":\"19 July 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.15 binaries and source\"}],\"date\":\"19 July 2012\",\"museum\":true},\"5.3.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_14.php\"},\"source\":[{\"filename\":\"php-5.3.14.tar.bz2\",\"name\":\"PHP 5.3.14 (tar.bz2)\",\"md5\":\"370be99c5cdc2e756c82c44d774933c8\",\"date\":\"14 June 2012\"},{\"filename\":\"php-5.3.14.tar.gz\",\"name\":\"PHP 5.3.14 (tar.gz)\",\"md5\":\"148730865242a031a638ee3bab4a9d4d\",\"date\":\"14 June 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.14 binaries and source\"}],\"date\":\"14 June 2012\",\"museum\":true},\"5.3.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_13.php\"},\"source\":[{\"filename\":\"php-5.3.13.tar.bz2\",\"name\":\"PHP 5.3.13 (tar.bz2)\",\"md5\":\"370be99c5cdc2e756c82c44d774933c8\",\"date\":\"08 May 2012\"},{\"filename\":\"php-5.3.13.tar.gz\",\"name\":\"PHP 5.3.13 (tar.gz)\",\"md5\":\"179c67ce347680f468edbfc3c425476a\",\"date\":\"08 May 2012\"}],\"date\":\"08 May 2012\",\"museum\":true},\"5.3.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_12.php\"},\"source\":[{\"filename\":\"php-5.3.12.tar.bz2\",\"name\":\"PHP 5.3.12 (tar.bz2)\",\"md5\":\"cf02c29be279c506cbd4ffc2819d7c82\",\"date\":\"03 May 2012\"},{\"filename\":\"php-5.3.12.tar.gz\",\"name\":\"PHP 5.3.12 (tar.gz)\",\"md5\":\"aac80e478eb0785c50855ae8cefe735a\",\"date\":\"03 May 2012\"}],\"date\":\"03 May 2012\",\"museum\":true},\"5.3.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_11.php\"},\"source\":[{\"filename\":\"php-5.3.11.tar.bz2\",\"name\":\"PHP 5.3.11 (tar.bz2)\",\"md5\":\"5b9529ed89dbc48c498e9693d1af3caf\",\"date\":\"26 April 2012\"},{\"filename\":\"php-5.3.11.tar.gz\",\"name\":\"PHP 5.3.11 (tar.gz)\",\"md5\":\"acd566dbd70f855c19d17fc3c0e876a2\",\"date\":\"26 April 2012\"}],\"date\":\"26 April 2012\",\"museum\":true},\"5.3.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_10.php\"},\"source\":[{\"filename\":\"php-5.3.10.tar.bz2\",\"name\":\"PHP 5.3.10 (tar.bz2)\",\"md5\":\"816259e5ca7d0a7e943e56a3bb32b17f\",\"date\":\"02 February 2012\"},{\"filename\":\"php-5.3.10.tar.gz\",\"name\":\"PHP 5.3.10 (tar.gz)\",\"md5\":\"2b3d2d0ff22175685978fb6a5cbcdc13\",\"date\":\"02 February 2012\"}],\"date\":\"02 February 2012\",\"museum\":true},\"5.3.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_9.php\"},\"source\":[{\"filename\":\"php-5.3.9.tar.bz2\",\"name\":\"PHP 5.3.9 (tar.bz2)\",\"md5\":\"dd3288ed5c08cd61ac5bf619cb357521\",\"date\":\"10 January 2012\"},{\"filename\":\"php-5.3.9.tar.gz\",\"name\":\"PHP 5.3.9 (tar.gz)\",\"md5\":\"c79e374c61423beb64a69da1eb5526b7\",\"date\":\"10 January 2012\"}],\"date\":\"10 January 2012\",\"museum\":true},\"5.3.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_8.php\"},\"source\":[{\"filename\":\"php-5.3.8.tar.bz2\",\"name\":\"PHP 5.3.8 (tar.bz2)\",\"md5\":\"704cd414a0565d905e1074ffdc1fadfb\",\"date\":\"23 August 2011\"},{\"filename\":\"php-5.3.8.tar.gz\",\"name\":\"PHP 5.3.8 (tar.gz)\",\"md5\":\"f4ce40d5d156ca66a996dbb8a0e7666a\",\"date\":\"23 August 2011\"}],\"date\":\"23 August 2011\",\"museum\":true},\"5.3.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_7.php\"},\"source\":[{\"filename\":\"php-5.3.7.tar.bz2\",\"name\":\"PHP 5.3.7 (tar.bz2)\",\"md5\":\"2d47d003c96de4e88863ff38da61af33\",\"date\":\"18 August 2011\"},{\"filename\":\"php-5.3.7.tar.gz\",\"name\":\"PHP 5.3.7 (tar.gz)\",\"md5\":\"1ec460bf3a40cea4079ee80076558d51\",\"date\":\"18 August 2011\"}],\"date\":\"18 August 2011\",\"museum\":true},\"5.3.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_6.php\"},\"source\":[{\"filename\":\"php-5.3.6.tar.bz2\",\"name\":\"PHP 5.3.6 (tar.bz2)\",\"md5\":\"2286f5a82a6e8397955a0025c1c2ad98\",\"date\":\"19 March 2011\"},{\"filename\":\"php-5.3.6.tar.gz\",\"name\":\"PHP 5.3.6 (tar.gz)\",\"md5\":\"88a2b00047bc53afbbbdf10ebe28a57e\",\"date\":\"19 March 2011\"}],\"date\":\"19 March 2011\",\"museum\":true},\"5.3.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_5.php\"},\"source\":[{\"filename\":\"php-5.3.5.tar.bz2\",\"name\":\"PHP 5.3.5 (tar.bz2)\",\"md5\":\"8aaf20c95e91f25c5b6a591e5d6d61b9\",\"date\":\"06 January 2011\"},{\"filename\":\"php-5.3.5.tar.gz\",\"name\":\"PHP 5.3.5 (tar.gz)\",\"md5\":\"fb727a3ac72bf0ce37e1a20468a7bb81\",\"date\":\"06 January 2011\"}],\"date\":\"06 January 2011\",\"museum\":true},\"5.3.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_4.php\"},\"source\":[{\"filename\":\"php-5.3.4.tar.bz2\",\"name\":\"PHP 5.3.4 (tar.bz2)\",\"md5\":\"2c069d8f690933e3bf6a8741ed818150\",\"date\":\"09 December 2010\"},{\"filename\":\"php-5.3.4.tar.gz\",\"name\":\"PHP 5.3.4 (tar.gz)\",\"md5\":\"b69b36132899c5ca3bf155efa0218676\",\"date\":\"09 December 2010\"}],\"date\":\"09 December 2010\",\"museum\":true},\"5.2.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_17.php\"},\"source\":[{\"filename\":\"php-5.2.17.tar.bz2\",\"name\":\"PHP 5.2.17 (tar.bz2)\",\"md5\":\"b27947f3045220faf16e4d9158cbfe13\",\"date\":\"06 January 2011\"},{\"filename\":\"php-5.2.17.tar.gz\",\"name\":\"PHP 5.2.17 (tar.gz)\",\"md5\":\"04d321d5aeb9d3a051233dbd24220ef1\",\"date\":\"06 January 2011\"}],\"date\":\"06 January 2011\",\"museum\":true},\"5.2.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_16.php\"},\"source\":[{\"filename\":\"php-5.2.16.tar.bz2\",\"name\":\"PHP 5.2.16 (tar.bz2)\",\"md5\":\"3b0bd012bd53bac9a5fefca61eccd5c6\",\"date\":\"16 December 2010\"},{\"filename\":\"php-5.2.16.tar.gz\",\"name\":\"PHP 5.2.16 (tar.gz)\",\"md5\":\"68f2c92b5b33d131b1ea70ece9fc40ad\",\"date\":\"16 December 2010\"}],\"date\":\"16 December 2010\",\"museum\":true},\"5.2.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_15.php\"},\"source\":[{\"filename\":\"php-5.2.15.tar.bz2\",\"name\":\"PHP 5.2.15 (tar.bz2)\",\"md5\":\"d4ccad187b12835024980a0cea362893\",\"date\":\"09 December 2010\"},{\"filename\":\"php-5.2.15.tar.gz\",\"name\":\"PHP 5.2.15 (tar.gz)\",\"md5\":\"dbbb2beed6b51e05d134744f137091a9\",\"date\":\"09 December 2010\"}],\"date\":\"09 December 2010\",\"museum\":true},\"5.3.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_3.php\"},\"source\":[{\"filename\":\"php-5.3.3.tar.bz2\",\"name\":\"PHP 5.3.3 (tar.bz2)\",\"md5\":\"21ceeeb232813c10283a5ca1b4c87b48\",\"date\":\"22 July 2010\"},{\"filename\":\"php-5.3.3.tar.gz\",\"name\":\"PHP 5.3.3 (tar.gz)\",\"md5\":\"5adf1a537895c2ec933fddd48e78d8a2\",\"date\":\"22 July 2010\"}],\"date\":\"22 July 2010\",\"museum\":true},\"5.2.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_14.php\"},\"source\":[{\"filename\":\"php-5.2.14.tar.bz2\",\"name\":\"PHP 5.2.14 (tar.bz2)\",\"md5\":\"21ceeeb232813c10283a5ca1b4c87b48\",\"date\":\"22 July 2010\"},{\"filename\":\"php-5.2.14.tar.gz\",\"name\":\"PHP 5.2.14 (tar.gz)\",\"md5\":\"5adf1a537895c2ec933fddd48e78d8a2\",\"date\":\"22 July 2010\"}],\"date\":\"22 July 2010\",\"museum\":true},\"5.3.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_2.php\"},\"source\":[{\"filename\":\"php-5.3.2.tar.bz2\",\"name\":\"PHP 5.3.2 (tar.bz2)\",\"md5\":\"46f500816125202c48a458d0133254a4\",\"date\":\"04 Mar 2010\"},{\"filename\":\"php-5.3.2.tar.gz\",\"name\":\"PHP 5.3.2 (tar.gz)\",\"md5\":\"4480d7c6d6b4a86de7b8ec8f0c2d1871\",\"date\":\"04 Mar 2010\"}],\"date\":\"04 Mar 2010\",\"museum\":true},\"5.2.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_13.php\"},\"source\":[{\"filename\":\"php-5.2.13.tar.bz2\",\"name\":\"PHP 5.2.13 (tar.bz2)\",\"md5\":\"eb4d0766dc4fb9667f05a68b6041e7d1\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-5.2.13.tar.gz\",\"name\":\"PHP 5.2.13 (tar.gz)\",\"md5\":\"cdf95cdc1ebccccce9c96653fd593dd4\",\"date\":\"25 Feb 2010\"}],\"windows\":[{\"filename\":\"php-5.2.13-Win32.zip\",\"name\":\"PHP 5.2.13 zip package\",\"md5\":\"3074bad887d613acf992ebdfea0e4465\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-5.2.13-win32-installer.msi\",\"name\":\"PHP 5.2.13 installer\",\"md5\":\"891e3262428851ebe71d5432a97be6d5\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.13-Win32.zip\",\"name\":\"PHP 5.2.13 Win32 Debug Pack\",\"md5\":\"e3382d5acbb527d21b768766f563a75d\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-5.2.13-nts-Win32.zip\",\"name\":\"PHP 5.2.13 Non-thread-safe zip package\",\"md5\":\"a7bd052e7a1413b743c07ae37171980d\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-5.2.13-nts-win32-installer.msi\",\"name\":\"PHP 5.2.13 Non-thread-safe installer\",\"md5\":\"d0e502db99565afde77b4f58f13fbad2\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-debug-pack-5.2.13-nts-Win32.zip\",\"name\":\"PHP 5.2.13 Non-thread-safe Win32 Debug Pack\",\"md5\":\"3693478973cd41752e2c0a1c3cddb997\",\"date\":\"25 Feb 2010\"}],\"date\":\"25 Feb 2010\",\"museum\":true},\"5.3.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_1.php\"},\"source\":[{\"filename\":\"php-5.3.1.tar.bz2\",\"name\":\"PHP 5.3.1 (tar.bz2)\",\"md5\":\"63e97ad450f0f7259e785100b634c797\",\"date\":\"19 Nov 2009\"},{\"filename\":\"php-5.3.1.tar.gz\",\"name\":\"PHP 5.3.1 (tar.gz)\",\"md5\":\"41fbb368d86acb13fc3519657d277681\",\"date\":\"19 Nov 2009\"}],\"date\":\"19 Nov 2009\",\"museum\":true},\"5.2.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_12.php\"},\"source\":[{\"filename\":\"php-5.2.12.tar.bz2\",\"name\":\"PHP 5.2.12 (tar.bz2)\",\"md5\":\"5b7077e366c7eeab34da31dd860a1923\",\"date\":\"17 December 2009\"},{\"filename\":\"php-5.2.12.tar.gz\",\"name\":\"PHP 5.2.12 (tar.gz)\",\"md5\":\"e6d6cc6570c77f60d8d4c99565d42ffd\",\"date\":\"17 December 2009\"}],\"windows\":[{\"filename\":\"php-5.2.12-Win32.zip\",\"name\":\"PHP 5.2.12 zip package\",\"md5\":\"e04f2944175dc19d7d007b5e889690b4\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.12-win32-installer.msi\",\"name\":\"PHP 5.2.12 installer\",\"md5\":\"df73529935bb855842e38afda8a295d7\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.12-Win32.zip\",\"name\":\"PHP 5.2.12 Win32 Debug Pack\",\"md5\":\"b21a5abb9e5bae4c657d0983986c4434\",\"date\":\"17 December 2009\"},{\"filename\":\"php-5.2.12-nts-Win32.zip\",\"name\":\"PHP 5.2.12 Non-thread-safe zip package\",\"md5\":\"ff0c67bb622c062f0820598e8d6bc12c\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.12-nts-win32-installer.msi\",\"name\":\"PHP 5.2.12 Non-thread-safe installer\",\"md5\":\"418656307a52c99f2175c748da31a9d8\",\"date\":\"17 December 2009\"},{\"filename\":\"php-debug-pack-5.2.12-nts-Win32.zip\",\"name\":\"PHP 5.2.12 Non-thread-safe Win32 Debug Pack\",\"md5\":\"e2620df81442ddefc0c3450be58540f9\",\"date\":\"17 December 2009\"}],\"date\":\"17 December 2009\",\"museum\":true},\"5.2.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_11.php\"},\"source\":[{\"filename\":\"php-5.2.11.tar.bz2\",\"name\":\"PHP 5.2.11 (tar.bz2)\",\"md5\":\"286bf34630f5643c25ebcedfec5e0a09\",\"date\":\"17 September 2009\"},{\"filename\":\"php-5.2.11.tar.gz\",\"name\":\"PHP 5.2.11 (tar.gz)\",\"md5\":\"0223d71f0d6987c06c54b7557ff47f1d\",\"date\":\"17 September 2009\"}],\"windows\":[{\"filename\":\"php-5.2.11-Win32.zip\",\"name\":\"PHP 5.2.11 zip package\",\"md5\":\"adac50ae1449b76f10ff1865bb4f94f1\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.11-win32-installer.msi\",\"name\":\"PHP 5.2.11 installer\",\"md5\":\"3cedc71fc90f88239d629cdb735d87c0\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.11-Win32.zip\",\"name\":\"PHP 5.2.11 Win32 Debug Pack\",\"md5\":\"38cb1b783dd08dff41f445b582d2ffed\",\"date\":\"17 September 2009\"},{\"filename\":\"php-5.2.11-nts-Win32.zip\",\"name\":\"PHP 5.2.11 Non-thread-safe zip package\",\"md5\":\"b724475450a13af4cd99c518fd495340\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.11-nts-win32-installer.msi\",\"name\":\"PHP 5.2.11 Non-thread-safe installer\",\"md5\":\"4fe1344093e26c2a51a82094bac131ad\",\"date\":\"17 September 2009\"},{\"filename\":\"php-debug-pack-5.2.11-nts-Win32.zip\",\"name\":\"PHP 5.2.11 Non-thread-safe Win32 Debug Pack\",\"md5\":\"19d026d6e4322dc64694010ae254e978\",\"date\":\"17 September 2009\"}],\"date\":\"17 September 2009\",\"museum\":true},\"5.3.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_0.php\"},\"source\":[{\"filename\":\"php-5.3.0.tar.bz2\",\"name\":\"PHP 5.3.0 (tar.bz2)\",\"md5\":\"846760cd655c98dfd86d6d97c3d964b0\",\"date\":\"30 June 2009\"},{\"filename\":\"php-5.3.0.tar.gz\",\"name\":\"PHP 5.3.0 (tar.gz)\",\"md5\":\"f4905eca4497da3f0beb5c96863196b4\",\"date\":\"30 June 2009\"}],\"date\":\"30 June 2009\",\"museum\":true},\"5.2.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_10.php\"},\"source\":[{\"filename\":\"php-5.2.10.tar.bz2\",\"name\":\"PHP 5.2.10 (tar.bz2)\",\"md5\":\"15c7b5a87f57332d6fc683528e28247b\",\"date\":\"18 June 2009\"},{\"filename\":\"php-5.2.10.tar.gz\",\"name\":\"PHP 5.2.10 (tar.gz)\",\"md5\":\"85753ba2909ac9fae5bca516adbda9e9\",\"date\":\"18 June 2009\"}],\"windows\":[{\"filename\":\"php-5.2.10-Win32.zip\",\"name\":\"PHP 5.2.10 zip package\",\"md5\":\"95ae7ccfcd05b6c81c93aa2e9e792f9e\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.10-win32-installer.msi\",\"name\":\"PHP 5.2.10 installer\",\"md5\":\"38b65bc57f64c66ff73f6f4e2db2cbb4\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.10-Win32.zip\",\"name\":\"PHP 5.2.10 Win32 Debug Pack\",\"md5\":\"f6bdea0e1f71ca46f78e78c86e86606\",\"date\":\"18 June 2009\"},{\"filename\":\"php-5.2.10-nts-Win32.zip\",\"name\":\"PHP 5.2.10 Non-thread-safe zip package\",\"md5\":\"b1c53e6f525133647e621a9c95b09e65\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.10-nts-win32-installer.msi\",\"name\":\"PHP 5.2.10 Non-thread-safe installer\",\"md5\":\"e341deb2872d3f8f4589593da88bbede\",\"date\":\"18 June 2009\"},{\"filename\":\"php-debug-pack-5.2.10-nts-Win32.zip\",\"name\":\"PHP 5.2.10 Non-thread-safe Win32 Debug Pack\",\"md5\":\"760a141c861a789f928b91c655c9d58\",\"date\":\"18 June 2009\"}],\"date\":\"18 June 2009\",\"museum\":true},\"5.2.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_9.php\"},\"source\":[{\"filename\":\"php-5.2.9.tar.bz2\",\"name\":\"PHP 5.2.9 (tar.bz2)\",\"md5\":\"280d6cda7f72a4fc6de42fda21ac2db7\",\"date\":\"26 February 2009\"},{\"filename\":\"php-5.2.9.tar.gz\",\"name\":\"PHP 5.2.9 (tar.gz)\",\"md5\":\"98b647561dc664adefe296106056cf11\",\"date\":\"26 February 2009\"}],\"windows\":[{\"filename\":\"php-5.2.9-2-Win32.zip\",\"name\":\"PHP 5.2.9-2 zip package\",\"md5\":\"316b9c81bab08e6547a730315ea2abfd\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-5.2.9-2-win32-installer.msi\",\"name\":\"PHP 5.2.9-2 installer\",\"md5\":\"e2162faa3467aed01651df4269aa6944\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-debug-pack-5.2.9-2-Win32.zip\",\"name\":\"PHP 5.2.9 Win32 Debug Pack\",\"md5\":\"b52e9a152e105c7391c832fdfe0fa06f\",\"date\":\"8 April 2009\"},{\"filename\":\"php-5.2.9-2-nts-Win32.zip\",\"name\":\"PHP 5.2.9-2 Non-thread-safe zip package\",\"md5\":\"8f85777941f7722fcbfe08e7de358f7d\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-5.2.9-2-nts-win32-installer.msi\",\"name\":\"PHP 5.2.9-2 Non-thread-safe installer\",\"md5\":\"4e7a1bec2b268d3d2d28cb89f629b680\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-debug-pack-5.2.9-2-nts-Win32.zip\",\"name\":\"PHP 5.2.9 Non-thread-safe Win32 Debug Pack\",\"md5\":\"4b7b695a257527f2896312f98dc30fd3\",\"date\":\"8 April 2009\"}],\"date\":\"26 February 2009\",\"museum\":true},\"5.2.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_8.php\"},\"source\":[{\"filename\":\"php-5.2.8.tar.bz2\",\"name\":\"PHP 5.2.8 (tar.bz2)\",\"md5\":\"8760a833cf10433d3e72271ab0d0eccf\",\"date\":\"08 December 2008\"},{\"filename\":\"php-5.2.8.tar.gz\",\"name\":\"PHP 5.2.8 (tar.gz)\",\"md5\":\"e748cace3cfecb66fb6de9a945f98e2a\",\"date\":\"08 December 2008\"}],\"windows\":[{\"filename\":\"php-5.2.8-Win32.zip\",\"name\":\"PHP 5.2.8 zip package\",\"md5\":\"71511834881753ea0906f2bca91632b9\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-5.2.8-win32-installer.msi\",\"name\":\"PHP 5.2.8 installer\",\"md5\":\"159def484800411060a9eacccafd2253\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.8-Win32.zip\",\"name\":\"PHP 5.2.8 Win32 Debug Pack\",\"md5\":\"fabc6e79c1c66dc80320165336b5ed54\",\"date\":\"08 December 2008\"},{\"filename\":\"php-5.2.8-nts-Win32.zip\",\"name\":\"PHP 5.2.8 Non-thread-safe zip package\",\"md5\":\"207abb02054c5ce996bc350352224acc\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-5.2.8-nts-win32-installer.msi\",\"name\":\"PHP 5.2.8 Non-thread-safe installer\",\"md5\":\"d4490964818542c416644b3d67f5b350\",\"date\":\"08 December 2008\"},{\"filename\":\"php-debug-pack-5.2.8-nts-Win32.zip\",\"name\":\"PHP 5.2.8 Non-thread-safe Win32 Debug Pack\",\"md5\":\"240566ce66761ab076ae9901547b7ce2\",\"date\":\"08 December 2008\"}],\"date\":\"08 December 2008\",\"museum\":true},\"5.2.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_6.php\"},\"source\":[{\"filename\":\"php-5.2.6.tar.bz2\",\"name\":\"PHP 5.2.6 (tar.bz2)\",\"md5\":\"7380ffecebd95c6edb317ef861229ebd\",\"date\":\"01 May 2008\"},{\"filename\":\"php-5.2.6.tar.gz\",\"name\":\"PHP 5.2.6 (tar.gz)\",\"md5\":\"1720f95f26c506338f0dba3a51906bbd\",\"date\":\"01 May 2008\"}],\"windows\":[{\"filename\":\"php-5.2.6-Win32.zip\",\"name\":\"PHP 5.2.6 zip package\",\"md5\":\"c7e5010114f58282858d7d78e6509cdc\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-win32-installer.msi\",\"name\":\"PHP 5.2.6 installer\",\"md5\":\"94e551037e7c9c056f90179f351c0560\",\"date\":\"6 May 2008\",\"note\":\"Update May 6th: Added missing XSL and IMAP extension\"},{\"filename\":\"pecl-5.2.6-Win32.zip\",\"name\":\"PECL 5.2.6 Win32 binaries\",\"md5\":\"f0e7b245589d705eef731b51142d5def\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-debug-pack-5.2.6-Win32.zip\",\"name\":\"PHP 5.2.6 Win32 Debug Pack\",\"md5\":\"24dde2726e3e0cefbb83c0c375ea1f84\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-nts-Win32.zip\",\"name\":\"PHP 5.2.6 Non-thread-safe zip package\",\"md5\":\"1d3661a086f352ec7e318e7c2eeba4de\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-nts-win32-installer.msi\",\"name\":\"PHP 5.2.6 Non-thread-safe installer\",\"md5\":\"96a2326b16bda488734d3956a48201b7\",\"date\":\"6 May 2008\",\"note\":\"Update May 6th: Added missing XSL and IMAP extension\"},{\"filename\":\"php-debug-pack-5.2.6-nts-Win32.zip\",\"name\":\"PHP 5.2.6 Win32 Debug Pack\",\"md5\":\"4c1fd96c8a78e1896d37da81467ff70d\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"pecl-5.2.6-nts-Win32.zip\",\"name\":\"PECL 5.2.6 Non-thread-safe Win32 binaries\",\"md5\":\"62b102221920092dfefc08756aa3e926\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"}],\"date\":\"01 May 2008\",\"museum\":true},\"5.2.5\":{\"date\":\"08 November 2007\",\"source\":[{\"filename\":\"php-5.2.5.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"1fe14ca892460b09f06729941a1bb605\"},{\"filename\":\"php-5.2.5.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"61a0e1661b70760acc77bc4841900b7a\"}],\"windows\":[{\"filename\":\"php-5.2.5-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"a1e31c0d872ab030a2256b1cd6d3b7d1\"},{\"filename\":\"pecl-5.2.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.5\",\"md5\":\"a3553b61c9332d08a5044cf9bf89f2df\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_5.php\"},\"museum\":true},\"5.2.4\":{\"date\":\"30 August 2007\",\"source\":[{\"filename\":\"php-5.2.4.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"55c97a671fdabf462cc7a82971a656d2\"},{\"filename\":\"php-5.2.4.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"0826e231c3148b29fd039d7a8c893ad3\"}],\"windows\":[{\"filename\":\"php-5.2.4-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"979b8a305b028b296b97ed72322026b2\"},{\"filename\":\"pecl-5.2.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.4\",\"md5\":\"dd98dfe607ceb98e727c394d5bd679fb\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_4.php\"},\"museum\":true},\"5.2.3\":{\"date\":\"31 May 2007\",\"source\":[{\"filename\":\"php-5.2.3.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"eb50b751c8e1ced05bd012d5a0e4dec3\"},{\"filename\":\"php-5.2.3.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"df79b04d63fc4c1ccb6d8ea58a9cf3ac\"}],\"windows\":[{\"filename\":\"php-5.2.3-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"ff6e5dc212823009e68f26d66d85cbac\"},{\"filename\":\"pecl-5.2.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.3\",\"md5\":\"0480ffaf5a5333e83d90d75cece54748\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_3.php\"},\"museum\":true},\"5.2.2\":{\"date\":\"03 May 2007\",\"source\":[{\"filename\":\"php-5.2.2.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"d084337867d70b50a10322577be0e44e\"},{\"filename\":\"php-5.2.2.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"7a920d0096900b2b962b21dc5c55fe3c\"}],\"windows\":[{\"filename\":\"php-5.2.2-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"634cf45c34f80dfb1284cabf1bbb1417\"},{\"filename\":\"pecl-5.2.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.2\",\"md5\":\"5d206368799dfbac983d83954328ae3a\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_2.php\"},\"museum\":true},\"5.2.1\":{\"date\":\"08 Feb 2007\",\"source\":[{\"filename\":\"php-5.2.1.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"261218e3569a777dbd87c16a15f05c8d\"},{\"filename\":\"php-5.2.1.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"604eaee2b834bb037d2c83e53e300d3f\"}],\"windows\":[{\"filename\":\"php-5.2.1-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"682dd66fb03c7dd24c522f474e1b04b6\"},{\"filename\":\"pecl-5.2.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.1\",\"md5\":\"dc8b394146faf7effa6f26df02e8e534\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_1.php\"},\"museum\":true},\"5.2.0\":{\"date\":\"02 Nov 2006\",\"source\":[{\"filename\":\"php-5.2.0.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"e6029fafcee029edcfa2ceed7a005333\"},{\"filename\":\"php-5.2.0.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"52d7e8b3d8d7573e75c97340f131f988\"}],\"windows\":[{\"filename\":\"php-5.2.0-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"910734e96f41190020272d80b82ce553\"},{\"filename\":\"pecl-5.2.0-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.0\",\"md5\":\"638f5997884ae3ce35d2b3ec12f399b2\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_0.php\"},\"museum\":true},\"5.1.6\":{\"date\":\"24 Aug 2006\",\"source\":[{\"filename\":\"php-5.1.6.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.6.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.6-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"pecl-5.1.6-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.6\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_6.php\"},\"museum\":true},\"5.1.5\":{\"date\":\"17 Aug 2006\",\"source\":[{\"filename\":\"php-5.1.5.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.5.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.5-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.5\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_5.php\"},\"museum\":true},\"5.1.4\":{\"date\":\"04 May 2006\",\"source\":[{\"filename\":\"php-5.1.4.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.4.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.4-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.4-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.4\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_4.php\"},\"museum\":true},\"5.1.3\":{\"date\":\"02 May 2006\",\"source\":[{\"filename\":\"php-5.1.3.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.3-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.3-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.3\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_3.php\"},\"museum\":true},\"5.1.2\":{\"date\":\"12 Jan 2006\",\"source\":[{\"filename\":\"php-5.1.2.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.2-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.2-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.2\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_2.php\"},\"museum\":true},\"5.1.1\":{\"date\":\"28 Nov 2005\",\"source\":[{\"filename\":\"php-5.1.1.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.1-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.1-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.1\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_1.php\"},\"museum\":true},\"5.1.0\":{\"date\":\"24 Nov 2005\",\"source\":[{\"filename\":\"php-5.1.0.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.0-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.0-installer.exe\",\"name\":\"Windows installer\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_0.php\"},\"museum\":true},\"5.0.5\":{\"date\":\"05 Sep 2005\",\"source\":[{\"filename\":\"php-5.0.5.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.5-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.5-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.5\"}],\"museum\":true},\"5.0.4\":{\"date\":\"31 Mar 2005\",\"source\":[{\"filename\":\"php-5.0.4.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.4-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.4-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.4\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/55\"},\"museum\":true},\"5.0.3\":{\"date\":\"15 Dec 2004\",\"source\":[{\"filename\":\"php-5.0.3.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.3-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.3-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.3\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/54\"},\"museum\":true},\"5.0.2\":{\"date\":\"23 Sep 2004\",\"source\":[{\"filename\":\"php-5.0.2.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.2-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.2-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.2\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/53\"},\"museum\":true},\"5.0.1\":{\"date\":\"12 Aug 2004\",\"source\":[{\"filename\":\"php-5.0.1.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.1-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"pecl-5.0.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.1\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/51\"},\"museum\":true},\"5.0.0\":{\"date\":\"13 July 2004\",\"source\":[{\"filename\":\"php-5.0.0.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.0-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.0-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.0-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.0\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/50\"},\"museum\":true}}" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=7&max=100", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:52:47 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:52:47 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:52:47 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff80903\"" + }, + "body": "{\"7.4.0\":{\"announcement\":true,\"tags\":[],\"date\":\"28 Nov 2019\",\"source\":[{\"filename\":\"php-7.4.0.tar.bz2\",\"name\":\"PHP 7.4.0 (tar.bz2)\",\"sha256\":\"bf206be96a39e643180013df39ddcd0493966692a2422c4b7d3355b6a15a01c0\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.gz\",\"name\":\"PHP 7.4.0 (tar.gz)\",\"sha256\":\"004a1a8176176ee1b5c112e73d705977507803f425f9e48cb4a84f42b22abf22\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.xz\",\"name\":\"PHP 7.4.0 (tar.xz)\",\"sha256\":\"9bb751b20e5d6cc1ea9b1ebf23ef2d5f07f99b2d9cc417bf1d70c04f8b20ec42\",\"date\":\"28 Nov 2019\"}]},\"7.3.12\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.3.12.tar.bz2\",\"name\":\"PHP 7.3.12 (tar.bz2)\",\"sha256\":\"d317b029f991410578cc38ba4b76c9f764ec29c67e7124e1fec57bceb3ad8c39\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.gz\",\"name\":\"PHP 7.3.12 (tar.gz)\",\"sha256\":\"d617e5116f8472a628083f448ebe4afdbc4ac013c9a890b08946649dcbe61b34\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.xz\",\"name\":\"PHP 7.3.12 (tar.xz)\",\"sha256\":\"aafe5e9861ad828860c6af8c88cdc1488314785962328eb1783607c1fdd855df\",\"date\":\"21 Nov 2019\"}]},\"7.2.25\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.2.25.tar.bz2\",\"name\":\"PHP 7.2.25 (tar.bz2)\",\"sha256\":\"7cb336b1ed0f9d87f46bbcb7b3437ee252d0d5060c0fb1a985adb6cbc73a6b9e\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.gz\",\"name\":\"PHP 7.2.25 (tar.gz)\",\"sha256\":\"b2cb1bd46454d33b2c65c2fd559f464cd14e57dd47b953adf5caa77fdf0de52b\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.xz\",\"name\":\"PHP 7.2.25 (tar.xz)\",\"sha256\":\"746efeedc38e6ff7b1ec1432440f5fa801537adf6cd21e4afb3f040e5b0760a9\",\"date\":\"21 Nov 2019\"}]},\"7.1.33\":{\"announcement\":true,\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.1.33.tar.bz2\",\"name\":\"PHP 7.1.33 (tar.bz2)\",\"sha256\":\"95a5e5f2e2b79b376b737a82d9682c91891e60289fa24183463a2aca158f4f4b\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.gz\",\"name\":\"PHP 7.1.33 (tar.gz)\",\"sha256\":\"0055f368ffefe51d5a4483755bd17475e88e74302c08b727952831c5b2682ea2\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.xz\",\"name\":\"PHP 7.1.33 (tar.xz)\",\"sha256\":\"bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968\",\"date\":\"24 Oct 2019\"}]},\"7.2.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_24.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.2.24.tar.bz2\",\"name\":\"PHP 7.2.24 (tar.bz2)\",\"sha256\":\"a079934db63068bbcc9bbd2e7b916b9891fc97719862697e5f954c639984f603\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.gz\",\"name\":\"PHP 7.2.24 (tar.gz)\",\"sha256\":\"01baf7a34c856d2c552121fbad7296a8cde18389ce83db32f18252bc1cee4dd6\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.xz\",\"name\":\"PHP 7.2.24 (tar.xz)\",\"sha256\":\"a6a6cc03388060aa5f8f9e45799b72bce1c7ed7b9d7b3f1187787202aad91d25\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.3.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_11.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.3.11.tar.bz2\",\"name\":\"PHP 7.3.11 (tar.bz2)\",\"sha256\":\"92d1ff4b13c7093635f1ec338a5e6891ca99b10e65fbcadd527e5bb84d11b5e7\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.gz\",\"name\":\"PHP 7.3.11 (tar.gz)\",\"sha256\":\"8f385f5bdf9193791f6c0f6303f518f3c324b6655ac108fdb3c426da7f3cf4d4\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.xz\",\"name\":\"PHP 7.3.11 (tar.xz)\",\"sha256\":\"657cf6464bac28e9490c59c07a2cf7bb76c200f09cfadf6e44ea64e95fa01021\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.1.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_32.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.32.tar.bz2\",\"name\":\"PHP 7.1.32 (tar.bz2)\",\"sha256\":\"d7c7a1adddc75ac17f63349e966db25930b6b3ce736640349bea9e10909cab7a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.gz\",\"name\":\"PHP 7.1.32 (tar.gz)\",\"sha256\":\"6e51a2fc610352438b2a1c40310468a1e2b5baf2fff43be77f9f408a9111590c\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.xz\",\"name\":\"PHP 7.1.32 (tar.xz)\",\"sha256\":\"7f38b5bdaae3184d325a8c70e86c010afcc33651d15faafe277a0db6d2ea2741\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_10.php\"},\"tags\":[\"security\"],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.3.10.tar.bz2\",\"name\":\"PHP 7.3.10 (tar.bz2)\",\"sha256\":\"506dd871c0fb8f00f872f53dd3b1dfa5f23a9edb4dfc521e5669c78a78c45448\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.gz\",\"name\":\"PHP 7.3.10 (tar.gz)\",\"sha256\":\"fb670723a9b8fda31c89529f27e0dda289d8af4b6ce9f152c8010876639c0fb4\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.xz\",\"name\":\"PHP 7.3.10 (tar.xz)\",\"sha256\":\"42f00a15419e05771734b7159c8d39d639b8a5a6770413adfa2615f6f923d906\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_23.php\"},\"tags\":[],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.2.23.tar.bz2\",\"name\":\"PHP 7.2.23 (tar.bz2)\",\"sha256\":\"a17af3643d29d7e730f977e3776dc3e325d5ca00b361e41dbfc2368ebad5430d\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.gz\",\"name\":\"PHP 7.2.23 (tar.gz)\",\"sha256\":\"b32b426c84ff45154d6c11f00aff433bcac831a5c0a09bf0297075eefaea8fcc\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.xz\",\"name\":\"PHP 7.2.23 (tar.xz)\",\"sha256\":\"74e045ec8ff26290db6a3688826dcdf43b87bc509e508e9cb76dab742804ca14\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_22.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.22.tar.bz2\",\"name\":\"PHP 7.2.22 (tar.bz2)\",\"sha256\":\"c10a9883b586ada5ef1149f2571625b27efdcc3e70a04fbb9121979633b0f08a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.gz\",\"name\":\"PHP 7.2.22 (tar.gz)\",\"sha256\":\"6e2ccc77484c27971d4550b7071a57b79bc910bfb2d4a74a57ae2c18b78c3dc7\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.xz\",\"name\":\"PHP 7.2.22 (tar.xz)\",\"sha256\":\"eb597fcf8dc0a6211a42a6346de4f63ee166829a6df6d8ed767fe14be8d1c3a3\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_9.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.9.tar.bz2\",\"name\":\"PHP 7.3.9 (tar.bz2)\",\"sha256\":\"a39c9709a8c9eb7ea8ac4933ef7a78b92f7e5735a405c8b8e42ee39541d963c4\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.gz\",\"name\":\"PHP 7.3.9 (tar.gz)\",\"sha256\":\"5ecc1b1ad7228ed2e99a970c45358871644fcab1d9fd079a7b129326a7bde42d\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.xz\",\"name\":\"PHP 7.3.9 (tar.xz)\",\"sha256\":\"4007f24a39822bef2805b75c625551d30be9eeed329d52eb0838fa5c1b91c1fd\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.1.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_31.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.31.tar.bz2\",\"name\":\"PHP 7.1.31 (tar.bz2)\",\"sha256\":\"767573c2b732e78cc647602ec61fc948941a941a4071db59b522cf5e076825dd\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.gz\",\"name\":\"PHP 7.1.31 (tar.gz)\",\"sha256\":\"ea0558735653b9ce63e9cea41dd8f0d0b90dba6c39d39dd9a6aad5cc58b0bdfc\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.xz\",\"name\":\"PHP 7.1.31 (tar.xz)\",\"sha256\":\"5cb53b63592ec4361f0ab12c684b10430344821a024881a387ead4299df78fa5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.2.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_21.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.21.tar.bz2\",\"name\":\"PHP 7.2.21 (tar.bz2)\",\"sha256\":\"343183a1be8336670171885c761d57ffcae99cbbcf1db43da7cb5565056b14ef\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.gz\",\"name\":\"PHP 7.2.21 (tar.gz)\",\"sha256\":\"8327682bee4a8fd2edf5bbfcc393d986b945bec433fc74458d05e766701b313c\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.xz\",\"name\":\"PHP 7.2.21 (tar.xz)\",\"sha256\":\"de06aff019d8f5079115795bd7d8eedd4cd03daecb62d58abb18f492dd995c95\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.3.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_8.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.8.tar.bz2\",\"name\":\"PHP 7.3.8 (tar.bz2)\",\"sha256\":\"d566c630175d9fa84a98d3c9170ec033069e9e20c8d23dea49ae2a976b6c76f5\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.gz\",\"name\":\"PHP 7.3.8 (tar.gz)\",\"sha256\":\"31af3eff3337fb70733c9b02a3444c3dae662ecab20aeec7fdc3c42e22071490\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.xz\",\"name\":\"PHP 7.3.8 (tar.xz)\",\"sha256\":\"f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.1.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_30.php\"},\"tags\":[\"security\"],\"date\":\"30 May 2019\",\"source\":[{\"filename\":\"php-7.1.30.tar.bz2\",\"name\":\"PHP 7.1.30 (tar.bz2)\",\"sha256\":\"664850774fca19d2710b9aa35e9ae91214babbde9cd8d27fd3479cc97171ecb3\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.gz\",\"name\":\"PHP 7.1.30 (tar.gz)\",\"sha256\":\"a604edf85d5dfc28e6ff3016dad3954c50b93db69afc42295178b4fdf42e026c\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.xz\",\"name\":\"PHP 7.1.30 (tar.xz)\",\"sha256\":\"6310599811536dbe87e4bcf212bf93196bdfaff519d0c821e4c0068efd096a7c\",\"date\":\"30 May 2019\"}],\"museum\":false},\"7.2.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_20.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.2.20.tar.bz2\",\"name\":\"PHP 7.2.20 (tar.bz2)\",\"sha256\":\"9fb829e54e54c483ae8892d1db0f7d79115cc698f2f3591a8a5e58d9410dca84\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.gz\",\"name\":\"PHP 7.2.20 (tar.gz)\",\"sha256\":\"d1dbf6f299514c9aa55b2995928b798b27c21811a0447f0688993cdf36be0749\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.xz\",\"name\":\"PHP 7.2.20 (tar.xz)\",\"sha256\":\"eff09da83e235c2ba25c85deea1d4f663bd71d50fd51ad11e1acebe26d733494\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.3.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_7.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.3.7.tar.bz2\",\"name\":\"PHP 7.3.7 (tar.bz2)\",\"sha256\":\"c3608fa7114642725854119ccffe722f42fc7c31e5e4c00d5cb4cb1a0d16bf18\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.gz\",\"name\":\"PHP 7.3.7 (tar.gz)\",\"sha256\":\"4230bbc862df712b013369de94b131eddea1e5e946a8c5e286b82d441c313328\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.xz\",\"name\":\"PHP 7.3.7 (tar.xz)\",\"sha256\":\"ba067200ba649956b3a92ec8b71a6ed8ce8a099921212443c1bcf3260a29274c\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.2.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/19.php\"},\"source\":[{\"filename\":\"php-7.2.19.tar.bz2\",\"name\":\"PHP 7.2.19 (tar.bz2)\",\"sha256\":\"ebd0b1f375fe07ed4925acc213d2f5ef76a61bd5de174e7b666b98421a90a099\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.gz\",\"name\":\"PHP 7.2.19 (tar.gz)\",\"sha256\":\"1cd2266a058f3224d3cba594540045542606996f026eeef96747f27f6b3d22b6\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.xz\",\"name\":\"PHP 7.2.19 (tar.xz)\",\"sha256\":\"4ffa2404a88d60e993a9fe69f829ebec3eb1e006de41b6048ce5e91bbeaa9282\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_6.php\"},\"source\":[{\"filename\":\"php-7.3.6.tar.bz2\",\"name\":\"PHP 7.3.6 (tar.bz2)\",\"sha256\":\"1e5ac8700154835c0910e3a814517da9b87bb4a82cc7011fea1a82096b6f6f77\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.gz\",\"name\":\"PHP 7.3.6 (tar.gz)\",\"sha256\":\"72fbf223ff8659a61eed08eebffb4ede0256e7a69d2151ae24affa5377b70bb8\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.xz\",\"name\":\"PHP 7.3.6 (tar.xz)\",\"sha256\":\"fefc8967daa30ebc375b2ab2857f97da94ca81921b722ddac86b29e15c54a164\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_29.php\"},\"source\":[{\"filename\":\"php-7.1.29.tar.bz2\",\"name\":\"PHP 7.1.29 (tar.bz2)\",\"sha256\":\"8528d17efe82662dc740d96ddb32217f4e161a597d709f19571b0c82fbb88335\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.gz\",\"name\":\"PHP 7.1.29 (tar.gz)\",\"sha256\":\"bdd0e1707100c8b87f1be516f5b95a26e3eb4114d4316eaf0663bf292ead35bb\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.xz\",\"name\":\"PHP 7.1.29 (tar.xz)\",\"sha256\":\"b9a9b094687edc2d9c9553d5531e38e249b569127cf3b32fe1c84280509746fb\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_18.php\"},\"source\":[{\"filename\":\"php-7.2.18.tar.bz2\",\"name\":\"PHP 7.2.18 (tar.bz2)\",\"sha256\":\"fa1a27b12d1173207e81e798a48d4a7f77ba897f5c5200ac0b5d62aa8b4c4b72\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.gz\",\"name\":\"PHP 7.2.18 (tar.gz)\",\"sha256\":\"48aeb291814f3cd3ba03c52e79e8e61896d0271fd4c228198f80a072e568f84b\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.xz\",\"name\":\"PHP 7.2.18 (tar.xz)\",\"sha256\":\"9970dbb3ab1298c9e6aac54bebfa841c8ad14b18eead65594a68fa841364cb8d\",\"date\":\"02 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_5.php\"},\"source\":[{\"filename\":\"php-7.3.5.tar.bz2\",\"name\":\"PHP 7.3.5 (tar.bz2)\",\"sha256\":\"4380b80ef98267c3823c3416eb05f7729ba7a33de6b3d14ec96013215d62c35e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.gz\",\"name\":\"PHP 7.3.5 (tar.gz)\",\"sha256\":\"c953749b7f3310a3a74f920ef698f6d1c04636d11656ac9ffb3ab10d34e30e1e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.xz\",\"name\":\"PHP 7.3.5 (tar.xz)\",\"sha256\":\"e1011838a46fd4a195c8453b333916622d7ff5bce4aca2d9d99afac142db2472\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_28.php\"},\"source\":[{\"filename\":\"php-7.1.28.tar.bz2\",\"name\":\"PHP 7.1.28 (tar.bz2)\",\"sha256\":\"739e8733fe1fc5e69e6226da6dba7a31bacfd2e3871ad2c97a792638f22c54c9\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.gz\",\"name\":\"PHP 7.1.28 (tar.gz)\",\"sha256\":\"4df587338d4c5dfe27050c7ac72a6b7583ecaee9d3fbfc03427667a86e081999\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.xz\",\"name\":\"PHP 7.1.28 (tar.xz)\",\"sha256\":\"45131497ec0a947e3f9145c000e8fcc1f86b46518ee3f6810d80efa2d39521e2\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_17.php\"},\"source\":[{\"filename\":\"php-7.2.17.tar.bz2\",\"name\":\"PHP 7.2.17 (tar.bz2)\",\"sha256\":\"91a811ab6f6d7acb312159cf6b0a3cffe968676fdebf042e9253245cc6094f75\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.gz\",\"name\":\"PHP 7.2.17 (tar.gz)\",\"sha256\":\"e1c6c2553cdb7edbfa65b89e259690ed01b31b12d57349c90b6ed00a410f62b5\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.xz\",\"name\":\"PHP 7.2.17 (tar.xz)\",\"sha256\":\"a3e5f51a9ae08813b3925bea3a4de02cd4906fcccf75646e267a213bb63bcf84\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_4.php\"},\"source\":[{\"filename\":\"php-7.3.4.tar.bz2\",\"name\":\"PHP 7.3.4 (tar.bz2)\",\"sha256\":\"2e2c3d8212c83649e443b61efffbd03df4b9edd0f9c7a679081fe4cb2da12b78\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.gz\",\"name\":\"PHP 7.3.4 (tar.gz)\",\"sha256\":\"dd41ecf43fe1172030f41d2581909457a0af7bd137a057c3874e0b0f3c2e8761\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.xz\",\"name\":\"PHP 7.3.4 (tar.xz)\",\"sha256\":\"6fe79fa1f8655f98ef6708cde8751299796d6c1e225081011f4104625b923b83\",\"date\":\"04 Apr 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_27.php\"},\"source\":[{\"filename\":\"php-7.1.27.tar.bz2\",\"name\":\"PHP 7.1.27 (tar.bz2)\",\"sha256\":\"dad7ecd30941911528e471c555a01911a68aa9219696bfc1e005f8b669f4ec4b\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.gz\",\"name\":\"PHP 7.1.27 (tar.gz)\",\"sha256\":\"353b9ed341048388cc95e6fa6dab587eee44a3d4d297989aa297936090864357\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.xz\",\"name\":\"PHP 7.1.27 (tar.xz)\",\"sha256\":\"25672a3a6060eff37c865a0c84e284da50b7ee8cd57174c78f0ae244b90a96a8\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_16.php\"},\"source\":[{\"filename\":\"php-7.2.16.tar.bz2\",\"name\":\"PHP 7.2.16 (tar.bz2)\",\"sha256\":\"2c0ad10053d58694cd14323248ecd6d9ba71d2733d160973c356ad01d09e7f38\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.gz\",\"name\":\"PHP 7.2.16 (tar.gz)\",\"sha256\":\"fb95e0bb69caba1dfd3bbac4eeef7a0485e5ea3d6191d35ad5657e18243aa02d\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.xz\",\"name\":\"PHP 7.2.16 (tar.xz)\",\"sha256\":\"7d91ed3c1447c6358a3d53f84599ef854aca4c3622de7435e2df115bf196e482\",\"date\":\"07 Mar 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_3.php\"},\"source\":[{\"filename\":\"php-7.3.3.tar.bz2\",\"name\":\"PHP 7.3.3 (tar.bz2)\",\"sha256\":\"61969e943adfea79701a34b8e701edd3f95be829d16601a4aabeb05f83023ce6\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.gz\",\"name\":\"PHP 7.3.3 (tar.gz)\",\"sha256\":\"9bde40cbf8608ae9c595a6643a02cf0c692c131e2b3619af3fd2af8425d8e677\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.xz\",\"name\":\"PHP 7.3.3 (tar.xz)\",\"sha256\":\"6bb03e79a183d0cb059a6d117bbb2e0679cab667fb713a13c6a16f56bebab9b3\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_26.php\"},\"source\":[{\"filename\":\"php-7.1.26.tar.bz2\",\"name\":\"PHP 7.1.26 (tar.bz2)\",\"sha256\":\"5b351ca86bc7e4600778aaf1d61ab9e4e38864efa86ab4cc4d5b02ea7f542ae6\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.gz\",\"name\":\"PHP 7.1.26 (tar.gz)\",\"sha256\":\"069315d3c3f964fd165bbbb3c2fc56005813e2cf97bed05055318dcc4e775328\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.xz\",\"name\":\"PHP 7.1.26 (tar.xz)\",\"sha256\":\"10b7ae634c12852fae52a22dc2262e5f12418ad59fd20da2d00d71a212235d31\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_15.php\"},\"source\":[{\"filename\":\"php-7.2.15.tar.bz2\",\"name\":\"PHP 7.2.15 (tar.bz2)\",\"sha256\":\"c93e7616946a463911818c7e9f9e21276c7793fb8c7cb15877188dd0546d0554\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.gz\",\"name\":\"PHP 7.2.15 (tar.gz)\",\"sha256\":\"9b13bde9f5a32d6f6bdb8b911bb55bb818d0c4073538f8dc48aa2deb560f55a3\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.xz\",\"name\":\"PHP 7.2.15 (tar.xz)\",\"sha256\":\"75e90012faef700dffb29311f3d24fa25f1a5e0f70254a9b8d5c794e25e938ce\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false},\"7.3.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_2.php\"},\"source\":[{\"filename\":\"php-7.3.2.tar.bz2\",\"name\":\"PHP 7.3.2 (tar.bz2)\",\"sha256\":\"946f50dacbd2f61e643bb737021cbe8b1816e780ee7ad3e0cd999a1892ab0add\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.gz\",\"name\":\"PHP 7.3.2 (tar.gz)\",\"sha256\":\"4597294b00edc1c63a021b6c7838eb43384f62eeb9e392f0b91c38a3c090f499\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.xz\",\"name\":\"PHP 7.3.2 (tar.xz)\",\"sha256\":\"010b868b4456644ae227d05ad236c8b0a1f57dc6320e7e5ad75e86c5baf0a9a8\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false},\"7.2.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_14.php\"},\"source\":[{\"filename\":\"php-7.2.14.tar.bz2\",\"name\":\"PHP 7.2.14 (tar.bz2)\",\"sha256\":\"f56132d248c7bf1e0efc8a680a4b598d6ff73fc6b9c84b5d7b539ad8db7a6597\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.gz\",\"name\":\"PHP 7.2.14 (tar.gz)\",\"sha256\":\"87e13d80b0c3a66bd463d1cb47dc101335884a0d192ab924f547f8aed7f70c08\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.xz\",\"name\":\"PHP 7.2.14 (tar.xz)\",\"sha256\":\"ee3f1cc102b073578a3c53ba4420a76da3d9f0c981c02b1664ae741ca65af84f\",\"date\":\"10 Jan 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_1.php\"},\"source\":[{\"filename\":\"php-7.3.1.tar.bz2\",\"name\":\"PHP 7.3.1 (tar.bz2)\",\"sha256\":\"afef2b0cd7f2641274a1a0aabe67e30f2334970d7c530382dfa9d79cfe74388e\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.gz\",\"name\":\"PHP 7.3.1 (tar.gz)\",\"sha256\":\"8006211f7a041dde22fffedc416d142e0ebf22066014077ca936d7e6f655ead5\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.xz\",\"name\":\"PHP 7.3.1 (tar.xz)\",\"sha256\":\"cfe93e40be0350cd53c4a579f52fe5d8faf9c6db047f650a4566a2276bf33362\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_33.php\"},\"source\":[{\"filename\":\"php-7.0.33.tar.bz2\",\"name\":\"PHP 7.0.33 (tar.bz2)\",\"sha256\":\"4933ea74298a1ba046b0246fe3771415c84dfb878396201b56cb5333abe86f07\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.gz\",\"name\":\"PHP 7.0.33 (tar.gz)\",\"sha256\":\"d71a6ecb6b13dc53fed7532a7f8f949c4044806f067502f8fb6f9facbb40452a\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.xz\",\"name\":\"PHP 7.0.33 (tar.xz)\",\"sha256\":\"ab8c5be6e32b1f8d032909dedaaaa4bbb1a209e519abb01a52ce3914f9a13d96\",\"date\":\"06 Dec 2018\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_25.php\"},\"source\":[{\"filename\":\"php-7.1.25.tar.bz2\",\"name\":\"PHP 7.1.25 (tar.bz2)\",\"sha256\":\"002cdc880ac7cfaede2c389204d366108847db0f3ac72edf1ba95c0577f9aaac\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.gz\",\"name\":\"PHP 7.1.25 (tar.gz)\",\"sha256\":\"7dc40e202140e8b4fb3d992c15a68d98dc06b805e6b218497d260abbe51f5958\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.xz\",\"name\":\"PHP 7.1.25 (tar.xz)\",\"sha256\":\"0fd8dad1903cd0b2d615a1fe4209f99e53b7292403c8ffa1919c0f4dd1eada88\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_0.php\"},\"source\":[{\"filename\":\"php-7.3.0.tar.bz2\",\"name\":\"PHP 7.3.0 (tar.bz2)\",\"sha256\":\"7a267daec9969a997c5c8028c350229646748e0fcc71e2f2dbb157ddcee87c67\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.gz\",\"name\":\"PHP 7.3.0 (tar.gz)\",\"sha256\":\"391bd0f91d9bdd01ab47ef9607bad8c65e35bc9bb098fb7777b2556e2c847b11\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.xz\",\"name\":\"PHP 7.3.0 (tar.xz)\",\"sha256\":\"7d195cad55af8b288c3919c67023a14ff870a73e3acc2165a6d17a4850a560b5\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"7.2.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_13.php\"},\"source\":[{\"filename\":\"php-7.2.13.tar.bz2\",\"name\":\"PHP 7.2.13 (tar.bz2)\",\"sha256\":\"5b4a46fb76491bcd3eee1213773382e570f6ecf9b22d623b24e2822298b3e92d\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.gz\",\"name\":\"PHP 7.2.13 (tar.gz)\",\"sha256\":\"e563cee406b1ec96649c22ed2b35796cfe4e9aa9afa6eab6be4cf2fe5d724744\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.xz\",\"name\":\"PHP 7.2.13 (tar.xz)\",\"sha256\":\"14b0429abdb46b65c843e5882c9a8c46b31dfbf279c747293b8ab950c2644a4b\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_32.php\"},\"source\":[{\"filename\":\"php-7.0.32.tar.bz2\",\"name\":\"PHP 7.0.32 (tar.bz2)\",\"sha256\":\"56e8d8cf9c08178afa8663589805f83bdb01634efd98131977038e24066492e1\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.gz\",\"name\":\"PHP 7.0.32 (tar.gz)\",\"sha256\":\"08d13389f611ec55f3b9164347a97e410099238a3dd85946e556a288ce366fbe\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.xz\",\"name\":\"PHP 7.0.32 (tar.xz)\",\"sha256\":\"ff6f62afeb32c71b3b89ecbd42950ef6c5e0c329cc6e1c58ffac47e6f1f883c4\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_24.php\"},\"source\":[{\"filename\":\"php-7.1.24.tar.bz2\",\"name\":\"PHP 7.1.24 (tar.bz2)\",\"sha256\":\"66de24e73c7f6006f090c1b187d6b218c8fa6a513acca4ff5c14b695a7391e0b\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.gz\",\"name\":\"PHP 7.1.24 (tar.gz)\",\"sha256\":\"1e780b1af3eeb8fba9e5af6205c960184a0c3a0ef091aaa192e7b7d6b67405d0\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.xz\",\"name\":\"PHP 7.1.24 (tar.xz)\",\"sha256\":\"e70dcec0ae28b6bc308b78972ec15aa850808819cc765f505aa51e5a7e2fa5d7\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.2.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_12.php\"},\"source\":[{\"filename\":\"php-7.2.12.tar.bz2\",\"name\":\"PHP 7.2.12 (tar.bz2)\",\"sha256\":\"b724c4c20347b6105be109d98cc395a610174e8aadb506c82e8cb645b65ef6b6\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.gz\",\"name\":\"PHP 7.2.12 (tar.gz)\",\"sha256\":\"d7cabdf4e51db38121daf0d494dc074743b24b6c79e592037eeedd731f1719dd\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.xz\",\"name\":\"PHP 7.2.12 (tar.xz)\",\"sha256\":\"989c04cc879ee71a5e1131db867f3c5102f1f7565f805e2bb8bde33f93147fe1\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.1.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_23.php\"},\"source\":[{\"filename\":\"php-7.1.23.tar.bz2\",\"name\":\"PHP 7.1.23 (tar.bz2)\",\"sha256\":\"2d79aa86d8f0faa760a712a1d7be50b57838a9770c1dff34020876630c2ecc4b\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.gz\",\"name\":\"PHP 7.1.23 (tar.gz)\",\"sha256\":\"b839a4de32e6770d10b87c2495c070d09277fe61008804b2992466f0dcc5f0fa\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.xz\",\"name\":\"PHP 7.1.23 (tar.xz)\",\"sha256\":\"227a3c76133c3dc1cec937989456cbd89ed00e68e7260c651900dbe1f5b798bc\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.2.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_11.php\"},\"source\":[{\"filename\":\"php-7.2.11.tar.bz2\",\"name\":\"PHP 7.2.11 (tar.bz2)\",\"sha256\":\"4a0d7f402d07966b37a600796283f4ca4079d955d96d5bec024dd02009d8b4c5\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.gz\",\"name\":\"PHP 7.2.11 (tar.gz)\",\"sha256\":\"180c63a9647c0a50d438b6bd5c7a8e7a11bceee8ad613a59d3ef15151fc158d4\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.xz\",\"name\":\"PHP 7.2.11 (tar.xz)\",\"sha256\":\"da1a705c0bc46410e330fc6baa967666c8cd2985378fb9707c01a8e33b01d985\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.1.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_22.php\"},\"source\":[{\"filename\":\"php-7.1.22.tar.bz2\",\"name\":\"PHP 7.1.22 (tar.bz2)\",\"sha256\":\"c8e91f19c8aa810ae95f228ff31cf0e4805cb89f4c10870ee12c85491b26e763\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.gz\",\"name\":\"PHP 7.1.22 (tar.gz)\",\"sha256\":\"1d275115593a33315647094a5a4ee9bd73c7960c08686cee35dc2e683a68b157\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.xz\",\"name\":\"PHP 7.1.22 (tar.xz)\",\"sha256\":\"9194c9b3a592d8376fde837dde711ec01ee26f8607fc2884047ef6f7c089b15d\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_10.php\"},\"source\":[{\"filename\":\"php-7.2.10.tar.bz2\",\"name\":\"PHP 7.2.10 (tar.bz2)\",\"sha256\":\"01b6129a0921a1636b07da9bc598a876669e45a462cef4b5844fc26862dbda9d\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.gz\",\"name\":\"PHP 7.2.10 (tar.gz)\",\"sha256\":\"d2d908b49b6005e65dcc46cdc986603a19b7ff103119fce8ddd4648586d430a4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.xz\",\"name\":\"PHP 7.2.10 (tar.xz)\",\"sha256\":\"01c2154a3a8e3c0818acbdbc1a956832c828a0380ce6d1d14fea495ea21804f0\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_21.php\"},\"source\":[{\"filename\":\"php-7.1.21.tar.bz2\",\"name\":\"PHP 7.1.21 (tar.bz2)\",\"sha256\":\"c2409c574bde23763b48a96b93922f530156df044585ff60108bce7b27b19580\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.gz\",\"name\":\"PHP 7.1.21 (tar.gz)\",\"sha256\":\"4b448ba9b3c81b88543c1e1fbef465391fecd64d7f19a744df26e9923295dd00\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.xz\",\"name\":\"PHP 7.1.21 (tar.xz)\",\"sha256\":\"d4da6dc69d3fe1e6b2b80f16b262f391037bfeb21213c966e026bd45d7ca2813\",\"date\":\"17 Aug 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"7.0.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_31.php\"},\"source\":[{\"filename\":\"php-7.0.31.tar.bz2\",\"name\":\"PHP 7.0.31 (tar.bz2)\",\"sha256\":\"7e8bd73eced6e679a179d39571e8fee6c83e51c86f43338f65c2dc88c1106b91\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.gz\",\"name\":\"PHP 7.0.31 (tar.gz)\",\"sha256\":\"182f36e5709837158bd4970ce57fe80735bdf79025133c00d6ad882d1c4d98dd\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.xz\",\"name\":\"PHP 7.0.31 (tar.xz)\",\"sha256\":\"68f57b3f4587071fb54a620cb83a1cfb3f0bd4ee071e0ce3bf7046a5f2d2f3cf\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_9.php\"},\"source\":[{\"filename\":\"php-7.2.9.tar.bz2\",\"name\":\"PHP 7.2.9 (tar.bz2)\",\"sha256\":\"e9e3aaa6c317b7fea78246a758b017544366049d2789ad5a44fe9398464c53a8\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.gz\",\"name\":\"PHP 7.2.9 (tar.gz)\",\"sha256\":\"23fcc1e4d10e06ddfdbc1163a8f0d147a7813467273f7946eb0de1b825d1d3e6\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.xz\",\"name\":\"PHP 7.2.9 (tar.xz)\",\"sha256\":\"3585c1222e00494efee4f5a65a8e03a1e6eca3dfb834814236ee7f02c5248ae0\",\"date\":\"16 Aug 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false},\"7.1.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_20.php\"},\"source\":[{\"filename\":\"php-7.1.20.tar.bz2\",\"name\":\"PHP 7.1.20 (tar.bz2)\",\"sha256\":\"3a1b476c88fb81254ea572e891a1d65053ab54068348e00c75e8b54fae691d45\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.gz\",\"name\":\"PHP 7.1.20 (tar.gz)\",\"sha256\":\"77a2091f4ab50367a6c68274a0d92e0da9ecdbf428b280c9836c5c6d512da450\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.xz\",\"name\":\"PHP 7.1.20 (tar.xz)\",\"sha256\":\"cd7d1006201459d43fae0790cce4eb3451add5c87f4cadb13b228d4c179b850c\",\"date\":\"19 Jul 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_8.php\"},\"source\":[{\"filename\":\"php-7.2.8.tar.bz2\",\"name\":\"PHP 7.2.8 (tar.bz2)\",\"sha256\":\"1f8068f520a60fff3db19be1b849f0c02a33a0fd8b34b7ae05556ef682187ee6\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.gz\",\"name\":\"PHP 7.2.8 (tar.gz)\",\"sha256\":\"a0cb9bf2f78498fc090eb553df03cdacc198785dec0818efa7a1804c2b7a8722\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.xz\",\"name\":\"PHP 7.2.8 (tar.xz)\",\"sha256\":\"53ba0708be8a7db44256e3ae9fcecc91b811e5b5119e6080c951ffe7910ffb0f\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_19.php\"},\"source\":[{\"filename\":\"php-7.1.19.tar.bz2\",\"name\":\"PHP 7.1.19 (tar.bz2)\",\"sha256\":\"13c43e7be3040ad53f192b0770c7ed99e5b3e348dfc6674666179d557fd770f3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.gz\",\"name\":\"PHP 7.1.19 (tar.gz)\",\"sha256\":\"e1ae477b72bed02cdcb04f0157b8f8767bd4f6030416ae06408b4f6d85ee66a1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.xz\",\"name\":\"PHP 7.1.19 (tar.xz)\",\"sha256\":\"7cab88f269b90a8a38dbcccf3ec0d5c6eba86122431a53eaa94405bbb60370a8\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.0.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_30.php\"},\"source\":[{\"filename\":\"php-7.0.30.tar.bz2\",\"name\":\"PHP 7.0.30 (tar.bz2)\",\"sha256\":\"213f38400c239b8fab2f6f59d6f4d4bd463d0a75bd4edf723dd4d5fea8850b50\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.gz\",\"name\":\"PHP 7.0.30 (tar.gz)\",\"sha256\":\"54e7615205123b940b996300bf99c707c2317b6b78388061a204b23ab3388a26\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.xz\",\"name\":\"PHP 7.0.30 (tar.xz)\",\"sha256\":\"c90892fb68ab9b8476519658d3f78f6388f2609ae1309bdc2a2e1cc9f92dd686\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_7.php\"},\"source\":[{\"filename\":\"php-7.2.7.tar.bz2\",\"name\":\"PHP 7.2.7 (tar.bz2)\",\"sha256\":\"cc81675a96af4dd18d8ffc02f26a36c622abadf86af7ecfea7bcde8d3c96d5a3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.gz\",\"name\":\"PHP 7.2.7 (tar.gz)\",\"sha256\":\"014f0560cfa22e6301b0024a6fd888c3612a0dc102ff355fa2b49544d16d43b1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.xz\",\"name\":\"PHP 7.2.7 (tar.xz)\",\"sha256\":\"eb01c0153b3baf1f64b8b044013ce414b52fede222df3f509e8ff209478f31f0\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.1.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_18.php\"},\"source\":[{\"filename\":\"php-7.1.18.tar.bz2\",\"name\":\"PHP 7.1.18 (tar.bz2)\",\"sha256\":\"580e375515ede831a6d82e13c0ec25dd08b225c6d87dfc24d7cd5f3bd542bf8e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.gz\",\"name\":\"PHP 7.1.18 (tar.gz)\",\"sha256\":\"07c24ae4dd59d81d3dc0ce89025ae667979150e2ee0e9e30dd89e04e31d510fb\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.xz\",\"name\":\"PHP 7.1.18 (tar.xz)\",\"sha256\":\"8bd91cea072ea5b368cc9b4533a1a683eb426abdacbf024bb6ffa9b799cd3b01\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.2.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_6.php\"},\"source\":[{\"filename\":\"php-7.2.6.tar.bz2\",\"name\":\"PHP 7.2.6 (tar.bz2)\",\"sha256\":\"ae5d3e8ada80b9d293d0c8bd643d07c2d988538ff1052a3f7144c6b0cd0ff2c3\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.gz\",\"name\":\"PHP 7.2.6 (tar.gz)\",\"sha256\":\"a9f30daf6af82ac02e692465cfd65b04a60d56106c961926e264d2621d313f0e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.xz\",\"name\":\"PHP 7.2.6 (tar.xz)\",\"sha256\":\"1f004e049788a3effc89ef417f06a6cf704c95ae2a718b2175185f2983381ae7\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.1.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_17.php\"},\"source\":[{\"filename\":\"php-7.1.17.tar.bz2\",\"name\":\"PHP 7.1.17 (tar.bz2)\",\"sha256\":\"e124e3ac552c50f3890ed981d07b2ee473cac961885e75186ded0bbb5b78dbcf\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.gz\",\"name\":\"PHP 7.1.17 (tar.gz)\",\"sha256\":\"aba44265bf814a020282afa63321323e1f81da61bd7318ab2b941857a15cb144\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.xz\",\"name\":\"PHP 7.1.17 (tar.xz)\",\"sha256\":\"1a784806866e06367f7a5c88775d239d6f30041c7ce65a8232d03a3d4de56d56\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_5.php\"},\"source\":[{\"filename\":\"php-7.2.5.tar.bz2\",\"name\":\"PHP 7.2.5 (tar.bz2)\",\"sha256\":\"f3820efa8efa79628b6e1b5b2f8c1b04c08d32e6721fa1654039ce5f89796031\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.gz\",\"name\":\"PHP 7.2.5 (tar.gz)\",\"sha256\":\"c198aedd4cd16db0803e0ef955036722a1f4ce9ad3827546709fac05f1567ba5\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.xz\",\"name\":\"PHP 7.2.5 (tar.xz)\",\"sha256\":\"af70a33b3f7a51510467199b39af151333fbbe4cc21923bad9c7cf64268cddb2\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_16.php\"},\"source\":[{\"filename\":\"php-7.1.16.tar.bz2\",\"name\":\"PHP 7.1.16 (tar.bz2)\",\"sha256\":\"348e2af9c7c0f327a57a972674078777dfde189e2598acbcb8618b9645b0e7e5\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.gz\",\"name\":\"PHP 7.1.16 (tar.gz)\",\"sha256\":\"c8e6fed5b350b29a5b9eaa9fce7c5e8618629346e9a58212f3dc380046065442\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.xz\",\"name\":\"PHP 7.1.16 (tar.xz)\",\"sha256\":\"a5d67e477248a3911af7ef85c8400c1ba8cd632184186fd31070b96714e669f1\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_29.php\"},\"source\":[{\"filename\":\"php-7.0.29.tar.bz2\",\"name\":\"PHP 7.0.29 (tar.bz2)\",\"sha256\":\"989142d5c5ff7a11431254f9c1995235bad61a3364b99c966e11e06aa10d3fbc\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.gz\",\"name\":\"PHP 7.0.29 (tar.gz)\",\"sha256\":\"5efe45e345f967cb20f9ff92cd514753872a65feffea1bf311c71864344bd8e8\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.xz\",\"name\":\"PHP 7.0.29 (tar.xz)\",\"sha256\":\"ca79d3ecc123bff4b623d4a1bbf5ad53ad39f5f2f5912fecc0ea97e95eba21cc\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_4.php\"},\"source\":[{\"filename\":\"php-7.2.4.tar.bz2\",\"name\":\"PHP 7.2.4 (tar.bz2)\",\"sha256\":\"11658a0d764dc94023b9fb60d4b5eb75d438ad17981efe70abb0d0d09a447ef3\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.gz\",\"name\":\"PHP 7.2.4 (tar.gz)\",\"sha256\":\"58e28e978baea0fe9009432bcb436934eaacccfdcb5f5409c7526431a595857b\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.xz\",\"name\":\"PHP 7.2.4 (tar.xz)\",\"sha256\":\"7916b1bd148ddfd46d7f8f9a517d4b09cd8a8ad9248734e7c8dd91ef17057a88\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_15.php\"},\"source\":[{\"filename\":\"php-7.1.15.tar.bz2\",\"name\":\"PHP 7.1.15 (tar.bz2)\",\"sha256\":\"e117a54738e9485de5fc75673d39dbe937dd87f0f9cc9e281960ef9b961adcbd\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.gz\",\"name\":\"PHP 7.1.15 (tar.gz)\",\"sha256\":\"0669c68a52cbd2f1cfa83354918ed03b0bcaa34ed9bafaee7dfd343461b881d4\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.xz\",\"name\":\"PHP 7.1.15 (tar.xz)\",\"sha256\":\"0e17192fb43532e4ebaa190ecec9c7e59deea7dadb7dab67b19c2081a68bd817\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_3.php\"},\"source\":[{\"filename\":\"php-7.2.3.tar.bz2\",\"name\":\"PHP 7.2.3 (tar.bz2)\",\"sha256\":\"4a735aac0ba764dd8208ea29007d3916396c5292e003ba8d3bec49edcdd5bf92\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.gz\",\"name\":\"PHP 7.2.3 (tar.gz)\",\"sha256\":\"5dc98f2266db40c5e4d9b5edf5e29e2449e819fff8321a07eb3830cf0b104bbb\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.xz\",\"name\":\"PHP 7.2.3 (tar.xz)\",\"sha256\":\"b3a94f1b562f413c0b96f54bc309706d83b29ac65d9b172bc7ed9fb40a5e651f\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_28.php\"},\"source\":[{\"filename\":\"php-7.0.28.tar.bz2\",\"name\":\"PHP 7.0.28 (tar.bz2)\",\"sha256\":\"ae5491b4613f3710e3d09e688ba3d30d3acc1112c7b96a8703663b8a95063c7f\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.gz\",\"name\":\"PHP 7.0.28 (tar.gz)\",\"sha256\":\"cd2fd94feb0d5809ffb9d900138643fa74e70656436e5f2595b03239dd97aa9c\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.xz\",\"name\":\"PHP 7.0.28 (tar.xz)\",\"sha256\":\"e738ffce2c30bc0e84be9446af86bef0a0607d321f1a3d04bbfe2402fb5f6de0\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_14.php\"},\"source\":[{\"filename\":\"php-7.1.14.tar.bz2\",\"name\":\"PHP 7.1.14 (tar.bz2)\",\"sha256\":\"63b2fd139ed7656756b0fa290bc42f8fff854723c3d2710a700e646370c581f4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.gz\",\"name\":\"PHP 7.1.14 (tar.gz)\",\"sha256\":\"8c7360209d255ee46d388bdcd43ef1a2d14b370c331be30ea628ece18a1e7683\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.xz\",\"name\":\"PHP 7.1.14 (tar.xz)\",\"sha256\":\"c09f0c1074f5689b492d79034adb84e6a6c6d08c6763c02282e6318d41156779\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.2.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_2.php\"},\"source\":[{\"filename\":\"php-7.2.2.tar.bz2\",\"name\":\"PHP 7.2.2 (tar.bz2)\",\"sha256\":\"f841ac58e17471f2241ea892b34edb01dc9b93ad9f661ffe4e3f1f476a8f4aee\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.gz\",\"name\":\"PHP 7.2.2 (tar.gz)\",\"sha256\":\"5963df05fec21927c03fe9f7bf379be2d1eacde6c0f9dcde6143c7133e55abd4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.xz\",\"name\":\"PHP 7.2.2 (tar.xz)\",\"sha256\":\"47d7607d38a1d565fc43ea942c92229a7cd165f156737f210937e375b243cb11\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.0.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_27.php\"},\"source\":[{\"filename\":\"php-7.0.27.tar.bz2\",\"name\":\"PHP 7.0.27 (tar.bz2)\",\"sha256\":\"99fa2563bb4c4c1cde9febe87cfe97324227d7b4b8828f2e936e507127394131\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.gz\",\"name\":\"PHP 7.0.27 (tar.gz)\",\"sha256\":\"809c0181e970dd17c6a6cabbf64518e719c7253e7490f8e1279bc1e1fbdf7996\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.xz\",\"name\":\"PHP 7.0.27 (tar.xz)\",\"sha256\":\"4b2bc823e806dbf7b62fe0b92b0d14b0c6e03f88c3fc5d96278416c54ce11f6c\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_1.php\"},\"source\":[{\"filename\":\"php-7.2.1.tar.bz2\",\"name\":\"PHP 7.2.1 (tar.bz2)\",\"sha256\":\"fe06793f268a4dd29cbc5f4ef415f01e786877152b02221ad7d18dbb6864eb79\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.gz\",\"name\":\"PHP 7.2.1 (tar.gz)\",\"sha256\":\"8ecb2950571054a00687ccbd023874a4a075ccd1e2ec3dc00fc25ef589a77dba\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.xz\",\"name\":\"PHP 7.2.1 (tar.xz)\",\"sha256\":\"6c6cf82fda6660ed963821eb0525214bb3547e8e29f447b9c15b2d8e6efd8822\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.1.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_13.php\"},\"source\":[{\"filename\":\"php-7.1.13.tar.bz2\",\"name\":\"PHP 7.1.13 (tar.bz2)\",\"sha256\":\"35fda51d2d44600940185fd5818d336a79e77ab3c98e2bd075091f2f91cf98a1\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.gz\",\"name\":\"PHP 7.1.13 (tar.gz)\",\"sha256\":\"12fcbf59c9eb9af215ef38815d5da39b9d74549092c34b0dfc31442699740ce9\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.xz\",\"name\":\"PHP 7.1.13 (tar.xz)\",\"sha256\":\"1a0b3f2fb61959b57a3ee01793a77ed3f19bde5aa90c43dcacc85ea32f64fc10\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.2.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_0.php\"},\"source\":[{\"filename\":\"php-7.2.0.tar.bz2\",\"name\":\"PHP 7.2.0 (tar.bz2)\",\"sha256\":\"2bfefae4226b9b97879c9d33078e50bdb5c17f45ff6e255951062a529720c64a\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.gz\",\"name\":\"PHP 7.2.0 (tar.gz)\",\"sha256\":\"801876abd52e0dc58a44701344252035fd50702d8f510cda7fdb317ab79897bc\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.xz\",\"name\":\"PHP 7.2.0 (tar.xz)\",\"sha256\":\"87572a6b924670a5d4aac276aaa4a94321936283df391d702c845ffc112db095\",\"date\":\"30 Nov 2017\"}],\"date\":\"30 Nov 2017\",\"museum\":false},\"7.1.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_12.php\"},\"source\":[{\"filename\":\"php-7.1.12.tar.bz2\",\"name\":\"PHP 7.1.12 (tar.bz2)\",\"sha256\":\"f9ce3361ab99dce8f3f2fba663695ac9b18a3579bc8014dc280368d1577d87c4\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.gz\",\"name\":\"PHP 7.1.12 (tar.gz)\",\"sha256\":\"188c67d8e424ce7a6fe93475aa64f53182c1d80ca3ac99439651ca91569d969c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.xz\",\"name\":\"PHP 7.1.12 (tar.xz)\",\"sha256\":\"a0118850774571b1f2d4e30b4fe7a4b958ca66f07d07d65ebdc789c54ba6eeb3\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.0.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_26.php\"},\"source\":[{\"filename\":\"php-7.0.26.tar.bz2\",\"name\":\"PHP 7.0.26 (tar.bz2)\",\"sha256\":\"2590d722f7b23b6a903c5a00cf04e7ee728df79d10ae473e3a81ba41588509a7\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.gz\",\"name\":\"PHP 7.0.26 (tar.gz)\",\"sha256\":\"04c345f7c9e3f1cd02f275bfec893a4e0290e724073f2f3d7282a219128b537c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.xz\",\"name\":\"PHP 7.0.26 (tar.xz)\",\"sha256\":\"ed5cbb4bbb0ddef8985f100bba2e94002ad22a230b5da2dccfe148915df5f199\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.1.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_11.php\"},\"source\":[{\"filename\":\"php-7.1.11.tar.bz2\",\"name\":\"PHP 7.1.11 (tar.bz2)\",\"sha256\":\"7646d7de701fc969e3305eeeb2eddda3d46af6a88ee20ef4a47270c447228573\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.gz\",\"name\":\"PHP 7.1.11 (tar.gz)\",\"sha256\":\"de41b2c166bc5ec8ea96a337d4dd675c794f7b115a8a47bb04595c03dbbdf425\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.xz\",\"name\":\"PHP 7.1.11 (tar.xz)\",\"sha256\":\"074093e9d7d21afedc5106904218a80a47b854abe368d2728ed22184c884893e\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"7.0.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_25.php\"},\"source\":[{\"filename\":\"php-7.0.25.tar.bz2\",\"name\":\"PHP 7.0.25 (tar.bz2)\",\"sha256\":\"95a24d96d126a196e1550e394182b43a6460cdd2026f1a77bef01e422415cc25\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.gz\",\"name\":\"PHP 7.0.25 (tar.gz)\",\"sha256\":\"081b46bf588d38c636fd6cd1dab8855b6b3e171550d1e65f770f53aede594ee7\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.xz\",\"name\":\"PHP 7.0.25 (tar.xz)\",\"sha256\":\"5cc14bd20fb2226f6d34465662425cd100441bde9042ea1cef2e4506d6ded8cc\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_10.php\"},\"source\":[{\"filename\":\"php-7.1.10.tar.bz2\",\"name\":\"PHP 7.1.10 (tar.bz2)\",\"sha256\":\"0ee51b9b1ae7eca3e9558f772ce20cbacd1f76420009b3af630c87027f9a41af\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.gz\",\"name\":\"PHP 7.1.10 (tar.gz)\",\"sha256\":\"edc6a7c3fe89419525ce51969c5f48610e53613235bbef255c3a4db33b458083\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.xz\",\"name\":\"PHP 7.1.10 (tar.xz)\",\"sha256\":\"2b8efa771a2ead0bb3ae67b530ca505b5b286adc873cca9ce97a6e1d6815c50b\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.0.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_24.php\"},\"source\":[{\"filename\":\"php-7.0.24.tar.bz2\",\"name\":\"PHP 7.0.24 (tar.bz2)\",\"sha256\":\"9bf91982694f178821c0aaf03563a20494873ece6933e2eeecfd76f325bdcf19\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.gz\",\"name\":\"PHP 7.0.24 (tar.gz)\",\"sha256\":\"151015b578c14a4ab47d1e5894b36c85cf5655237599b805a08d106fe18a8c8e\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.xz\",\"name\":\"PHP 7.0.24 (tar.xz)\",\"sha256\":\"4dba7aa365193c9229f89f1975fad4c01135d29922a338ffb4a27e840d6f1c98\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.1.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_9.php\"},\"source\":[{\"filename\":\"php-7.1.9.tar.bz2\",\"name\":\"PHP 7.1.9 (tar.bz2)\",\"sha256\":\"314dcc10dfdd7c4443edb4fe1e133a44f2b2a8351be8c9eb6ab9222d45fd9bae\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.gz\",\"name\":\"PHP 7.1.9 (tar.gz)\",\"sha256\":\"499c31ad19b2ff553ae686ebf53749aa2351af7d955ee9f1986f144089561a4b\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.xz\",\"name\":\"PHP 7.1.9 (tar.xz)\",\"sha256\":\"ec9ca348dd51f19a84dc5d33acfff1fba1f977300604bdac08ed46ae2c281e8c\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.0.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_23.php\"},\"source\":[{\"filename\":\"php-7.0.23.tar.bz2\",\"name\":\"PHP 7.0.23 (tar.bz2)\",\"sha256\":\"6fe94cefc7d2c60ee2c1648b977beed756ad9cd0a7e4ea8bb8cf521d9355a09c\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.gz\",\"name\":\"PHP 7.0.23 (tar.gz)\",\"sha256\":\"d511089ecaf386f3ab752efba76558c03558afa6b5b3fe71d84881c76644b466\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.xz\",\"name\":\"PHP 7.0.23 (tar.xz)\",\"sha256\":\"8e526e3551a58e00c8055fa4a72804aa1bd3ee1c0411b25bf1504cc4992609df\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.1.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_8.php\"},\"source\":[{\"filename\":\"php-7.1.8.tar.bz2\",\"name\":\"PHP 7.1.8 (tar.bz2)\",\"sha256\":\"7064a00a9450565190890c7a4be04e646e0be73b2e0f8c46ae34419f343ca2f8\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.gz\",\"name\":\"PHP 7.1.8 (tar.gz)\",\"sha256\":\"63517b3264f7cb17fb58e1ce60a6cd8903160239b7cf568d52024e9cf4d6cb04\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.xz\",\"name\":\"PHP 7.1.8 (tar.xz)\",\"sha256\":\"8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.0.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_22.php\"},\"source\":[{\"filename\":\"php-7.0.22.tar.bz2\",\"name\":\"PHP 7.0.22 (tar.bz2)\",\"sha256\":\"88e0b27f69abdd12ecde81f000c5a9ea479af7218456ea7f6557edb43c6dfdde\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.gz\",\"name\":\"PHP 7.0.22 (tar.gz)\",\"sha256\":\"04292eaea0eeb75e9b6a36a3db8e90a3d43f939646fd9d7d1e083e5b70884383\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.xz\",\"name\":\"PHP 7.0.22 (tar.xz)\",\"sha256\":\"408c3fbc235ec940433bfac1f3ed4bf797f61b4a1693b9fb0b6a04b2c1832501\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.1.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_7.php\"},\"source\":[{\"filename\":\"php-7.1.7.tar.bz2\",\"name\":\"PHP 7.1.7 (tar.bz2)\",\"sha256\":\"079b6792987f38dc485f92258c04f9e02dedd593f9d260ebe725343f812d1ff8\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.gz\",\"name\":\"PHP 7.1.7 (tar.gz)\",\"sha256\":\"e0dbab8da601ee5119368d6f93dc1a86ad53b799d2f8c1209d6b827a2b259f92\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.xz\",\"name\":\"PHP 7.1.7 (tar.xz)\",\"sha256\":\"0d42089729be7b2bb0308cbe189c2782f9cb4b07078c8a235495be5874fff729\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_21.php\"},\"source\":[{\"filename\":\"php-7.0.21.tar.bz2\",\"name\":\"PHP 7.0.21 (tar.bz2)\",\"sha256\":\"2ba133c392de6f86aacced8c54e0adefd1c81d3840ac323b9926b8ed3dc6231f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.gz\",\"name\":\"PHP 7.0.21 (tar.gz)\",\"sha256\":\"f2f05f629dd02c75834ddf033916bd5ff92a720602839d81fd8b6d90e37b6225\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.xz\",\"name\":\"PHP 7.0.21 (tar.xz)\",\"sha256\":\"6713fe3024365d661593235b525235045ef81f18d0043654658c9de1bcb8b9e3\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_6.php\"},\"source\":[{\"filename\":\"php-7.1.6.tar.bz2\",\"name\":\"PHP 7.1.6 (tar.bz2)\",\"sha256\":\"6e3576ca77672a18461a4b089c5790647f1b2c19f82e4f5e94c962609aabffcf\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.gz\",\"name\":\"PHP 7.1.6 (tar.gz)\",\"sha256\":\"7ff8c01af791c7e499ee77e1b82e4b1d56e379efe1f706b1203d48751481fd9f\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.xz\",\"name\":\"PHP 7.1.6 (tar.xz)\",\"sha256\":\"01584dc521ab7ec84b502b61952f573652fe6aa00c18d6d844fb9209f14b245b\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.0.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_20.php\"},\"source\":[{\"filename\":\"php-7.0.20.tar.bz2\",\"name\":\"PHP 7.0.20 (tar.bz2)\",\"sha256\":\"cdfddfe01cc615218e333e34a1c761c9ef8fdf5199b27617264a02705eda7fc3\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.gz\",\"name\":\"PHP 7.0.20 (tar.gz)\",\"sha256\":\"b44947f0c1926928d5c2f176506b878c32b5cd09ce3b5b52bbbecf4328ab812d\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.xz\",\"name\":\"PHP 7.0.20 (tar.xz)\",\"sha256\":\"31b9cf1fb83fe3cd82c2f6603a0ae81ae6abacb5286827e362d8f85e68908e0a\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.1.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_5.php\"},\"source\":[{\"filename\":\"php-7.1.5.tar.bz2\",\"name\":\"PHP 7.1.5 (tar.bz2)\",\"sha256\":\"28eaa4784f1bd8b7dc71206dc8c4375510199432dc17af6906b14d16b3058697\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.gz\",\"name\":\"PHP 7.1.5 (tar.gz)\",\"sha256\":\"f7ff8039f5c3a7da4d62a3cce6378280224acfa27ab5a5bee25b7439bce01c17\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.xz\",\"name\":\"PHP 7.1.5 (tar.xz)\",\"sha256\":\"d149a3c396c45611f5dc6bf14be190f464897145a76a8e5851cf18ff7094f6ac\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.0.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_19.php\"},\"source\":[{\"filename\":\"php-7.0.19.tar.bz2\",\"name\":\"PHP 7.0.19 (tar.bz2)\",\"sha256\":\"0f3ac0afc02aec22f6b1659045da9287453e9309439d0499622bc8e94a7f7d59\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.gz\",\"name\":\"PHP 7.0.19 (tar.gz)\",\"sha256\":\"4b4120acdbb8cbf5f7a18625c2eb5cdd2fdb4fc69a4831bc7ffdfd1ee78b1ce0\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.xz\",\"name\":\"PHP 7.0.19 (tar.xz)\",\"sha256\":\"640e5e3377d15a6d19adce2b94a9d876eeddabdb862d154a5e347987f4225ef6\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.1.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_4.php\"},\"source\":[{\"filename\":\"php-7.1.4.tar.bz2\",\"name\":\"PHP 7.1.4 (tar.bz2)\",\"sha256\":\"39bf697836e2760b3a44ea322e9e5f1f5b1f07abeb0111f6495eff7538e25805\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.gz\",\"name\":\"PHP 7.1.4 (tar.gz)\",\"sha256\":\"ed0006c86de503684dde04c6dd811ea2354a3b6d10ebd9f0cb103dcd28f0e70f\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.xz\",\"name\":\"PHP 7.1.4 (tar.xz)\",\"sha256\":\"71514386adf3e963df087c2044a0b3747900b8b1fc8da3a99f0a0ae9180d300b\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.0.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_18.php\"},\"source\":[{\"filename\":\"php-7.0.18.tar.bz2\",\"name\":\"PHP 7.0.18 (tar.bz2)\",\"sha256\":\"b20cc63d507032b39d8bb14cb64784e460b0e47997e90a8704b703bcbb233fd1\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.gz\",\"name\":\"PHP 7.0.18 (tar.gz)\",\"sha256\":\"e0fb336749d72e6c9cfcebb9b48497f004fa99f93b68c21cb3eb657053665e1d\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.xz\",\"name\":\"PHP 7.0.18 (tar.xz)\",\"sha256\":\"679cffcdf2495dee5ab89bda595e678a1096136678b3a1d08f1f57ba347c234d\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.1.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_3.php\"},\"source\":[{\"filename\":\"php-7.1.3.tar.bz2\",\"name\":\"PHP 7.1.3 (tar.bz2)\",\"sha256\":\"c145924d91b7a253eccc31f8d22f15b61589cd24d78105e56240c1bb6413b94f\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.gz\",\"name\":\"PHP 7.1.3 (tar.gz)\",\"sha256\":\"4bfadd0012b966eced448497272150ffeede13136a961aacb9e71553b8e929ec\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.xz\",\"name\":\"PHP 7.1.3 (tar.xz)\",\"sha256\":\"e4887c2634778e37fd962fbdf5c4a7d32cd708482fe07b448804625570cb0bb0\",\"date\":\"16 Mar 2017\"}],\"date\":\"16 Mar 2017\",\"museum\":false},\"7.0.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_17.php\"},\"source\":[{\"filename\":\"php-7.0.17.tar.bz2\",\"name\":\"PHP 7.0.17 (tar.bz2)\",\"sha256\":\"aee503926b96d807692fac3e0fd64e3259788f5139819a983152679cb6e91d4b\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.gz\",\"name\":\"PHP 7.0.17 (tar.gz)\",\"sha256\":\"1f42ffe9895dad746baf4a0e8d81f2272f55fdef66cf298ac911d8791ceb1e80\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.xz\",\"name\":\"PHP 7.0.17 (tar.xz)\",\"sha256\":\"471c16fcdd6a5e1a37199e97bcaeea6117626229785185be7532aaa7c6ee04be\",\"date\":\"30 Mar 2017\"}],\"date\":\"30 Mar 2017\",\"museum\":false},\"7.1.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_2.php\"},\"source\":[{\"filename\":\"php-7.1.2.tar.bz2\",\"name\":\"PHP 7.1.2 (tar.bz2)\",\"sha256\":\"e0f2214e2366434ee231156ba70cfefd0c59790f050d8727a3f1dc2affa67004\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.gz\",\"name\":\"PHP 7.1.2 (tar.gz)\",\"sha256\":\"e6773217c9c719ca22abb104ae3d437d53daceaf31faf2e5eeb1f9f5028005d8\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.xz\",\"name\":\"PHP 7.1.2 (tar.xz)\",\"sha256\":\"d815a0c39fd57bab1434a77ff0610fb507c22f790c66cd6f26e27030c4b3e971\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.0.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_16.php\"},\"source\":[{\"filename\":\"php-7.0.16.tar.bz2\",\"name\":\"PHP 7.0.16 (tar.bz2)\",\"sha256\":\"83c5f57575dc0feca563af529d6f1d60183bf9c2c13e98a6da131fbd0a3597ab\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.gz\",\"name\":\"PHP 7.0.16 (tar.gz)\",\"sha256\":\"bc6709dc7612957d0533c09c9c8a9c2e7c4fd9d64e697707bb1b39670eab61d4\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.xz\",\"name\":\"PHP 7.0.16 (tar.xz)\",\"sha256\":\"244ac39bc657448962860aa7a590e4417f68513ad5e86ee2727b1328b0537309\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.1.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_1.php\"},\"source\":[{\"filename\":\"php-7.1.1.tar.bz2\",\"name\":\"PHP 7.1.1 (tar.bz2)\",\"sha256\":\"d791d39d7b54ec42441a05a5f06d68a495647d843210e3ae4f2c6adb99c675bc\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.gz\",\"name\":\"PHP 7.1.1 (tar.gz)\",\"sha256\":\"c136279d539c3c2c25176bf149c14913670e79bb27ee6b73e1cd69003985a70d\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.xz\",\"name\":\"PHP 7.1.1 (tar.xz)\",\"sha256\":\"b3565b0c1441064eba204821608df1ec7367abff881286898d900c2c2a5ffe70\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"7.0.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_15.php\"},\"source\":[{\"filename\":\"php-7.0.15.tar.bz2\",\"name\":\"PHP 7.0.15 (tar.bz2)\",\"sha256\":\"a8c8f947335683fa6dd1b7443ed70f2a42bc33e8b6c215f139138cee89e47dd9\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.gz\",\"name\":\"PHP 7.0.15 (tar.gz)\",\"sha256\":\"c24324c6d4bf27e8bc1d12da0aae4f15a43c8374f681e23e9b1e67f5b719c3a6\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.xz\",\"name\":\"PHP 7.0.15 (tar.xz)\",\"sha256\":\"300364d57fc4a6176ff7d52d390ee870ab6e30df121026649f8e7e0b9657fe93\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_14.php\"},\"source\":[{\"filename\":\"php-7.0.14.tar.bz2\",\"name\":\"PHP 7.0.14 (tar.bz2)\",\"sha256\":\"fbc4369a0d42b55fd1ce75eb4f3d17b012da754a67567d8e3288fbfbb7490534\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.gz\",\"name\":\"PHP 7.0.14 (tar.gz)\",\"sha256\":\"320cfd2184e7252d3d77eae5d5474554fa04ab9fbee7c6094c07e8bd3b5b632b\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.xz\",\"name\":\"PHP 7.0.14 (tar.xz)\",\"sha256\":\"0f1dff6392a1cc2ed126b9695f580a2ed77eb09d2c23b41cabfb41e6f27a8c89\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_0.php\"},\"source\":[{\"filename\":\"php-7.1.0.tar.bz2\",\"name\":\"PHP 7.1.0 (tar.bz2)\",\"sha256\":\"68bcfd7deed5b3474d81dec9f74d122058327e2bed0ac25bbc9ec70995228e61\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.gz\",\"name\":\"PHP 7.1.0 (tar.gz)\",\"sha256\":\"9e84c5b13005c56374730edf534fe216f6a2e63792a9703d4b894e770bbccbae\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.xz\",\"name\":\"PHP 7.1.0 (tar.xz)\",\"sha256\":\"a810b3f29c21407c24caa88f50649320d20ba6892ae1923132598b8a0ca145b6\",\"date\":\"01 Dec 2016\"}],\"date\":\"01 Dec 2016\",\"museum\":false},\"7.0.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_13.php\"},\"source\":[{\"filename\":\"php-7.0.13.tar.bz2\",\"name\":\"PHP 7.0.13 (tar.bz2)\",\"sha256\":\"d090bb523812117ec0c08d8f0b5c5f0616aa7a29a2eeee0374efe53a7cfe88c1\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.gz\",\"name\":\"PHP 7.0.13 (tar.gz)\",\"sha256\":\"c8d8cf1b29e7f7e89be9ee64f453cb7ef6d20e1d13a83cba037bd654ef2da42c\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.xz\",\"name\":\"PHP 7.0.13 (tar.xz)\",\"sha256\":\"357ba7f93975d7d836abed0852dc3ed96a988af539e87750613294cbee82f1bf\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_12.php\"},\"source\":[{\"filename\":\"php-7.0.12.tar.bz2\",\"name\":\"PHP 7.0.12 (tar.bz2)\",\"sha256\":\"38c47294fe8fb239b0230dc63a93c3e4044f472ab93b5dff8b65feb4103a6a27\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.gz\",\"name\":\"PHP 7.0.12 (tar.gz)\",\"sha256\":\"c4693cc363b4bbc7224294cc94faf3598e616cbe8540dd6975f68c7d3c52682f\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.xz\",\"name\":\"PHP 7.0.12 (tar.xz)\",\"sha256\":\"f3d6c49e1c242e5995dec15e503fde996c327eb86cd7ec45c690e93c971b83ff\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_11.php\"},\"source\":[{\"filename\":\"php-7.0.11.tar.bz2\",\"name\":\"PHP 7.0.11 (tar.bz2)\",\"sha256\":\"f99b729dc1149858844b18af1e8c0de6dd1cdfdd52e22fbb4de2aa78bf9bf7f1\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.gz\",\"name\":\"PHP 7.0.11 (tar.gz)\",\"sha256\":\"02d27b5d140dbad8d400a95af808e1e9ce87aa8d2a2100870734ba26e6700d79\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.xz\",\"name\":\"PHP 7.0.11 (tar.xz)\",\"sha256\":\"d4cccea8da1d27c11b89386f8b8e95692ad3356610d571253d00ca67d524c735\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_10.php\"},\"source\":[{\"filename\":\"php-7.0.10.tar.bz2\",\"name\":\"PHP 7.0.10 (tar.bz2)\",\"sha256\":\"8055bbe5a736986931c0c6a08b765d6d778271ec7d2d56c50a1ad259ec09f6de\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.gz\",\"name\":\"PHP 7.0.10 (tar.gz)\",\"sha256\":\"46216e05db09c0fffbf832e3b64f3722ccbdd6d4ae16d9791e41adf0a4b00641\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.xz\",\"name\":\"PHP 7.0.10 (tar.xz)\",\"sha256\":\"348476ff7ba8d95a1e28e1059430c10470c5f8110f6d9133d30153dda4cdf56a\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_9.php\"},\"source\":[{\"filename\":\"php-7.0.9.tar.bz2\",\"name\":\"PHP 7.0.9 (tar.bz2)\",\"sha256\":\"2ee6968b5875f2f38700c58a189aad859a6a0b85fc337aa102ec2dc3652c3b7b\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.gz\",\"name\":\"PHP 7.0.9 (tar.gz)\",\"sha256\":\"93895a6a610c94751c890e5ee91a7f4bc0eae476b95fe30425d13f7ae88753d5\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.xz\",\"name\":\"PHP 7.0.9 (tar.xz)\",\"sha256\":\"970c322ba3e472cb0264b8ba9d4d92e87918da5d0cca53c4aba2a70545b8626d\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_8.php\"},\"source\":[{\"filename\":\"php-7.0.8.tar.bz2\",\"name\":\"PHP 7.0.8 (tar.bz2)\",\"sha256\":\"66dc7ba388490e07b1313fe3a06b1fa822e1310585fe29f4909995f131e27c8d\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.gz\",\"name\":\"PHP 7.0.8 (tar.gz)\",\"sha256\":\"1f024fa6d87594b99fa312e3185c357dcffa42e07d21c726f41d1fa6f773720b\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.xz\",\"name\":\"PHP 7.0.8 (tar.xz)\",\"sha256\":\"0a2142c458b0846f556b16da1c927d74c101aa951bb840549abe5c58584fb394\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false,\"tags\":[\"security\"]}}" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=5&max=100", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:52:48 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:52:48 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:52:48 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff80904\"" + }, + "body": "{\"5.6.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_40.php\"},\"source\":[{\"filename\":\"php-5.6.40.tar.bz2\",\"name\":\"PHP 5.6.40 (tar.bz2)\",\"sha256\":\"ffd025d34623553ab2f7fd8fb21d0c9e6f9fa30dc565ca03a1d7b763023fba00\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.gz\",\"name\":\"PHP 5.6.40 (tar.gz)\",\"sha256\":\"56fb9878d12fdd921f6a0897e919f4e980d930160e154cbde2cc6d9206a27cac\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.xz\",\"name\":\"PHP 5.6.40 (tar.xz)\",\"sha256\":\"1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false},\"5.6.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_39.php\"},\"source\":[{\"filename\":\"php-5.6.39.tar.bz2\",\"name\":\"PHP 5.6.39 (tar.bz2)\",\"sha256\":\"b3db2345f50c010b01fe041b4e0f66c5aa28eb325135136f153e18da01583ad5\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.gz\",\"name\":\"PHP 5.6.39 (tar.gz)\",\"sha256\":\"127b122b7d6c7f3c211c0ffa554979370c3131196137404a51a391d8e2e9c7bb\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.xz\",\"name\":\"PHP 5.6.39 (tar.xz)\",\"sha256\":\"8147576001a832ff3d03cb2980caa2d6b584a10624f87ac459fcd3948c6e4a10\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"5.6.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_38.php\"},\"source\":[{\"filename\":\"php-5.6.38.tar.bz2\",\"name\":\"PHP 5.6.38 (tar.bz2)\",\"sha256\":\"d65b231bbdd63be4439ef5ced965cfd63e62983429dbd4dfcfb49981593ebc03\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.gz\",\"name\":\"PHP 5.6.38 (tar.gz)\",\"sha256\":\"3b74d46cd79a45cce90c8059e09d8bd0beeb5de562cbb0cb42f96ff8fa665fd4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.xz\",\"name\":\"PHP 5.6.38 (tar.xz)\",\"sha256\":\"c2fac47dc6316bd230f0ea91d8a5498af122fb6a3eb43f796c9ea5f59b04aa1e\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"5.6.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_37.php\"},\"source\":[{\"filename\":\"php-5.6.37.tar.bz2\",\"name\":\"PHP 5.6.37 (tar.bz2)\",\"sha256\":\"886ad63d05d94ea3e54322691aadea0cf1d4bcdb4450b02fe300e5b570788b23\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.gz\",\"name\":\"PHP 5.6.37 (tar.gz)\",\"sha256\":\"b7ec077f35ef3a8cdd33c29124140b1761111a1429878b4c463bb20d2a31b184\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.xz\",\"name\":\"PHP 5.6.37 (tar.xz)\",\"sha256\":\"5000d82610f9134aaedef28854ec3591f68dedf26a17b8935727dac2843bd256\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false},\"5.6.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_36.php\"},\"source\":[{\"filename\":\"php-5.6.36.tar.bz2\",\"name\":\"PHP 5.6.36 (tar.bz2)\",\"sha256\":\"626a0e3f5d8a0e686a2b930f0dd3a0601fe3dcb5e43dd0e8c3fab631e64e172a\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.gz\",\"name\":\"PHP 5.6.36 (tar.gz)\",\"sha256\":\"06086a8b6a9964ef8009c4d9176b4eeb0c564ea39c1213f015e24f3466d2d69f\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.xz\",\"name\":\"PHP 5.6.36 (tar.xz)\",\"sha256\":\"18f536bf548e909b4e980379d0c4e56d024b2b1eb1c9768fd169360491f1d6dd\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false},\"5.6.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_35.php\"},\"source\":[{\"filename\":\"php-5.6.35.tar.bz2\",\"name\":\"PHP 5.6.35 (tar.bz2)\",\"sha256\":\"ee78a7e9ca21d8ea394d037c55effff477a49dbae31c7753c547036f5bd73b92\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.gz\",\"name\":\"PHP 5.6.35 (tar.gz)\",\"sha256\":\"dd0242304f510d48a5216dd2f5796bcf59e8e18366658259aaf205e1d63abf71\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.xz\",\"name\":\"PHP 5.6.35 (tar.xz)\",\"sha256\":\"9985cb64cb8224c289effff5b34f670d14f838175f76daea0507d643eec650d2\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false},\"5.6.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_34.php\"},\"source\":[{\"filename\":\"php-5.6.34.tar.bz2\",\"name\":\"PHP 5.6.34 (tar.bz2)\",\"sha256\":\"e19f499d8cee4b0b0780361ecb6a00c41654772a754803ab9ea866b8d47cf2cd\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.gz\",\"name\":\"PHP 5.6.34 (tar.gz)\",\"sha256\":\"de28251ef6d7eb945eb7b770ff668b9f978d9adad52a8c763f6ee409a96732ea\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.xz\",\"name\":\"PHP 5.6.34 (tar.xz)\",\"sha256\":\"21453be3a045204cd2717543ef42771324f411f40962ecda4fe841930a933128\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false},\"5.6.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_33.php\"},\"source\":[{\"filename\":\"php-5.6.33.tar.bz2\",\"name\":\"PHP 5.6.33 (tar.bz2)\",\"sha256\":\"07f696a9761dcd839e2045c95c3a4d2ffb52c54417477cca9d30a14975b831cc\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.gz\",\"name\":\"PHP 5.6.33 (tar.gz)\",\"sha256\":\"bedfac81cfaa25961812a1aec458c4109411a14991b43a416343ffb830b8da6a\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.xz\",\"name\":\"PHP 5.6.33 (tar.xz)\",\"sha256\":\"9004995fdf55f111cd9020e8b8aff975df3d8d4191776c601a46988c375f3553\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false},\"5.6.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_32.php\"},\"source\":[{\"filename\":\"php-5.6.32.tar.bz2\",\"name\":\"PHP 5.6.32 (tar.bz2)\",\"sha256\":\"3ee44e7a5fa42b563652b3ea0d3487bc236fcc9e5ea74b583775cab867abcb51\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.gz\",\"name\":\"PHP 5.6.32 (tar.gz)\",\"sha256\":\"7bef1ae8cd633df5b9c5964262d276d2dc21acbfcd94022d1e2084d199315df4\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.xz\",\"name\":\"PHP 5.6.32 (tar.xz)\",\"sha256\":\"8c2b4f721c7475fb9eabda2495209e91ea933082e6f34299d11cba88cd76e64b\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"5.6.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_31.php\"},\"source\":[{\"filename\":\"php-5.6.31.tar.bz2\",\"name\":\"PHP 5.6.31 (tar.bz2)\",\"sha256\":\"8f397169cb65f0539f3bcb04060f97770d73e19074a37bd2c58b98ebf6ecb10f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.gz\",\"name\":\"PHP 5.6.31 (tar.gz)\",\"sha256\":\"6687ed2f09150b2ad6b3780ff89715891f83a9c331e69c90241ef699dec4c43f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.xz\",\"name\":\"PHP 5.6.31 (tar.xz)\",\"sha256\":\"c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false},\"5.6.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_30.php\"},\"source\":[{\"filename\":\"php-5.6.30.tar.bz2\",\"name\":\"PHP 5.6.30 (tar.bz2)\",\"sha256\":\"a105c293fa1dbff118b5b0ca74029e6c461f8c78f49b337a2a98be9e32c27906\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.gz\",\"name\":\"PHP 5.6.30 (tar.gz)\",\"sha256\":\"8bc7d93e4c840df11e3d9855dcad15c1b7134e8acf0cf3b90b932baea2d0bde2\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.xz\",\"name\":\"PHP 5.6.30 (tar.xz)\",\"sha256\":\"a363185c786432f75e3c7ff956b49c3369c3f6906a6b10459f8d1ddc22f70805\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"5.6.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_29.php\"},\"source\":[{\"filename\":\"php-5.6.29.tar.bz2\",\"name\":\"PHP 5.6.29 (tar.bz2)\",\"sha256\":\"499b844c8aa7be064c111692e51a093ba94e54d2d9abb01e70ea76183a1825bb\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.gz\",\"name\":\"PHP 5.6.29 (tar.gz)\",\"sha256\":\"0b1b939129a7286c5a474ac2cf845b979477f26dff36639e04022def9e252574\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.xz\",\"name\":\"PHP 5.6.29 (tar.xz)\",\"sha256\":\"0ff352a433f73e2c82b0d5b283b600402518569bf72a74e247f356dacbf322a7\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false},\"5.6.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_28.php\"},\"source\":[{\"filename\":\"php-5.6.28.tar.bz2\",\"name\":\"PHP 5.6.28 (tar.bz2)\",\"sha256\":\"c55ea3f4aad5a0b65631d01c4468930fd981ad208ffcd242acdf731bcb47548f\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.gz\",\"name\":\"PHP 5.6.28 (tar.gz)\",\"sha256\":\"27a47ac15e0868d51181d3909cfe3c63ae9b643a3ab40dc30a75b5b500bce500\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.xz\",\"name\":\"PHP 5.6.28 (tar.xz)\",\"sha256\":\"07187ba2870f89cef334cd2ad6cb801aeec5eaf283da0293a9a6be75d6786d11\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false},\"5.6.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_27.php\"},\"source\":[{\"filename\":\"php-5.6.27.tar.bz2\",\"name\":\"PHP 5.6.27 (tar.bz2)\",\"sha256\":\"3b77d3a067b6e9cc7bb282d4d5b0e6eeb0623a828bb0479241e3b030446f2a3c\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.gz\",\"name\":\"PHP 5.6.27 (tar.gz)\",\"sha256\":\"3e6cecec615907587a2b35fa8e7f915f038034dc57530734c2b94d381e664a1a\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.xz\",\"name\":\"PHP 5.6.27 (tar.xz)\",\"sha256\":\"16eb544498339d1d855292826e2e547ab01a31600141094959073e5e10e93ab5\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false},\"5.6.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_26.php\"},\"source\":[{\"filename\":\"php-5.6.26.tar.bz2\",\"name\":\"PHP 5.6.26 (tar.bz2)\",\"sha256\":\"d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.gz\",\"name\":\"PHP 5.6.26 (tar.gz)\",\"sha256\":\"f76b6cc23739d9dabf875aee57d91ae73f15e88ddf78803369b8b4728b19b924\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.xz\",\"name\":\"PHP 5.6.26 (tar.xz)\",\"sha256\":\"203a854f0f243cb2810d1c832bc871ff133eccdf1ff69d32846f93bc1bef58a8\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false},\"5.6.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_25.php\"},\"source\":[{\"filename\":\"php-5.6.25.tar.bz2\",\"name\":\"PHP 5.6.25 (tar.bz2)\",\"sha256\":\"58ce6032aced7f3e42ced492bd9820e5b3f2a3cd3ef71429aa92fd7b3eb18dde\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.gz\",\"name\":\"PHP 5.6.25 (tar.gz)\",\"sha256\":\"733f1c811d51c2d4031a0c058dc94d09d03858d781ca2eb2cce78853bc76db58\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.xz\",\"name\":\"PHP 5.6.25 (tar.xz)\",\"sha256\":\"7535cd6e20040ccec4594cc386c6f15c3f2c88f24163294a31068cf7dfe7f644\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false},\"5.6.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_24.php\"},\"source\":[{\"filename\":\"php-5.6.24.tar.bz2\",\"name\":\"PHP 5.6.24 (tar.bz2)\",\"sha256\":\"bf23617ec3ed0a125ec8bde2b7bca9d3804b2ff4df8de192890c84dc9fac38c6\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.gz\",\"name\":\"PHP 5.6.24 (tar.gz)\",\"sha256\":\"5f8b2e4e00360fee6eb1b89447266ae45993265955bd1ea9866270d75cdb6ec1\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.xz\",\"name\":\"PHP 5.6.24 (tar.xz)\",\"sha256\":\"ed7c38c6dac539ade62e08118258f4dac0c49beca04d8603bee4e0ea6ca8250b\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.5.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_38.php\"},\"source\":[{\"filename\":\"php-5.5.38.tar.bz2\",\"name\":\"PHP 5.5.38 (tar.bz2)\",\"sha256\":\"473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.gz\",\"name\":\"PHP 5.5.38 (tar.gz)\",\"sha256\":\"4f458c9b504269615715a62f182b7c2f89bb8284f484befc221b56a1571b506e\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.xz\",\"name\":\"PHP 5.5.38 (tar.xz)\",\"sha256\":\"cb527c44b48343c8557fe2446464ff1d4695155a95601083e5d1f175df95580f\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.6.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_23.php\"},\"source\":[{\"filename\":\"php-5.6.23.tar.bz2\",\"name\":\"PHP 5.6.23 (tar.bz2)\",\"sha256\":\"facd280896d277e6f7084b60839e693d4db68318bfc92085d3dc0251fd3558c7\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.gz\",\"name\":\"PHP 5.6.23 (tar.gz)\",\"sha256\":\"5f2274a13970887e8c81500c2afe292d51c3524d1a06554b0a87c74ce0a24ffe\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.xz\",\"name\":\"PHP 5.6.23 (tar.xz)\",\"sha256\":\"39141e9a617af172aedbbacee7a63eb15502850f7cea20d759a9cffa7cfb0a1a\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_37.php\"},\"source\":[{\"filename\":\"php-5.5.37.tar.bz2\",\"name\":\"PHP 5.5.37 (tar.bz2)\",\"sha256\":\"d2380ebe46caf17f2c4cd055867d00a82e6702dc5f62dc29ce864a5742905d88\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.gz\",\"name\":\"PHP 5.5.37 (tar.gz)\",\"sha256\":\"7cef04b549fdbe00c26dc785b6ba10439672a1596db518fc46632ecba45f44b9\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.xz\",\"name\":\"PHP 5.5.37 (tar.xz)\",\"sha256\":\"c322444fdf6d3ba26aa67d67ee32d1e815a877f35831351c83763431a80e3612\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_36.php\"},\"source\":[{\"filename\":\"php-5.5.36.tar.bz2\",\"name\":\"PHP 5.5.36 (tar.bz2)\",\"sha256\":\"2484edfaa3de606d74f927b55c5206f51b1ae24ea8e428aa9fc15474c7bb71bb\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.gz\",\"name\":\"PHP 5.5.36 (tar.gz)\",\"sha256\":\"ef829f9a9600a858e2363533b80c4e4773505bdc8ea3692d703fc893f267728a\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.xz\",\"name\":\"PHP 5.5.36 (tar.xz)\",\"sha256\":\"e1bbe33d6b4da66b15c483131520a9fc505eeb6629fa70c5cfba79590a1d0801\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_22.php\"},\"source\":[{\"filename\":\"php-5.6.22.tar.bz2\",\"name\":\"PHP 5.6.22 (tar.bz2)\",\"sha256\":\"90da8a80cc52fa699cf2bfa4c6fa737c772df7c92b81ef483460aa3b1e9f88c6\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.gz\",\"name\":\"PHP 5.6.22 (tar.gz)\",\"sha256\":\"4ce0f58c3842332c4e3bb2ec1c936c6817294273abaa37ea0ef7ca2a68cf9b21\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.xz\",\"name\":\"PHP 5.6.22 (tar.xz)\",\"sha256\":\"c96980d7de1d66c821a4ee5809df0076f925b2fe0b8c362d234d92f2f0a178e2\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_21.php\"},\"source\":[{\"filename\":\"php-5.6.21.tar.bz2\",\"name\":\"PHP 5.6.21 (tar.bz2)\",\"sha256\":\"b4ed7ab574b689fd6d6494fde954826c06efc85c505e017b8d776c7c7f479590\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.gz\",\"name\":\"PHP 5.6.21 (tar.gz)\",\"sha256\":\"5997668c1f6f2d86a59cf75cc86b4a94687884614dec481fad7e13a76b70fcd5\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.xz\",\"name\":\"PHP 5.6.21 (tar.xz)\",\"sha256\":\"566ff1a486cb0485ed477a91ea292423f77a58671270ff73b74e67e3ce7084f9\",\"date\":\"28 Apr 2016\"}],\"date\":\"28 Apr 2016\",\"museum\":false},\"5.5.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_35.php\"},\"source\":[{\"filename\":\"php-5.5.35.tar.bz2\",\"name\":\"PHP 5.5.35 (tar.bz2)\",\"sha256\":\"2d648dd648e820fd64693ce72f9bf07064d147220e594e39fb9f6310238258d7\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.gz\",\"name\":\"PHP 5.5.35 (tar.gz)\",\"sha256\":\"21e10a49c62ab34a7edc976af686a952e70142f19135ca8da67758e1c8c3df30\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.xz\",\"name\":\"PHP 5.5.35 (tar.xz)\",\"sha256\":\"9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873\",\"date\":\"28 Apr 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_20.php\"},\"source\":[{\"filename\":\"php-5.6.20.tar.bz2\",\"name\":\"PHP 5.6.20 (tar.bz2)\",\"sha256\":\"5ac7bf7caec7a79b18cf458e786fd1609ad2da771224b80bc15cc6f01b22bf1f\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.gz\",\"name\":\"PHP 5.6.20 (tar.gz)\",\"sha256\":\"9a7ec6e1080ee93dcbe7df3e49ea1c3c3da5fc2258aff763f39ab3786baf8d56\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.xz\",\"name\":\"PHP 5.6.20 (tar.xz)\",\"sha256\":\"2b87d40213361112af49157a435e0d4cdfd334c9b7c731c8b844932b1f444e7a\",\"date\":\"31 Marc 2016\"}],\"date\":\"31 Marc 2016\",\"museum\":false},\"5.5.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_34.php\"},\"source\":[{\"filename\":\"php-5.5.34.tar.bz2\",\"name\":\"PHP 5.5.34 (tar.bz2)\",\"sha256\":\"af88884416a92619de842ad0fd23f7f7e8140efb0b9194f98a38a78781e5851c\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.gz\",\"name\":\"PHP 5.5.34 (tar.gz)\",\"sha256\":\"0e573b406441294b233e35e1f2e12d7896d68457e3e10bf6e1f4825e75271cca\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.xz\",\"name\":\"PHP 5.5.34 (tar.xz)\",\"sha256\":\"6989a4f9900e6ddec7248790449bbb4aa55728730bff4973acb49d236c9e9e2a\",\"date\":\"31 Mar 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_19.php\"},\"source\":[{\"filename\":\"php-5.6.19.tar.bz2\",\"name\":\"PHP 5.6.19 (tar.bz2)\",\"sha256\":\"2a24a3f84971680ac0a4c71050067de4f76ee235aa4a041fae21bfa69975c168\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.gz\",\"name\":\"PHP 5.6.19 (tar.gz)\",\"sha256\":\"fce49cddac9337f0c83afbafac5acfb82ba9f876a5a880c88240feac8c9b7a22\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.xz\",\"name\":\"PHP 5.6.19 (tar.xz)\",\"sha256\":\"bb32337f93a00b71789f116bddafa8848139120e7fb6f4f98a84f52dbcb8329f\",\"date\":\"03 Marc 2016\"}],\"date\":\"03 Marc 2016\",\"museum\":false},\"5.5.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_33.php\"},\"source\":[{\"filename\":\"php-5.5.33.tar.bz2\",\"name\":\"PHP 5.5.33 (tar.bz2)\",\"sha256\":\"c490b1ed4df596b48eb68f630d89ca512945e2650840e7dace1119cc7e600aa9\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.gz\",\"name\":\"PHP 5.5.33 (tar.gz)\",\"sha256\":\"d2747bcf2cc94f652ac216f522904863a22042c66fabcf82ad7449d261d7a45b\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.xz\",\"name\":\"PHP 5.5.33 (tar.xz)\",\"sha256\":\"b91dbd3c53f9895e8f7b29e5fed25a64dd3a76b454f6ef7265e73c96b4303f30\",\"date\":\"03 Mar 2016\"}],\"date\":\"03 Mar 2016\",\"museum\":false},\"5.6.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_18.php\"},\"source\":[{\"filename\":\"php-5.6.18.tar.bz2\",\"name\":\"PHP 5.6.18 (tar.bz2)\",\"sha256\":\"c3cd4a29a9562309d36e2b128407d6eaa5c7dde590d2b1a464457383e517f4ed\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.gz\",\"name\":\"PHP 5.6.18 (tar.gz)\",\"sha256\":\"76da4150dc2da86b7b63b1aad3c20d1d11964796251ac0dd4d26d0a3f5045015\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.xz\",\"name\":\"PHP 5.6.18 (tar.xz)\",\"sha256\":\"54dd9106c3469bc7028644d72ac140af00655420bbaaf4a742a64e9ed02ec1b0\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.5.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_32.php\"},\"source\":[{\"filename\":\"php-5.5.32.tar.bz2\",\"name\":\"PHP 5.5.32 (tar.bz2)\",\"sha256\":\"b0f2c108db8e05db9f6366aaba9a754fd0ee31f3f86ee889561b608dfd6e92ee\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.gz\",\"name\":\"PHP 5.5.32 (tar.gz)\",\"sha256\":\"419aa62a68a640192799928a29e5cd4cd5b965458223bea2b3209a68c3e95989\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.xz\",\"name\":\"PHP 5.5.32 (tar.xz)\",\"sha256\":\"02f569dcf5bd57dd5e390ddcab8609e3957a698e2db0b793cf2c11a7e33743c9\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.6.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_17.php\"},\"source\":[{\"filename\":\"php-5.6.17.tar.bz2\",\"name\":\"PHP 5.6.17 (tar.bz2)\",\"sha256\":\"77b45f56a1e63e75bb22b42cfb8b438ec4083c59ce774b4d7c1685544b7add3b\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.gz\",\"name\":\"PHP 5.6.17 (tar.gz)\",\"sha256\":\"f5036535651e919415f4b6589391c95e4ff48f2d391818251c45da216791aac8\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.xz\",\"name\":\"PHP 5.6.17 (tar.xz)\",\"sha256\":\"ea9d5749380c7c7171e131616466deacd7cb124b5010eafc34e551b0a7b0fb2c\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.5.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_31.php\"},\"source\":[{\"filename\":\"php-5.5.31.tar.bz2\",\"name\":\"PHP 5.5.31 (tar.bz2)\",\"sha256\":\"fb4a382b9a9dceb749b7ef047d8251320bc8d371c843714e5b4f4b70d61ba277\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.gz\",\"name\":\"PHP 5.5.31 (tar.gz)\",\"sha256\":\"59a4417029ba5497d17ee02b65f419129ecf9ca8a1d864e0bccd5a3d4407a597\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.xz\",\"name\":\"PHP 5.5.31 (tar.xz)\",\"sha256\":\"a9ac5b94fcc3811b661a090dddd716f81e43947240b35e6a0123e609a135ac54\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.6.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_16.php\"},\"source\":[{\"filename\":\"php-5.6.16.tar.bz2\",\"name\":\"PHP 5.6.16 (tar.bz2)\",\"sha256\":\"4fe6f40964c1bfaba05fc144ba20a2cdad33e11685f4f101ea5a48b98bbcd2ae\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.gz\",\"name\":\"PHP 5.6.16 (tar.gz)\",\"sha256\":\"b6618df6b11a275fa28596f1775727679f8492e100f3bd488d8a8bfbfc19349f\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.xz\",\"name\":\"PHP 5.6.16 (tar.xz)\",\"sha256\":\"8ef43271d9bd8cc8f8d407d3ba569de9fa14a28985ae97c76085bb50d597de98\",\"date\":\"26 Nov 2015\"}],\"date\":\"26 Nov 2015\",\"museum\":false},\"5.5.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_30.php\"},\"source\":[{\"filename\":\"php-5.5.30.tar.bz2\",\"name\":\"PHP 5.5.30 (tar.bz2)\",\"sha256\":\"e7332a713cecdd1cb44a1b1336739885c9789f633f0f51236b25e48ab03c3b29\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.gz\",\"name\":\"PHP 5.5.30 (tar.gz)\",\"sha256\":\"8ad57f4317391354e66c83d26752f67515b2e923277eb97b2b420dfeff3c1007\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.xz\",\"name\":\"PHP 5.5.30 (tar.xz)\",\"sha256\":\"d00dc06fa5e0f3de048fb0cf940b3cc59b43b3f8cad825d4fffb35503cf2e8f2\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_15.php\"},\"source\":[{\"filename\":\"php-5.6.15.tar.bz2\",\"name\":\"PHP 5.6.15 (tar.bz2)\",\"sha256\":\"11a0645c4d4b749e256da1e0d6df89dd886b5b06b83c914d942653661dbd1c38\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.gz\",\"name\":\"PHP 5.6.15 (tar.gz)\",\"sha256\":\"bb2d4c226a4897b7c3659c2538a87aef7ec104f58f5ae930a263dd77fb8ebc40\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.xz\",\"name\":\"PHP 5.6.15 (tar.xz)\",\"sha256\":\"cf52e2e621e60997269663fa4bc06253191fa2a41dc9b08c8c911435b3ebcca9\",\"date\":\"29 Oct 2015\"}],\"date\":\"29 Oct 2015\",\"museum\":false},\"5.6.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_14.php\"},\"source\":[{\"filename\":\"php-5.6.14.tar.bz2\",\"name\":\"PHP 5.6.14 (tar.bz2)\",\"sha256\":\"36f295f11641c1839a5df00e693f685fd134c65e8a1d46e8ee0abae8662b2eb0\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.gz\",\"name\":\"PHP 5.6.14 (tar.gz)\",\"sha256\":\"29baf7ffca644f7f8e86028c40275b9e460342bdf9562d45f8f0498899cb738d\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.xz\",\"name\":\"PHP 5.6.14 (tar.xz)\",\"sha256\":\"c8edf6b05fd8a69ebd88d90c5c0975ee168502204622ad5cfcd550bc222632d9\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_13.php\"},\"source\":[{\"filename\":\"php-5.6.13.tar.bz2\",\"name\":\"PHP 5.6.13 (tar.bz2)\",\"sha256\":\"6358837c9cbab41b91ede59dbf0670ae0fb925a1369ecbc1a44a27212420f893\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.gz\",\"name\":\"PHP 5.6.13 (tar.gz)\",\"sha256\":\"92acc6c067f5e015a6881b4119eafec10eca11722e810f2c2083f72e17119bcf\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.xz\",\"name\":\"PHP 5.6.13 (tar.xz)\",\"sha256\":\"c1f0837df20cd3bed149033924770deca3e7e2d18e2e7e81395096576f153fdc\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_29.php\"},\"source\":[{\"filename\":\"php-5.5.29.tar.bz2\",\"name\":\"PHP 5.5.29 (tar.bz2)\",\"sha256\":\"fbcee579ecc77cad6960a541116aee669cf145c2cd9a54bf60503a870843b946\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.gz\",\"name\":\"PHP 5.5.29 (tar.gz)\",\"sha256\":\"c25a4c4eae558cc9899d2994813dd272eafff9466926f30821a83edaafe620a9\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.xz\",\"name\":\"PHP 5.5.29 (tar.xz)\",\"sha256\":\"22c72d1b88c8d9a8ab9ca565e9ca5844287c006134098805d9a373a862bbbcad\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_28.php\"},\"source\":[{\"filename\":\"php-5.5.28.tar.bz2\",\"name\":\"PHP 5.5.28 (tar.bz2)\",\"sha256\":\"197d2c572e030c177e53d3763d59ac6d363d7c78dc22e6cc1e2ac65573d9c2f3\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.gz\",\"name\":\"PHP 5.5.28 (tar.gz)\",\"sha256\":\"6084f25a39ab2f79ade46bf0258a1cd6c9bbb09a106b40dd996dbdf8cd3b08f2\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.xz\",\"name\":\"PHP 5.5.28 (tar.xz)\",\"sha256\":\"d060455c804c622cda9f3f5f084b10c6ceba73ee76c1720897e17137a0f75ecd\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_12.php\"},\"source\":[{\"filename\":\"php-5.6.12.tar.bz2\",\"name\":\"PHP 5.6.12 (tar.bz2)\",\"sha256\":\"6f27104272af7b2a996f85e4100fac627630fbdaf39d7bd263f16cf529c8853a\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.gz\",\"name\":\"PHP 5.6.12 (tar.gz)\",\"sha256\":\"7799b42606c1770d1ad90bfc7521d2b6c294c4c27dcf1a206dee562533b4f984\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.xz\",\"name\":\"PHP 5.6.12 (tar.xz)\",\"sha256\":\"f8a8446866c0dc3f33319aa196ce87b64d71cab3dd96e39c8816adccc7e8ef33\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_11.php\"},\"source\":[{\"filename\":\"php-5.6.11.tar.bz2\",\"name\":\"PHP 5.6.11 (tar.bz2)\",\"sha256\":\"bd6b260816764c267244749ead07482120dbf8d1920ebbbb0dcb2aa411033866\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.gz\",\"name\":\"PHP 5.6.11 (tar.gz)\",\"sha256\":\"85916b46c0d1f2a5315c84fb2773293f4084c3676ba4ed420d0432cbb60ff9d8\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.xz\",\"name\":\"PHP 5.6.11 (tar.xz)\",\"sha256\":\"3f97dbb1c646b90e1ef638defabe429ef036f903b5baa1c34769d3de4fe62bd4\",\"date\":\"10 Jul 2015\"}],\"date\":\"10 Jul 2015\",\"museum\":false},\"5.5.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_27.php\"},\"source\":[{\"filename\":\"php-5.5.27.tar.bz2\",\"name\":\"PHP 5.5.27 (tar.bz2)\",\"sha256\":\"c4b4c6a534c0ca67a9ae39bec4f51e52d13e820135dd016eae230e15337e1f70\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.gz\",\"name\":\"PHP 5.5.27 (tar.gz)\",\"sha256\":\"57cc716ebb37a62654c154582e48a282055b08ce91995c79b0be41b9940237f0\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.xz\",\"name\":\"PHP 5.5.27 (tar.xz)\",\"sha256\":\"7ee398058067a7d8184e402fcdccb25003852cb8dc94eefa3cda051a3e47fdd8\",\"date\":\"09 Jul 2015\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.6.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_10.php\"},\"source\":[{\"filename\":\"php-5.6.10.tar.bz2\",\"name\":\"PHP 5.6.10 (tar.bz2)\",\"sha256\":\"0a579c81c724ea41815eee0caa8ea7d8eeb302458519d8cc4fc5b055577c8c45\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.gz\",\"name\":\"PHP 5.6.10 (tar.gz)\",\"sha256\":\"7759d6e178be524085e1482921748c14d11cbd0a133ba8aabb96c391ce7ed3fc\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.xz\",\"name\":\"PHP 5.6.10 (tar.xz)\",\"sha256\":\"1af720c955b0a57aa47606e928616e84c78868aff2a5f269c70601a77d6da8c1\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.5.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_26.php\"},\"source\":[{\"filename\":\"php-5.5.26.tar.bz2\",\"name\":\"PHP 5.5.26 (tar.bz2)\",\"sha256\":\"816afffdb03ff4c542bc172a2f77f9c69b817df82d60cce05c1b4f578c2c926e\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.gz\",\"name\":\"PHP 5.5.26 (tar.gz)\",\"sha256\":\"bee980d433bab99d07ee2bf6f2dcb87d746e49d57adec7d0ce7edb39306695ec\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.xz\",\"name\":\"PHP 5.5.26 (tar.xz)\",\"sha256\":\"97672c41cf2f95628dbffb63648147b43b23ea41b99ad22ccf5f4fe9b6e91b51\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.6.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_9.php\"},\"source\":[{\"filename\":\"php-5.6.9.tar.bz2\",\"name\":\"PHP 5.6.9 (tar.bz2)\",\"sha256\":\"19d3b87b7b8bba3be24cf6d757d16b723a98881c3af8d15469fd25501e9abcb9\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.gz\",\"name\":\"PHP 5.6.9 (tar.gz)\",\"sha256\":\"49527ba66357fe65bcd463dfb8dcff1b8879419f88b3c334f50696a2aceacb87\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.xz\",\"name\":\"PHP 5.6.9 (tar.xz)\",\"sha256\":\"1fac497b596f5e4e87d87a7ca90f8725e39a8ca3f9d7adb500fa83c4bb70a73f\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.5.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_25.php\"},\"source\":[{\"filename\":\"php-5.5.25.tar.bz2\",\"name\":\"PHP 5.5.25 (tar.bz2)\",\"sha256\":\"68df37e725ddd05675c0df906041038127938ecc52113a54d10e1e4029262c63\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.gz\",\"name\":\"PHP 5.5.25 (tar.gz)\",\"sha256\":\"c9397f60bff139e0df441c5e2766108c5bc7ad690de136eb9f5b2f9bbf771240\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.xz\",\"name\":\"PHP 5.5.25 (tar.xz)\",\"sha256\":\"ac10015dddfc103b58ccc949504bd50f0d79d0abe74a0cc7842251af06ce8b07\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.6.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_8.php\"},\"source\":[{\"filename\":\"php-5.6.8.tar.bz2\",\"name\":\"PHP 5.6.8 (tar.bz2)\",\"sha256\":\"0af0045745d61eeb74a3ea744529a2481b27cb689da720e6c0250675043724e4\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.gz\",\"name\":\"PHP 5.6.8 (tar.gz)\",\"sha256\":\"c5b1c75c5671c239473eb611129f33ac432a55a1c341990b70009a2aa3b8dbc3\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.xz\",\"name\":\"PHP 5.6.8 (tar.xz)\",\"sha256\":\"4c417387b88e100ca306adeda8051eb9fad93dae8da983f962dabf91a14b2b7b\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.5.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_24.php\"},\"source\":[{\"filename\":\"php-5.5.24.tar.bz2\",\"name\":\"PHP 5.5.24 (tar.bz2)\",\"sha256\":\"801b5cf2e0c01b07314d4ac3c8a7c28d524bdd8263ebdd0e33a99008251316a2\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.gz\",\"name\":\"PHP 5.5.24 (tar.gz)\",\"sha256\":\"43e6b83fe8151f8d2062ca4da915312fc92e47789801049231c705a8b29b05bc\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.xz\",\"name\":\"PHP 5.5.24 (tar.xz)\",\"sha256\":\"ffb6235a25043cab71e6445cfc9e8bf16ae80a2835f0373cdd948fcc31eafe57\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.6.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_7.php\"},\"source\":[{\"filename\":\"php-5.6.7.tar.bz2\",\"name\":\"PHP 5.6.7 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"02954fb74c61a7879d48ebdcd4ecb78aa0056f4215ca9b096232de28eb8f17bc\"},{\"filename\":\"php-5.6.7.tar.gz\",\"name\":\"PHP 5.6.7 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"11398540a582c876f5e070207231afde975eb49bb2eeae20b052e8ca325c0f47\"},{\"filename\":\"php-5.6.7.tar.xz\",\"name\":\"PHP 5.6.7 (tar.xz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"a85522dd2e6f80ee5637e537447ee54896c77a8fabe49d2310830d0e20952787\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.5.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_23.php\"},\"source\":[{\"filename\":\"php-5.5.23.tar.bz2\",\"name\":\"PHP 5.5.23 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"a99ab264dcd40181baa9defeaa4b21eb2c20d4e9316b904cc05f628762e6ada7\"},{\"filename\":\"php-5.5.23.tar.gz\",\"name\":\"PHP 5.5.23 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"bf1246d4aca5b1a4e26f5cea273565ad3ee4607f20b7f28a508e3cab1a4d0c82\"},{\"filename\":\"php-5.5.23.tar.xz\",\"name\":\"PHP 5.5.23 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"2fc8315606cd6a51dae2e1fe9ac7a9bead76dace3eaf888ba372506695403af4\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_6.php\"},\"source\":[{\"filename\":\"php-5.6.6.tar.bz2\",\"name\":\"PHP 5.6.6 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"09625c9b65e0c8198dc76995a35f0feec0e13ea4489526e64a00954b12adbb4c\"},{\"filename\":\"php-5.6.6.tar.gz\",\"name\":\"PHP 5.6.6 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"164fb27bab0a0ca4902bc67d5f5638e43466c88153aee3b54546d8ec682ec03b\"},{\"filename\":\"php-5.6.6.tar.xz\",\"name\":\"PHP 5.6.6 (tar.xz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"b963b2d45baeebeeb421c05ee60889e87971e3e27a4be873d265fee3250fde20\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.5.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_22.php\"},\"source\":[{\"filename\":\"php-5.5.22.tar.bz2\",\"name\":\"PHP 5.5.22 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"c218c184bef2905bc79fcdda6040f3d1738261395fb706396935d1c6f6e162bb\"},{\"filename\":\"php-5.5.22.tar.gz\",\"name\":\"PHP 5.5.22 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"cb6174e1e74de233ec7b461302f823a7eacf7bcc946d347486c930e53f2b7db7\"},{\"filename\":\"php-5.5.22.tar.xz\",\"name\":\"PHP 5.5.22 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"5256a7e3999eb11f8b4b407408ea4780f60aa959e0c48cfcf376091e721df223\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_5.php\"},\"source\":[{\"filename\":\"php-5.6.5.tar.bz2\",\"name\":\"PHP 5.6.5 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"adab4c0775512a5ca0ae74e08efdc941d92529b75283e0f44d3f53822cdfd06d\"},{\"filename\":\"php-5.6.5.tar.gz\",\"name\":\"PHP 5.6.5 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f67c480bcf2f6f703ec8d8a772540f4a518f766b08d634d7a919402c13a636cf\"},{\"filename\":\"php-5.6.5.tar.xz\",\"name\":\"PHP 5.6.5 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"c5ef4abaef8c1ea66dcfd5a075a2f357b666aff5c5b686fca7c78c1cfd64e996\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.5.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_21.php\"},\"source\":[{\"filename\":\"php-5.5.21.tar.bz2\",\"name\":\"PHP 5.5.21 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"62e9429975c4ca5d7067a5052d5388fbf2ac8c51eeee581d59b04cc5a8da83fe\"},{\"filename\":\"php-5.5.21.tar.gz\",\"name\":\"PHP 5.5.21 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"45adba5b4d2519f6174b85fd5b07a77389f397603d84084bdd26c44b3d7dc8af\"},{\"filename\":\"php-5.5.21.tar.xz\",\"name\":\"PHP 5.5.21 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f2583540b2698d7d0ee9cfc071c2b56ccc64a52a2b53101511ba8df5b126d6d2\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.6.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_4.php\"},\"source\":[{\"filename\":\"php-5.6.4.tar.bz2\",\"name\":\"PHP 5.6.4 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1\"},{\"filename\":\"php-5.6.4.tar.gz\",\"name\":\"PHP 5.6.4 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"9c318f10af598e3d0b306a00860cfeb13c34024a9032a59ff53e3cd3c7791e97\"},{\"filename\":\"php-5.6.4.tar.xz\",\"name\":\"PHP 5.6.4 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"8cf44c59f467cdc2dd76c1167d1f368575ccff9b12941e199a362eb44a79acea\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.5.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_20.php\"},\"source\":[{\"filename\":\"php-5.5.20.tar.bz2\",\"name\":\"PHP 5.5.20 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"f28a150d1cd8991bd1a41dce4fdff4e343d1dbe01a48b9b44bea74532ce0391a\"},{\"filename\":\"php-5.5.20.tar.gz\",\"name\":\"PHP 5.5.20 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"7454e4f2dba3b08b2c88bb178e7bf704ed100f3d7ab6b83ea5046a6e4acb7295\"},{\"filename\":\"php-5.5.20.tar.xz\",\"name\":\"PHP 5.5.20 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"a0649450f8b0a23cd4c9ad15d0aa271d956f9516fc37b9e9dc492459b57721c8\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.6.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_3.php\"},\"source\":[{\"filename\":\"php-5.6.3.tar.bz2\",\"name\":\"PHP 5.6.3 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8986b20124d14430d795165e47801ef065a38d5855bea39d0d47b13ab9ad4009\"},{\"filename\":\"php-5.6.3.tar.gz\",\"name\":\"PHP 5.6.3 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ac79fe7ef50c2d5893375f5d8854909337adf1632e42bb08b36b66a0d8016a7\"},{\"filename\":\"php-5.6.3.tar.xz\",\"name\":\"PHP 5.6.3 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"fad244506cc7f10fe56aba8129b3c39a4f9316d9544a4fba932c3f81fc2244b5\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.5.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_19.php\"},\"source\":[{\"filename\":\"php-5.5.19.tar.bz2\",\"name\":\"PHP 5.5.19 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"4366dbb904cba8c8dd32224ac9408495d20aecaed86a871d78df420f5a23bbff\"},{\"filename\":\"php-5.5.19.tar.gz\",\"name\":\"PHP 5.5.19 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8d39f224424f37644da913353f1e773c20b7fc55bb3cc81526c18f91d1d6394e\"},{\"filename\":\"php-5.5.19.tar.xz\",\"name\":\"PHP 5.5.19 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"ccff8dfcd342e48a5b1e8b85c1c8c95d2e2eefab869757dcaa5224f11bb30e21\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.6.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_2.php\"},\"source\":[{\"filename\":\"php-5.6.2.tar.bz2\",\"name\":\"PHP 5.6.2 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"671dcf1f636410c63bb9eb015c4c180d904f5436f81217be0adbf52da9becdb5\"},{\"filename\":\"php-5.6.2.tar.gz\",\"name\":\"PHP 5.6.2 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"4bb316831979317caf738bb9e2c590bf3b7951ce60c69b9ca33f26069d9a2f39\"},{\"filename\":\"php-5.6.2.tar.xz\",\"name\":\"PHP 5.6.2 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"9be1322d33520fb2164282fb0fcdc212f66ffedcd912bff60955d5696454fe39\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.5.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_18.php\"},\"source\":[{\"filename\":\"php-5.5.18.tar.bz2\",\"name\":\"PHP 5.5.18 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"f974279927b72b672dda4ef4b4362b4847fd3d19ce1d4f2e982230a4e93bb842\"},{\"filename\":\"php-5.5.18.tar.gz\",\"name\":\"PHP 5.5.18 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"71f6445cc21c944a3b98592193c62e29a58af3fe26d097312502b4fd400286e4\"},{\"filename\":\"php-5.5.18.tar.xz\",\"name\":\"PHP 5.5.18 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"ccfbf6af18d1e56145867454dcbc75d90512f40ee9d3e57fdc6cb5fe3fc9726e\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.6.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_1.php\"},\"source\":[{\"filename\":\"php-5.6.1.tar.bz2\",\"name\":\"PHP 5.6.1 (tar.bz2)\",\"date\":\"02 Oct 2014\",\"sha256\":\"82c1ccd17830d697d7a4d75bb60ea12be58fa80b4dba101e97db1a6372ca45f0\"},{\"filename\":\"php-5.6.1.tar.gz\",\"name\":\"PHP 5.6.1 (tar.gz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"e34f0ab6b1f431f3115f60094f6d7ded12a90db2361194b8ef9e6eff812db21c\"},{\"filename\":\"php-5.6.1.tar.xz\",\"name\":\"PHP 5.6.1 (tar.xz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"57640a700364949292da06e55423f162428a864451d05751a8829ae04d65745e\"}],\"date\":\"02 Oct 2014\",\"museum\":false},\"5.5.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_17.php\"},\"source\":[{\"filename\":\"php-5.5.17.tar.bz2\",\"name\":\"PHP 5.5.17 (tar.bz2)\",\"date\":\"18 Sep 2014\",\"sha256\":\"5d81db0c8b2a68da05715c363d037922b82a45c966785d64a77482e5c01e4e1b\"},{\"filename\":\"php-5.5.17.tar.gz\",\"name\":\"PHP 5.5.17 (tar.gz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"657169be88ae70625d97bb94dd29140c2b602f1ba8d5e42ca14a400b63cf4720\"},{\"filename\":\"php-5.5.17.tar.xz\",\"name\":\"PHP 5.5.17 (tar.xz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"382b2a1cfbf67ca9e30171c9c49bfe260d5e458e07850d4b036e8430e1829093\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.6.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_0.php\"},\"source\":[{\"filename\":\"php-5.6.0.tar.bz2\",\"name\":\"PHP 5.6.0 (tar.bz2)\",\"date\":\"28 Aug 2014\",\"sha256\":\"097af1be34fc73965e6f8401fd10e73eb56e1969ed4ffd691fb7e91606d0fc09\"},{\"filename\":\"php-5.6.0.tar.gz\",\"name\":\"PHP 5.6.0 (tar.gz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"284b85376c630a6a7163e5278d64b8526fa1324fe5fd5d21174b54e2c056533f\"},{\"filename\":\"php-5.6.0.tar.xz\",\"name\":\"PHP 5.6.0 (tar.xz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"8fc5411cd05cc6cc663247e588931fe67b1dc0e42550fa28ab2c943ad84eda02\"}],\"date\":\"28 Aug 2014\",\"museum\":false},\"5.5.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_16.php\"},\"source\":[{\"filename\":\"php-5.5.16.tar.bz2\",\"name\":\"PHP 5.5.16 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"a1d7c4556a80bed744a348211b33bc35303edd56dd0a34e0a75a948c879cc5f6\"},{\"filename\":\"php-5.5.16.tar.gz\",\"name\":\"PHP 5.5.16 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"cdea80ab1b0466f4656b46155e341b700799e78569a5cc582eeaededb448086c\"},{\"filename\":\"php-5.5.16.tar.xz\",\"name\":\"PHP 5.5.16 (tar.xz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"8276e8de4928e8e7011d1ac6c841c5adfc4561c7329ef2f5e055e7f4e1af0e48\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.5.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_15.php\"},\"source\":[{\"filename\":\"php-5.5.15.tar.bz2\",\"name\":\"PHP 5.5.15 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"00f24226b12fee27e332383b6304f1b9ed3f4d9173dd728a68c5c3f5a59b8ba7\"},{\"filename\":\"php-5.5.15.tar.gz\",\"name\":\"PHP 5.5.15 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"578febd686018401c4857699b29502b1aecaf82bf43525d810867f583961ac6e\"},{\"filename\":\"php-5.5.15.tar.xz\",\"name\":\"PHP 5.5.15 (tar.xz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"c20e360cf06bd4279ab423a7785d36aba0e2a9fdcd0b817883ab01cf0d914dd6\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.5.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_14.php\"},\"source\":[{\"filename\":\"php-5.5.14.tar.bz2\",\"name\":\"PHP 5.5.14 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"df5a057877f827549e0a60b43fb01e4bd440814bcf04fbd70bacbddf74482610\"},{\"filename\":\"php-5.5.14.tar.gz\",\"name\":\"PHP 5.5.14 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"ef7e4f4942c5767e01b96650a5bd4178c663738436f99b5695c3144732ff7166\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.5.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_13.php\"},\"source\":[{\"filename\":\"php-5.5.13.tar.bz2\",\"name\":\"PHP 5.5.13 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"e58a4a754eb18d2d8b1a120cad5cce4ed24a7db5d49eca5830a40e4c8ca78b9c\"},{\"filename\":\"php-5.5.13.tar.gz\",\"name\":\"PHP 5.5.13 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"15e34eb7c45e66963cbece29fb41e53cc6c6e3ec4a54c291a53cf6a1527771b6\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.5.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_12.php\"},\"source\":[{\"filename\":\"php-5.5.12.tar.bz2\",\"name\":\"PHP 5.5.12 (tar.bz2)\",\"date\":\"30 Apr 2014\",\"sha256\":\"519ee29e28532782676f3d8e31a808ffbfee383e0279ccc8cbd2b12ed53c2335\"},{\"filename\":\"php-5.5.12.tar.gz\",\"name\":\"PHP 5.5.12 (tar.gz)\",\"date\":\"30 Apr 2014\",\"sha256\":\"a10c6e6ce1145762d6c15ca7ce1aeaab69662c197d24e1294c2519aa85c97bd6\"}],\"date\":\"30 Apr 2014\",\"museum\":false},\"5.5.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_11.php\"},\"source\":[{\"filename\":\"php-5.5.11.tar.bz2\",\"name\":\"PHP 5.5.11 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96\"},{\"filename\":\"php-5.5.11.tar.gz\",\"name\":\"PHP 5.5.11 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a8b7bb1049732bf806e94090661f39f8359e0bf36d59ce6b98a53ea80411b450\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.5.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_10.php\"},\"source\":[{\"filename\":\"php-5.5.10.tar.bz2\",\"name\":\"PHP 5.5.10 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"bb34e61f8e6f56c612867bfe85d144d5045cd5e44497539bc126a4e8c6795419\"},{\"filename\":\"php-5.5.10.tar.gz\",\"name\":\"PHP 5.5.10 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"abf751810593844e0897007797210828b193a213d9b204f203e0331019cadb90\"}],\"date\":\"6 Mar 2014\",\"museum\":false},\"5.5.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_9.php\"},\"source\":[{\"filename\":\"php-5.5.9.tar.bz2\",\"name\":\"PHP 5.5.9 (tar.bz2)\",\"date\":\"6 Feb 2014\",\"sha256\":\"9d1dea5195e2bcd928416130a6e19173d02bd36fb76c382522bf145c458fbed3\"},{\"filename\":\"php-5.5.9.tar.gz\",\"name\":\"PHP 5.5.9 (tar.gz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"ec1bf0cb3be80240049dbd92c272d4bf242a614fa5f9dcc42a15adb5fd01ccde\"},{\"filename\":\"php-5.5.9.tar.xz\",\"name\":\"PHP 5.5.9 (tar.xz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"7f7a7b1189472e59b234233daab9aa9692bb5eb8404485e9a78221f75ee4664a\"}],\"date\":\"6 Feb 2014\",\"museum\":false},\"5.5.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_8.php\"},\"source\":[{\"filename\":\"php-5.5.8.tar.bz2\",\"name\":\"PHP 5.5.8 (tar.bz2)\",\"date\":\"9 Jan 2014\",\"sha256\":\"6d5f45659d13383fc8429f185cc9da0b30c7bb72dcae9baf568f0511eb7f8b68\"},{\"filename\":\"php-5.5.8.tar.gz\",\"name\":\"PHP 5.5.8 (tar.gz)\",\"date\":\"9 Jan 2014\",\"sha256\":\"67c74a9a2357dc65f5b1701cadb574f1309c4c3a20a2a5c56aeae4c4be90f2f8\"}],\"date\":\"9 Jan 2014\",\"museum\":false},\"5.5.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_7.php\"},\"source\":[{\"filename\":\"php-5.5.7.tar.bz2\",\"name\":\"PHP 5.5.7 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"2cb9425ef514b984dd233097d82a66f4623b9bf48f2ef265bc7ba25d697d6008\"},{\"filename\":\"php-5.5.7.tar.gz\",\"name\":\"PHP 5.5.7 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"7b954338d7dd538ef6fadbc110e6a0f50d0b39dabec2c12a7f000c17332591b8\"},{\"filename\":\"php-5.5.7.tar.xz\",\"name\":\"PHP 5.5.7 (tar.xz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"b7bae5d878b8fc3f4b481eb8f2179b5e71d30dfb3bc3640a5068c1b46633f08c\"}],\"date\":\"12 Dec 2013\",\"museum\":false},\"5.5.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_6.php\"},\"source\":[{\"filename\":\"php-5.5.6.tar.bz2\",\"name\":\"PHP 5.5.6 (tar.bz2)\",\"date\":\"14 Nov 2013\",\"sha256\":\"a9b7d291199d7e6b90ef1d78eb791d738944d66856e76bde9463ce2645b0e4a4\"},{\"filename\":\"php-5.5.6.tar.gz\",\"name\":\"PHP 5.5.6 (tar.gz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"01f9c45154d4c9a47a825aa662bd64493082bd57dafdc720cf899ee194220a67\"},{\"filename\":\"php-5.5.6.tar.xz\",\"name\":\"PHP 5.5.6 (tar.xz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"3235a5c15e8fc55498dd80fe43f4aecc51dba35a7fc916aee7ef12d4e1f8767a\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.6 binaries and source\"}],\"date\":\"14 Nov 2013\",\"museum\":false},\"5.5.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_5.php\"},\"source\":[{\"filename\":\"php-5.5.5.tar.bz2\",\"name\":\"PHP 5.5.5 (tar.bz2)\",\"date\":\"17 Oct 2013\",\"sha256\":\"a400b324ae288eb0c9285e550fe5fd7f92c0f4e126496c3b05f9041da6cc04de\"},{\"filename\":\"php-5.5.5.tar.gz\",\"name\":\"PHP 5.5.5 (tar.gz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"483ff2370fa3a8863e6b023383c4bcfcc3ba462137c30c5fc75043e1755b7d17\"},{\"filename\":\"php-5.5.5.tar.xz\",\"name\":\"PHP 5.5.5 (tar.xz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"82cc9c88b946354bfe629917a85ed33d8cfc901460d432a75f823667d94f29ee\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.5 binaries and source\"}],\"date\":\"17 Oct 2013\",\"museum\":false},\"5.5.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_4.php\"},\"source\":[{\"filename\":\"php-5.5.4.tar.bz2\",\"name\":\"PHP 5.5.4 (tar.bz2)\",\"md5\":\"456f2eb1ee36f2a277bd4cc778e720eb\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.gz\",\"name\":\"PHP 5.5.4 (tar.gz)\",\"md5\":\"bf842770ac64a47ff599f463e6cf1334\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.xz\",\"name\":\"PHP 5.5.4 (tar.xz)\",\"md5\":\"32c1dc56701d21def91a39a312392b54\",\"date\":\"19 Sep 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.4 binaries and source\"}],\"date\":\"19 Sep 2013\",\"museum\":true},\"5.5.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_3.php\"},\"source\":[{\"filename\":\"php-5.5.3.tar.bz2\",\"name\":\"PHP 5.5.3 (tar.bz2)\",\"md5\":\"886b08ee6865d654911a6bb02ae98ee8\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.gz\",\"name\":\"PHP 5.5.3 (tar.gz)\",\"md5\":\"a5dfdd41ccf539942db966310f7429da\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.xz\",\"name\":\"PHP 5.5.3 (tar.xz)\",\"md5\":\"437e98144ef014dfab0922a9eed36853\",\"date\":\"22 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.3 binaries and source\"}],\"date\":\"22 Aug 2013\",\"museum\":true},\"5.5.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_2.php\"},\"source\":[{\"filename\":\"php-5.5.2.tar.bz2\",\"name\":\"PHP 5.5.2 (tar.bz2)\",\"md5\":\"caf7f4d86514a568fb3c8021b096a9f0\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.gz\",\"name\":\"PHP 5.5.2 (tar.gz)\",\"md5\":\"2a90884749f97868071538098b3debc1\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.xz\",\"name\":\"PHP 5.5.2 (tar.xz)\",\"md5\":\"95c6d7a4c36c475b10447954dea056a5\",\"date\":\"15 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.2 binaries and source\"}],\"date\":\"15 Aug 2013\",\"museum\":true},\"5.5.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_1.php\"},\"source\":[{\"filename\":\"php-5.5.1.tar.bz2\",\"name\":\"PHP 5.5.1 (tar.bz2)\",\"md5\":\"e6520ba8f86e03451f1e9226ca2be681\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.gz\",\"name\":\"PHP 5.5.1 (tar.gz)\",\"md5\":\"a7d9598c0e60b47960b8e803e51c4309\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.xz\",\"name\":\"PHP 5.5.1 (tar.xz)\",\"md5\":\"365403c216d22255c3aa57fe54944f8e\",\"date\":\"18 Jul 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.1 binaries and source\"}],\"date\":\"18 Jul 2013\",\"museum\":true},\"5.5.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_0.php\"},\"source\":[{\"filename\":\"php-5.5.0.tar.bz2\",\"name\":\"PHP 5.5.0 (tar.bz2)\",\"md5\":\"daf2d54e79def9fd0fb2ac7dfcefb7f3\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.gz\",\"name\":\"PHP 5.5.0 (tar.gz)\",\"md5\":\"79c4e7a8cb0f8e2e072120775b92c523\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.xz\",\"name\":\"PHP 5.5.0 (tar.xz)\",\"md5\":\"c7df0cb28cfff4e277fd9cd9b73cebfb\",\"date\":\"20 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.0 binaries and source\"}],\"date\":\"20 Jun 2013\",\"museum\":true},\"5.4.45\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_45.php\"},\"source\":[{\"filename\":\"php-5.4.45.tar.bz2\",\"name\":\"PHP 5.4.45 (tar.bz2)\",\"sha256\":\"4e0d28b1554c95cfaea6fa2b64aac85433f158ce72bb571bcd5574f98f4c6582\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.4.45.tar.gz\",\"name\":\"PHP 5.4.45 (tar.gz)\",\"sha256\":\"25bc4723955f4e352935258002af14a14a9810b491a19400d76fcdfa9d04b28f\",\"date\":\"03 Sep 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.45 binaries and source\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.4.44\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_44.php\"},\"source\":[{\"filename\":\"php-5.4.44.tar.bz2\",\"name\":\"PHP 5.4.44 (tar.bz2)\",\"sha256\":\"8dd59e5ce9248cf36ac3de5412a518b8b24c01ace6c46ce3d12e4ce981a3856d\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.4.44.tar.gz\",\"name\":\"PHP 5.4.44 (tar.gz)\",\"sha256\":\"1799998e48da3d8f34722840628e18789e26ea21741d4e498ade6749b3266602\",\"date\":\"06 Aug 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.44 binaries and source\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.4.43\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_43.php\"},\"source\":[{\"filename\":\"php-5.4.43.tar.bz2\",\"name\":\"PHP 5.4.43 (tar.bz2)\",\"sha256\":\"25d7724fb00ad1b520f5bad2173717031153d0a8e3de2c75e7a084c76f8ecd6b\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.4.43.tar.gz\",\"name\":\"PHP 5.4.43 (tar.gz)\",\"sha256\":\"cfc2176adc05f009666ecfab4a1cc66cc546c5d071245b2a048b3d113f67a2af\",\"date\":\"09 Jul 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.43 binaries and source\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.4.42\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_42.php\"},\"source\":[{\"filename\":\"php-5.4.42.tar.bz2\",\"name\":\"PHP 5.4.42 (tar.bz2)\",\"sha256\":\"6285b2e64bfaa69e5d983d7d981b4f254f5259ad3fd591ca832722a4cc1ae0f9\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.4.42.tar.gz\",\"name\":\"PHP 5.4.42 (tar.gz)\",\"sha256\":\"f0b40c097a6f11c4c2f5078d34f50fb9428d79b9e9821117bd7d6cca6af78d11\",\"date\":\"11 Jun 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.42 binaries and source\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.4.41\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_41.php\"},\"source\":[{\"filename\":\"php-5.4.41.tar.bz2\",\"name\":\"PHP 5.4.41 (tar.bz2)\",\"sha256\":\"5bc4b45a1280ff80a3cf5b8563716f325cfd0121d7fd25aa54d56ff38b3b8272\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.4.41.tar.gz\",\"name\":\"PHP 5.4.41 (tar.gz)\",\"sha256\":\"638cf19c865bc4eba2a4bab8952116a62691d1a72e1e2c9a9a2aadee92d1ce2e\",\"date\":\"14 May 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.41 binaries and source\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.4.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_40.php\"},\"source\":[{\"filename\":\"php-5.4.40.tar.bz2\",\"name\":\"PHP 5.4.40 (tar.bz2)\",\"sha256\":\"4898ffe8ac3ccb2d8cc94f7d76a9ea0414d954f5d4479895ddfccdc2e158a51a\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.4.40.tar.gz\",\"name\":\"PHP 5.4.40 (tar.gz)\",\"sha256\":\"663f5d06cd648e81ba4f2d6ad621bb580d83de70240c832dae527c97954da33d\",\"date\":\"16 Apr 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.40 binaries and source\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.4.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_39.php\"},\"source\":[{\"filename\":\"php-5.4.39.tar.bz2\",\"name\":\"PHP 5.4.39 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"7ceb76538e709c74533210ae41148d5c01c330ac8a73220954bbc4fcae69d77e\"},{\"filename\":\"php-5.4.39.tar.gz\",\"name\":\"PHP 5.4.39 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"9af5d2c3782aa94b7336401755dc44b62dc4ea881bf5e39540a4c7181b54d945\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.39 binaries and source\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.4.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_38.php\"},\"source\":[{\"filename\":\"php-5.4.38.tar.bz2\",\"name\":\"PHP 5.4.38 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"abf37db0cfadc9bb814f9df35f6aa966ad63f4f4c4475e432ec625568a5d3e88\"},{\"filename\":\"php-5.4.38.tar.gz\",\"name\":\"PHP 5.4.38 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"e694b7265f314f73c9df43538e0e54e2495cb72252e8a91c1aec66ffcf47241f\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.38 binaries and source\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.4.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_37.php\"},\"source\":[{\"filename\":\"php-5.4.37.tar.bz2\",\"name\":\"PHP 5.4.37 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"857bf6675eeb0ae9c3cd6f9ccdb2a9b7bf89dcfda7f0a80857638fe023f3a8ad\"},{\"filename\":\"php-5.4.37.tar.gz\",\"name\":\"PHP 5.4.37 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"6bf3b3ebefa600cfb6dd7f2678f23b17a958e82e8ce2d012286818d7c36dfd31\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.37 binaries and source\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.4.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_36.php\"},\"source\":[{\"filename\":\"php-5.4.36.tar.bz2\",\"name\":\"PHP 5.4.36 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241\"},{\"filename\":\"php-5.4.36.tar.gz\",\"name\":\"PHP 5.4.36 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"e11851662222765d6ab6e671adc983c657d5358a183856b43a5bad0c612d2959\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.36 binaries and source\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.4.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_35.php\"},\"source\":[{\"filename\":\"php-5.4.35.tar.bz2\",\"name\":\"PHP 5.4.35 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8cdb4265cd0f778befacd1e6b5939ec23315fff38400e17e77a36e4c55b9746b\"},{\"filename\":\"php-5.4.35.tar.gz\",\"name\":\"PHP 5.4.35 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ecab4ebb880b6d4f68bd4e3e49d837d4704fe26d81dc992b17b74151ee950a7\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.35 binaries and source\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.4.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_34.php\"},\"source\":[{\"filename\":\"php-5.4.34.tar.bz2\",\"name\":\"PHP 5.4.34 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"57d4ea10f0c18b096a7c8fd0a98dcbe40c8f4dc94453fd3ca0a10e35fb2f8234\"},{\"filename\":\"php-5.4.34.tar.gz\",\"name\":\"PHP 5.4.34 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"c8d909062ad7616cedb54dc03d85b40d40f6d4adce986ec8cabd9b8b94872096\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.34 binaries and source\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.4.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_33.php\"},\"source\":[{\"filename\":\"php-5.4.33.tar.bz2\",\"name\":\"PHP 5.4.33 (tar.bz2)\",\"sha256\":\"1a75b2d0835e74b8886cd3980d9598a0e06691441bb7f91d19b74c2278e40bb5\",\"date\":\"18 Sep 2014\"},{\"filename\":\"php-5.4.33.tar.gz\",\"name\":\"PHP 5.4.33 (tar.gz)\",\"sha256\":\"74e542dd2f15ebbc123738a71e867d57d2996a6edb40e6ac62fcf5ab85763d19\",\"date\":\"18 Sep 2014\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.33 binaries and source\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.4.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_32.php\"},\"source\":[{\"filename\":\"php-5.4.32.tar.bz2\",\"name\":\"PHP 5.4.32 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"26d0717669a098f18cd22dc3ae8282101d38508054500c26775ddcc26ca7c826\"},{\"filename\":\"php-5.4.32.tar.gz\",\"name\":\"PHP 5.4.32 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"80ebdf34f91b8e1d516080363804137177368777aa9ecffee600f2957e8b0f94\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.32 binaries and source\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.4.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_31.php\"},\"source\":[{\"filename\":\"php-5.4.31.tar.bz2\",\"name\":\"PHP 5.4.31 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"5e8e491431fd1d99df925d762b05da05c80b02cb38c9b3db616e8894a307914d\"},{\"filename\":\"php-5.4.31.tar.gz\",\"name\":\"PHP 5.4.31 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"332f62e4f751482d40ad08544ee97e004170d0382c84d01ce8efe405d0972f66\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.31 binaries and source\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.4.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_30.php\"},\"source\":[{\"filename\":\"php-5.4.30.tar.bz2\",\"name\":\"PHP 5.4.30 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"32b83644e42d57388d6e5ec700c3502cde5f5e1207395b1e361e4cb2ce496ce6\"},{\"filename\":\"php-5.4.30.tar.gz\",\"name\":\"PHP 5.4.30 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"c17da64890b728bdc146bdc69b37085412d4e2585fac98848ac2e824bb564c85\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.30 binaries and source\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.4.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_29.php\"},\"source\":[{\"filename\":\"php-5.4.29.tar.bz2\",\"name\":\"PHP 5.4.29 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"62ce3ca063cf04f6065eeac82117e43b44e20487bc0a0a8d05436e17a0b1e2a7\"},{\"filename\":\"php-5.4.29.tar.gz\",\"name\":\"PHP 5.4.29 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"9fa51d3e44783802ea51b910719ad524a8994524f7cf7307f683fe89191bc401\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.29 binaries and source\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.4.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_28.php\"},\"source\":[{\"filename\":\"php-5.4.28.tar.bz2\",\"name\":\"PHP 5.4.28 (tar.bz2)\",\"date\":\"2 May 2014\",\"sha256\":\"3fe780e5179e90c4d37276e79acc0d0692f1bc0911985af694b92c664c0ef3c4\"},{\"filename\":\"php-5.4.28.tar.gz\",\"name\":\"PHP 5.4.28 (tar.gz)\",\"date\":\"2 May 2014\",\"sha256\":\"5140292c94a0301db7a807e6b3aadf6ee966346d0005aa3d15464bd4c595a786\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.28 binaries and source\"}],\"date\":\"2 May 2014\",\"museum\":false},\"5.4.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_27.php\"},\"source\":[{\"filename\":\"php-5.4.27.tar.bz2\",\"name\":\"PHP 5.4.27 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"09dcc44cded735e1cf1b1b9f2749d1a0fd90e03378b6a70364a662f4740e61e2\"},{\"filename\":\"php-5.4.27.tar.gz\",\"name\":\"PHP 5.4.27 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a70dc68eeed902f8378fded473d53e4e37be645b941554dcf4237559cbda2bb3\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.27 binaries and source\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.4.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_26.php\"},\"source\":[{\"filename\":\"php-5.4.26.tar.bz2\",\"name\":\"PHP 5.4.26 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"5053649317b9331df40bd836c976a32b31dbc5c5d68997d3ae01cb90db22d240\"},{\"filename\":\"php-5.4.26.tar.gz\",\"name\":\"PHP 5.4.26 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"ec3f902b5e8cbdd660e01e784b537f1210a12182d9bbd62164776075bc097eca\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.26 binaries and source\"}],\"date\":\"6 Mar 2014\",\"museum\":false}}" + } +}] \ No newline at end of file diff --git a/tests/fixtures/vcr_cassettes/Command/UpdateCommandTest b/tests/fixtures/vcr_cassettes/Command/UpdateCommandTest new file mode 100644 index 000000000..efcfd2601 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/Command/UpdateCommandTest @@ -0,0 +1,59 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=7&max=1000", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:53:26 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:53:26 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:53:26 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff86e54\"" + }, + "body": "{\"7.4.0\":{\"announcement\":true,\"tags\":[],\"date\":\"28 Nov 2019\",\"source\":[{\"filename\":\"php-7.4.0.tar.bz2\",\"name\":\"PHP 7.4.0 (tar.bz2)\",\"sha256\":\"bf206be96a39e643180013df39ddcd0493966692a2422c4b7d3355b6a15a01c0\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.gz\",\"name\":\"PHP 7.4.0 (tar.gz)\",\"sha256\":\"004a1a8176176ee1b5c112e73d705977507803f425f9e48cb4a84f42b22abf22\",\"date\":\"28 Nov 2019\"},{\"filename\":\"php-7.4.0.tar.xz\",\"name\":\"PHP 7.4.0 (tar.xz)\",\"sha256\":\"9bb751b20e5d6cc1ea9b1ebf23ef2d5f07f99b2d9cc417bf1d70c04f8b20ec42\",\"date\":\"28 Nov 2019\"}]},\"7.3.12\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.3.12.tar.bz2\",\"name\":\"PHP 7.3.12 (tar.bz2)\",\"sha256\":\"d317b029f991410578cc38ba4b76c9f764ec29c67e7124e1fec57bceb3ad8c39\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.gz\",\"name\":\"PHP 7.3.12 (tar.gz)\",\"sha256\":\"d617e5116f8472a628083f448ebe4afdbc4ac013c9a890b08946649dcbe61b34\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.3.12.tar.xz\",\"name\":\"PHP 7.3.12 (tar.xz)\",\"sha256\":\"aafe5e9861ad828860c6af8c88cdc1488314785962328eb1783607c1fdd855df\",\"date\":\"21 Nov 2019\"}]},\"7.2.25\":{\"announcement\":true,\"tags\":[],\"date\":\"21 Nov 2019\",\"source\":[{\"filename\":\"php-7.2.25.tar.bz2\",\"name\":\"PHP 7.2.25 (tar.bz2)\",\"sha256\":\"7cb336b1ed0f9d87f46bbcb7b3437ee252d0d5060c0fb1a985adb6cbc73a6b9e\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.gz\",\"name\":\"PHP 7.2.25 (tar.gz)\",\"sha256\":\"b2cb1bd46454d33b2c65c2fd559f464cd14e57dd47b953adf5caa77fdf0de52b\",\"date\":\"21 Nov 2019\"},{\"filename\":\"php-7.2.25.tar.xz\",\"name\":\"PHP 7.2.25 (tar.xz)\",\"sha256\":\"746efeedc38e6ff7b1ec1432440f5fa801537adf6cd21e4afb3f040e5b0760a9\",\"date\":\"21 Nov 2019\"}]},\"7.1.33\":{\"announcement\":true,\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.1.33.tar.bz2\",\"name\":\"PHP 7.1.33 (tar.bz2)\",\"sha256\":\"95a5e5f2e2b79b376b737a82d9682c91891e60289fa24183463a2aca158f4f4b\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.gz\",\"name\":\"PHP 7.1.33 (tar.gz)\",\"sha256\":\"0055f368ffefe51d5a4483755bd17475e88e74302c08b727952831c5b2682ea2\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.1.33.tar.xz\",\"name\":\"PHP 7.1.33 (tar.xz)\",\"sha256\":\"bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968\",\"date\":\"24 Oct 2019\"}]},\"7.2.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_24.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.2.24.tar.bz2\",\"name\":\"PHP 7.2.24 (tar.bz2)\",\"sha256\":\"a079934db63068bbcc9bbd2e7b916b9891fc97719862697e5f954c639984f603\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.gz\",\"name\":\"PHP 7.2.24 (tar.gz)\",\"sha256\":\"01baf7a34c856d2c552121fbad7296a8cde18389ce83db32f18252bc1cee4dd6\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.2.24.tar.xz\",\"name\":\"PHP 7.2.24 (tar.xz)\",\"sha256\":\"a6a6cc03388060aa5f8f9e45799b72bce1c7ed7b9d7b3f1187787202aad91d25\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.3.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_11.php\"},\"tags\":[\"security\"],\"date\":\"24 Oct 2019\",\"source\":[{\"filename\":\"php-7.3.11.tar.bz2\",\"name\":\"PHP 7.3.11 (tar.bz2)\",\"sha256\":\"92d1ff4b13c7093635f1ec338a5e6891ca99b10e65fbcadd527e5bb84d11b5e7\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.gz\",\"name\":\"PHP 7.3.11 (tar.gz)\",\"sha256\":\"8f385f5bdf9193791f6c0f6303f518f3c324b6655ac108fdb3c426da7f3cf4d4\",\"date\":\"24 Oct 2019\"},{\"filename\":\"php-7.3.11.tar.xz\",\"name\":\"PHP 7.3.11 (tar.xz)\",\"sha256\":\"657cf6464bac28e9490c59c07a2cf7bb76c200f09cfadf6e44ea64e95fa01021\",\"date\":\"24 Oct 2019\"}],\"museum\":false},\"7.1.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_32.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.32.tar.bz2\",\"name\":\"PHP 7.1.32 (tar.bz2)\",\"sha256\":\"d7c7a1adddc75ac17f63349e966db25930b6b3ce736640349bea9e10909cab7a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.gz\",\"name\":\"PHP 7.1.32 (tar.gz)\",\"sha256\":\"6e51a2fc610352438b2a1c40310468a1e2b5baf2fff43be77f9f408a9111590c\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.1.32.tar.xz\",\"name\":\"PHP 7.1.32 (tar.xz)\",\"sha256\":\"7f38b5bdaae3184d325a8c70e86c010afcc33651d15faafe277a0db6d2ea2741\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_10.php\"},\"tags\":[\"security\"],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.3.10.tar.bz2\",\"name\":\"PHP 7.3.10 (tar.bz2)\",\"sha256\":\"506dd871c0fb8f00f872f53dd3b1dfa5f23a9edb4dfc521e5669c78a78c45448\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.gz\",\"name\":\"PHP 7.3.10 (tar.gz)\",\"sha256\":\"fb670723a9b8fda31c89529f27e0dda289d8af4b6ce9f152c8010876639c0fb4\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.3.10.tar.xz\",\"name\":\"PHP 7.3.10 (tar.xz)\",\"sha256\":\"42f00a15419e05771734b7159c8d39d639b8a5a6770413adfa2615f6f923d906\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_23.php\"},\"tags\":[],\"date\":\"26 Sep 2019\",\"source\":[{\"filename\":\"php-7.2.23.tar.bz2\",\"name\":\"PHP 7.2.23 (tar.bz2)\",\"sha256\":\"a17af3643d29d7e730f977e3776dc3e325d5ca00b361e41dbfc2368ebad5430d\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.gz\",\"name\":\"PHP 7.2.23 (tar.gz)\",\"sha256\":\"b32b426c84ff45154d6c11f00aff433bcac831a5c0a09bf0297075eefaea8fcc\",\"date\":\"26 Sep 2019\"},{\"filename\":\"php-7.2.23.tar.xz\",\"name\":\"PHP 7.2.23 (tar.xz)\",\"sha256\":\"74e045ec8ff26290db6a3688826dcdf43b87bc509e508e9cb76dab742804ca14\",\"date\":\"26 Sep 2019\"}],\"museum\":false},\"7.2.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_22.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.22.tar.bz2\",\"name\":\"PHP 7.2.22 (tar.bz2)\",\"sha256\":\"c10a9883b586ada5ef1149f2571625b27efdcc3e70a04fbb9121979633b0f08a\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.gz\",\"name\":\"PHP 7.2.22 (tar.gz)\",\"sha256\":\"6e2ccc77484c27971d4550b7071a57b79bc910bfb2d4a74a57ae2c18b78c3dc7\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.2.22.tar.xz\",\"name\":\"PHP 7.2.22 (tar.xz)\",\"sha256\":\"eb597fcf8dc0a6211a42a6346de4f63ee166829a6df6d8ed767fe14be8d1c3a3\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.3.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_9.php\"},\"tags\":[\"security\"],\"date\":\"29 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.9.tar.bz2\",\"name\":\"PHP 7.3.9 (tar.bz2)\",\"sha256\":\"a39c9709a8c9eb7ea8ac4933ef7a78b92f7e5735a405c8b8e42ee39541d963c4\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.gz\",\"name\":\"PHP 7.3.9 (tar.gz)\",\"sha256\":\"5ecc1b1ad7228ed2e99a970c45358871644fcab1d9fd079a7b129326a7bde42d\",\"date\":\"29 Aug 2019\"},{\"filename\":\"php-7.3.9.tar.xz\",\"name\":\"PHP 7.3.9 (tar.xz)\",\"sha256\":\"4007f24a39822bef2805b75c625551d30be9eeed329d52eb0838fa5c1b91c1fd\",\"date\":\"29 Aug 2019\"}],\"museum\":false},\"7.1.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_31.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.1.31.tar.bz2\",\"name\":\"PHP 7.1.31 (tar.bz2)\",\"sha256\":\"767573c2b732e78cc647602ec61fc948941a941a4071db59b522cf5e076825dd\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.gz\",\"name\":\"PHP 7.1.31 (tar.gz)\",\"sha256\":\"ea0558735653b9ce63e9cea41dd8f0d0b90dba6c39d39dd9a6aad5cc58b0bdfc\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.1.31.tar.xz\",\"name\":\"PHP 7.1.31 (tar.xz)\",\"sha256\":\"5cb53b63592ec4361f0ab12c684b10430344821a024881a387ead4299df78fa5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.2.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_21.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.2.21.tar.bz2\",\"name\":\"PHP 7.2.21 (tar.bz2)\",\"sha256\":\"343183a1be8336670171885c761d57ffcae99cbbcf1db43da7cb5565056b14ef\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.gz\",\"name\":\"PHP 7.2.21 (tar.gz)\",\"sha256\":\"8327682bee4a8fd2edf5bbfcc393d986b945bec433fc74458d05e766701b313c\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.2.21.tar.xz\",\"name\":\"PHP 7.2.21 (tar.xz)\",\"sha256\":\"de06aff019d8f5079115795bd7d8eedd4cd03daecb62d58abb18f492dd995c95\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.3.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_8.php\"},\"tags\":[\"security\"],\"date\":\"01 Aug 2019\",\"source\":[{\"filename\":\"php-7.3.8.tar.bz2\",\"name\":\"PHP 7.3.8 (tar.bz2)\",\"sha256\":\"d566c630175d9fa84a98d3c9170ec033069e9e20c8d23dea49ae2a976b6c76f5\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.gz\",\"name\":\"PHP 7.3.8 (tar.gz)\",\"sha256\":\"31af3eff3337fb70733c9b02a3444c3dae662ecab20aeec7fdc3c42e22071490\",\"date\":\"01 Aug 2019\"},{\"filename\":\"php-7.3.8.tar.xz\",\"name\":\"PHP 7.3.8 (tar.xz)\",\"sha256\":\"f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5\",\"date\":\"01 Aug 2019\"}],\"museum\":false},\"7.1.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_30.php\"},\"tags\":[\"security\"],\"date\":\"30 May 2019\",\"source\":[{\"filename\":\"php-7.1.30.tar.bz2\",\"name\":\"PHP 7.1.30 (tar.bz2)\",\"sha256\":\"664850774fca19d2710b9aa35e9ae91214babbde9cd8d27fd3479cc97171ecb3\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.gz\",\"name\":\"PHP 7.1.30 (tar.gz)\",\"sha256\":\"a604edf85d5dfc28e6ff3016dad3954c50b93db69afc42295178b4fdf42e026c\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.1.30.tar.xz\",\"name\":\"PHP 7.1.30 (tar.xz)\",\"sha256\":\"6310599811536dbe87e4bcf212bf93196bdfaff519d0c821e4c0068efd096a7c\",\"date\":\"30 May 2019\"}],\"museum\":false},\"7.2.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_20.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.2.20.tar.bz2\",\"name\":\"PHP 7.2.20 (tar.bz2)\",\"sha256\":\"9fb829e54e54c483ae8892d1db0f7d79115cc698f2f3591a8a5e58d9410dca84\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.gz\",\"name\":\"PHP 7.2.20 (tar.gz)\",\"sha256\":\"d1dbf6f299514c9aa55b2995928b798b27c21811a0447f0688993cdf36be0749\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.2.20.tar.xz\",\"name\":\"PHP 7.2.20 (tar.xz)\",\"sha256\":\"eff09da83e235c2ba25c85deea1d4f663bd71d50fd51ad11e1acebe26d733494\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.3.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_7.php\"},\"tags\":[],\"date\":\"04 Jul 2019\",\"source\":[{\"filename\":\"php-7.3.7.tar.bz2\",\"name\":\"PHP 7.3.7 (tar.bz2)\",\"sha256\":\"c3608fa7114642725854119ccffe722f42fc7c31e5e4c00d5cb4cb1a0d16bf18\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.gz\",\"name\":\"PHP 7.3.7 (tar.gz)\",\"sha256\":\"4230bbc862df712b013369de94b131eddea1e5e946a8c5e286b82d441c313328\",\"date\":\"04 Jul 2019\"},{\"filename\":\"php-7.3.7.tar.xz\",\"name\":\"PHP 7.3.7 (tar.xz)\",\"sha256\":\"ba067200ba649956b3a92ec8b71a6ed8ce8a099921212443c1bcf3260a29274c\",\"date\":\"04 Jul 2019\"}],\"museum\":false},\"7.2.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/19.php\"},\"source\":[{\"filename\":\"php-7.2.19.tar.bz2\",\"name\":\"PHP 7.2.19 (tar.bz2)\",\"sha256\":\"ebd0b1f375fe07ed4925acc213d2f5ef76a61bd5de174e7b666b98421a90a099\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.gz\",\"name\":\"PHP 7.2.19 (tar.gz)\",\"sha256\":\"1cd2266a058f3224d3cba594540045542606996f026eeef96747f27f6b3d22b6\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.2.19.tar.xz\",\"name\":\"PHP 7.2.19 (tar.xz)\",\"sha256\":\"4ffa2404a88d60e993a9fe69f829ebec3eb1e006de41b6048ce5e91bbeaa9282\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_6.php\"},\"source\":[{\"filename\":\"php-7.3.6.tar.bz2\",\"name\":\"PHP 7.3.6 (tar.bz2)\",\"sha256\":\"1e5ac8700154835c0910e3a814517da9b87bb4a82cc7011fea1a82096b6f6f77\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.gz\",\"name\":\"PHP 7.3.6 (tar.gz)\",\"sha256\":\"72fbf223ff8659a61eed08eebffb4ede0256e7a69d2151ae24affa5377b70bb8\",\"date\":\"30 May 2019\"},{\"filename\":\"php-7.3.6.tar.xz\",\"name\":\"PHP 7.3.6 (tar.xz)\",\"sha256\":\"fefc8967daa30ebc375b2ab2857f97da94ca81921b722ddac86b29e15c54a164\",\"date\":\"30 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_29.php\"},\"source\":[{\"filename\":\"php-7.1.29.tar.bz2\",\"name\":\"PHP 7.1.29 (tar.bz2)\",\"sha256\":\"8528d17efe82662dc740d96ddb32217f4e161a597d709f19571b0c82fbb88335\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.gz\",\"name\":\"PHP 7.1.29 (tar.gz)\",\"sha256\":\"bdd0e1707100c8b87f1be516f5b95a26e3eb4114d4316eaf0663bf292ead35bb\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.1.29.tar.xz\",\"name\":\"PHP 7.1.29 (tar.xz)\",\"sha256\":\"b9a9b094687edc2d9c9553d5531e38e249b569127cf3b32fe1c84280509746fb\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_18.php\"},\"source\":[{\"filename\":\"php-7.2.18.tar.bz2\",\"name\":\"PHP 7.2.18 (tar.bz2)\",\"sha256\":\"fa1a27b12d1173207e81e798a48d4a7f77ba897f5c5200ac0b5d62aa8b4c4b72\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.gz\",\"name\":\"PHP 7.2.18 (tar.gz)\",\"sha256\":\"48aeb291814f3cd3ba03c52e79e8e61896d0271fd4c228198f80a072e568f84b\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.2.18.tar.xz\",\"name\":\"PHP 7.2.18 (tar.xz)\",\"sha256\":\"9970dbb3ab1298c9e6aac54bebfa841c8ad14b18eead65594a68fa841364cb8d\",\"date\":\"02 May 2019\"}],\"date\":\"30 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_5.php\"},\"source\":[{\"filename\":\"php-7.3.5.tar.bz2\",\"name\":\"PHP 7.3.5 (tar.bz2)\",\"sha256\":\"4380b80ef98267c3823c3416eb05f7729ba7a33de6b3d14ec96013215d62c35e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.gz\",\"name\":\"PHP 7.3.5 (tar.gz)\",\"sha256\":\"c953749b7f3310a3a74f920ef698f6d1c04636d11656ac9ffb3ab10d34e30e1e\",\"date\":\"02 May 2019\"},{\"filename\":\"php-7.3.5.tar.xz\",\"name\":\"PHP 7.3.5 (tar.xz)\",\"sha256\":\"e1011838a46fd4a195c8453b333916622d7ff5bce4aca2d9d99afac142db2472\",\"date\":\"02 May 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_28.php\"},\"source\":[{\"filename\":\"php-7.1.28.tar.bz2\",\"name\":\"PHP 7.1.28 (tar.bz2)\",\"sha256\":\"739e8733fe1fc5e69e6226da6dba7a31bacfd2e3871ad2c97a792638f22c54c9\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.gz\",\"name\":\"PHP 7.1.28 (tar.gz)\",\"sha256\":\"4df587338d4c5dfe27050c7ac72a6b7583ecaee9d3fbfc03427667a86e081999\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.1.28.tar.xz\",\"name\":\"PHP 7.1.28 (tar.xz)\",\"sha256\":\"45131497ec0a947e3f9145c000e8fcc1f86b46518ee3f6810d80efa2d39521e2\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_17.php\"},\"source\":[{\"filename\":\"php-7.2.17.tar.bz2\",\"name\":\"PHP 7.2.17 (tar.bz2)\",\"sha256\":\"91a811ab6f6d7acb312159cf6b0a3cffe968676fdebf042e9253245cc6094f75\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.gz\",\"name\":\"PHP 7.2.17 (tar.gz)\",\"sha256\":\"e1c6c2553cdb7edbfa65b89e259690ed01b31b12d57349c90b6ed00a410f62b5\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.2.17.tar.xz\",\"name\":\"PHP 7.2.17 (tar.xz)\",\"sha256\":\"a3e5f51a9ae08813b3925bea3a4de02cd4906fcccf75646e267a213bb63bcf84\",\"date\":\"04 Apr 2019\"}],\"date\":\"02 May 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_4.php\"},\"source\":[{\"filename\":\"php-7.3.4.tar.bz2\",\"name\":\"PHP 7.3.4 (tar.bz2)\",\"sha256\":\"2e2c3d8212c83649e443b61efffbd03df4b9edd0f9c7a679081fe4cb2da12b78\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.gz\",\"name\":\"PHP 7.3.4 (tar.gz)\",\"sha256\":\"dd41ecf43fe1172030f41d2581909457a0af7bd137a057c3874e0b0f3c2e8761\",\"date\":\"04 Apr 2019\"},{\"filename\":\"php-7.3.4.tar.xz\",\"name\":\"PHP 7.3.4 (tar.xz)\",\"sha256\":\"6fe79fa1f8655f98ef6708cde8751299796d6c1e225081011f4104625b923b83\",\"date\":\"04 Apr 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_27.php\"},\"source\":[{\"filename\":\"php-7.1.27.tar.bz2\",\"name\":\"PHP 7.1.27 (tar.bz2)\",\"sha256\":\"dad7ecd30941911528e471c555a01911a68aa9219696bfc1e005f8b669f4ec4b\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.gz\",\"name\":\"PHP 7.1.27 (tar.gz)\",\"sha256\":\"353b9ed341048388cc95e6fa6dab587eee44a3d4d297989aa297936090864357\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.1.27.tar.xz\",\"name\":\"PHP 7.1.27 (tar.xz)\",\"sha256\":\"25672a3a6060eff37c865a0c84e284da50b7ee8cd57174c78f0ae244b90a96a8\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_16.php\"},\"source\":[{\"filename\":\"php-7.2.16.tar.bz2\",\"name\":\"PHP 7.2.16 (tar.bz2)\",\"sha256\":\"2c0ad10053d58694cd14323248ecd6d9ba71d2733d160973c356ad01d09e7f38\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.gz\",\"name\":\"PHP 7.2.16 (tar.gz)\",\"sha256\":\"fb95e0bb69caba1dfd3bbac4eeef7a0485e5ea3d6191d35ad5657e18243aa02d\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.2.16.tar.xz\",\"name\":\"PHP 7.2.16 (tar.xz)\",\"sha256\":\"7d91ed3c1447c6358a3d53f84599ef854aca4c3622de7435e2df115bf196e482\",\"date\":\"07 Mar 2019\"}],\"date\":\"04 Apr 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_3.php\"},\"source\":[{\"filename\":\"php-7.3.3.tar.bz2\",\"name\":\"PHP 7.3.3 (tar.bz2)\",\"sha256\":\"61969e943adfea79701a34b8e701edd3f95be829d16601a4aabeb05f83023ce6\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.gz\",\"name\":\"PHP 7.3.3 (tar.gz)\",\"sha256\":\"9bde40cbf8608ae9c595a6643a02cf0c692c131e2b3619af3fd2af8425d8e677\",\"date\":\"07 Mar 2019\"},{\"filename\":\"php-7.3.3.tar.xz\",\"name\":\"PHP 7.3.3 (tar.xz)\",\"sha256\":\"6bb03e79a183d0cb059a6d117bbb2e0679cab667fb713a13c6a16f56bebab9b3\",\"date\":\"07 Mar 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_26.php\"},\"source\":[{\"filename\":\"php-7.1.26.tar.bz2\",\"name\":\"PHP 7.1.26 (tar.bz2)\",\"sha256\":\"5b351ca86bc7e4600778aaf1d61ab9e4e38864efa86ab4cc4d5b02ea7f542ae6\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.gz\",\"name\":\"PHP 7.1.26 (tar.gz)\",\"sha256\":\"069315d3c3f964fd165bbbb3c2fc56005813e2cf97bed05055318dcc4e775328\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.1.26.tar.xz\",\"name\":\"PHP 7.1.26 (tar.xz)\",\"sha256\":\"10b7ae634c12852fae52a22dc2262e5f12418ad59fd20da2d00d71a212235d31\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_15.php\"},\"source\":[{\"filename\":\"php-7.2.15.tar.bz2\",\"name\":\"PHP 7.2.15 (tar.bz2)\",\"sha256\":\"c93e7616946a463911818c7e9f9e21276c7793fb8c7cb15877188dd0546d0554\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.gz\",\"name\":\"PHP 7.2.15 (tar.gz)\",\"sha256\":\"9b13bde9f5a32d6f6bdb8b911bb55bb818d0c4073538f8dc48aa2deb560f55a3\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.2.15.tar.xz\",\"name\":\"PHP 7.2.15 (tar.xz)\",\"sha256\":\"75e90012faef700dffb29311f3d24fa25f1a5e0f70254a9b8d5c794e25e938ce\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Mar 2019\",\"museum\":false},\"7.3.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_2.php\"},\"source\":[{\"filename\":\"php-7.3.2.tar.bz2\",\"name\":\"PHP 7.3.2 (tar.bz2)\",\"sha256\":\"946f50dacbd2f61e643bb737021cbe8b1816e780ee7ad3e0cd999a1892ab0add\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.gz\",\"name\":\"PHP 7.3.2 (tar.gz)\",\"sha256\":\"4597294b00edc1c63a021b6c7838eb43384f62eeb9e392f0b91c38a3c090f499\",\"date\":\"07 Feb 2019\"},{\"filename\":\"php-7.3.2.tar.xz\",\"name\":\"PHP 7.3.2 (tar.xz)\",\"sha256\":\"010b868b4456644ae227d05ad236c8b0a1f57dc6320e7e5ad75e86c5baf0a9a8\",\"date\":\"07 Feb 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false},\"7.2.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_14.php\"},\"source\":[{\"filename\":\"php-7.2.14.tar.bz2\",\"name\":\"PHP 7.2.14 (tar.bz2)\",\"sha256\":\"f56132d248c7bf1e0efc8a680a4b598d6ff73fc6b9c84b5d7b539ad8db7a6597\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.gz\",\"name\":\"PHP 7.2.14 (tar.gz)\",\"sha256\":\"87e13d80b0c3a66bd463d1cb47dc101335884a0d192ab924f547f8aed7f70c08\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.2.14.tar.xz\",\"name\":\"PHP 7.2.14 (tar.xz)\",\"sha256\":\"ee3f1cc102b073578a3c53ba4420a76da3d9f0c981c02b1664ae741ca65af84f\",\"date\":\"10 Jan 2019\"}],\"date\":\"07 Feb 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_1.php\"},\"source\":[{\"filename\":\"php-7.3.1.tar.bz2\",\"name\":\"PHP 7.3.1 (tar.bz2)\",\"sha256\":\"afef2b0cd7f2641274a1a0aabe67e30f2334970d7c530382dfa9d79cfe74388e\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.gz\",\"name\":\"PHP 7.3.1 (tar.gz)\",\"sha256\":\"8006211f7a041dde22fffedc416d142e0ebf22066014077ca936d7e6f655ead5\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-7.3.1.tar.xz\",\"name\":\"PHP 7.3.1 (tar.xz)\",\"sha256\":\"cfe93e40be0350cd53c4a579f52fe5d8faf9c6db047f650a4566a2276bf33362\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_33.php\"},\"source\":[{\"filename\":\"php-7.0.33.tar.bz2\",\"name\":\"PHP 7.0.33 (tar.bz2)\",\"sha256\":\"4933ea74298a1ba046b0246fe3771415c84dfb878396201b56cb5333abe86f07\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.gz\",\"name\":\"PHP 7.0.33 (tar.gz)\",\"sha256\":\"d71a6ecb6b13dc53fed7532a7f8f949c4044806f067502f8fb6f9facbb40452a\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.0.33.tar.xz\",\"name\":\"PHP 7.0.33 (tar.xz)\",\"sha256\":\"ab8c5be6e32b1f8d032909dedaaaa4bbb1a209e519abb01a52ce3914f9a13d96\",\"date\":\"06 Dec 2018\"}],\"date\":\"10 Jan 2019\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_25.php\"},\"source\":[{\"filename\":\"php-7.1.25.tar.bz2\",\"name\":\"PHP 7.1.25 (tar.bz2)\",\"sha256\":\"002cdc880ac7cfaede2c389204d366108847db0f3ac72edf1ba95c0577f9aaac\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.gz\",\"name\":\"PHP 7.1.25 (tar.gz)\",\"sha256\":\"7dc40e202140e8b4fb3d992c15a68d98dc06b805e6b218497d260abbe51f5958\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.1.25.tar.xz\",\"name\":\"PHP 7.1.25 (tar.xz)\",\"sha256\":\"0fd8dad1903cd0b2d615a1fe4209f99e53b7292403c8ffa1919c0f4dd1eada88\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.3.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_3_0.php\"},\"source\":[{\"filename\":\"php-7.3.0.tar.bz2\",\"name\":\"PHP 7.3.0 (tar.bz2)\",\"sha256\":\"7a267daec9969a997c5c8028c350229646748e0fcc71e2f2dbb157ddcee87c67\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.gz\",\"name\":\"PHP 7.3.0 (tar.gz)\",\"sha256\":\"391bd0f91d9bdd01ab47ef9607bad8c65e35bc9bb098fb7777b2556e2c847b11\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.3.0.tar.xz\",\"name\":\"PHP 7.3.0 (tar.xz)\",\"sha256\":\"7d195cad55af8b288c3919c67023a14ff870a73e3acc2165a6d17a4850a560b5\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"7.2.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_13.php\"},\"source\":[{\"filename\":\"php-7.2.13.tar.bz2\",\"name\":\"PHP 7.2.13 (tar.bz2)\",\"sha256\":\"5b4a46fb76491bcd3eee1213773382e570f6ecf9b22d623b24e2822298b3e92d\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.gz\",\"name\":\"PHP 7.2.13 (tar.gz)\",\"sha256\":\"e563cee406b1ec96649c22ed2b35796cfe4e9aa9afa6eab6be4cf2fe5d724744\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-7.2.13.tar.xz\",\"name\":\"PHP 7.2.13 (tar.xz)\",\"sha256\":\"14b0429abdb46b65c843e5882c9a8c46b31dfbf279c747293b8ab950c2644a4b\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_32.php\"},\"source\":[{\"filename\":\"php-7.0.32.tar.bz2\",\"name\":\"PHP 7.0.32 (tar.bz2)\",\"sha256\":\"56e8d8cf9c08178afa8663589805f83bdb01634efd98131977038e24066492e1\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.gz\",\"name\":\"PHP 7.0.32 (tar.gz)\",\"sha256\":\"08d13389f611ec55f3b9164347a97e410099238a3dd85946e556a288ce366fbe\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.0.32.tar.xz\",\"name\":\"PHP 7.0.32 (tar.xz)\",\"sha256\":\"ff6f62afeb32c71b3b89ecbd42950ef6c5e0c329cc6e1c58ffac47e6f1f883c4\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_24.php\"},\"source\":[{\"filename\":\"php-7.1.24.tar.bz2\",\"name\":\"PHP 7.1.24 (tar.bz2)\",\"sha256\":\"66de24e73c7f6006f090c1b187d6b218c8fa6a513acca4ff5c14b695a7391e0b\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.gz\",\"name\":\"PHP 7.1.24 (tar.gz)\",\"sha256\":\"1e780b1af3eeb8fba9e5af6205c960184a0c3a0ef091aaa192e7b7d6b67405d0\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.1.24.tar.xz\",\"name\":\"PHP 7.1.24 (tar.xz)\",\"sha256\":\"e70dcec0ae28b6bc308b78972ec15aa850808819cc765f505aa51e5a7e2fa5d7\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.2.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_12.php\"},\"source\":[{\"filename\":\"php-7.2.12.tar.bz2\",\"name\":\"PHP 7.2.12 (tar.bz2)\",\"sha256\":\"b724c4c20347b6105be109d98cc395a610174e8aadb506c82e8cb645b65ef6b6\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.gz\",\"name\":\"PHP 7.2.12 (tar.gz)\",\"sha256\":\"d7cabdf4e51db38121daf0d494dc074743b24b6c79e592037eeedd731f1719dd\",\"date\":\"08 Nov 2018\"},{\"filename\":\"php-7.2.12.tar.xz\",\"name\":\"PHP 7.2.12 (tar.xz)\",\"sha256\":\"989c04cc879ee71a5e1131db867f3c5102f1f7565f805e2bb8bde33f93147fe1\",\"date\":\"08 Nov 2018\"}],\"date\":\"08 Nov 2018\",\"museum\":false},\"7.1.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_23.php\"},\"source\":[{\"filename\":\"php-7.1.23.tar.bz2\",\"name\":\"PHP 7.1.23 (tar.bz2)\",\"sha256\":\"2d79aa86d8f0faa760a712a1d7be50b57838a9770c1dff34020876630c2ecc4b\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.gz\",\"name\":\"PHP 7.1.23 (tar.gz)\",\"sha256\":\"b839a4de32e6770d10b87c2495c070d09277fe61008804b2992466f0dcc5f0fa\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.1.23.tar.xz\",\"name\":\"PHP 7.1.23 (tar.xz)\",\"sha256\":\"227a3c76133c3dc1cec937989456cbd89ed00e68e7260c651900dbe1f5b798bc\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.2.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_11.php\"},\"source\":[{\"filename\":\"php-7.2.11.tar.bz2\",\"name\":\"PHP 7.2.11 (tar.bz2)\",\"sha256\":\"4a0d7f402d07966b37a600796283f4ca4079d955d96d5bec024dd02009d8b4c5\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.gz\",\"name\":\"PHP 7.2.11 (tar.gz)\",\"sha256\":\"180c63a9647c0a50d438b6bd5c7a8e7a11bceee8ad613a59d3ef15151fc158d4\",\"date\":\"11 Oct 2018\"},{\"filename\":\"php-7.2.11.tar.xz\",\"name\":\"PHP 7.2.11 (tar.xz)\",\"sha256\":\"da1a705c0bc46410e330fc6baa967666c8cd2985378fb9707c01a8e33b01d985\",\"date\":\"11 Oct 2018\"}],\"date\":\"11 Oct 2018\",\"museum\":false},\"7.1.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_22.php\"},\"source\":[{\"filename\":\"php-7.1.22.tar.bz2\",\"name\":\"PHP 7.1.22 (tar.bz2)\",\"sha256\":\"c8e91f19c8aa810ae95f228ff31cf0e4805cb89f4c10870ee12c85491b26e763\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.gz\",\"name\":\"PHP 7.1.22 (tar.gz)\",\"sha256\":\"1d275115593a33315647094a5a4ee9bd73c7960c08686cee35dc2e683a68b157\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.1.22.tar.xz\",\"name\":\"PHP 7.1.22 (tar.xz)\",\"sha256\":\"9194c9b3a592d8376fde837dde711ec01ee26f8607fc2884047ef6f7c089b15d\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_10.php\"},\"source\":[{\"filename\":\"php-7.2.10.tar.bz2\",\"name\":\"PHP 7.2.10 (tar.bz2)\",\"sha256\":\"01b6129a0921a1636b07da9bc598a876669e45a462cef4b5844fc26862dbda9d\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.gz\",\"name\":\"PHP 7.2.10 (tar.gz)\",\"sha256\":\"d2d908b49b6005e65dcc46cdc986603a19b7ff103119fce8ddd4648586d430a4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-7.2.10.tar.xz\",\"name\":\"PHP 7.2.10 (tar.xz)\",\"sha256\":\"01c2154a3a8e3c0818acbdbc1a956832c828a0380ce6d1d14fea495ea21804f0\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_21.php\"},\"source\":[{\"filename\":\"php-7.1.21.tar.bz2\",\"name\":\"PHP 7.1.21 (tar.bz2)\",\"sha256\":\"c2409c574bde23763b48a96b93922f530156df044585ff60108bce7b27b19580\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.gz\",\"name\":\"PHP 7.1.21 (tar.gz)\",\"sha256\":\"4b448ba9b3c81b88543c1e1fbef465391fecd64d7f19a744df26e9923295dd00\",\"date\":\"17 Aug 2018\"},{\"filename\":\"php-7.1.21.tar.xz\",\"name\":\"PHP 7.1.21 (tar.xz)\",\"sha256\":\"d4da6dc69d3fe1e6b2b80f16b262f391037bfeb21213c966e026bd45d7ca2813\",\"date\":\"17 Aug 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"7.0.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_31.php\"},\"source\":[{\"filename\":\"php-7.0.31.tar.bz2\",\"name\":\"PHP 7.0.31 (tar.bz2)\",\"sha256\":\"7e8bd73eced6e679a179d39571e8fee6c83e51c86f43338f65c2dc88c1106b91\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.gz\",\"name\":\"PHP 7.0.31 (tar.gz)\",\"sha256\":\"182f36e5709837158bd4970ce57fe80735bdf79025133c00d6ad882d1c4d98dd\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.0.31.tar.xz\",\"name\":\"PHP 7.0.31 (tar.xz)\",\"sha256\":\"68f57b3f4587071fb54a620cb83a1cfb3f0bd4ee071e0ce3bf7046a5f2d2f3cf\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_9.php\"},\"source\":[{\"filename\":\"php-7.2.9.tar.bz2\",\"name\":\"PHP 7.2.9 (tar.bz2)\",\"sha256\":\"e9e3aaa6c317b7fea78246a758b017544366049d2789ad5a44fe9398464c53a8\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.gz\",\"name\":\"PHP 7.2.9 (tar.gz)\",\"sha256\":\"23fcc1e4d10e06ddfdbc1163a8f0d147a7813467273f7946eb0de1b825d1d3e6\",\"date\":\"16 Aug 2018\"},{\"filename\":\"php-7.2.9.tar.xz\",\"name\":\"PHP 7.2.9 (tar.xz)\",\"sha256\":\"3585c1222e00494efee4f5a65a8e03a1e6eca3dfb834814236ee7f02c5248ae0\",\"date\":\"16 Aug 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false},\"7.1.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_20.php\"},\"source\":[{\"filename\":\"php-7.1.20.tar.bz2\",\"name\":\"PHP 7.1.20 (tar.bz2)\",\"sha256\":\"3a1b476c88fb81254ea572e891a1d65053ab54068348e00c75e8b54fae691d45\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.gz\",\"name\":\"PHP 7.1.20 (tar.gz)\",\"sha256\":\"77a2091f4ab50367a6c68274a0d92e0da9ecdbf428b280c9836c5c6d512da450\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.1.20.tar.xz\",\"name\":\"PHP 7.1.20 (tar.xz)\",\"sha256\":\"cd7d1006201459d43fae0790cce4eb3451add5c87f4cadb13b228d4c179b850c\",\"date\":\"19 Jul 2018\"}],\"date\":\"16 Aug 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_8.php\"},\"source\":[{\"filename\":\"php-7.2.8.tar.bz2\",\"name\":\"PHP 7.2.8 (tar.bz2)\",\"sha256\":\"1f8068f520a60fff3db19be1b849f0c02a33a0fd8b34b7ae05556ef682187ee6\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.gz\",\"name\":\"PHP 7.2.8 (tar.gz)\",\"sha256\":\"a0cb9bf2f78498fc090eb553df03cdacc198785dec0818efa7a1804c2b7a8722\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-7.2.8.tar.xz\",\"name\":\"PHP 7.2.8 (tar.xz)\",\"sha256\":\"53ba0708be8a7db44256e3ae9fcecc91b811e5b5119e6080c951ffe7910ffb0f\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_19.php\"},\"source\":[{\"filename\":\"php-7.1.19.tar.bz2\",\"name\":\"PHP 7.1.19 (tar.bz2)\",\"sha256\":\"13c43e7be3040ad53f192b0770c7ed99e5b3e348dfc6674666179d557fd770f3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.gz\",\"name\":\"PHP 7.1.19 (tar.gz)\",\"sha256\":\"e1ae477b72bed02cdcb04f0157b8f8767bd4f6030416ae06408b4f6d85ee66a1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.1.19.tar.xz\",\"name\":\"PHP 7.1.19 (tar.xz)\",\"sha256\":\"7cab88f269b90a8a38dbcccf3ec0d5c6eba86122431a53eaa94405bbb60370a8\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.0.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_30.php\"},\"source\":[{\"filename\":\"php-7.0.30.tar.bz2\",\"name\":\"PHP 7.0.30 (tar.bz2)\",\"sha256\":\"213f38400c239b8fab2f6f59d6f4d4bd463d0a75bd4edf723dd4d5fea8850b50\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.gz\",\"name\":\"PHP 7.0.30 (tar.gz)\",\"sha256\":\"54e7615205123b940b996300bf99c707c2317b6b78388061a204b23ab3388a26\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.0.30.tar.xz\",\"name\":\"PHP 7.0.30 (tar.xz)\",\"sha256\":\"c90892fb68ab9b8476519658d3f78f6388f2609ae1309bdc2a2e1cc9f92dd686\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_7.php\"},\"source\":[{\"filename\":\"php-7.2.7.tar.bz2\",\"name\":\"PHP 7.2.7 (tar.bz2)\",\"sha256\":\"cc81675a96af4dd18d8ffc02f26a36c622abadf86af7ecfea7bcde8d3c96d5a3\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.gz\",\"name\":\"PHP 7.2.7 (tar.gz)\",\"sha256\":\"014f0560cfa22e6301b0024a6fd888c3612a0dc102ff355fa2b49544d16d43b1\",\"date\":\"21 Jun 2018\"},{\"filename\":\"php-7.2.7.tar.xz\",\"name\":\"PHP 7.2.7 (tar.xz)\",\"sha256\":\"eb01c0153b3baf1f64b8b044013ce414b52fede222df3f509e8ff209478f31f0\",\"date\":\"21 Jun 2018\"}],\"date\":\"21 Jun 2018\",\"museum\":false},\"7.1.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_18.php\"},\"source\":[{\"filename\":\"php-7.1.18.tar.bz2\",\"name\":\"PHP 7.1.18 (tar.bz2)\",\"sha256\":\"580e375515ede831a6d82e13c0ec25dd08b225c6d87dfc24d7cd5f3bd542bf8e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.gz\",\"name\":\"PHP 7.1.18 (tar.gz)\",\"sha256\":\"07c24ae4dd59d81d3dc0ce89025ae667979150e2ee0e9e30dd89e04e31d510fb\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.1.18.tar.xz\",\"name\":\"PHP 7.1.18 (tar.xz)\",\"sha256\":\"8bd91cea072ea5b368cc9b4533a1a683eb426abdacbf024bb6ffa9b799cd3b01\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.2.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_6.php\"},\"source\":[{\"filename\":\"php-7.2.6.tar.bz2\",\"name\":\"PHP 7.2.6 (tar.bz2)\",\"sha256\":\"ae5d3e8ada80b9d293d0c8bd643d07c2d988538ff1052a3f7144c6b0cd0ff2c3\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.gz\",\"name\":\"PHP 7.2.6 (tar.gz)\",\"sha256\":\"a9f30daf6af82ac02e692465cfd65b04a60d56106c961926e264d2621d313f0e\",\"date\":\"24 May 2018\"},{\"filename\":\"php-7.2.6.tar.xz\",\"name\":\"PHP 7.2.6 (tar.xz)\",\"sha256\":\"1f004e049788a3effc89ef417f06a6cf704c95ae2a718b2175185f2983381ae7\",\"date\":\"24 May 2018\"}],\"date\":\"24 May 2018\",\"museum\":false},\"7.1.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_17.php\"},\"source\":[{\"filename\":\"php-7.1.17.tar.bz2\",\"name\":\"PHP 7.1.17 (tar.bz2)\",\"sha256\":\"e124e3ac552c50f3890ed981d07b2ee473cac961885e75186ded0bbb5b78dbcf\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.gz\",\"name\":\"PHP 7.1.17 (tar.gz)\",\"sha256\":\"aba44265bf814a020282afa63321323e1f81da61bd7318ab2b941857a15cb144\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.1.17.tar.xz\",\"name\":\"PHP 7.1.17 (tar.xz)\",\"sha256\":\"1a784806866e06367f7a5c88775d239d6f30041c7ce65a8232d03a3d4de56d56\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_5.php\"},\"source\":[{\"filename\":\"php-7.2.5.tar.bz2\",\"name\":\"PHP 7.2.5 (tar.bz2)\",\"sha256\":\"f3820efa8efa79628b6e1b5b2f8c1b04c08d32e6721fa1654039ce5f89796031\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.gz\",\"name\":\"PHP 7.2.5 (tar.gz)\",\"sha256\":\"c198aedd4cd16db0803e0ef955036722a1f4ce9ad3827546709fac05f1567ba5\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-7.2.5.tar.xz\",\"name\":\"PHP 7.2.5 (tar.xz)\",\"sha256\":\"af70a33b3f7a51510467199b39af151333fbbe4cc21923bad9c7cf64268cddb2\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_16.php\"},\"source\":[{\"filename\":\"php-7.1.16.tar.bz2\",\"name\":\"PHP 7.1.16 (tar.bz2)\",\"sha256\":\"348e2af9c7c0f327a57a972674078777dfde189e2598acbcb8618b9645b0e7e5\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.gz\",\"name\":\"PHP 7.1.16 (tar.gz)\",\"sha256\":\"c8e6fed5b350b29a5b9eaa9fce7c5e8618629346e9a58212f3dc380046065442\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.1.16.tar.xz\",\"name\":\"PHP 7.1.16 (tar.xz)\",\"sha256\":\"a5d67e477248a3911af7ef85c8400c1ba8cd632184186fd31070b96714e669f1\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_29.php\"},\"source\":[{\"filename\":\"php-7.0.29.tar.bz2\",\"name\":\"PHP 7.0.29 (tar.bz2)\",\"sha256\":\"989142d5c5ff7a11431254f9c1995235bad61a3364b99c966e11e06aa10d3fbc\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.gz\",\"name\":\"PHP 7.0.29 (tar.gz)\",\"sha256\":\"5efe45e345f967cb20f9ff92cd514753872a65feffea1bf311c71864344bd8e8\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.0.29.tar.xz\",\"name\":\"PHP 7.0.29 (tar.xz)\",\"sha256\":\"ca79d3ecc123bff4b623d4a1bbf5ad53ad39f5f2f5912fecc0ea97e95eba21cc\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_4.php\"},\"source\":[{\"filename\":\"php-7.2.4.tar.bz2\",\"name\":\"PHP 7.2.4 (tar.bz2)\",\"sha256\":\"11658a0d764dc94023b9fb60d4b5eb75d438ad17981efe70abb0d0d09a447ef3\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.gz\",\"name\":\"PHP 7.2.4 (tar.gz)\",\"sha256\":\"58e28e978baea0fe9009432bcb436934eaacccfdcb5f5409c7526431a595857b\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-7.2.4.tar.xz\",\"name\":\"PHP 7.2.4 (tar.xz)\",\"sha256\":\"7916b1bd148ddfd46d7f8f9a517d4b09cd8a8ad9248734e7c8dd91ef17057a88\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_15.php\"},\"source\":[{\"filename\":\"php-7.1.15.tar.bz2\",\"name\":\"PHP 7.1.15 (tar.bz2)\",\"sha256\":\"e117a54738e9485de5fc75673d39dbe937dd87f0f9cc9e281960ef9b961adcbd\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.gz\",\"name\":\"PHP 7.1.15 (tar.gz)\",\"sha256\":\"0669c68a52cbd2f1cfa83354918ed03b0bcaa34ed9bafaee7dfd343461b881d4\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.1.15.tar.xz\",\"name\":\"PHP 7.1.15 (tar.xz)\",\"sha256\":\"0e17192fb43532e4ebaa190ecec9c7e59deea7dadb7dab67b19c2081a68bd817\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_3.php\"},\"source\":[{\"filename\":\"php-7.2.3.tar.bz2\",\"name\":\"PHP 7.2.3 (tar.bz2)\",\"sha256\":\"4a735aac0ba764dd8208ea29007d3916396c5292e003ba8d3bec49edcdd5bf92\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.gz\",\"name\":\"PHP 7.2.3 (tar.gz)\",\"sha256\":\"5dc98f2266db40c5e4d9b5edf5e29e2449e819fff8321a07eb3830cf0b104bbb\",\"date\":\"1 Mar 2018\"},{\"filename\":\"php-7.2.3.tar.xz\",\"name\":\"PHP 7.2.3 (tar.xz)\",\"sha256\":\"b3a94f1b562f413c0b96f54bc309706d83b29ac65d9b172bc7ed9fb40a5e651f\",\"date\":\"1 Mar 2018\"}],\"date\":\"1 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_28.php\"},\"source\":[{\"filename\":\"php-7.0.28.tar.bz2\",\"name\":\"PHP 7.0.28 (tar.bz2)\",\"sha256\":\"ae5491b4613f3710e3d09e688ba3d30d3acc1112c7b96a8703663b8a95063c7f\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.gz\",\"name\":\"PHP 7.0.28 (tar.gz)\",\"sha256\":\"cd2fd94feb0d5809ffb9d900138643fa74e70656436e5f2595b03239dd97aa9c\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-7.0.28.tar.xz\",\"name\":\"PHP 7.0.28 (tar.xz)\",\"sha256\":\"e738ffce2c30bc0e84be9446af86bef0a0607d321f1a3d04bbfe2402fb5f6de0\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_14.php\"},\"source\":[{\"filename\":\"php-7.1.14.tar.bz2\",\"name\":\"PHP 7.1.14 (tar.bz2)\",\"sha256\":\"63b2fd139ed7656756b0fa290bc42f8fff854723c3d2710a700e646370c581f4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.gz\",\"name\":\"PHP 7.1.14 (tar.gz)\",\"sha256\":\"8c7360209d255ee46d388bdcd43ef1a2d14b370c331be30ea628ece18a1e7683\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.1.14.tar.xz\",\"name\":\"PHP 7.1.14 (tar.xz)\",\"sha256\":\"c09f0c1074f5689b492d79034adb84e6a6c6d08c6763c02282e6318d41156779\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.2.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_2.php\"},\"source\":[{\"filename\":\"php-7.2.2.tar.bz2\",\"name\":\"PHP 7.2.2 (tar.bz2)\",\"sha256\":\"f841ac58e17471f2241ea892b34edb01dc9b93ad9f661ffe4e3f1f476a8f4aee\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.gz\",\"name\":\"PHP 7.2.2 (tar.gz)\",\"sha256\":\"5963df05fec21927c03fe9f7bf379be2d1eacde6c0f9dcde6143c7133e55abd4\",\"date\":\"1 Feb 2018\"},{\"filename\":\"php-7.2.2.tar.xz\",\"name\":\"PHP 7.2.2 (tar.xz)\",\"sha256\":\"47d7607d38a1d565fc43ea942c92229a7cd165f156737f210937e375b243cb11\",\"date\":\"1 Feb 2018\"}],\"date\":\"1 Feb 2018\",\"museum\":false},\"7.0.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_27.php\"},\"source\":[{\"filename\":\"php-7.0.27.tar.bz2\",\"name\":\"PHP 7.0.27 (tar.bz2)\",\"sha256\":\"99fa2563bb4c4c1cde9febe87cfe97324227d7b4b8828f2e936e507127394131\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.gz\",\"name\":\"PHP 7.0.27 (tar.gz)\",\"sha256\":\"809c0181e970dd17c6a6cabbf64518e719c7253e7490f8e1279bc1e1fbdf7996\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-7.0.27.tar.xz\",\"name\":\"PHP 7.0.27 (tar.xz)\",\"sha256\":\"4b2bc823e806dbf7b62fe0b92b0d14b0c6e03f88c3fc5d96278416c54ce11f6c\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false,\"tags\":[\"security\"]},\"7.2.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_1.php\"},\"source\":[{\"filename\":\"php-7.2.1.tar.bz2\",\"name\":\"PHP 7.2.1 (tar.bz2)\",\"sha256\":\"fe06793f268a4dd29cbc5f4ef415f01e786877152b02221ad7d18dbb6864eb79\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.gz\",\"name\":\"PHP 7.2.1 (tar.gz)\",\"sha256\":\"8ecb2950571054a00687ccbd023874a4a075ccd1e2ec3dc00fc25ef589a77dba\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.2.1.tar.xz\",\"name\":\"PHP 7.2.1 (tar.xz)\",\"sha256\":\"6c6cf82fda6660ed963821eb0525214bb3547e8e29f447b9c15b2d8e6efd8822\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.1.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_13.php\"},\"source\":[{\"filename\":\"php-7.1.13.tar.bz2\",\"name\":\"PHP 7.1.13 (tar.bz2)\",\"sha256\":\"35fda51d2d44600940185fd5818d336a79e77ab3c98e2bd075091f2f91cf98a1\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.gz\",\"name\":\"PHP 7.1.13 (tar.gz)\",\"sha256\":\"12fcbf59c9eb9af215ef38815d5da39b9d74549092c34b0dfc31442699740ce9\",\"date\":\"4 Jan 2018\"},{\"filename\":\"php-7.1.13.tar.xz\",\"name\":\"PHP 7.1.13 (tar.xz)\",\"sha256\":\"1a0b3f2fb61959b57a3ee01793a77ed3f19bde5aa90c43dcacc85ea32f64fc10\",\"date\":\"4 Jan 2018\"}],\"date\":\"4 Jan 2018\",\"museum\":false},\"7.2.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_2_0.php\"},\"source\":[{\"filename\":\"php-7.2.0.tar.bz2\",\"name\":\"PHP 7.2.0 (tar.bz2)\",\"sha256\":\"2bfefae4226b9b97879c9d33078e50bdb5c17f45ff6e255951062a529720c64a\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.gz\",\"name\":\"PHP 7.2.0 (tar.gz)\",\"sha256\":\"801876abd52e0dc58a44701344252035fd50702d8f510cda7fdb317ab79897bc\",\"date\":\"30 Nov 2017\"},{\"filename\":\"php-7.2.0.tar.xz\",\"name\":\"PHP 7.2.0 (tar.xz)\",\"sha256\":\"87572a6b924670a5d4aac276aaa4a94321936283df391d702c845ffc112db095\",\"date\":\"30 Nov 2017\"}],\"date\":\"30 Nov 2017\",\"museum\":false},\"7.1.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_12.php\"},\"source\":[{\"filename\":\"php-7.1.12.tar.bz2\",\"name\":\"PHP 7.1.12 (tar.bz2)\",\"sha256\":\"f9ce3361ab99dce8f3f2fba663695ac9b18a3579bc8014dc280368d1577d87c4\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.gz\",\"name\":\"PHP 7.1.12 (tar.gz)\",\"sha256\":\"188c67d8e424ce7a6fe93475aa64f53182c1d80ca3ac99439651ca91569d969c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.1.12.tar.xz\",\"name\":\"PHP 7.1.12 (tar.xz)\",\"sha256\":\"a0118850774571b1f2d4e30b4fe7a4b958ca66f07d07d65ebdc789c54ba6eeb3\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.0.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_26.php\"},\"source\":[{\"filename\":\"php-7.0.26.tar.bz2\",\"name\":\"PHP 7.0.26 (tar.bz2)\",\"sha256\":\"2590d722f7b23b6a903c5a00cf04e7ee728df79d10ae473e3a81ba41588509a7\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.gz\",\"name\":\"PHP 7.0.26 (tar.gz)\",\"sha256\":\"04c345f7c9e3f1cd02f275bfec893a4e0290e724073f2f3d7282a219128b537c\",\"date\":\"23 Nov 2017\"},{\"filename\":\"php-7.0.26.tar.xz\",\"name\":\"PHP 7.0.26 (tar.xz)\",\"sha256\":\"ed5cbb4bbb0ddef8985f100bba2e94002ad22a230b5da2dccfe148915df5f199\",\"date\":\"23 Nov 2017\"}],\"date\":\"23 Nov 2017\",\"museum\":false},\"7.1.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_11.php\"},\"source\":[{\"filename\":\"php-7.1.11.tar.bz2\",\"name\":\"PHP 7.1.11 (tar.bz2)\",\"sha256\":\"7646d7de701fc969e3305eeeb2eddda3d46af6a88ee20ef4a47270c447228573\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.gz\",\"name\":\"PHP 7.1.11 (tar.gz)\",\"sha256\":\"de41b2c166bc5ec8ea96a337d4dd675c794f7b115a8a47bb04595c03dbbdf425\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.1.11.tar.xz\",\"name\":\"PHP 7.1.11 (tar.xz)\",\"sha256\":\"074093e9d7d21afedc5106904218a80a47b854abe368d2728ed22184c884893e\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"7.0.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_25.php\"},\"source\":[{\"filename\":\"php-7.0.25.tar.bz2\",\"name\":\"PHP 7.0.25 (tar.bz2)\",\"sha256\":\"95a24d96d126a196e1550e394182b43a6460cdd2026f1a77bef01e422415cc25\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.gz\",\"name\":\"PHP 7.0.25 (tar.gz)\",\"sha256\":\"081b46bf588d38c636fd6cd1dab8855b6b3e171550d1e65f770f53aede594ee7\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-7.0.25.tar.xz\",\"name\":\"PHP 7.0.25 (tar.xz)\",\"sha256\":\"5cc14bd20fb2226f6d34465662425cd100441bde9042ea1cef2e4506d6ded8cc\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_10.php\"},\"source\":[{\"filename\":\"php-7.1.10.tar.bz2\",\"name\":\"PHP 7.1.10 (tar.bz2)\",\"sha256\":\"0ee51b9b1ae7eca3e9558f772ce20cbacd1f76420009b3af630c87027f9a41af\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.gz\",\"name\":\"PHP 7.1.10 (tar.gz)\",\"sha256\":\"edc6a7c3fe89419525ce51969c5f48610e53613235bbef255c3a4db33b458083\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.1.10.tar.xz\",\"name\":\"PHP 7.1.10 (tar.xz)\",\"sha256\":\"2b8efa771a2ead0bb3ae67b530ca505b5b286adc873cca9ce97a6e1d6815c50b\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.0.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_24.php\"},\"source\":[{\"filename\":\"php-7.0.24.tar.bz2\",\"name\":\"PHP 7.0.24 (tar.bz2)\",\"sha256\":\"9bf91982694f178821c0aaf03563a20494873ece6933e2eeecfd76f325bdcf19\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.gz\",\"name\":\"PHP 7.0.24 (tar.gz)\",\"sha256\":\"151015b578c14a4ab47d1e5894b36c85cf5655237599b805a08d106fe18a8c8e\",\"date\":\"28 Sep 2017\"},{\"filename\":\"php-7.0.24.tar.xz\",\"name\":\"PHP 7.0.24 (tar.xz)\",\"sha256\":\"4dba7aa365193c9229f89f1975fad4c01135d29922a338ffb4a27e840d6f1c98\",\"date\":\"28 Sep 2017\"}],\"date\":\"28 Sep 2017\",\"museum\":false},\"7.1.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_9.php\"},\"source\":[{\"filename\":\"php-7.1.9.tar.bz2\",\"name\":\"PHP 7.1.9 (tar.bz2)\",\"sha256\":\"314dcc10dfdd7c4443edb4fe1e133a44f2b2a8351be8c9eb6ab9222d45fd9bae\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.gz\",\"name\":\"PHP 7.1.9 (tar.gz)\",\"sha256\":\"499c31ad19b2ff553ae686ebf53749aa2351af7d955ee9f1986f144089561a4b\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.1.9.tar.xz\",\"name\":\"PHP 7.1.9 (tar.xz)\",\"sha256\":\"ec9ca348dd51f19a84dc5d33acfff1fba1f977300604bdac08ed46ae2c281e8c\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.0.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_23.php\"},\"source\":[{\"filename\":\"php-7.0.23.tar.bz2\",\"name\":\"PHP 7.0.23 (tar.bz2)\",\"sha256\":\"6fe94cefc7d2c60ee2c1648b977beed756ad9cd0a7e4ea8bb8cf521d9355a09c\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.gz\",\"name\":\"PHP 7.0.23 (tar.gz)\",\"sha256\":\"d511089ecaf386f3ab752efba76558c03558afa6b5b3fe71d84881c76644b466\",\"date\":\"31 Aug 2017\"},{\"filename\":\"php-7.0.23.tar.xz\",\"name\":\"PHP 7.0.23 (tar.xz)\",\"sha256\":\"8e526e3551a58e00c8055fa4a72804aa1bd3ee1c0411b25bf1504cc4992609df\",\"date\":\"31 Aug 2017\"}],\"date\":\"31 Aug 2017\",\"museum\":false},\"7.1.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_8.php\"},\"source\":[{\"filename\":\"php-7.1.8.tar.bz2\",\"name\":\"PHP 7.1.8 (tar.bz2)\",\"sha256\":\"7064a00a9450565190890c7a4be04e646e0be73b2e0f8c46ae34419f343ca2f8\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.gz\",\"name\":\"PHP 7.1.8 (tar.gz)\",\"sha256\":\"63517b3264f7cb17fb58e1ce60a6cd8903160239b7cf568d52024e9cf4d6cb04\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.1.8.tar.xz\",\"name\":\"PHP 7.1.8 (tar.xz)\",\"sha256\":\"8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.0.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_22.php\"},\"source\":[{\"filename\":\"php-7.0.22.tar.bz2\",\"name\":\"PHP 7.0.22 (tar.bz2)\",\"sha256\":\"88e0b27f69abdd12ecde81f000c5a9ea479af7218456ea7f6557edb43c6dfdde\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.gz\",\"name\":\"PHP 7.0.22 (tar.gz)\",\"sha256\":\"04292eaea0eeb75e9b6a36a3db8e90a3d43f939646fd9d7d1e083e5b70884383\",\"date\":\"03 Aug 2017\"},{\"filename\":\"php-7.0.22.tar.xz\",\"name\":\"PHP 7.0.22 (tar.xz)\",\"sha256\":\"408c3fbc235ec940433bfac1f3ed4bf797f61b4a1693b9fb0b6a04b2c1832501\",\"date\":\"03 Aug 2017\"}],\"date\":\"03 Aug 2017\",\"museum\":false},\"7.1.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_7.php\"},\"source\":[{\"filename\":\"php-7.1.7.tar.bz2\",\"name\":\"PHP 7.1.7 (tar.bz2)\",\"sha256\":\"079b6792987f38dc485f92258c04f9e02dedd593f9d260ebe725343f812d1ff8\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.gz\",\"name\":\"PHP 7.1.7 (tar.gz)\",\"sha256\":\"e0dbab8da601ee5119368d6f93dc1a86ad53b799d2f8c1209d6b827a2b259f92\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.1.7.tar.xz\",\"name\":\"PHP 7.1.7 (tar.xz)\",\"sha256\":\"0d42089729be7b2bb0308cbe189c2782f9cb4b07078c8a235495be5874fff729\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_21.php\"},\"source\":[{\"filename\":\"php-7.0.21.tar.bz2\",\"name\":\"PHP 7.0.21 (tar.bz2)\",\"sha256\":\"2ba133c392de6f86aacced8c54e0adefd1c81d3840ac323b9926b8ed3dc6231f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.gz\",\"name\":\"PHP 7.0.21 (tar.gz)\",\"sha256\":\"f2f05f629dd02c75834ddf033916bd5ff92a720602839d81fd8b6d90e37b6225\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-7.0.21.tar.xz\",\"name\":\"PHP 7.0.21 (tar.xz)\",\"sha256\":\"6713fe3024365d661593235b525235045ef81f18d0043654658c9de1bcb8b9e3\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_6.php\"},\"source\":[{\"filename\":\"php-7.1.6.tar.bz2\",\"name\":\"PHP 7.1.6 (tar.bz2)\",\"sha256\":\"6e3576ca77672a18461a4b089c5790647f1b2c19f82e4f5e94c962609aabffcf\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.gz\",\"name\":\"PHP 7.1.6 (tar.gz)\",\"sha256\":\"7ff8c01af791c7e499ee77e1b82e4b1d56e379efe1f706b1203d48751481fd9f\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.1.6.tar.xz\",\"name\":\"PHP 7.1.6 (tar.xz)\",\"sha256\":\"01584dc521ab7ec84b502b61952f573652fe6aa00c18d6d844fb9209f14b245b\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.0.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_20.php\"},\"source\":[{\"filename\":\"php-7.0.20.tar.bz2\",\"name\":\"PHP 7.0.20 (tar.bz2)\",\"sha256\":\"cdfddfe01cc615218e333e34a1c761c9ef8fdf5199b27617264a02705eda7fc3\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.gz\",\"name\":\"PHP 7.0.20 (tar.gz)\",\"sha256\":\"b44947f0c1926928d5c2f176506b878c32b5cd09ce3b5b52bbbecf4328ab812d\",\"date\":\"08 Jun 2017\"},{\"filename\":\"php-7.0.20.tar.xz\",\"name\":\"PHP 7.0.20 (tar.xz)\",\"sha256\":\"31b9cf1fb83fe3cd82c2f6603a0ae81ae6abacb5286827e362d8f85e68908e0a\",\"date\":\"08 Jun 2017\"}],\"date\":\"08 Jun 2017\",\"museum\":false},\"7.1.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_5.php\"},\"source\":[{\"filename\":\"php-7.1.5.tar.bz2\",\"name\":\"PHP 7.1.5 (tar.bz2)\",\"sha256\":\"28eaa4784f1bd8b7dc71206dc8c4375510199432dc17af6906b14d16b3058697\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.gz\",\"name\":\"PHP 7.1.5 (tar.gz)\",\"sha256\":\"f7ff8039f5c3a7da4d62a3cce6378280224acfa27ab5a5bee25b7439bce01c17\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.1.5.tar.xz\",\"name\":\"PHP 7.1.5 (tar.xz)\",\"sha256\":\"d149a3c396c45611f5dc6bf14be190f464897145a76a8e5851cf18ff7094f6ac\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.0.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_19.php\"},\"source\":[{\"filename\":\"php-7.0.19.tar.bz2\",\"name\":\"PHP 7.0.19 (tar.bz2)\",\"sha256\":\"0f3ac0afc02aec22f6b1659045da9287453e9309439d0499622bc8e94a7f7d59\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.gz\",\"name\":\"PHP 7.0.19 (tar.gz)\",\"sha256\":\"4b4120acdbb8cbf5f7a18625c2eb5cdd2fdb4fc69a4831bc7ffdfd1ee78b1ce0\",\"date\":\"11 May 2017\"},{\"filename\":\"php-7.0.19.tar.xz\",\"name\":\"PHP 7.0.19 (tar.xz)\",\"sha256\":\"640e5e3377d15a6d19adce2b94a9d876eeddabdb862d154a5e347987f4225ef6\",\"date\":\"11 May 2017\"}],\"date\":\"11 May 2017\",\"museum\":false},\"7.1.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_4.php\"},\"source\":[{\"filename\":\"php-7.1.4.tar.bz2\",\"name\":\"PHP 7.1.4 (tar.bz2)\",\"sha256\":\"39bf697836e2760b3a44ea322e9e5f1f5b1f07abeb0111f6495eff7538e25805\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.gz\",\"name\":\"PHP 7.1.4 (tar.gz)\",\"sha256\":\"ed0006c86de503684dde04c6dd811ea2354a3b6d10ebd9f0cb103dcd28f0e70f\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.1.4.tar.xz\",\"name\":\"PHP 7.1.4 (tar.xz)\",\"sha256\":\"71514386adf3e963df087c2044a0b3747900b8b1fc8da3a99f0a0ae9180d300b\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.0.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_18.php\"},\"source\":[{\"filename\":\"php-7.0.18.tar.bz2\",\"name\":\"PHP 7.0.18 (tar.bz2)\",\"sha256\":\"b20cc63d507032b39d8bb14cb64784e460b0e47997e90a8704b703bcbb233fd1\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.gz\",\"name\":\"PHP 7.0.18 (tar.gz)\",\"sha256\":\"e0fb336749d72e6c9cfcebb9b48497f004fa99f93b68c21cb3eb657053665e1d\",\"date\":\"13 Apr 2017\"},{\"filename\":\"php-7.0.18.tar.xz\",\"name\":\"PHP 7.0.18 (tar.xz)\",\"sha256\":\"679cffcdf2495dee5ab89bda595e678a1096136678b3a1d08f1f57ba347c234d\",\"date\":\"13 Apr 2017\"}],\"date\":\"13 Apr 2017\",\"museum\":false},\"7.1.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_3.php\"},\"source\":[{\"filename\":\"php-7.1.3.tar.bz2\",\"name\":\"PHP 7.1.3 (tar.bz2)\",\"sha256\":\"c145924d91b7a253eccc31f8d22f15b61589cd24d78105e56240c1bb6413b94f\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.gz\",\"name\":\"PHP 7.1.3 (tar.gz)\",\"sha256\":\"4bfadd0012b966eced448497272150ffeede13136a961aacb9e71553b8e929ec\",\"date\":\"16 Mar 2017\"},{\"filename\":\"php-7.1.3.tar.xz\",\"name\":\"PHP 7.1.3 (tar.xz)\",\"sha256\":\"e4887c2634778e37fd962fbdf5c4a7d32cd708482fe07b448804625570cb0bb0\",\"date\":\"16 Mar 2017\"}],\"date\":\"16 Mar 2017\",\"museum\":false},\"7.0.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_17.php\"},\"source\":[{\"filename\":\"php-7.0.17.tar.bz2\",\"name\":\"PHP 7.0.17 (tar.bz2)\",\"sha256\":\"aee503926b96d807692fac3e0fd64e3259788f5139819a983152679cb6e91d4b\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.gz\",\"name\":\"PHP 7.0.17 (tar.gz)\",\"sha256\":\"1f42ffe9895dad746baf4a0e8d81f2272f55fdef66cf298ac911d8791ceb1e80\",\"date\":\"30 Mar 2017\"},{\"filename\":\"php-7.0.17.tar.xz\",\"name\":\"PHP 7.0.17 (tar.xz)\",\"sha256\":\"471c16fcdd6a5e1a37199e97bcaeea6117626229785185be7532aaa7c6ee04be\",\"date\":\"30 Mar 2017\"}],\"date\":\"30 Mar 2017\",\"museum\":false},\"7.1.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_2.php\"},\"source\":[{\"filename\":\"php-7.1.2.tar.bz2\",\"name\":\"PHP 7.1.2 (tar.bz2)\",\"sha256\":\"e0f2214e2366434ee231156ba70cfefd0c59790f050d8727a3f1dc2affa67004\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.gz\",\"name\":\"PHP 7.1.2 (tar.gz)\",\"sha256\":\"e6773217c9c719ca22abb104ae3d437d53daceaf31faf2e5eeb1f9f5028005d8\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.1.2.tar.xz\",\"name\":\"PHP 7.1.2 (tar.xz)\",\"sha256\":\"d815a0c39fd57bab1434a77ff0610fb507c22f790c66cd6f26e27030c4b3e971\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.0.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_16.php\"},\"source\":[{\"filename\":\"php-7.0.16.tar.bz2\",\"name\":\"PHP 7.0.16 (tar.bz2)\",\"sha256\":\"83c5f57575dc0feca563af529d6f1d60183bf9c2c13e98a6da131fbd0a3597ab\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.gz\",\"name\":\"PHP 7.0.16 (tar.gz)\",\"sha256\":\"bc6709dc7612957d0533c09c9c8a9c2e7c4fd9d64e697707bb1b39670eab61d4\",\"date\":\"16 Feb 2017\"},{\"filename\":\"php-7.0.16.tar.xz\",\"name\":\"PHP 7.0.16 (tar.xz)\",\"sha256\":\"244ac39bc657448962860aa7a590e4417f68513ad5e86ee2727b1328b0537309\",\"date\":\"16 Feb 2017\"}],\"date\":\"16 Feb 2017\",\"museum\":false},\"7.1.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_1.php\"},\"source\":[{\"filename\":\"php-7.1.1.tar.bz2\",\"name\":\"PHP 7.1.1 (tar.bz2)\",\"sha256\":\"d791d39d7b54ec42441a05a5f06d68a495647d843210e3ae4f2c6adb99c675bc\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.gz\",\"name\":\"PHP 7.1.1 (tar.gz)\",\"sha256\":\"c136279d539c3c2c25176bf149c14913670e79bb27ee6b73e1cd69003985a70d\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.1.1.tar.xz\",\"name\":\"PHP 7.1.1 (tar.xz)\",\"sha256\":\"b3565b0c1441064eba204821608df1ec7367abff881286898d900c2c2a5ffe70\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"7.0.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_15.php\"},\"source\":[{\"filename\":\"php-7.0.15.tar.bz2\",\"name\":\"PHP 7.0.15 (tar.bz2)\",\"sha256\":\"a8c8f947335683fa6dd1b7443ed70f2a42bc33e8b6c215f139138cee89e47dd9\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.gz\",\"name\":\"PHP 7.0.15 (tar.gz)\",\"sha256\":\"c24324c6d4bf27e8bc1d12da0aae4f15a43c8374f681e23e9b1e67f5b719c3a6\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-7.0.15.tar.xz\",\"name\":\"PHP 7.0.15 (tar.xz)\",\"sha256\":\"300364d57fc4a6176ff7d52d390ee870ab6e30df121026649f8e7e0b9657fe93\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_14.php\"},\"source\":[{\"filename\":\"php-7.0.14.tar.bz2\",\"name\":\"PHP 7.0.14 (tar.bz2)\",\"sha256\":\"fbc4369a0d42b55fd1ce75eb4f3d17b012da754a67567d8e3288fbfbb7490534\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.gz\",\"name\":\"PHP 7.0.14 (tar.gz)\",\"sha256\":\"320cfd2184e7252d3d77eae5d5474554fa04ab9fbee7c6094c07e8bd3b5b632b\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-7.0.14.tar.xz\",\"name\":\"PHP 7.0.14 (tar.xz)\",\"sha256\":\"0f1dff6392a1cc2ed126b9695f580a2ed77eb09d2c23b41cabfb41e6f27a8c89\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.1.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_1_0.php\"},\"source\":[{\"filename\":\"php-7.1.0.tar.bz2\",\"name\":\"PHP 7.1.0 (tar.bz2)\",\"sha256\":\"68bcfd7deed5b3474d81dec9f74d122058327e2bed0ac25bbc9ec70995228e61\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.gz\",\"name\":\"PHP 7.1.0 (tar.gz)\",\"sha256\":\"9e84c5b13005c56374730edf534fe216f6a2e63792a9703d4b894e770bbccbae\",\"date\":\"01 Dec 2016\"},{\"filename\":\"php-7.1.0.tar.xz\",\"name\":\"PHP 7.1.0 (tar.xz)\",\"sha256\":\"a810b3f29c21407c24caa88f50649320d20ba6892ae1923132598b8a0ca145b6\",\"date\":\"01 Dec 2016\"}],\"date\":\"01 Dec 2016\",\"museum\":false},\"7.0.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_13.php\"},\"source\":[{\"filename\":\"php-7.0.13.tar.bz2\",\"name\":\"PHP 7.0.13 (tar.bz2)\",\"sha256\":\"d090bb523812117ec0c08d8f0b5c5f0616aa7a29a2eeee0374efe53a7cfe88c1\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.gz\",\"name\":\"PHP 7.0.13 (tar.gz)\",\"sha256\":\"c8d8cf1b29e7f7e89be9ee64f453cb7ef6d20e1d13a83cba037bd654ef2da42c\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-7.0.13.tar.xz\",\"name\":\"PHP 7.0.13 (tar.xz)\",\"sha256\":\"357ba7f93975d7d836abed0852dc3ed96a988af539e87750613294cbee82f1bf\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_12.php\"},\"source\":[{\"filename\":\"php-7.0.12.tar.bz2\",\"name\":\"PHP 7.0.12 (tar.bz2)\",\"sha256\":\"38c47294fe8fb239b0230dc63a93c3e4044f472ab93b5dff8b65feb4103a6a27\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.gz\",\"name\":\"PHP 7.0.12 (tar.gz)\",\"sha256\":\"c4693cc363b4bbc7224294cc94faf3598e616cbe8540dd6975f68c7d3c52682f\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-7.0.12.tar.xz\",\"name\":\"PHP 7.0.12 (tar.xz)\",\"sha256\":\"f3d6c49e1c242e5995dec15e503fde996c327eb86cd7ec45c690e93c971b83ff\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_11.php\"},\"source\":[{\"filename\":\"php-7.0.11.tar.bz2\",\"name\":\"PHP 7.0.11 (tar.bz2)\",\"sha256\":\"f99b729dc1149858844b18af1e8c0de6dd1cdfdd52e22fbb4de2aa78bf9bf7f1\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.gz\",\"name\":\"PHP 7.0.11 (tar.gz)\",\"sha256\":\"02d27b5d140dbad8d400a95af808e1e9ce87aa8d2a2100870734ba26e6700d79\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-7.0.11.tar.xz\",\"name\":\"PHP 7.0.11 (tar.xz)\",\"sha256\":\"d4cccea8da1d27c11b89386f8b8e95692ad3356610d571253d00ca67d524c735\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_10.php\"},\"source\":[{\"filename\":\"php-7.0.10.tar.bz2\",\"name\":\"PHP 7.0.10 (tar.bz2)\",\"sha256\":\"8055bbe5a736986931c0c6a08b765d6d778271ec7d2d56c50a1ad259ec09f6de\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.gz\",\"name\":\"PHP 7.0.10 (tar.gz)\",\"sha256\":\"46216e05db09c0fffbf832e3b64f3722ccbdd6d4ae16d9791e41adf0a4b00641\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-7.0.10.tar.xz\",\"name\":\"PHP 7.0.10 (tar.xz)\",\"sha256\":\"348476ff7ba8d95a1e28e1059430c10470c5f8110f6d9133d30153dda4cdf56a\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_9.php\"},\"source\":[{\"filename\":\"php-7.0.9.tar.bz2\",\"name\":\"PHP 7.0.9 (tar.bz2)\",\"sha256\":\"2ee6968b5875f2f38700c58a189aad859a6a0b85fc337aa102ec2dc3652c3b7b\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.gz\",\"name\":\"PHP 7.0.9 (tar.gz)\",\"sha256\":\"93895a6a610c94751c890e5ee91a7f4bc0eae476b95fe30425d13f7ae88753d5\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-7.0.9.tar.xz\",\"name\":\"PHP 7.0.9 (tar.xz)\",\"sha256\":\"970c322ba3e472cb0264b8ba9d4d92e87918da5d0cca53c4aba2a70545b8626d\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_8.php\"},\"source\":[{\"filename\":\"php-7.0.8.tar.bz2\",\"name\":\"PHP 7.0.8 (tar.bz2)\",\"sha256\":\"66dc7ba388490e07b1313fe3a06b1fa822e1310585fe29f4909995f131e27c8d\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.gz\",\"name\":\"PHP 7.0.8 (tar.gz)\",\"sha256\":\"1f024fa6d87594b99fa312e3185c357dcffa42e07d21c726f41d1fa6f773720b\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-7.0.8.tar.xz\",\"name\":\"PHP 7.0.8 (tar.xz)\",\"sha256\":\"0a2142c458b0846f556b16da1c927d74c101aa951bb840549abe5c58584fb394\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_7.php\"},\"source\":[{\"filename\":\"php-7.0.7.tar.bz2\",\"name\":\"PHP 7.0.7 (tar.bz2)\",\"sha256\":\"474f2925c4782b94016e3afbb17b14ff9cc6f4fdb6f6e231b36a378bb18a3d1a\",\"date\":\"26 May 2016\"},{\"filename\":\"php-7.0.7.tar.gz\",\"name\":\"PHP 7.0.7 (tar.gz)\",\"sha256\":\"66282ff4a9f88fe9607d9574e15bf335885b964245591a1740adb3f79c514a67\",\"date\":\"26 May 2016\"},{\"filename\":\"php-7.0.7.tar.xz\",\"name\":\"PHP 7.0.7 (tar.xz)\",\"sha256\":\"9cc64a7459242c79c10e79d74feaf5bae3541f604966ceb600c3d2e8f5fe4794\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_6.php\"},\"source\":[{\"filename\":\"php-7.0.6.tar.bz2\",\"name\":\"PHP 7.0.6 (tar.bz2)\",\"sha256\":\"14ddf192a9965c858c1e742a61456be2f34a4db87556172c0d76f08de96329b7\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-7.0.6.tar.gz\",\"name\":\"PHP 7.0.6 (tar.gz)\",\"sha256\":\"f6b47cb3e02530d96787ae5c7888aefbd1db6ae4164d68b88808ee6f4da94277\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-7.0.6.tar.xz\",\"name\":\"PHP 7.0.6 (tar.xz)\",\"sha256\":\"1b237a9455e5476a425dbb9d99966bad68107747c601958cb9558a7fb49ab419\",\"date\":\"28 Apr 2016\"}],\"date\":\"28 Apr 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_5.php\"},\"source\":[{\"filename\":\"php-7.0.5.tar.bz2\",\"name\":\"PHP 7.0.5 (tar.bz2)\",\"sha256\":\"2c09af7fe64537ea795f098b9b542ead407ef83f7cdc65b3787115ccbbb51de9\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-7.0.5.tar.gz\",\"name\":\"PHP 7.0.5 (tar.gz)\",\"sha256\":\"f9d93419031b4df663fc48f03b8a833545de8776225e46637563e2be6029908d\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-7.0.5.tar.xz\",\"name\":\"PHP 7.0.5 (tar.xz)\",\"sha256\":\"c41f1a03c24119c0dd9b741cdb67880486e64349fc33527767f6dc28d3803abb\",\"date\":\"31 Mar 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_4.php\"},\"source\":[{\"filename\":\"php-7.0.4.tar.bz2\",\"name\":\"PHP 7.0.4 (tar.bz2)\",\"sha256\":\"a246c503709c189ba8e1e22ed2cb22abc27da43a997ff1b3318e181baf529dcc\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-7.0.4.tar.gz\",\"name\":\"PHP 7.0.4 (tar.gz)\",\"sha256\":\"f6cdac2fd37da0ac0bbcee0187d74b3719c2f83973dfe883d5cde81c356fe0a8\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-7.0.4.tar.xz\",\"name\":\"PHP 7.0.4 (tar.xz)\",\"sha256\":\"584e0e374e357a71b6e95175a2947d787453afc7f9ab7c55651c10491c4df532\",\"date\":\"03 Mar 2016\"}],\"date\":\"03 Mar 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_3.php\"},\"source\":[{\"filename\":\"php-7.0.3.tar.bz2\",\"name\":\"PHP 7.0.3 (tar.bz2)\",\"sha256\":\"826823d754f09c779222a99becf9c53a4dc719dba2d777aca7807c6ca68e6fc6\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-7.0.3.tar.gz\",\"name\":\"PHP 7.0.3 (tar.gz)\",\"sha256\":\"5521df8db153aba35c90cf1a1829106b6bbdac32425216d440f9cc29f00a7c08\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-7.0.3.tar.xz\",\"name\":\"PHP 7.0.3 (tar.xz)\",\"sha256\":\"3af2b62617a0e46214500fc3e7f4a421067224913070844d3665d6cc925a1cca\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_2.php\"},\"source\":[{\"filename\":\"php-7.0.2.tar.bz2\",\"name\":\"PHP 7.0.2 (tar.bz2)\",\"sha256\":\"9b1b75fbd9c92c6b0003b234e550965038826d11ea1f430bf279964da9da2236\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-7.0.2.tar.gz\",\"name\":\"PHP 7.0.2 (tar.gz)\",\"sha256\":\"040198aef3dc5f17c253c1282160aabc6a05ca0b18b3d6fc9213970363083412\",\"date\":\"07 Jan 2015\"},{\"filename\":\"php-7.0.2.tar.xz\",\"name\":\"PHP 7.0.2 (tar.xz)\",\"sha256\":\"556121271a34c442b48e3d7fa3d3bbb4413d91897abbb92aaeced4a7df5f2ab2\",\"date\":\"07 Jan 2015\"}],\"date\":\"07 Jan 2015\",\"museum\":false,\"tags\":[\"security\"]},\"7.0.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_1.php\"},\"source\":[{\"filename\":\"php-7.0.1.tar.bz2\",\"name\":\"PHP 7.0.1 (tar.bz2)\",\"sha256\":\"04ce3bd1da001397b342c2219a5093be9ecbbc97f022e1e6a0ec2fedc3d93e42\",\"date\":\"17 Dec 2015\"},{\"filename\":\"php-7.0.1.tar.gz\",\"name\":\"PHP 7.0.1 (tar.gz)\",\"sha256\":\"d12aaba2bead056322aa53bd5fbe762b27a42d37f451cd42ff2e7a549ca21dbf\",\"date\":\"17 Dec 2015\"},{\"filename\":\"php-7.0.1.tar.xz\",\"name\":\"PHP 7.0.1 (tar.xz)\",\"sha256\":\"84fcb8b9c61f70db802d3b6636c6ba602470a375e593375c0c744483aa0c0357\",\"date\":\"17 Dec 2015\"}],\"date\":\"17 Dec 2015\",\"museum\":false},\"7.0.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/7_0_0.php\"},\"source\":[{\"filename\":\"php-7.0.0.tar.bz2\",\"name\":\"PHP 7.0.0 (tar.bz2)\",\"sha256\":\"a92a54306832167a39f7c0ec00524fc6f3f7d985c806caa7632561d0ddedfcea\",\"date\":\"03 Dec 2015\"},{\"filename\":\"php-7.0.0.tar.gz\",\"name\":\"PHP 7.0.0 (tar.gz)\",\"sha256\":\"d6ae7b4a2e5c43a9945a97e83b6b3adfb7d0df0b91ef78b647a6dffefaa9c71b\",\"date\":\"03 Dec 2015\"},{\"filename\":\"php-7.0.0.tar.xz\",\"name\":\"PHP 7.0.0 (tar.xz)\",\"sha256\":\"7dbdda74c502960febe0544b3e3a7c430389a7a4260e94c73fd8ca26c33b8540\",\"date\":\"03 Dec 2015\"}],\"date\":\"03 Dec 2015\",\"museum\":false}}" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/secure.php.net\/releases\/index.php?json&version=5&max=1000", + "headers": { + "Host": "secure.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "myracloud", + "Date": "Sun, 08 Dec 2019 06:53:27 GMT", + "Content-Type": "application\/json", + "Transfer-Encoding": "chunked", + "Connection": "keep-alive", + "Content-language": "en", + "X-Frame-Options": "SAMEORIGIN", + "Set-Cookie": "COUNTRY=NA%2C82.199.157.54; expires=Sun, 15-Dec-2019 06:53:27 GMT; Max-Age=604800; path=\/; domain=.php.net", + "Expires": "Sun, 08 Dec 2019 06:53:27 GMT", + "Cache-Control": "max-age=0", + "ETag": "\"myra-3ff86e55\"" + }, + "body": "{\"5.6.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_40.php\"},\"source\":[{\"filename\":\"php-5.6.40.tar.bz2\",\"name\":\"PHP 5.6.40 (tar.bz2)\",\"sha256\":\"ffd025d34623553ab2f7fd8fb21d0c9e6f9fa30dc565ca03a1d7b763023fba00\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.gz\",\"name\":\"PHP 5.6.40 (tar.gz)\",\"sha256\":\"56fb9878d12fdd921f6a0897e919f4e980d930160e154cbde2cc6d9206a27cac\",\"date\":\"10 Jan 2019\"},{\"filename\":\"php-5.6.40.tar.xz\",\"name\":\"PHP 5.6.40 (tar.xz)\",\"sha256\":\"1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c\",\"date\":\"10 Jan 2019\"}],\"date\":\"10 Jan 2019\",\"museum\":false},\"5.6.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_39.php\"},\"source\":[{\"filename\":\"php-5.6.39.tar.bz2\",\"name\":\"PHP 5.6.39 (tar.bz2)\",\"sha256\":\"b3db2345f50c010b01fe041b4e0f66c5aa28eb325135136f153e18da01583ad5\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.gz\",\"name\":\"PHP 5.6.39 (tar.gz)\",\"sha256\":\"127b122b7d6c7f3c211c0ffa554979370c3131196137404a51a391d8e2e9c7bb\",\"date\":\"06 Dec 2018\"},{\"filename\":\"php-5.6.39.tar.xz\",\"name\":\"PHP 5.6.39 (tar.xz)\",\"sha256\":\"8147576001a832ff3d03cb2980caa2d6b584a10624f87ac459fcd3948c6e4a10\",\"date\":\"06 Dec 2018\"}],\"date\":\"06 Dec 2018\",\"museum\":false},\"5.6.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_38.php\"},\"source\":[{\"filename\":\"php-5.6.38.tar.bz2\",\"name\":\"PHP 5.6.38 (tar.bz2)\",\"sha256\":\"d65b231bbdd63be4439ef5ced965cfd63e62983429dbd4dfcfb49981593ebc03\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.gz\",\"name\":\"PHP 5.6.38 (tar.gz)\",\"sha256\":\"3b74d46cd79a45cce90c8059e09d8bd0beeb5de562cbb0cb42f96ff8fa665fd4\",\"date\":\"13 Sep 2018\"},{\"filename\":\"php-5.6.38.tar.xz\",\"name\":\"PHP 5.6.38 (tar.xz)\",\"sha256\":\"c2fac47dc6316bd230f0ea91d8a5498af122fb6a3eb43f796c9ea5f59b04aa1e\",\"date\":\"13 Sep 2018\"}],\"date\":\"13 Sep 2018\",\"museum\":false},\"5.6.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_37.php\"},\"source\":[{\"filename\":\"php-5.6.37.tar.bz2\",\"name\":\"PHP 5.6.37 (tar.bz2)\",\"sha256\":\"886ad63d05d94ea3e54322691aadea0cf1d4bcdb4450b02fe300e5b570788b23\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.gz\",\"name\":\"PHP 5.6.37 (tar.gz)\",\"sha256\":\"b7ec077f35ef3a8cdd33c29124140b1761111a1429878b4c463bb20d2a31b184\",\"date\":\"19 Jul 2018\"},{\"filename\":\"php-5.6.37.tar.xz\",\"name\":\"PHP 5.6.37 (tar.xz)\",\"sha256\":\"5000d82610f9134aaedef28854ec3591f68dedf26a17b8935727dac2843bd256\",\"date\":\"19 Jul 2018\"}],\"date\":\"19 Jul 2018\",\"museum\":false},\"5.6.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_36.php\"},\"source\":[{\"filename\":\"php-5.6.36.tar.bz2\",\"name\":\"PHP 5.6.36 (tar.bz2)\",\"sha256\":\"626a0e3f5d8a0e686a2b930f0dd3a0601fe3dcb5e43dd0e8c3fab631e64e172a\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.gz\",\"name\":\"PHP 5.6.36 (tar.gz)\",\"sha256\":\"06086a8b6a9964ef8009c4d9176b4eeb0c564ea39c1213f015e24f3466d2d69f\",\"date\":\"26 Apr 2018\"},{\"filename\":\"php-5.6.36.tar.xz\",\"name\":\"PHP 5.6.36 (tar.xz)\",\"sha256\":\"18f536bf548e909b4e980379d0c4e56d024b2b1eb1c9768fd169360491f1d6dd\",\"date\":\"26 Apr 2018\"}],\"date\":\"26 Apr 2018\",\"museum\":false},\"5.6.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_35.php\"},\"source\":[{\"filename\":\"php-5.6.35.tar.bz2\",\"name\":\"PHP 5.6.35 (tar.bz2)\",\"sha256\":\"ee78a7e9ca21d8ea394d037c55effff477a49dbae31c7753c547036f5bd73b92\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.gz\",\"name\":\"PHP 5.6.35 (tar.gz)\",\"sha256\":\"dd0242304f510d48a5216dd2f5796bcf59e8e18366658259aaf205e1d63abf71\",\"date\":\"29 Mar 2018\"},{\"filename\":\"php-5.6.35.tar.xz\",\"name\":\"PHP 5.6.35 (tar.xz)\",\"sha256\":\"9985cb64cb8224c289effff5b34f670d14f838175f76daea0507d643eec650d2\",\"date\":\"29 Mar 2018\"}],\"date\":\"29 Mar 2018\",\"museum\":false},\"5.6.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_34.php\"},\"source\":[{\"filename\":\"php-5.6.34.tar.bz2\",\"name\":\"PHP 5.6.34 (tar.bz2)\",\"sha256\":\"e19f499d8cee4b0b0780361ecb6a00c41654772a754803ab9ea866b8d47cf2cd\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.gz\",\"name\":\"PHP 5.6.34 (tar.gz)\",\"sha256\":\"de28251ef6d7eb945eb7b770ff668b9f978d9adad52a8c763f6ee409a96732ea\",\"date\":\"01 Mar 2018\"},{\"filename\":\"php-5.6.34.tar.xz\",\"name\":\"PHP 5.6.34 (tar.xz)\",\"sha256\":\"21453be3a045204cd2717543ef42771324f411f40962ecda4fe841930a933128\",\"date\":\"01 Mar 2018\"}],\"date\":\"01 Mar 2018\",\"museum\":false},\"5.6.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_33.php\"},\"source\":[{\"filename\":\"php-5.6.33.tar.bz2\",\"name\":\"PHP 5.6.33 (tar.bz2)\",\"sha256\":\"07f696a9761dcd839e2045c95c3a4d2ffb52c54417477cca9d30a14975b831cc\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.gz\",\"name\":\"PHP 5.6.33 (tar.gz)\",\"sha256\":\"bedfac81cfaa25961812a1aec458c4109411a14991b43a416343ffb830b8da6a\",\"date\":\"04 Jan 2018\"},{\"filename\":\"php-5.6.33.tar.xz\",\"name\":\"PHP 5.6.33 (tar.xz)\",\"sha256\":\"9004995fdf55f111cd9020e8b8aff975df3d8d4191776c601a46988c375f3553\",\"date\":\"04 Jan 2018\"}],\"date\":\"04 Jan 2018\",\"museum\":false},\"5.6.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_32.php\"},\"source\":[{\"filename\":\"php-5.6.32.tar.bz2\",\"name\":\"PHP 5.6.32 (tar.bz2)\",\"sha256\":\"3ee44e7a5fa42b563652b3ea0d3487bc236fcc9e5ea74b583775cab867abcb51\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.gz\",\"name\":\"PHP 5.6.32 (tar.gz)\",\"sha256\":\"7bef1ae8cd633df5b9c5964262d276d2dc21acbfcd94022d1e2084d199315df4\",\"date\":\"26 Oct 2017\"},{\"filename\":\"php-5.6.32.tar.xz\",\"name\":\"PHP 5.6.32 (tar.xz)\",\"sha256\":\"8c2b4f721c7475fb9eabda2495209e91ea933082e6f34299d11cba88cd76e64b\",\"date\":\"26 Oct 2017\"}],\"date\":\"26 Oct 2017\",\"museum\":false},\"5.6.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_31.php\"},\"source\":[{\"filename\":\"php-5.6.31.tar.bz2\",\"name\":\"PHP 5.6.31 (tar.bz2)\",\"sha256\":\"8f397169cb65f0539f3bcb04060f97770d73e19074a37bd2c58b98ebf6ecb10f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.gz\",\"name\":\"PHP 5.6.31 (tar.gz)\",\"sha256\":\"6687ed2f09150b2ad6b3780ff89715891f83a9c331e69c90241ef699dec4c43f\",\"date\":\"06 Jul 2017\"},{\"filename\":\"php-5.6.31.tar.xz\",\"name\":\"PHP 5.6.31 (tar.xz)\",\"sha256\":\"c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4\",\"date\":\"06 Jul 2017\"}],\"date\":\"06 Jul 2017\",\"museum\":false},\"5.6.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_30.php\"},\"source\":[{\"filename\":\"php-5.6.30.tar.bz2\",\"name\":\"PHP 5.6.30 (tar.bz2)\",\"sha256\":\"a105c293fa1dbff118b5b0ca74029e6c461f8c78f49b337a2a98be9e32c27906\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.gz\",\"name\":\"PHP 5.6.30 (tar.gz)\",\"sha256\":\"8bc7d93e4c840df11e3d9855dcad15c1b7134e8acf0cf3b90b932baea2d0bde2\",\"date\":\"19 Jan 2017\"},{\"filename\":\"php-5.6.30.tar.xz\",\"name\":\"PHP 5.6.30 (tar.xz)\",\"sha256\":\"a363185c786432f75e3c7ff956b49c3369c3f6906a6b10459f8d1ddc22f70805\",\"date\":\"19 Jan 2017\"}],\"date\":\"19 Jan 2017\",\"museum\":false},\"5.6.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_29.php\"},\"source\":[{\"filename\":\"php-5.6.29.tar.bz2\",\"name\":\"PHP 5.6.29 (tar.bz2)\",\"sha256\":\"499b844c8aa7be064c111692e51a093ba94e54d2d9abb01e70ea76183a1825bb\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.gz\",\"name\":\"PHP 5.6.29 (tar.gz)\",\"sha256\":\"0b1b939129a7286c5a474ac2cf845b979477f26dff36639e04022def9e252574\",\"date\":\"08 Dec 2016\"},{\"filename\":\"php-5.6.29.tar.xz\",\"name\":\"PHP 5.6.29 (tar.xz)\",\"sha256\":\"0ff352a433f73e2c82b0d5b283b600402518569bf72a74e247f356dacbf322a7\",\"date\":\"08 Dec 2016\"}],\"date\":\"08 Dec 2016\",\"museum\":false},\"5.6.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_28.php\"},\"source\":[{\"filename\":\"php-5.6.28.tar.bz2\",\"name\":\"PHP 5.6.28 (tar.bz2)\",\"sha256\":\"c55ea3f4aad5a0b65631d01c4468930fd981ad208ffcd242acdf731bcb47548f\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.gz\",\"name\":\"PHP 5.6.28 (tar.gz)\",\"sha256\":\"27a47ac15e0868d51181d3909cfe3c63ae9b643a3ab40dc30a75b5b500bce500\",\"date\":\"10 Nov 2016\"},{\"filename\":\"php-5.6.28.tar.xz\",\"name\":\"PHP 5.6.28 (tar.xz)\",\"sha256\":\"07187ba2870f89cef334cd2ad6cb801aeec5eaf283da0293a9a6be75d6786d11\",\"date\":\"10 Nov 2016\"}],\"date\":\"10 Nov 2016\",\"museum\":false},\"5.6.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_27.php\"},\"source\":[{\"filename\":\"php-5.6.27.tar.bz2\",\"name\":\"PHP 5.6.27 (tar.bz2)\",\"sha256\":\"3b77d3a067b6e9cc7bb282d4d5b0e6eeb0623a828bb0479241e3b030446f2a3c\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.gz\",\"name\":\"PHP 5.6.27 (tar.gz)\",\"sha256\":\"3e6cecec615907587a2b35fa8e7f915f038034dc57530734c2b94d381e664a1a\",\"date\":\"13 Oct 2016\"},{\"filename\":\"php-5.6.27.tar.xz\",\"name\":\"PHP 5.6.27 (tar.xz)\",\"sha256\":\"16eb544498339d1d855292826e2e547ab01a31600141094959073e5e10e93ab5\",\"date\":\"13 Oct 2016\"}],\"date\":\"13 Oct 2016\",\"museum\":false},\"5.6.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_26.php\"},\"source\":[{\"filename\":\"php-5.6.26.tar.bz2\",\"name\":\"PHP 5.6.26 (tar.bz2)\",\"sha256\":\"d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.gz\",\"name\":\"PHP 5.6.26 (tar.gz)\",\"sha256\":\"f76b6cc23739d9dabf875aee57d91ae73f15e88ddf78803369b8b4728b19b924\",\"date\":\"15 Sep 2016\"},{\"filename\":\"php-5.6.26.tar.xz\",\"name\":\"PHP 5.6.26 (tar.xz)\",\"sha256\":\"203a854f0f243cb2810d1c832bc871ff133eccdf1ff69d32846f93bc1bef58a8\",\"date\":\"15 Sep 2016\"}],\"date\":\"15 Sep 2016\",\"museum\":false},\"5.6.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_25.php\"},\"source\":[{\"filename\":\"php-5.6.25.tar.bz2\",\"name\":\"PHP 5.6.25 (tar.bz2)\",\"sha256\":\"58ce6032aced7f3e42ced492bd9820e5b3f2a3cd3ef71429aa92fd7b3eb18dde\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.gz\",\"name\":\"PHP 5.6.25 (tar.gz)\",\"sha256\":\"733f1c811d51c2d4031a0c058dc94d09d03858d781ca2eb2cce78853bc76db58\",\"date\":\"18 Aug 2016\"},{\"filename\":\"php-5.6.25.tar.xz\",\"name\":\"PHP 5.6.25 (tar.xz)\",\"sha256\":\"7535cd6e20040ccec4594cc386c6f15c3f2c88f24163294a31068cf7dfe7f644\",\"date\":\"18 Aug 2016\"}],\"date\":\"18 Aug 2016\",\"museum\":false},\"5.6.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_24.php\"},\"source\":[{\"filename\":\"php-5.6.24.tar.bz2\",\"name\":\"PHP 5.6.24 (tar.bz2)\",\"sha256\":\"bf23617ec3ed0a125ec8bde2b7bca9d3804b2ff4df8de192890c84dc9fac38c6\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.gz\",\"name\":\"PHP 5.6.24 (tar.gz)\",\"sha256\":\"5f8b2e4e00360fee6eb1b89447266ae45993265955bd1ea9866270d75cdb6ec1\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.6.24.tar.xz\",\"name\":\"PHP 5.6.24 (tar.xz)\",\"sha256\":\"ed7c38c6dac539ade62e08118258f4dac0c49beca04d8603bee4e0ea6ca8250b\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.5.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_38.php\"},\"source\":[{\"filename\":\"php-5.5.38.tar.bz2\",\"name\":\"PHP 5.5.38 (tar.bz2)\",\"sha256\":\"473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.gz\",\"name\":\"PHP 5.5.38 (tar.gz)\",\"sha256\":\"4f458c9b504269615715a62f182b7c2f89bb8284f484befc221b56a1571b506e\",\"date\":\"21 Jul 2016\"},{\"filename\":\"php-5.5.38.tar.xz\",\"name\":\"PHP 5.5.38 (tar.xz)\",\"sha256\":\"cb527c44b48343c8557fe2446464ff1d4695155a95601083e5d1f175df95580f\",\"date\":\"21 Jul 2016\"}],\"date\":\"21 Jul 2016\",\"museum\":false},\"5.6.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_23.php\"},\"source\":[{\"filename\":\"php-5.6.23.tar.bz2\",\"name\":\"PHP 5.6.23 (tar.bz2)\",\"sha256\":\"facd280896d277e6f7084b60839e693d4db68318bfc92085d3dc0251fd3558c7\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.gz\",\"name\":\"PHP 5.6.23 (tar.gz)\",\"sha256\":\"5f2274a13970887e8c81500c2afe292d51c3524d1a06554b0a87c74ce0a24ffe\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.6.23.tar.xz\",\"name\":\"PHP 5.6.23 (tar.xz)\",\"sha256\":\"39141e9a617af172aedbbacee7a63eb15502850f7cea20d759a9cffa7cfb0a1a\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_37.php\"},\"source\":[{\"filename\":\"php-5.5.37.tar.bz2\",\"name\":\"PHP 5.5.37 (tar.bz2)\",\"sha256\":\"d2380ebe46caf17f2c4cd055867d00a82e6702dc5f62dc29ce864a5742905d88\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.gz\",\"name\":\"PHP 5.5.37 (tar.gz)\",\"sha256\":\"7cef04b549fdbe00c26dc785b6ba10439672a1596db518fc46632ecba45f44b9\",\"date\":\"23 Jun 2016\"},{\"filename\":\"php-5.5.37.tar.xz\",\"name\":\"PHP 5.5.37 (tar.xz)\",\"sha256\":\"c322444fdf6d3ba26aa67d67ee32d1e815a877f35831351c83763431a80e3612\",\"date\":\"23 Jun 2016\"}],\"date\":\"23 Jun 2016\",\"museum\":false},\"5.5.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_36.php\"},\"source\":[{\"filename\":\"php-5.5.36.tar.bz2\",\"name\":\"PHP 5.5.36 (tar.bz2)\",\"sha256\":\"2484edfaa3de606d74f927b55c5206f51b1ae24ea8e428aa9fc15474c7bb71bb\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.gz\",\"name\":\"PHP 5.5.36 (tar.gz)\",\"sha256\":\"ef829f9a9600a858e2363533b80c4e4773505bdc8ea3692d703fc893f267728a\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.5.36.tar.xz\",\"name\":\"PHP 5.5.36 (tar.xz)\",\"sha256\":\"e1bbe33d6b4da66b15c483131520a9fc505eeb6629fa70c5cfba79590a1d0801\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_22.php\"},\"source\":[{\"filename\":\"php-5.6.22.tar.bz2\",\"name\":\"PHP 5.6.22 (tar.bz2)\",\"sha256\":\"90da8a80cc52fa699cf2bfa4c6fa737c772df7c92b81ef483460aa3b1e9f88c6\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.gz\",\"name\":\"PHP 5.6.22 (tar.gz)\",\"sha256\":\"4ce0f58c3842332c4e3bb2ec1c936c6817294273abaa37ea0ef7ca2a68cf9b21\",\"date\":\"26 May 2016\"},{\"filename\":\"php-5.6.22.tar.xz\",\"name\":\"PHP 5.6.22 (tar.xz)\",\"sha256\":\"c96980d7de1d66c821a4ee5809df0076f925b2fe0b8c362d234d92f2f0a178e2\",\"date\":\"26 May 2016\"}],\"date\":\"26 May 2016\",\"museum\":false},\"5.6.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_21.php\"},\"source\":[{\"filename\":\"php-5.6.21.tar.bz2\",\"name\":\"PHP 5.6.21 (tar.bz2)\",\"sha256\":\"b4ed7ab574b689fd6d6494fde954826c06efc85c505e017b8d776c7c7f479590\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.gz\",\"name\":\"PHP 5.6.21 (tar.gz)\",\"sha256\":\"5997668c1f6f2d86a59cf75cc86b4a94687884614dec481fad7e13a76b70fcd5\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.6.21.tar.xz\",\"name\":\"PHP 5.6.21 (tar.xz)\",\"sha256\":\"566ff1a486cb0485ed477a91ea292423f77a58671270ff73b74e67e3ce7084f9\",\"date\":\"28 Apr 2016\"}],\"date\":\"28 Apr 2016\",\"museum\":false},\"5.5.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_35.php\"},\"source\":[{\"filename\":\"php-5.5.35.tar.bz2\",\"name\":\"PHP 5.5.35 (tar.bz2)\",\"sha256\":\"2d648dd648e820fd64693ce72f9bf07064d147220e594e39fb9f6310238258d7\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.gz\",\"name\":\"PHP 5.5.35 (tar.gz)\",\"sha256\":\"21e10a49c62ab34a7edc976af686a952e70142f19135ca8da67758e1c8c3df30\",\"date\":\"28 Apr 2016\"},{\"filename\":\"php-5.5.35.tar.xz\",\"name\":\"PHP 5.5.35 (tar.xz)\",\"sha256\":\"9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873\",\"date\":\"28 Apr 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_20.php\"},\"source\":[{\"filename\":\"php-5.6.20.tar.bz2\",\"name\":\"PHP 5.6.20 (tar.bz2)\",\"sha256\":\"5ac7bf7caec7a79b18cf458e786fd1609ad2da771224b80bc15cc6f01b22bf1f\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.gz\",\"name\":\"PHP 5.6.20 (tar.gz)\",\"sha256\":\"9a7ec6e1080ee93dcbe7df3e49ea1c3c3da5fc2258aff763f39ab3786baf8d56\",\"date\":\"31 Marc 2016\"},{\"filename\":\"php-5.6.20.tar.xz\",\"name\":\"PHP 5.6.20 (tar.xz)\",\"sha256\":\"2b87d40213361112af49157a435e0d4cdfd334c9b7c731c8b844932b1f444e7a\",\"date\":\"31 Marc 2016\"}],\"date\":\"31 Marc 2016\",\"museum\":false},\"5.5.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_34.php\"},\"source\":[{\"filename\":\"php-5.5.34.tar.bz2\",\"name\":\"PHP 5.5.34 (tar.bz2)\",\"sha256\":\"af88884416a92619de842ad0fd23f7f7e8140efb0b9194f98a38a78781e5851c\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.gz\",\"name\":\"PHP 5.5.34 (tar.gz)\",\"sha256\":\"0e573b406441294b233e35e1f2e12d7896d68457e3e10bf6e1f4825e75271cca\",\"date\":\"31 Mar 2016\"},{\"filename\":\"php-5.5.34.tar.xz\",\"name\":\"PHP 5.5.34 (tar.xz)\",\"sha256\":\"6989a4f9900e6ddec7248790449bbb4aa55728730bff4973acb49d236c9e9e2a\",\"date\":\"31 Mar 2016\"}],\"date\":\"31 Mar 2016\",\"museum\":false},\"5.6.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_19.php\"},\"source\":[{\"filename\":\"php-5.6.19.tar.bz2\",\"name\":\"PHP 5.6.19 (tar.bz2)\",\"sha256\":\"2a24a3f84971680ac0a4c71050067de4f76ee235aa4a041fae21bfa69975c168\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.gz\",\"name\":\"PHP 5.6.19 (tar.gz)\",\"sha256\":\"fce49cddac9337f0c83afbafac5acfb82ba9f876a5a880c88240feac8c9b7a22\",\"date\":\"03 Marc 2016\"},{\"filename\":\"php-5.6.19.tar.xz\",\"name\":\"PHP 5.6.19 (tar.xz)\",\"sha256\":\"bb32337f93a00b71789f116bddafa8848139120e7fb6f4f98a84f52dbcb8329f\",\"date\":\"03 Marc 2016\"}],\"date\":\"03 Marc 2016\",\"museum\":false},\"5.5.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_33.php\"},\"source\":[{\"filename\":\"php-5.5.33.tar.bz2\",\"name\":\"PHP 5.5.33 (tar.bz2)\",\"sha256\":\"c490b1ed4df596b48eb68f630d89ca512945e2650840e7dace1119cc7e600aa9\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.gz\",\"name\":\"PHP 5.5.33 (tar.gz)\",\"sha256\":\"d2747bcf2cc94f652ac216f522904863a22042c66fabcf82ad7449d261d7a45b\",\"date\":\"03 Mar 2016\"},{\"filename\":\"php-5.5.33.tar.xz\",\"name\":\"PHP 5.5.33 (tar.xz)\",\"sha256\":\"b91dbd3c53f9895e8f7b29e5fed25a64dd3a76b454f6ef7265e73c96b4303f30\",\"date\":\"03 Mar 2016\"}],\"date\":\"03 Mar 2016\",\"museum\":false},\"5.6.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_18.php\"},\"source\":[{\"filename\":\"php-5.6.18.tar.bz2\",\"name\":\"PHP 5.6.18 (tar.bz2)\",\"sha256\":\"c3cd4a29a9562309d36e2b128407d6eaa5c7dde590d2b1a464457383e517f4ed\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.gz\",\"name\":\"PHP 5.6.18 (tar.gz)\",\"sha256\":\"76da4150dc2da86b7b63b1aad3c20d1d11964796251ac0dd4d26d0a3f5045015\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.6.18.tar.xz\",\"name\":\"PHP 5.6.18 (tar.xz)\",\"sha256\":\"54dd9106c3469bc7028644d72ac140af00655420bbaaf4a742a64e9ed02ec1b0\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.5.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_32.php\"},\"source\":[{\"filename\":\"php-5.5.32.tar.bz2\",\"name\":\"PHP 5.5.32 (tar.bz2)\",\"sha256\":\"b0f2c108db8e05db9f6366aaba9a754fd0ee31f3f86ee889561b608dfd6e92ee\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.gz\",\"name\":\"PHP 5.5.32 (tar.gz)\",\"sha256\":\"419aa62a68a640192799928a29e5cd4cd5b965458223bea2b3209a68c3e95989\",\"date\":\"04 Feb 2016\"},{\"filename\":\"php-5.5.32.tar.xz\",\"name\":\"PHP 5.5.32 (tar.xz)\",\"sha256\":\"02f569dcf5bd57dd5e390ddcab8609e3957a698e2db0b793cf2c11a7e33743c9\",\"date\":\"04 Feb 2016\"}],\"date\":\"04 Feb 2016\",\"museum\":false},\"5.6.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_17.php\"},\"source\":[{\"filename\":\"php-5.6.17.tar.bz2\",\"name\":\"PHP 5.6.17 (tar.bz2)\",\"sha256\":\"77b45f56a1e63e75bb22b42cfb8b438ec4083c59ce774b4d7c1685544b7add3b\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.gz\",\"name\":\"PHP 5.6.17 (tar.gz)\",\"sha256\":\"f5036535651e919415f4b6589391c95e4ff48f2d391818251c45da216791aac8\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.6.17.tar.xz\",\"name\":\"PHP 5.6.17 (tar.xz)\",\"sha256\":\"ea9d5749380c7c7171e131616466deacd7cb124b5010eafc34e551b0a7b0fb2c\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.5.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_31.php\"},\"source\":[{\"filename\":\"php-5.5.31.tar.bz2\",\"name\":\"PHP 5.5.31 (tar.bz2)\",\"sha256\":\"fb4a382b9a9dceb749b7ef047d8251320bc8d371c843714e5b4f4b70d61ba277\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.gz\",\"name\":\"PHP 5.5.31 (tar.gz)\",\"sha256\":\"59a4417029ba5497d17ee02b65f419129ecf9ca8a1d864e0bccd5a3d4407a597\",\"date\":\"07 Jan 2016\"},{\"filename\":\"php-5.5.31.tar.xz\",\"name\":\"PHP 5.5.31 (tar.xz)\",\"sha256\":\"a9ac5b94fcc3811b661a090dddd716f81e43947240b35e6a0123e609a135ac54\",\"date\":\"07 Jan 2016\"}],\"date\":\"07 Jan 2016\",\"museum\":false},\"5.6.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_16.php\"},\"source\":[{\"filename\":\"php-5.6.16.tar.bz2\",\"name\":\"PHP 5.6.16 (tar.bz2)\",\"sha256\":\"4fe6f40964c1bfaba05fc144ba20a2cdad33e11685f4f101ea5a48b98bbcd2ae\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.gz\",\"name\":\"PHP 5.6.16 (tar.gz)\",\"sha256\":\"b6618df6b11a275fa28596f1775727679f8492e100f3bd488d8a8bfbfc19349f\",\"date\":\"26 Nov 2015\"},{\"filename\":\"php-5.6.16.tar.xz\",\"name\":\"PHP 5.6.16 (tar.xz)\",\"sha256\":\"8ef43271d9bd8cc8f8d407d3ba569de9fa14a28985ae97c76085bb50d597de98\",\"date\":\"26 Nov 2015\"}],\"date\":\"26 Nov 2015\",\"museum\":false},\"5.5.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_30.php\"},\"source\":[{\"filename\":\"php-5.5.30.tar.bz2\",\"name\":\"PHP 5.5.30 (tar.bz2)\",\"sha256\":\"e7332a713cecdd1cb44a1b1336739885c9789f633f0f51236b25e48ab03c3b29\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.gz\",\"name\":\"PHP 5.5.30 (tar.gz)\",\"sha256\":\"8ad57f4317391354e66c83d26752f67515b2e923277eb97b2b420dfeff3c1007\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.5.30.tar.xz\",\"name\":\"PHP 5.5.30 (tar.xz)\",\"sha256\":\"d00dc06fa5e0f3de048fb0cf940b3cc59b43b3f8cad825d4fffb35503cf2e8f2\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_15.php\"},\"source\":[{\"filename\":\"php-5.6.15.tar.bz2\",\"name\":\"PHP 5.6.15 (tar.bz2)\",\"sha256\":\"11a0645c4d4b749e256da1e0d6df89dd886b5b06b83c914d942653661dbd1c38\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.gz\",\"name\":\"PHP 5.6.15 (tar.gz)\",\"sha256\":\"bb2d4c226a4897b7c3659c2538a87aef7ec104f58f5ae930a263dd77fb8ebc40\",\"date\":\"29 Oct 2015\"},{\"filename\":\"php-5.6.15.tar.xz\",\"name\":\"PHP 5.6.15 (tar.xz)\",\"sha256\":\"cf52e2e621e60997269663fa4bc06253191fa2a41dc9b08c8c911435b3ebcca9\",\"date\":\"29 Oct 2015\"}],\"date\":\"29 Oct 2015\",\"museum\":false},\"5.6.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_14.php\"},\"source\":[{\"filename\":\"php-5.6.14.tar.bz2\",\"name\":\"PHP 5.6.14 (tar.bz2)\",\"sha256\":\"36f295f11641c1839a5df00e693f685fd134c65e8a1d46e8ee0abae8662b2eb0\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.gz\",\"name\":\"PHP 5.6.14 (tar.gz)\",\"sha256\":\"29baf7ffca644f7f8e86028c40275b9e460342bdf9562d45f8f0498899cb738d\",\"date\":\"01 Oct 2015\"},{\"filename\":\"php-5.6.14.tar.xz\",\"name\":\"PHP 5.6.14 (tar.xz)\",\"sha256\":\"c8edf6b05fd8a69ebd88d90c5c0975ee168502204622ad5cfcd550bc222632d9\",\"date\":\"01 Oct 2015\"}],\"date\":\"01 Oct 2015\",\"museum\":false},\"5.6.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_13.php\"},\"source\":[{\"filename\":\"php-5.6.13.tar.bz2\",\"name\":\"PHP 5.6.13 (tar.bz2)\",\"sha256\":\"6358837c9cbab41b91ede59dbf0670ae0fb925a1369ecbc1a44a27212420f893\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.gz\",\"name\":\"PHP 5.6.13 (tar.gz)\",\"sha256\":\"92acc6c067f5e015a6881b4119eafec10eca11722e810f2c2083f72e17119bcf\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.6.13.tar.xz\",\"name\":\"PHP 5.6.13 (tar.xz)\",\"sha256\":\"c1f0837df20cd3bed149033924770deca3e7e2d18e2e7e81395096576f153fdc\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_29.php\"},\"source\":[{\"filename\":\"php-5.5.29.tar.bz2\",\"name\":\"PHP 5.5.29 (tar.bz2)\",\"sha256\":\"fbcee579ecc77cad6960a541116aee669cf145c2cd9a54bf60503a870843b946\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.gz\",\"name\":\"PHP 5.5.29 (tar.gz)\",\"sha256\":\"c25a4c4eae558cc9899d2994813dd272eafff9466926f30821a83edaafe620a9\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.5.29.tar.xz\",\"name\":\"PHP 5.5.29 (tar.xz)\",\"sha256\":\"22c72d1b88c8d9a8ab9ca565e9ca5844287c006134098805d9a373a862bbbcad\",\"date\":\"03 Sep 2015\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.5.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_28.php\"},\"source\":[{\"filename\":\"php-5.5.28.tar.bz2\",\"name\":\"PHP 5.5.28 (tar.bz2)\",\"sha256\":\"197d2c572e030c177e53d3763d59ac6d363d7c78dc22e6cc1e2ac65573d9c2f3\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.gz\",\"name\":\"PHP 5.5.28 (tar.gz)\",\"sha256\":\"6084f25a39ab2f79ade46bf0258a1cd6c9bbb09a106b40dd996dbdf8cd3b08f2\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.5.28.tar.xz\",\"name\":\"PHP 5.5.28 (tar.xz)\",\"sha256\":\"d060455c804c622cda9f3f5f084b10c6ceba73ee76c1720897e17137a0f75ecd\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_12.php\"},\"source\":[{\"filename\":\"php-5.6.12.tar.bz2\",\"name\":\"PHP 5.6.12 (tar.bz2)\",\"sha256\":\"6f27104272af7b2a996f85e4100fac627630fbdaf39d7bd263f16cf529c8853a\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.gz\",\"name\":\"PHP 5.6.12 (tar.gz)\",\"sha256\":\"7799b42606c1770d1ad90bfc7521d2b6c294c4c27dcf1a206dee562533b4f984\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.6.12.tar.xz\",\"name\":\"PHP 5.6.12 (tar.xz)\",\"sha256\":\"f8a8446866c0dc3f33319aa196ce87b64d71cab3dd96e39c8816adccc7e8ef33\",\"date\":\"06 Aug 2015\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.6.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_11.php\"},\"source\":[{\"filename\":\"php-5.6.11.tar.bz2\",\"name\":\"PHP 5.6.11 (tar.bz2)\",\"sha256\":\"bd6b260816764c267244749ead07482120dbf8d1920ebbbb0dcb2aa411033866\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.gz\",\"name\":\"PHP 5.6.11 (tar.gz)\",\"sha256\":\"85916b46c0d1f2a5315c84fb2773293f4084c3676ba4ed420d0432cbb60ff9d8\",\"date\":\"10 Jul 2015\"},{\"filename\":\"php-5.6.11.tar.xz\",\"name\":\"PHP 5.6.11 (tar.xz)\",\"sha256\":\"3f97dbb1c646b90e1ef638defabe429ef036f903b5baa1c34769d3de4fe62bd4\",\"date\":\"10 Jul 2015\"}],\"date\":\"10 Jul 2015\",\"museum\":false},\"5.5.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_27.php\"},\"source\":[{\"filename\":\"php-5.5.27.tar.bz2\",\"name\":\"PHP 5.5.27 (tar.bz2)\",\"sha256\":\"c4b4c6a534c0ca67a9ae39bec4f51e52d13e820135dd016eae230e15337e1f70\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.gz\",\"name\":\"PHP 5.5.27 (tar.gz)\",\"sha256\":\"57cc716ebb37a62654c154582e48a282055b08ce91995c79b0be41b9940237f0\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.5.27.tar.xz\",\"name\":\"PHP 5.5.27 (tar.xz)\",\"sha256\":\"7ee398058067a7d8184e402fcdccb25003852cb8dc94eefa3cda051a3e47fdd8\",\"date\":\"09 Jul 2015\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.6.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_10.php\"},\"source\":[{\"filename\":\"php-5.6.10.tar.bz2\",\"name\":\"PHP 5.6.10 (tar.bz2)\",\"sha256\":\"0a579c81c724ea41815eee0caa8ea7d8eeb302458519d8cc4fc5b055577c8c45\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.gz\",\"name\":\"PHP 5.6.10 (tar.gz)\",\"sha256\":\"7759d6e178be524085e1482921748c14d11cbd0a133ba8aabb96c391ce7ed3fc\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.6.10.tar.xz\",\"name\":\"PHP 5.6.10 (tar.xz)\",\"sha256\":\"1af720c955b0a57aa47606e928616e84c78868aff2a5f269c70601a77d6da8c1\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.5.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_26.php\"},\"source\":[{\"filename\":\"php-5.5.26.tar.bz2\",\"name\":\"PHP 5.5.26 (tar.bz2)\",\"sha256\":\"816afffdb03ff4c542bc172a2f77f9c69b817df82d60cce05c1b4f578c2c926e\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.gz\",\"name\":\"PHP 5.5.26 (tar.gz)\",\"sha256\":\"bee980d433bab99d07ee2bf6f2dcb87d746e49d57adec7d0ce7edb39306695ec\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.5.26.tar.xz\",\"name\":\"PHP 5.5.26 (tar.xz)\",\"sha256\":\"97672c41cf2f95628dbffb63648147b43b23ea41b99ad22ccf5f4fe9b6e91b51\",\"date\":\"11 Jun 2015\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.6.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_9.php\"},\"source\":[{\"filename\":\"php-5.6.9.tar.bz2\",\"name\":\"PHP 5.6.9 (tar.bz2)\",\"sha256\":\"19d3b87b7b8bba3be24cf6d757d16b723a98881c3af8d15469fd25501e9abcb9\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.gz\",\"name\":\"PHP 5.6.9 (tar.gz)\",\"sha256\":\"49527ba66357fe65bcd463dfb8dcff1b8879419f88b3c334f50696a2aceacb87\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.6.9.tar.xz\",\"name\":\"PHP 5.6.9 (tar.xz)\",\"sha256\":\"1fac497b596f5e4e87d87a7ca90f8725e39a8ca3f9d7adb500fa83c4bb70a73f\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.5.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_25.php\"},\"source\":[{\"filename\":\"php-5.5.25.tar.bz2\",\"name\":\"PHP 5.5.25 (tar.bz2)\",\"sha256\":\"68df37e725ddd05675c0df906041038127938ecc52113a54d10e1e4029262c63\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.gz\",\"name\":\"PHP 5.5.25 (tar.gz)\",\"sha256\":\"c9397f60bff139e0df441c5e2766108c5bc7ad690de136eb9f5b2f9bbf771240\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.5.25.tar.xz\",\"name\":\"PHP 5.5.25 (tar.xz)\",\"sha256\":\"ac10015dddfc103b58ccc949504bd50f0d79d0abe74a0cc7842251af06ce8b07\",\"date\":\"14 May 2015\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.6.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_8.php\"},\"source\":[{\"filename\":\"php-5.6.8.tar.bz2\",\"name\":\"PHP 5.6.8 (tar.bz2)\",\"sha256\":\"0af0045745d61eeb74a3ea744529a2481b27cb689da720e6c0250675043724e4\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.gz\",\"name\":\"PHP 5.6.8 (tar.gz)\",\"sha256\":\"c5b1c75c5671c239473eb611129f33ac432a55a1c341990b70009a2aa3b8dbc3\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.6.8.tar.xz\",\"name\":\"PHP 5.6.8 (tar.xz)\",\"sha256\":\"4c417387b88e100ca306adeda8051eb9fad93dae8da983f962dabf91a14b2b7b\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.5.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_24.php\"},\"source\":[{\"filename\":\"php-5.5.24.tar.bz2\",\"name\":\"PHP 5.5.24 (tar.bz2)\",\"sha256\":\"801b5cf2e0c01b07314d4ac3c8a7c28d524bdd8263ebdd0e33a99008251316a2\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.gz\",\"name\":\"PHP 5.5.24 (tar.gz)\",\"sha256\":\"43e6b83fe8151f8d2062ca4da915312fc92e47789801049231c705a8b29b05bc\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.5.24.tar.xz\",\"name\":\"PHP 5.5.24 (tar.xz)\",\"sha256\":\"ffb6235a25043cab71e6445cfc9e8bf16ae80a2835f0373cdd948fcc31eafe57\",\"date\":\"16 Apr 2015\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.6.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_7.php\"},\"source\":[{\"filename\":\"php-5.6.7.tar.bz2\",\"name\":\"PHP 5.6.7 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"02954fb74c61a7879d48ebdcd4ecb78aa0056f4215ca9b096232de28eb8f17bc\"},{\"filename\":\"php-5.6.7.tar.gz\",\"name\":\"PHP 5.6.7 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"11398540a582c876f5e070207231afde975eb49bb2eeae20b052e8ca325c0f47\"},{\"filename\":\"php-5.6.7.tar.xz\",\"name\":\"PHP 5.6.7 (tar.xz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"a85522dd2e6f80ee5637e537447ee54896c77a8fabe49d2310830d0e20952787\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.5.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_23.php\"},\"source\":[{\"filename\":\"php-5.5.23.tar.bz2\",\"name\":\"PHP 5.5.23 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"a99ab264dcd40181baa9defeaa4b21eb2c20d4e9316b904cc05f628762e6ada7\"},{\"filename\":\"php-5.5.23.tar.gz\",\"name\":\"PHP 5.5.23 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"bf1246d4aca5b1a4e26f5cea273565ad3ee4607f20b7f28a508e3cab1a4d0c82\"},{\"filename\":\"php-5.5.23.tar.xz\",\"name\":\"PHP 5.5.23 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"2fc8315606cd6a51dae2e1fe9ac7a9bead76dace3eaf888ba372506695403af4\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_6.php\"},\"source\":[{\"filename\":\"php-5.6.6.tar.bz2\",\"name\":\"PHP 5.6.6 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"09625c9b65e0c8198dc76995a35f0feec0e13ea4489526e64a00954b12adbb4c\"},{\"filename\":\"php-5.6.6.tar.gz\",\"name\":\"PHP 5.6.6 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"164fb27bab0a0ca4902bc67d5f5638e43466c88153aee3b54546d8ec682ec03b\"},{\"filename\":\"php-5.6.6.tar.xz\",\"name\":\"PHP 5.6.6 (tar.xz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"b963b2d45baeebeeb421c05ee60889e87971e3e27a4be873d265fee3250fde20\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.5.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_22.php\"},\"source\":[{\"filename\":\"php-5.5.22.tar.bz2\",\"name\":\"PHP 5.5.22 (tar.bz2)\",\"date\":\"20 Feb 2015\",\"sha256\":\"c218c184bef2905bc79fcdda6040f3d1738261395fb706396935d1c6f6e162bb\"},{\"filename\":\"php-5.5.22.tar.gz\",\"name\":\"PHP 5.5.22 (tar.gz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"cb6174e1e74de233ec7b461302f823a7eacf7bcc946d347486c930e53f2b7db7\"},{\"filename\":\"php-5.5.22.tar.xz\",\"name\":\"PHP 5.5.22 (tar.xz)\",\"date\":\"20 Feb 2015\",\"sha256\":\"5256a7e3999eb11f8b4b407408ea4780f60aa959e0c48cfcf376091e721df223\"}],\"date\":\"20 Feb 2015\",\"museum\":false},\"5.6.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_5.php\"},\"source\":[{\"filename\":\"php-5.6.5.tar.bz2\",\"name\":\"PHP 5.6.5 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"adab4c0775512a5ca0ae74e08efdc941d92529b75283e0f44d3f53822cdfd06d\"},{\"filename\":\"php-5.6.5.tar.gz\",\"name\":\"PHP 5.6.5 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f67c480bcf2f6f703ec8d8a772540f4a518f766b08d634d7a919402c13a636cf\"},{\"filename\":\"php-5.6.5.tar.xz\",\"name\":\"PHP 5.6.5 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"c5ef4abaef8c1ea66dcfd5a075a2f357b666aff5c5b686fca7c78c1cfd64e996\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.5.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_21.php\"},\"source\":[{\"filename\":\"php-5.5.21.tar.bz2\",\"name\":\"PHP 5.5.21 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"62e9429975c4ca5d7067a5052d5388fbf2ac8c51eeee581d59b04cc5a8da83fe\"},{\"filename\":\"php-5.5.21.tar.gz\",\"name\":\"PHP 5.5.21 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"45adba5b4d2519f6174b85fd5b07a77389f397603d84084bdd26c44b3d7dc8af\"},{\"filename\":\"php-5.5.21.tar.xz\",\"name\":\"PHP 5.5.21 (tar.xz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"f2583540b2698d7d0ee9cfc071c2b56ccc64a52a2b53101511ba8df5b126d6d2\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.6.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_4.php\"},\"source\":[{\"filename\":\"php-5.6.4.tar.bz2\",\"name\":\"PHP 5.6.4 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1\"},{\"filename\":\"php-5.6.4.tar.gz\",\"name\":\"PHP 5.6.4 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"9c318f10af598e3d0b306a00860cfeb13c34024a9032a59ff53e3cd3c7791e97\"},{\"filename\":\"php-5.6.4.tar.xz\",\"name\":\"PHP 5.6.4 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"8cf44c59f467cdc2dd76c1167d1f368575ccff9b12941e199a362eb44a79acea\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.5.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_20.php\"},\"source\":[{\"filename\":\"php-5.5.20.tar.bz2\",\"name\":\"PHP 5.5.20 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"f28a150d1cd8991bd1a41dce4fdff4e343d1dbe01a48b9b44bea74532ce0391a\"},{\"filename\":\"php-5.5.20.tar.gz\",\"name\":\"PHP 5.5.20 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"7454e4f2dba3b08b2c88bb178e7bf704ed100f3d7ab6b83ea5046a6e4acb7295\"},{\"filename\":\"php-5.5.20.tar.xz\",\"name\":\"PHP 5.5.20 (tar.xz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"a0649450f8b0a23cd4c9ad15d0aa271d956f9516fc37b9e9dc492459b57721c8\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.6.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_3.php\"},\"source\":[{\"filename\":\"php-5.6.3.tar.bz2\",\"name\":\"PHP 5.6.3 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8986b20124d14430d795165e47801ef065a38d5855bea39d0d47b13ab9ad4009\"},{\"filename\":\"php-5.6.3.tar.gz\",\"name\":\"PHP 5.6.3 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ac79fe7ef50c2d5893375f5d8854909337adf1632e42bb08b36b66a0d8016a7\"},{\"filename\":\"php-5.6.3.tar.xz\",\"name\":\"PHP 5.6.3 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"fad244506cc7f10fe56aba8129b3c39a4f9316d9544a4fba932c3f81fc2244b5\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.5.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_19.php\"},\"source\":[{\"filename\":\"php-5.5.19.tar.bz2\",\"name\":\"PHP 5.5.19 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"4366dbb904cba8c8dd32224ac9408495d20aecaed86a871d78df420f5a23bbff\"},{\"filename\":\"php-5.5.19.tar.gz\",\"name\":\"PHP 5.5.19 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8d39f224424f37644da913353f1e773c20b7fc55bb3cc81526c18f91d1d6394e\"},{\"filename\":\"php-5.5.19.tar.xz\",\"name\":\"PHP 5.5.19 (tar.xz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"ccff8dfcd342e48a5b1e8b85c1c8c95d2e2eefab869757dcaa5224f11bb30e21\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.6.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_2.php\"},\"source\":[{\"filename\":\"php-5.6.2.tar.bz2\",\"name\":\"PHP 5.6.2 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"671dcf1f636410c63bb9eb015c4c180d904f5436f81217be0adbf52da9becdb5\"},{\"filename\":\"php-5.6.2.tar.gz\",\"name\":\"PHP 5.6.2 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"4bb316831979317caf738bb9e2c590bf3b7951ce60c69b9ca33f26069d9a2f39\"},{\"filename\":\"php-5.6.2.tar.xz\",\"name\":\"PHP 5.6.2 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"9be1322d33520fb2164282fb0fcdc212f66ffedcd912bff60955d5696454fe39\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.5.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_18.php\"},\"source\":[{\"filename\":\"php-5.5.18.tar.bz2\",\"name\":\"PHP 5.5.18 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"f974279927b72b672dda4ef4b4362b4847fd3d19ce1d4f2e982230a4e93bb842\"},{\"filename\":\"php-5.5.18.tar.gz\",\"name\":\"PHP 5.5.18 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"71f6445cc21c944a3b98592193c62e29a58af3fe26d097312502b4fd400286e4\"},{\"filename\":\"php-5.5.18.tar.xz\",\"name\":\"PHP 5.5.18 (tar.xz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"ccfbf6af18d1e56145867454dcbc75d90512f40ee9d3e57fdc6cb5fe3fc9726e\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.6.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_1.php\"},\"source\":[{\"filename\":\"php-5.6.1.tar.bz2\",\"name\":\"PHP 5.6.1 (tar.bz2)\",\"date\":\"02 Oct 2014\",\"sha256\":\"82c1ccd17830d697d7a4d75bb60ea12be58fa80b4dba101e97db1a6372ca45f0\"},{\"filename\":\"php-5.6.1.tar.gz\",\"name\":\"PHP 5.6.1 (tar.gz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"e34f0ab6b1f431f3115f60094f6d7ded12a90db2361194b8ef9e6eff812db21c\"},{\"filename\":\"php-5.6.1.tar.xz\",\"name\":\"PHP 5.6.1 (tar.xz)\",\"date\":\"02 Oct 2014\",\"sha256\":\"57640a700364949292da06e55423f162428a864451d05751a8829ae04d65745e\"}],\"date\":\"02 Oct 2014\",\"museum\":false},\"5.5.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_17.php\"},\"source\":[{\"filename\":\"php-5.5.17.tar.bz2\",\"name\":\"PHP 5.5.17 (tar.bz2)\",\"date\":\"18 Sep 2014\",\"sha256\":\"5d81db0c8b2a68da05715c363d037922b82a45c966785d64a77482e5c01e4e1b\"},{\"filename\":\"php-5.5.17.tar.gz\",\"name\":\"PHP 5.5.17 (tar.gz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"657169be88ae70625d97bb94dd29140c2b602f1ba8d5e42ca14a400b63cf4720\"},{\"filename\":\"php-5.5.17.tar.xz\",\"name\":\"PHP 5.5.17 (tar.xz)\",\"date\":\"18 Sep 2014\",\"sha256\":\"382b2a1cfbf67ca9e30171c9c49bfe260d5e458e07850d4b036e8430e1829093\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.6.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_6_0.php\"},\"source\":[{\"filename\":\"php-5.6.0.tar.bz2\",\"name\":\"PHP 5.6.0 (tar.bz2)\",\"date\":\"28 Aug 2014\",\"sha256\":\"097af1be34fc73965e6f8401fd10e73eb56e1969ed4ffd691fb7e91606d0fc09\"},{\"filename\":\"php-5.6.0.tar.gz\",\"name\":\"PHP 5.6.0 (tar.gz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"284b85376c630a6a7163e5278d64b8526fa1324fe5fd5d21174b54e2c056533f\"},{\"filename\":\"php-5.6.0.tar.xz\",\"name\":\"PHP 5.6.0 (tar.xz)\",\"date\":\"28 Aug 2014\",\"sha256\":\"8fc5411cd05cc6cc663247e588931fe67b1dc0e42550fa28ab2c943ad84eda02\"}],\"date\":\"28 Aug 2014\",\"museum\":false},\"5.5.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_16.php\"},\"source\":[{\"filename\":\"php-5.5.16.tar.bz2\",\"name\":\"PHP 5.5.16 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"a1d7c4556a80bed744a348211b33bc35303edd56dd0a34e0a75a948c879cc5f6\"},{\"filename\":\"php-5.5.16.tar.gz\",\"name\":\"PHP 5.5.16 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"cdea80ab1b0466f4656b46155e341b700799e78569a5cc582eeaededb448086c\"},{\"filename\":\"php-5.5.16.tar.xz\",\"name\":\"PHP 5.5.16 (tar.xz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"8276e8de4928e8e7011d1ac6c841c5adfc4561c7329ef2f5e055e7f4e1af0e48\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.5.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_15.php\"},\"source\":[{\"filename\":\"php-5.5.15.tar.bz2\",\"name\":\"PHP 5.5.15 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"00f24226b12fee27e332383b6304f1b9ed3f4d9173dd728a68c5c3f5a59b8ba7\"},{\"filename\":\"php-5.5.15.tar.gz\",\"name\":\"PHP 5.5.15 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"578febd686018401c4857699b29502b1aecaf82bf43525d810867f583961ac6e\"},{\"filename\":\"php-5.5.15.tar.xz\",\"name\":\"PHP 5.5.15 (tar.xz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"c20e360cf06bd4279ab423a7785d36aba0e2a9fdcd0b817883ab01cf0d914dd6\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.5.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_14.php\"},\"source\":[{\"filename\":\"php-5.5.14.tar.bz2\",\"name\":\"PHP 5.5.14 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"df5a057877f827549e0a60b43fb01e4bd440814bcf04fbd70bacbddf74482610\"},{\"filename\":\"php-5.5.14.tar.gz\",\"name\":\"PHP 5.5.14 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"ef7e4f4942c5767e01b96650a5bd4178c663738436f99b5695c3144732ff7166\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.5.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_13.php\"},\"source\":[{\"filename\":\"php-5.5.13.tar.bz2\",\"name\":\"PHP 5.5.13 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"e58a4a754eb18d2d8b1a120cad5cce4ed24a7db5d49eca5830a40e4c8ca78b9c\"},{\"filename\":\"php-5.5.13.tar.gz\",\"name\":\"PHP 5.5.13 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"15e34eb7c45e66963cbece29fb41e53cc6c6e3ec4a54c291a53cf6a1527771b6\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.5.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_12.php\"},\"source\":[{\"filename\":\"php-5.5.12.tar.bz2\",\"name\":\"PHP 5.5.12 (tar.bz2)\",\"date\":\"30 Apr 2014\",\"sha256\":\"519ee29e28532782676f3d8e31a808ffbfee383e0279ccc8cbd2b12ed53c2335\"},{\"filename\":\"php-5.5.12.tar.gz\",\"name\":\"PHP 5.5.12 (tar.gz)\",\"date\":\"30 Apr 2014\",\"sha256\":\"a10c6e6ce1145762d6c15ca7ce1aeaab69662c197d24e1294c2519aa85c97bd6\"}],\"date\":\"30 Apr 2014\",\"museum\":false},\"5.5.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_11.php\"},\"source\":[{\"filename\":\"php-5.5.11.tar.bz2\",\"name\":\"PHP 5.5.11 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96\"},{\"filename\":\"php-5.5.11.tar.gz\",\"name\":\"PHP 5.5.11 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a8b7bb1049732bf806e94090661f39f8359e0bf36d59ce6b98a53ea80411b450\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.5.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_10.php\"},\"source\":[{\"filename\":\"php-5.5.10.tar.bz2\",\"name\":\"PHP 5.5.10 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"bb34e61f8e6f56c612867bfe85d144d5045cd5e44497539bc126a4e8c6795419\"},{\"filename\":\"php-5.5.10.tar.gz\",\"name\":\"PHP 5.5.10 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"abf751810593844e0897007797210828b193a213d9b204f203e0331019cadb90\"}],\"date\":\"6 Mar 2014\",\"museum\":false},\"5.5.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_9.php\"},\"source\":[{\"filename\":\"php-5.5.9.tar.bz2\",\"name\":\"PHP 5.5.9 (tar.bz2)\",\"date\":\"6 Feb 2014\",\"sha256\":\"9d1dea5195e2bcd928416130a6e19173d02bd36fb76c382522bf145c458fbed3\"},{\"filename\":\"php-5.5.9.tar.gz\",\"name\":\"PHP 5.5.9 (tar.gz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"ec1bf0cb3be80240049dbd92c272d4bf242a614fa5f9dcc42a15adb5fd01ccde\"},{\"filename\":\"php-5.5.9.tar.xz\",\"name\":\"PHP 5.5.9 (tar.xz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"7f7a7b1189472e59b234233daab9aa9692bb5eb8404485e9a78221f75ee4664a\"}],\"date\":\"6 Feb 2014\",\"museum\":false},\"5.5.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_8.php\"},\"source\":[{\"filename\":\"php-5.5.8.tar.bz2\",\"name\":\"PHP 5.5.8 (tar.bz2)\",\"date\":\"9 Jan 2014\",\"sha256\":\"6d5f45659d13383fc8429f185cc9da0b30c7bb72dcae9baf568f0511eb7f8b68\"},{\"filename\":\"php-5.5.8.tar.gz\",\"name\":\"PHP 5.5.8 (tar.gz)\",\"date\":\"9 Jan 2014\",\"sha256\":\"67c74a9a2357dc65f5b1701cadb574f1309c4c3a20a2a5c56aeae4c4be90f2f8\"}],\"date\":\"9 Jan 2014\",\"museum\":false},\"5.5.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_7.php\"},\"source\":[{\"filename\":\"php-5.5.7.tar.bz2\",\"name\":\"PHP 5.5.7 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"2cb9425ef514b984dd233097d82a66f4623b9bf48f2ef265bc7ba25d697d6008\"},{\"filename\":\"php-5.5.7.tar.gz\",\"name\":\"PHP 5.5.7 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"7b954338d7dd538ef6fadbc110e6a0f50d0b39dabec2c12a7f000c17332591b8\"},{\"filename\":\"php-5.5.7.tar.xz\",\"name\":\"PHP 5.5.7 (tar.xz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"b7bae5d878b8fc3f4b481eb8f2179b5e71d30dfb3bc3640a5068c1b46633f08c\"}],\"date\":\"12 Dec 2013\",\"museum\":false},\"5.5.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_6.php\"},\"source\":[{\"filename\":\"php-5.5.6.tar.bz2\",\"name\":\"PHP 5.5.6 (tar.bz2)\",\"date\":\"14 Nov 2013\",\"sha256\":\"a9b7d291199d7e6b90ef1d78eb791d738944d66856e76bde9463ce2645b0e4a4\"},{\"filename\":\"php-5.5.6.tar.gz\",\"name\":\"PHP 5.5.6 (tar.gz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"01f9c45154d4c9a47a825aa662bd64493082bd57dafdc720cf899ee194220a67\"},{\"filename\":\"php-5.5.6.tar.xz\",\"name\":\"PHP 5.5.6 (tar.xz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"3235a5c15e8fc55498dd80fe43f4aecc51dba35a7fc916aee7ef12d4e1f8767a\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.6 binaries and source\"}],\"date\":\"14 Nov 2013\",\"museum\":false},\"5.5.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_5.php\"},\"source\":[{\"filename\":\"php-5.5.5.tar.bz2\",\"name\":\"PHP 5.5.5 (tar.bz2)\",\"date\":\"17 Oct 2013\",\"sha256\":\"a400b324ae288eb0c9285e550fe5fd7f92c0f4e126496c3b05f9041da6cc04de\"},{\"filename\":\"php-5.5.5.tar.gz\",\"name\":\"PHP 5.5.5 (tar.gz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"483ff2370fa3a8863e6b023383c4bcfcc3ba462137c30c5fc75043e1755b7d17\"},{\"filename\":\"php-5.5.5.tar.xz\",\"name\":\"PHP 5.5.5 (tar.xz)\",\"date\":\"17 Oct 2013\",\"sha256\":\"82cc9c88b946354bfe629917a85ed33d8cfc901460d432a75f823667d94f29ee\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.5 binaries and source\"}],\"date\":\"17 Oct 2013\",\"museum\":false},\"5.5.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_4.php\"},\"source\":[{\"filename\":\"php-5.5.4.tar.bz2\",\"name\":\"PHP 5.5.4 (tar.bz2)\",\"md5\":\"456f2eb1ee36f2a277bd4cc778e720eb\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.gz\",\"name\":\"PHP 5.5.4 (tar.gz)\",\"md5\":\"bf842770ac64a47ff599f463e6cf1334\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.5.4.tar.xz\",\"name\":\"PHP 5.5.4 (tar.xz)\",\"md5\":\"32c1dc56701d21def91a39a312392b54\",\"date\":\"19 Sep 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.4 binaries and source\"}],\"date\":\"19 Sep 2013\",\"museum\":true},\"5.5.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_3.php\"},\"source\":[{\"filename\":\"php-5.5.3.tar.bz2\",\"name\":\"PHP 5.5.3 (tar.bz2)\",\"md5\":\"886b08ee6865d654911a6bb02ae98ee8\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.gz\",\"name\":\"PHP 5.5.3 (tar.gz)\",\"md5\":\"a5dfdd41ccf539942db966310f7429da\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.5.3.tar.xz\",\"name\":\"PHP 5.5.3 (tar.xz)\",\"md5\":\"437e98144ef014dfab0922a9eed36853\",\"date\":\"22 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.3 binaries and source\"}],\"date\":\"22 Aug 2013\",\"museum\":true},\"5.5.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_2.php\"},\"source\":[{\"filename\":\"php-5.5.2.tar.bz2\",\"name\":\"PHP 5.5.2 (tar.bz2)\",\"md5\":\"caf7f4d86514a568fb3c8021b096a9f0\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.gz\",\"name\":\"PHP 5.5.2 (tar.gz)\",\"md5\":\"2a90884749f97868071538098b3debc1\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.5.2.tar.xz\",\"name\":\"PHP 5.5.2 (tar.xz)\",\"md5\":\"95c6d7a4c36c475b10447954dea056a5\",\"date\":\"15 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.2 binaries and source\"}],\"date\":\"15 Aug 2013\",\"museum\":true},\"5.5.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_1.php\"},\"source\":[{\"filename\":\"php-5.5.1.tar.bz2\",\"name\":\"PHP 5.5.1 (tar.bz2)\",\"md5\":\"e6520ba8f86e03451f1e9226ca2be681\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.gz\",\"name\":\"PHP 5.5.1 (tar.gz)\",\"md5\":\"a7d9598c0e60b47960b8e803e51c4309\",\"date\":\"18 Jul 2013\"},{\"filename\":\"php-5.5.1.tar.xz\",\"name\":\"PHP 5.5.1 (tar.xz)\",\"md5\":\"365403c216d22255c3aa57fe54944f8e\",\"date\":\"18 Jul 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.1 binaries and source\"}],\"date\":\"18 Jul 2013\",\"museum\":true},\"5.5.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_5_0.php\"},\"source\":[{\"filename\":\"php-5.5.0.tar.bz2\",\"name\":\"PHP 5.5.0 (tar.bz2)\",\"md5\":\"daf2d54e79def9fd0fb2ac7dfcefb7f3\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.gz\",\"name\":\"PHP 5.5.0 (tar.gz)\",\"md5\":\"79c4e7a8cb0f8e2e072120775b92c523\",\"date\":\"20 Jun 2013\"},{\"filename\":\"php-5.5.0.tar.xz\",\"name\":\"PHP 5.5.0 (tar.xz)\",\"md5\":\"c7df0cb28cfff4e277fd9cd9b73cebfb\",\"date\":\"20 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.5\",\"name\":\"Windows 5.5.0 binaries and source\"}],\"date\":\"20 Jun 2013\",\"museum\":true},\"5.4.45\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_45.php\"},\"source\":[{\"filename\":\"php-5.4.45.tar.bz2\",\"name\":\"PHP 5.4.45 (tar.bz2)\",\"sha256\":\"4e0d28b1554c95cfaea6fa2b64aac85433f158ce72bb571bcd5574f98f4c6582\",\"date\":\"03 Sep 2015\"},{\"filename\":\"php-5.4.45.tar.gz\",\"name\":\"PHP 5.4.45 (tar.gz)\",\"sha256\":\"25bc4723955f4e352935258002af14a14a9810b491a19400d76fcdfa9d04b28f\",\"date\":\"03 Sep 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.45 binaries and source\"}],\"date\":\"03 Sep 2015\",\"museum\":false},\"5.4.44\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_44.php\"},\"source\":[{\"filename\":\"php-5.4.44.tar.bz2\",\"name\":\"PHP 5.4.44 (tar.bz2)\",\"sha256\":\"8dd59e5ce9248cf36ac3de5412a518b8b24c01ace6c46ce3d12e4ce981a3856d\",\"date\":\"06 Aug 2015\"},{\"filename\":\"php-5.4.44.tar.gz\",\"name\":\"PHP 5.4.44 (tar.gz)\",\"sha256\":\"1799998e48da3d8f34722840628e18789e26ea21741d4e498ade6749b3266602\",\"date\":\"06 Aug 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.44 binaries and source\"}],\"date\":\"06 Aug 2015\",\"museum\":false},\"5.4.43\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_43.php\"},\"source\":[{\"filename\":\"php-5.4.43.tar.bz2\",\"name\":\"PHP 5.4.43 (tar.bz2)\",\"sha256\":\"25d7724fb00ad1b520f5bad2173717031153d0a8e3de2c75e7a084c76f8ecd6b\",\"date\":\"09 Jul 2015\"},{\"filename\":\"php-5.4.43.tar.gz\",\"name\":\"PHP 5.4.43 (tar.gz)\",\"sha256\":\"cfc2176adc05f009666ecfab4a1cc66cc546c5d071245b2a048b3d113f67a2af\",\"date\":\"09 Jul 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.43 binaries and source\"}],\"date\":\"09 Jul 2015\",\"museum\":false},\"5.4.42\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_42.php\"},\"source\":[{\"filename\":\"php-5.4.42.tar.bz2\",\"name\":\"PHP 5.4.42 (tar.bz2)\",\"sha256\":\"6285b2e64bfaa69e5d983d7d981b4f254f5259ad3fd591ca832722a4cc1ae0f9\",\"date\":\"11 Jun 2015\"},{\"filename\":\"php-5.4.42.tar.gz\",\"name\":\"PHP 5.4.42 (tar.gz)\",\"sha256\":\"f0b40c097a6f11c4c2f5078d34f50fb9428d79b9e9821117bd7d6cca6af78d11\",\"date\":\"11 Jun 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.42 binaries and source\"}],\"date\":\"11 Jun 2015\",\"museum\":false},\"5.4.41\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_41.php\"},\"source\":[{\"filename\":\"php-5.4.41.tar.bz2\",\"name\":\"PHP 5.4.41 (tar.bz2)\",\"sha256\":\"5bc4b45a1280ff80a3cf5b8563716f325cfd0121d7fd25aa54d56ff38b3b8272\",\"date\":\"14 May 2015\"},{\"filename\":\"php-5.4.41.tar.gz\",\"name\":\"PHP 5.4.41 (tar.gz)\",\"sha256\":\"638cf19c865bc4eba2a4bab8952116a62691d1a72e1e2c9a9a2aadee92d1ce2e\",\"date\":\"14 May 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.41 binaries and source\"}],\"date\":\"14 May 2015\",\"museum\":false},\"5.4.40\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_40.php\"},\"source\":[{\"filename\":\"php-5.4.40.tar.bz2\",\"name\":\"PHP 5.4.40 (tar.bz2)\",\"sha256\":\"4898ffe8ac3ccb2d8cc94f7d76a9ea0414d954f5d4479895ddfccdc2e158a51a\",\"date\":\"16 Apr 2015\"},{\"filename\":\"php-5.4.40.tar.gz\",\"name\":\"PHP 5.4.40 (tar.gz)\",\"sha256\":\"663f5d06cd648e81ba4f2d6ad621bb580d83de70240c832dae527c97954da33d\",\"date\":\"16 Apr 2015\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.40 binaries and source\"}],\"date\":\"16 Apr 2015\",\"museum\":false},\"5.4.39\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_39.php\"},\"source\":[{\"filename\":\"php-5.4.39.tar.bz2\",\"name\":\"PHP 5.4.39 (tar.bz2)\",\"date\":\"19 Mar 2015\",\"sha256\":\"7ceb76538e709c74533210ae41148d5c01c330ac8a73220954bbc4fcae69d77e\"},{\"filename\":\"php-5.4.39.tar.gz\",\"name\":\"PHP 5.4.39 (tar.gz)\",\"date\":\"19 Mar 2015\",\"sha256\":\"9af5d2c3782aa94b7336401755dc44b62dc4ea881bf5e39540a4c7181b54d945\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.39 binaries and source\"}],\"date\":\"19 Mar 2015\",\"museum\":false},\"5.4.38\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_38.php\"},\"source\":[{\"filename\":\"php-5.4.38.tar.bz2\",\"name\":\"PHP 5.4.38 (tar.bz2)\",\"date\":\"19 Feb 2015\",\"sha256\":\"abf37db0cfadc9bb814f9df35f6aa966ad63f4f4c4475e432ec625568a5d3e88\"},{\"filename\":\"php-5.4.38.tar.gz\",\"name\":\"PHP 5.4.38 (tar.gz)\",\"date\":\"19 Feb 2015\",\"sha256\":\"e694b7265f314f73c9df43538e0e54e2495cb72252e8a91c1aec66ffcf47241f\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.38 binaries and source\"}],\"date\":\"19 Feb 2015\",\"museum\":false},\"5.4.37\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_37.php\"},\"source\":[{\"filename\":\"php-5.4.37.tar.bz2\",\"name\":\"PHP 5.4.37 (tar.bz2)\",\"date\":\"22 Jan 2015\",\"sha256\":\"857bf6675eeb0ae9c3cd6f9ccdb2a9b7bf89dcfda7f0a80857638fe023f3a8ad\"},{\"filename\":\"php-5.4.37.tar.gz\",\"name\":\"PHP 5.4.37 (tar.gz)\",\"date\":\"22 Jan 2015\",\"sha256\":\"6bf3b3ebefa600cfb6dd7f2678f23b17a958e82e8ce2d012286818d7c36dfd31\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.37 binaries and source\"}],\"date\":\"22 Jan 2015\",\"museum\":false},\"5.4.36\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_36.php\"},\"source\":[{\"filename\":\"php-5.4.36.tar.bz2\",\"name\":\"PHP 5.4.36 (tar.bz2)\",\"date\":\"18 Dec 2014\",\"sha256\":\"b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241\"},{\"filename\":\"php-5.4.36.tar.gz\",\"name\":\"PHP 5.4.36 (tar.gz)\",\"date\":\"18 Dec 2014\",\"sha256\":\"e11851662222765d6ab6e671adc983c657d5358a183856b43a5bad0c612d2959\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.36 binaries and source\"}],\"date\":\"18 Dec 2014\",\"museum\":false},\"5.4.35\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_35.php\"},\"source\":[{\"filename\":\"php-5.4.35.tar.bz2\",\"name\":\"PHP 5.4.35 (tar.bz2)\",\"date\":\"13 Nov 2014\",\"sha256\":\"8cdb4265cd0f778befacd1e6b5939ec23315fff38400e17e77a36e4c55b9746b\"},{\"filename\":\"php-5.4.35.tar.gz\",\"name\":\"PHP 5.4.35 (tar.gz)\",\"date\":\"13 Nov 2014\",\"sha256\":\"7ecab4ebb880b6d4f68bd4e3e49d837d4704fe26d81dc992b17b74151ee950a7\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.35 binaries and source\"}],\"date\":\"13 Nov 2014\",\"museum\":false},\"5.4.34\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_34.php\"},\"source\":[{\"filename\":\"php-5.4.34.tar.bz2\",\"name\":\"PHP 5.4.34 (tar.bz2)\",\"date\":\"16 Oct 2014\",\"sha256\":\"57d4ea10f0c18b096a7c8fd0a98dcbe40c8f4dc94453fd3ca0a10e35fb2f8234\"},{\"filename\":\"php-5.4.34.tar.gz\",\"name\":\"PHP 5.4.34 (tar.gz)\",\"date\":\"16 Oct 2014\",\"sha256\":\"c8d909062ad7616cedb54dc03d85b40d40f6d4adce986ec8cabd9b8b94872096\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.34 binaries and source\"}],\"date\":\"16 Oct 2014\",\"museum\":false},\"5.4.33\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_33.php\"},\"source\":[{\"filename\":\"php-5.4.33.tar.bz2\",\"name\":\"PHP 5.4.33 (tar.bz2)\",\"sha256\":\"1a75b2d0835e74b8886cd3980d9598a0e06691441bb7f91d19b74c2278e40bb5\",\"date\":\"18 Sep 2014\"},{\"filename\":\"php-5.4.33.tar.gz\",\"name\":\"PHP 5.4.33 (tar.gz)\",\"sha256\":\"74e542dd2f15ebbc123738a71e867d57d2996a6edb40e6ac62fcf5ab85763d19\",\"date\":\"18 Sep 2014\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.33 binaries and source\"}],\"date\":\"18 Sep 2014\",\"museum\":false},\"5.4.32\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_32.php\"},\"source\":[{\"filename\":\"php-5.4.32.tar.bz2\",\"name\":\"PHP 5.4.32 (tar.bz2)\",\"date\":\"21 Aug 2014\",\"sha256\":\"26d0717669a098f18cd22dc3ae8282101d38508054500c26775ddcc26ca7c826\"},{\"filename\":\"php-5.4.32.tar.gz\",\"name\":\"PHP 5.4.32 (tar.gz)\",\"date\":\"21 Aug 2014\",\"sha256\":\"80ebdf34f91b8e1d516080363804137177368777aa9ecffee600f2957e8b0f94\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.32 binaries and source\"}],\"date\":\"21 Aug 2014\",\"museum\":false},\"5.4.31\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_31.php\"},\"source\":[{\"filename\":\"php-5.4.31.tar.bz2\",\"name\":\"PHP 5.4.31 (tar.bz2)\",\"date\":\"24 Jul 2014\",\"sha256\":\"5e8e491431fd1d99df925d762b05da05c80b02cb38c9b3db616e8894a307914d\"},{\"filename\":\"php-5.4.31.tar.gz\",\"name\":\"PHP 5.4.31 (tar.gz)\",\"date\":\"24 Jul 2014\",\"sha256\":\"332f62e4f751482d40ad08544ee97e004170d0382c84d01ce8efe405d0972f66\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.31 binaries and source\"}],\"date\":\"24 Jul 2014\",\"museum\":false},\"5.4.30\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_30.php\"},\"source\":[{\"filename\":\"php-5.4.30.tar.bz2\",\"name\":\"PHP 5.4.30 (tar.bz2)\",\"date\":\"26 Jun 2014\",\"sha256\":\"32b83644e42d57388d6e5ec700c3502cde5f5e1207395b1e361e4cb2ce496ce6\"},{\"filename\":\"php-5.4.30.tar.gz\",\"name\":\"PHP 5.4.30 (tar.gz)\",\"date\":\"26 Jun 2014\",\"sha256\":\"c17da64890b728bdc146bdc69b37085412d4e2585fac98848ac2e824bb564c85\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.30 binaries and source\"}],\"date\":\"26 Jun 2014\",\"museum\":false},\"5.4.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_29.php\"},\"source\":[{\"filename\":\"php-5.4.29.tar.bz2\",\"name\":\"PHP 5.4.29 (tar.bz2)\",\"date\":\"29 May 2014\",\"sha256\":\"62ce3ca063cf04f6065eeac82117e43b44e20487bc0a0a8d05436e17a0b1e2a7\"},{\"filename\":\"php-5.4.29.tar.gz\",\"name\":\"PHP 5.4.29 (tar.gz)\",\"date\":\"29 May 2014\",\"sha256\":\"9fa51d3e44783802ea51b910719ad524a8994524f7cf7307f683fe89191bc401\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.29 binaries and source\"}],\"date\":\"29 May 2014\",\"museum\":false},\"5.4.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_28.php\"},\"source\":[{\"filename\":\"php-5.4.28.tar.bz2\",\"name\":\"PHP 5.4.28 (tar.bz2)\",\"date\":\"2 May 2014\",\"sha256\":\"3fe780e5179e90c4d37276e79acc0d0692f1bc0911985af694b92c664c0ef3c4\"},{\"filename\":\"php-5.4.28.tar.gz\",\"name\":\"PHP 5.4.28 (tar.gz)\",\"date\":\"2 May 2014\",\"sha256\":\"5140292c94a0301db7a807e6b3aadf6ee966346d0005aa3d15464bd4c595a786\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.28 binaries and source\"}],\"date\":\"2 May 2014\",\"museum\":false},\"5.4.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_27.php\"},\"source\":[{\"filename\":\"php-5.4.27.tar.bz2\",\"name\":\"PHP 5.4.27 (tar.bz2)\",\"date\":\"3 Apr 2014\",\"sha256\":\"09dcc44cded735e1cf1b1b9f2749d1a0fd90e03378b6a70364a662f4740e61e2\"},{\"filename\":\"php-5.4.27.tar.gz\",\"name\":\"PHP 5.4.27 (tar.gz)\",\"date\":\"3 Apr 2014\",\"sha256\":\"a70dc68eeed902f8378fded473d53e4e37be645b941554dcf4237559cbda2bb3\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.27 binaries and source\"}],\"date\":\"3 Apr 2014\",\"museum\":false},\"5.4.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_26.php\"},\"source\":[{\"filename\":\"php-5.4.26.tar.bz2\",\"name\":\"PHP 5.4.26 (tar.bz2)\",\"date\":\"6 Mar 2014\",\"sha256\":\"5053649317b9331df40bd836c976a32b31dbc5c5d68997d3ae01cb90db22d240\"},{\"filename\":\"php-5.4.26.tar.gz\",\"name\":\"PHP 5.4.26 (tar.gz)\",\"date\":\"6 Mar 2014\",\"sha256\":\"ec3f902b5e8cbdd660e01e784b537f1210a12182d9bbd62164776075bc097eca\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.26 binaries and source\"}],\"date\":\"6 Mar 2014\",\"museum\":false},\"5.4.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_25.php\"},\"source\":[{\"filename\":\"php-5.4.25.tar.bz2\",\"name\":\"PHP 5.4.25 (tar.bz2)\",\"date\":\"6 Feb 2014\",\"sha256\":\"b6c18c07c6bf34f75e601b28829d636e44c1c9f4267aac4ed013443c32a2245f\"},{\"filename\":\"php-5.4.25.tar.gz\",\"name\":\"PHP 5.4.25 (tar.gz)\",\"date\":\"6 Feb 2014\",\"sha256\":\"0c66cec73bfbd31f68c96e5a4d8454599271f0b0462c2ff7dedce4262fda8fe3\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.25 binaries and source\"}],\"date\":\"6 Feb 2014\",\"museum\":false},\"5.4.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_24.php\"},\"source\":[{\"filename\":\"php-5.4.24.tar.bz2\",\"name\":\"PHP 5.4.24 (tar.bz2)\",\"date\":\"9 Jan 2014\",\"sha256\":\"97fe70eddaf5b93969714a551870fe03f6b0a387f85b83a6d63a40a76199a327\"},{\"filename\":\"php-5.4.24.tar.gz\",\"name\":\"PHP 5.4.24 (tar.gz)\",\"date\":\"9 Jan 2014\",\"sha256\":\"c64d6e3b428e78b44760167557e26cd16a9f83f449a255e69d5e035bdd7057ed\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.24 binaries and source\"}],\"date\":\"9 Jan 2014\",\"museum\":false},\"5.4.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_23.php\"},\"source\":[{\"filename\":\"php-5.4.23.tar.bz2\",\"name\":\"PHP 5.4.23 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"ae7c070fa9b9e16413ef944d910b68f3ba79192eca4010b0af132b8631bd91cc\"},{\"filename\":\"php-5.4.23.tar.gz\",\"name\":\"PHP 5.4.23 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"c9add0e59f41298a253bbb9090c47a03064b099120a563ca8ad289e18fcd1ce7\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.23 binaries and source\"}],\"date\":\"12 Dec 2013\",\"museum\":false},\"5.4.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_22.php\"},\"source\":[{\"filename\":\"php-5.4.22.tar.bz2\",\"name\":\"PHP 5.4.22 (tar.bz2)\",\"date\":\"14 Nov 2013\",\"sha256\":\"3b8619b030e372f2b64e3a059d05a3ef3354e81f8a72923ba45475bf222f7cca\"},{\"filename\":\"php-5.4.22.tar.gz\",\"name\":\"PHP 5.4.22 (tar.gz)\",\"date\":\"14 Nov 2013\",\"sha256\":\"ca6e52a0ba11e9521c6a26f293a602cdc00cad1adbb4658e35b8d3f41057cbb8\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.22 binaries and source\"}],\"date\":\"14 Nov 2013\",\"museum\":false},\"5.4.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_21.php\"},\"source\":[{\"filename\":\"php-5.4.21.tar.bz2\",\"name\":\"PHP 5.4.21 (tar.bz2)\",\"md5\":\"3dcf021e89b039409d0b1c346b936b5f\",\"date\":\"17 Oct 2013\"},{\"filename\":\"php-5.4.21.tar.gz\",\"name\":\"PHP 5.4.21 (tar.gz)\",\"md5\":\"cc8da0d18683e3a83b332f264af7ca83\",\"date\":\"17 Oct 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.21 binaries and source\"}],\"date\":\"17 Oct 2013\",\"museum\":true},\"5.4.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_20.php\"},\"source\":[{\"filename\":\"php-5.4.20.tar.bz2\",\"name\":\"PHP 5.4.20 (tar.bz2)\",\"md5\":\"e25db5592ed14842b4239be9d990cce8\",\"date\":\"19 Sep 2013\"},{\"filename\":\"php-5.4.20.tar.gz\",\"name\":\"PHP 5.4.20 (tar.gz)\",\"md5\":\"e505b63ebe383ef9a378467216ba69d4\",\"date\":\"19 Sep 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.20 binaries and source\"}],\"date\":\"19 Sep 2013\",\"museum\":true},\"5.4.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_19.php\"},\"source\":[{\"filename\":\"php-5.4.19.tar.bz2\",\"name\":\"PHP 5.4.19 (tar.bz2)\",\"md5\":\"f06f99b9872b503758adab5ba7a7e755\",\"date\":\"22 Aug 2013\"},{\"filename\":\"php-5.4.19.tar.gz\",\"name\":\"PHP 5.4.19 (tar.gz)\",\"md5\":\"9e7ad2494ba3de519328f74267de8342\",\"date\":\"22 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.19 binaries and source\"}],\"date\":\"22 Aug 2013\",\"museum\":true},\"5.4.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_18.php\"},\"source\":[{\"filename\":\"php-5.4.18.tar.bz2\",\"name\":\"PHP 5.4.18 (tar.bz2)\",\"md5\":\"b2e185b46b22a48a385cf21a0dc76e65\",\"date\":\"15 Aug 2013\"},{\"filename\":\"php-5.4.18.tar.gz\",\"name\":\"PHP 5.4.18 (tar.gz)\",\"md5\":\"d0a3f55deceaec921f45f76d7b4e764b\",\"date\":\"15 Aug 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.18 binaries and source\"}],\"date\":\"04 Jul 2013\",\"museum\":true},\"5.4.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_17.php\"},\"source\":[{\"filename\":\"php-5.4.17.tar.bz2\",\"name\":\"PHP 5.4.17 (tar.bz2)\",\"md5\":\"1e027e99e2a874310fd518e87e3947af\",\"date\":\"04 Jul 2013\"},{\"filename\":\"php-5.4.17.tar.gz\",\"name\":\"PHP 5.4.17 (tar.gz)\",\"md5\":\"cc698032dcdcb9ad158edcc90fe798d6\",\"date\":\"04 Jul 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.17 binaries and source\"}],\"date\":\"04 Jul 2013\",\"museum\":true},\"5.4.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_16.php\"},\"source\":[{\"filename\":\"php-5.4.16.tar.bz2\",\"name\":\"PHP 5.4.16 (tar.bz2)\",\"md5\":\"3d2c694d28861d707b2622c3cc941cff\",\"date\":\"06 Jun 2013\"},{\"filename\":\"php-5.4.16.tar.gz\",\"name\":\"PHP 5.4.16 (tar.gz)\",\"md5\":\"3940a5295872964495f9c56596272d68\",\"date\":\"06 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.16 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.4.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_15.php\"},\"source\":[{\"filename\":\"php-5.4.15.tar.bz2\",\"name\":\"PHP 5.4.15 (tar.bz2)\",\"md5\":\"145ea5e845e910443ff1eddb3dbcf56a\",\"date\":\"09 May 2013\"},{\"filename\":\"php-5.4.15.tar.gz\",\"name\":\"PHP 5.4.15 (tar.gz)\",\"md5\":\"2651b983c18df9d455ec4c69aef45834\",\"date\":\"09 May 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.15 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.4.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_14.php\"},\"source\":[{\"filename\":\"php-5.4.14.tar.bz2\",\"name\":\"PHP 5.4.14 (tar.bz2)\",\"md5\":\"cfdc044be2c582991a1fe0967898fa38\",\"date\":\"11 Apr 2013\"},{\"filename\":\"php-5.4.14.tar.gz\",\"name\":\"PHP 5.4.14 (tar.gz)\",\"md5\":\"08df8196af12bc850409a7bff13bf8f0\",\"date\":\"11 Apr 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.14 binaries and source\"}],\"date\":\"11 Apr 2013\",\"museum\":true},\"5.4.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_13.php\"},\"source\":[{\"filename\":\"php-5.4.13.tar.bz2\",\"name\":\"PHP 5.4.13 (tar.bz2)\",\"md5\":\"cacd308e978b7cf9ba4993196612ccf7\",\"date\":\"14 Mar 2013\"},{\"filename\":\"php-5.4.13.tar.gz\",\"name\":\"PHP 5.4.13 (tar.gz)\",\"md5\":\"445025340677d5bfe22eb670d6db6795\",\"date\":\"14 Mar 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.13 binaries and source\"}],\"date\":\"14 Mar 2013\",\"museum\":true},\"5.4.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_12.php\"},\"source\":[{\"filename\":\"php-5.4.12.tar.bz2\",\"name\":\"PHP 5.4.12 (tar.bz2)\",\"md5\":\"5c7b614242ae12e9cacca21c8ab84818\",\"date\":\"21 Feb 2013\"},{\"filename\":\"php-5.4.12.tar.gz\",\"name\":\"PHP 5.4.12 (tar.gz)\",\"md5\":\"81b20cac4f977b8764ae904302048d84\",\"date\":\"21 Feb 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.12 binaries and source\"}],\"date\":\"21 Feb 2013\",\"museum\":true},\"5.4.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_11.php\"},\"source\":[{\"filename\":\"php-5.4.11.tar.bz2\",\"name\":\"PHP 5.4.11 (tar.bz2)\",\"md5\":\"9975e68c22b86b013b934743ad2d2276\",\"date\":\"17 Jan 2013\"},{\"filename\":\"php-5.4.11.tar.gz\",\"name\":\"PHP 5.4.11 (tar.gz)\",\"md5\":\"32fa16b3abd5527316c3c076b3395914\",\"date\":\"17 Jan 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.11 binaries and source\"}],\"date\":\"17 Jan 2013\",\"museum\":true},\"5.4.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_10.php\"},\"source\":[{\"filename\":\"php-5.4.10.tar.bz2\",\"name\":\"PHP 5.4.10 (tar.bz2)\",\"md5\":\"cb716b657a30570b9b468b9e7bc551a1\",\"date\":\"20 Dec 2012\"},{\"filename\":\"php-5.4.10.tar.gz\",\"name\":\"PHP 5.4.10 (tar.gz)\",\"md5\":\"1e7fbe418658d5433bd315030584c45c\",\"date\":\"20 Dec 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.10 binaries and source\"}],\"date\":\"20 Dec 2012\",\"museum\":true},\"5.4.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_9.php\"},\"source\":[{\"filename\":\"php-5.4.9.tar.bz2\",\"name\":\"PHP 5.4.9 (tar.bz2)\",\"md5\":\"076a9f84d861d3f664a2878d5773ba78\",\"date\":\"22 Nov 2012\"},{\"filename\":\"php-5.4.9.tar.gz\",\"name\":\"PHP 5.4.9 (tar.gz)\",\"md5\":\"e1ac28e1cf20738f0aeeba8261aa4537\",\"date\":\"22 Nov 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.9 binaries and source\"}],\"date\":\"22 Nov 2012\",\"museum\":true},\"5.4.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_8.php\"},\"source\":[{\"filename\":\"php-5.4.8.tar.bz2\",\"name\":\"PHP 5.4.8 (tar.bz2)\",\"md5\":\"bb8c816a9299be8995255ef70c63b800\",\"date\":\"18 Oct 2012\"},{\"filename\":\"php-5.4.8.tar.gz\",\"name\":\"PHP 5.4.8 (tar.gz)\",\"md5\":\"b25b735f342efbfdcdaf00b83189f183\",\"date\":\"18 Oct 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.8 binaries and source\"}],\"date\":\"18 Oct 2012\",\"museum\":true},\"5.4.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_7.php\"},\"source\":[{\"filename\":\"php-5.4.7.tar.bz2\",\"name\":\"PHP 5.4.7 (tar.bz2)\",\"md5\":\"9cd421f1cc8fa8e7f215e44a1b06199f\",\"date\":\"13 Sep 2012\"},{\"filename\":\"php-5.4.7.tar.gz\",\"name\":\"PHP 5.4.7 (tar.gz)\",\"md5\":\"94661b761dcfdfdd5108e8b12e0dd4f8\",\"date\":\"13 Sep 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.7 binaries and source\"}],\"date\":\"13 Sep 2012\",\"museum\":true},\"5.4.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_6.php\"},\"source\":[{\"filename\":\"php-5.4.6.tar.bz2\",\"name\":\"PHP 5.4.6 (tar.bz2)\",\"md5\":\"c9aa0f4996d1b91ee9e45afcfaeb5d2e\",\"date\":\"16 Aug 2012\"},{\"filename\":\"php-5.4.6.tar.gz\",\"name\":\"PHP 5.4.6 (tar.gz)\",\"md5\":\"efe59afb73190c9bd6d50614998ffceb\",\"date\":\"16 Aug 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.6 binaries and source\"}],\"date\":\"16 Aug 2012\",\"museum\":true},\"5.4.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_5.php\"},\"source\":[{\"filename\":\"php-5.4.5.tar.bz2\",\"name\":\"PHP 5.4.5 (tar.bz2)\",\"md5\":\"ffcc7f4dcf2b79d667fe0c110e6cb724\",\"date\":\"19 July 2012\"},{\"filename\":\"php-5.4.5.tar.gz\",\"name\":\"PHP 5.4.5 (tar.gz)\",\"md5\":\"51fb5bf974d92359f0606dffc810735a\",\"date\":\"19 July 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.5 binaries and source\"}],\"date\":\"19 July 2012\",\"museum\":true},\"5.4.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_4.php\"},\"source\":[{\"filename\":\"php-5.4.4.tar.bz2\",\"name\":\"PHP 5.4.4 (tar.bz2)\",\"md5\":\"1fd98dc3f6f3805cd67bff12a26ed77f\",\"date\":\"14 June 2012\"},{\"filename\":\"php-5.4.4.tar.gz\",\"name\":\"PHP 5.4.4 (tar.gz)\",\"md5\":\"8366c3626f2275ab8c7ef5e2d6bc5bd7\",\"date\":\"14 June 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.4.4 binaries and source\"}],\"date\":\"14 June 2012\",\"museum\":true},\"5.4.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_3.php\"},\"source\":[{\"filename\":\"php-5.4.3.tar.bz2\",\"name\":\"PHP 5.4.3 (tar.bz2)\",\"md5\":\"51f9488bf8682399b802c48656315cac\",\"date\":\"08 May 2012\"},{\"filename\":\"php-5.4.3.tar.gz\",\"name\":\"PHP 5.4.3 (tar.gz)\",\"md5\":\"c9dccc89cc89d39e84f6e6f0cf1c8a65\",\"date\":\"08 May 2012\"}],\"date\":\"08 May 2012\",\"museum\":true},\"5.4.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_2.php\"},\"source\":[{\"filename\":\"php-5.4.2.tar.bz2\",\"name\":\"PHP 5.4.2 (tar.bz2)\",\"md5\":\"252a6546db3a26260b419a883c875615\",\"date\":\"03 May 2012\"},{\"filename\":\"php-5.4.2.tar.gz\",\"name\":\"PHP 5.4.2 (tar.gz)\",\"md5\":\"4b62935cbea385a23335f17d64d716c7\",\"date\":\"03 May 2012\"}],\"date\":\"03 May 2012\",\"museum\":true},\"5.4.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_1.php\"},\"source\":[{\"filename\":\"php-5.4.1.tar.bz2\",\"name\":\"PHP 5.4.1 (tar.bz2)\",\"md5\":\"5b9529ed89dbc48c498e9693d1af3caf\",\"date\":\"26 April 2012\"},{\"filename\":\"php-5.4.1.tar.gz\",\"name\":\"PHP 5.4.1 (tar.gz)\",\"md5\":\"acd566dbd70f855c19d17fc3c0e876a2\",\"date\":\"26 April 2012\"}],\"date\":\"26 April 2012\",\"museum\":true},\"5.4.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_4_0.php\"},\"source\":[{\"filename\":\"php-5.4.0.tar.bz2\",\"name\":\"PHP 5.4.0 (tar.bz2)\",\"md5\":\"04bb6f9d71ea86ba05685439d50db074\",\"date\":\"01 March 2012\"},{\"filename\":\"php-5.4.0.tar.gz\",\"name\":\"PHP 5.4.0 (tar.gz)\",\"md5\":\"46b72e274c6ea7e775245ffdb81c9ce5\",\"date\":\"01 March 2012\"}],\"date\":\"01 March 2012\",\"museum\":true},\"5.3.29\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_29.php\"},\"source\":[{\"filename\":\"php-5.3.29.tar.bz2\",\"name\":\"PHP 5.3.29 (tar.bz2)\",\"date\":\"14 Aug 2014\",\"sha256\":\"c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091\"},{\"filename\":\"php-5.3.29.tar.gz\",\"name\":\"PHP 5.3.29 (tar.gz)\",\"date\":\"14 Aug 2014\",\"sha256\":\"57cf097de3d6c3152dda342f62b1b2e9c988f4cfe300ccfe3c11f3c207a0e317\"},{\"filename\":\"php-5.3.29.tar.xz\",\"name\":\"PHP 5.3.29 (tar.xz)\",\"date\":\"14 Aug 2014\",\"sha256\":\"8438c2f14ab8f3d6cd2495aa37de7b559e33b610f9ab264f0c61b531bf0c262d\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.29 binaries and source\"}],\"date\":\"14 Aug 2014\",\"museum\":false},\"5.3.28\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_28.php\"},\"source\":[{\"filename\":\"php-5.3.28.tar.bz2\",\"name\":\"PHP 5.3.28 (tar.bz2)\",\"date\":\"12 Dec 2013\",\"sha256\":\"0cac960c651c4fbb3d21cf2f2b279a06e21948fb35a0d1439b97296cac1d8513\"},{\"filename\":\"php-5.3.28.tar.gz\",\"name\":\"PHP 5.3.28 (tar.gz)\",\"date\":\"12 Dec 2013\",\"sha256\":\"ace8fde82a4275d6dcec4e15feb047416e1813fea46e159dfd113298371396d0\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.28 binaries and source\"}],\"date\":\"11 Jul 2013\",\"museum\":false},\"5.3.27\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_27.php\"},\"source\":[{\"filename\":\"php-5.3.27.tar.bz2\",\"name\":\"PHP 5.3.27 (tar.bz2)\",\"date\":\"11 Jul 2013\",\"sha256\":\"e12db21c623b82a2244c4dd9b06bb75af20868c1b748a105a6829a5acc36b287\"},{\"filename\":\"php-5.3.27.tar.gz\",\"name\":\"PHP 5.3.27 (tar.gz)\",\"date\":\"11 Jul 2013\",\"sha256\":\"5ecd737fc79ad33b5c79a9784c0b4211d211ba682d4d721ac6ce975907a5b12b\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.27 binaries and source\"}],\"date\":\"11 Jul 2013\",\"museum\":false},\"5.3.26\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_26.php\"},\"source\":[{\"filename\":\"php-5.3.26.tar.bz2\",\"name\":\"PHP 5.3.26 (tar.bz2)\",\"md5\":\"d71db8d92edbb48beb5b645b55471139\",\"date\":\"06 Jun 2013\"},{\"filename\":\"php-5.3.26.tar.gz\",\"name\":\"PHP 5.3.26 (tar.gz)\",\"md5\":\"a430a48b8939fe1f8915ee38681b0afa\",\"date\":\"06 Jun 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.26 binaries and source\"}],\"date\":\"06 Jun 2013\",\"museum\":true},\"5.3.25\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_25.php\"},\"source\":[{\"filename\":\"php-5.3.25.tar.bz2\",\"name\":\"PHP 5.3.25 (tar.bz2)\",\"md5\":\"d71db8d92edbb48beb5b645b55471139\",\"date\":\"09 May 2013\"},{\"filename\":\"php-5.3.25.tar.gz\",\"name\":\"PHP 5.3.25 (tar.gz)\",\"md5\":\"a430a48b8939fe1f8915ee38681b0afa\",\"date\":\"09 May 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.25 binaries and source\"}],\"date\":\"09 May 2013\",\"museum\":true},\"5.3.24\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_24.php\"},\"source\":[{\"filename\":\"php-5.3.24.tar.bz2\",\"name\":\"PHP 5.3.24 (tar.bz2)\",\"md5\":\"9820604df98c648297dcd31ffb8214e8\",\"date\":\"11 Apr 2013\"},{\"filename\":\"php-5.3.24.tar.gz\",\"name\":\"PHP 5.3.24 (tar.gz)\",\"md5\":\"cb0311a6a5ed6ffff8f41f713f9d8e84\",\"date\":\"11 Apr 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.24 binaries and source\"}],\"date\":\"11 Apr 2013\",\"museum\":true},\"5.3.23\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_23.php\"},\"source\":[{\"filename\":\"php-5.3.23.tar.bz2\",\"name\":\"PHP 5.3.23 (tar.bz2)\",\"md5\":\"ab7bd1dd3bbc8364cb9fcaa2d79fb502\",\"date\":\"14 Mar 2013\"},{\"filename\":\"php-5.3.23.tar.gz\",\"name\":\"PHP 5.3.23 (tar.gz)\",\"md5\":\"9cd92b0de2b51dcd372f46fa623984f4\",\"date\":\"14 Mar 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.23 binaries and source\"}],\"date\":\"14 Mar 2013\",\"museum\":true},\"5.3.22\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_22.php\"},\"source\":[{\"filename\":\"php-5.3.22.tar.bz2\",\"name\":\"PHP 5.3.22 (tar.bz2)\",\"md5\":\"bf351426fc7f97aa13914062958a6100\",\"date\":\"21 Feb 2013\"},{\"filename\":\"php-5.3.22.tar.gz\",\"name\":\"PHP 5.3.22 (tar.gz)\",\"md5\":\"5008d8e70195d933e30bfbae3651b4ed\",\"date\":\"21 Feb 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.22 binaries and source\"}],\"date\":\"21 Feb 2013\",\"museum\":true},\"5.3.21\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_21.php\"},\"source\":[{\"filename\":\"php-5.3.21.tar.bz2\",\"name\":\"PHP 5.3.21 (tar.bz2)\",\"md5\":\"1b214fc19bb5f5c0902ba27c74d5f4a2\",\"date\":\"17 Jan 2013\"},{\"filename\":\"php-5.3.21.tar.gz\",\"name\":\"PHP 5.3.21 (tar.gz)\",\"md5\":\"f47fbe3407520e5d9d895168950aa683\",\"date\":\"17 Jan 2013\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.21 binaries and source\"}],\"date\":\"17 Jan 2013\",\"museum\":true},\"5.3.20\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_20.php\"},\"source\":[{\"filename\":\"php-5.3.20.tar.bz2\",\"name\":\"PHP 5.3.20 (tar.bz2)\",\"md5\":\"00241b9e89e93adf3baac32c56211e4e\",\"date\":\"20 Dec 2012\"},{\"filename\":\"php-5.3.20.tar.gz\",\"name\":\"PHP 5.3.20 (tar.gz)\",\"md5\":\"1e202851bf2ba1ee96d7dc5b48944119\",\"date\":\"20 Dec 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.20 binaries and source\"}],\"date\":\"20 Dec 2012\",\"museum\":true},\"5.3.19\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_19.php\"},\"source\":[{\"filename\":\"php-5.3.19.tar.bz2\",\"name\":\"PHP 5.3.19 (tar.bz2)\",\"md5\":\"e1d2a3ec7849d4b3032bd1abf1916aa4\",\"date\":\"22 Nov 2012\"},{\"filename\":\"php-5.3.19.tar.gz\",\"name\":\"PHP 5.3.19 (tar.gz)\",\"md5\":\"e1bcda4f14bb39ba041297abbf18f8d1\",\"date\":\"22 Nov 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.4\",\"name\":\"Windows 5.3.19 binaries and source\"}],\"date\":\"22 Nov 2012\",\"museum\":true},\"5.3.18\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_18.php\"},\"source\":[{\"filename\":\"php-5.3.18.tar.bz2\",\"name\":\"PHP 5.3.18 (tar.bz2)\",\"md5\":\"52539c19d0f261560af3c030143dfa8f\",\"date\":\"18 Oct 2012\"},{\"filename\":\"php-5.3.18.tar.gz\",\"name\":\"PHP 5.3.18 (tar.gz)\",\"md5\":\"ff2009aadc7c4d1444f6cd8e45f39a41\",\"date\":\"18 Oct 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.18 binaries and source\"}],\"date\":\"18 Oct 2012\",\"museum\":true},\"5.3.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_17.php\"},\"source\":[{\"filename\":\"php-5.3.17.tar.bz2\",\"name\":\"PHP 5.3.17 (tar.bz2)\",\"md5\":\"29ee79c941ee85d6c1555c176f12f7ef\",\"date\":\"13 Sep 2012\"},{\"filename\":\"php-5.3.17.tar.gz\",\"name\":\"PHP 5.3.17 (tar.gz)\",\"md5\":\"002e02e36c2cbcada8c49a7e5956d787\",\"date\":\"13 Sep 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.17 binaries and source\"}],\"date\":\"13 Sep 2012\",\"museum\":true},\"5.3.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_16.php\"},\"source\":[{\"filename\":\"php-5.3.16.tar.bz2\",\"name\":\"PHP 5.3.16 (tar.bz2)\",\"md5\":\"99cfd78531643027f60c900e792d21be\",\"date\":\"16 Aug 2012\"},{\"filename\":\"php-5.3.16.tar.gz\",\"name\":\"PHP 5.3.16 (tar.gz)\",\"md5\":\"59b776edeac2897ebe3712dcc94b6706\",\"date\":\"16 Aug 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.16 binaries and source\"}],\"date\":\"16 Aug 2012\",\"museum\":true},\"5.3.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_15.php\"},\"source\":[{\"filename\":\"php-5.3.15.tar.bz2\",\"name\":\"PHP 5.3.15 (tar.bz2)\",\"md5\":\"5cfcfd0fa4c4da7576f397073e7993cc\",\"date\":\"19 July 2012\"},{\"filename\":\"php-5.3.15.tar.gz\",\"name\":\"PHP 5.3.15 (tar.gz)\",\"md5\":\"7c885c79a611b89f3a1095fce6eae5c6\",\"date\":\"19 July 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.15 binaries and source\"}],\"date\":\"19 July 2012\",\"museum\":true},\"5.3.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_14.php\"},\"source\":[{\"filename\":\"php-5.3.14.tar.bz2\",\"name\":\"PHP 5.3.14 (tar.bz2)\",\"md5\":\"370be99c5cdc2e756c82c44d774933c8\",\"date\":\"14 June 2012\"},{\"filename\":\"php-5.3.14.tar.gz\",\"name\":\"PHP 5.3.14 (tar.gz)\",\"md5\":\"148730865242a031a638ee3bab4a9d4d\",\"date\":\"14 June 2012\"},{\"link\":\"http:\\\/\\\/windows.php.net\\\/download\\\/#php-5.3\",\"name\":\"Windows 5.3.14 binaries and source\"}],\"date\":\"14 June 2012\",\"museum\":true},\"5.3.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_13.php\"},\"source\":[{\"filename\":\"php-5.3.13.tar.bz2\",\"name\":\"PHP 5.3.13 (tar.bz2)\",\"md5\":\"370be99c5cdc2e756c82c44d774933c8\",\"date\":\"08 May 2012\"},{\"filename\":\"php-5.3.13.tar.gz\",\"name\":\"PHP 5.3.13 (tar.gz)\",\"md5\":\"179c67ce347680f468edbfc3c425476a\",\"date\":\"08 May 2012\"}],\"date\":\"08 May 2012\",\"museum\":true},\"5.3.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_12.php\"},\"source\":[{\"filename\":\"php-5.3.12.tar.bz2\",\"name\":\"PHP 5.3.12 (tar.bz2)\",\"md5\":\"cf02c29be279c506cbd4ffc2819d7c82\",\"date\":\"03 May 2012\"},{\"filename\":\"php-5.3.12.tar.gz\",\"name\":\"PHP 5.3.12 (tar.gz)\",\"md5\":\"aac80e478eb0785c50855ae8cefe735a\",\"date\":\"03 May 2012\"}],\"date\":\"03 May 2012\",\"museum\":true},\"5.3.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_11.php\"},\"source\":[{\"filename\":\"php-5.3.11.tar.bz2\",\"name\":\"PHP 5.3.11 (tar.bz2)\",\"md5\":\"5b9529ed89dbc48c498e9693d1af3caf\",\"date\":\"26 April 2012\"},{\"filename\":\"php-5.3.11.tar.gz\",\"name\":\"PHP 5.3.11 (tar.gz)\",\"md5\":\"acd566dbd70f855c19d17fc3c0e876a2\",\"date\":\"26 April 2012\"}],\"date\":\"26 April 2012\",\"museum\":true},\"5.3.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_10.php\"},\"source\":[{\"filename\":\"php-5.3.10.tar.bz2\",\"name\":\"PHP 5.3.10 (tar.bz2)\",\"md5\":\"816259e5ca7d0a7e943e56a3bb32b17f\",\"date\":\"02 February 2012\"},{\"filename\":\"php-5.3.10.tar.gz\",\"name\":\"PHP 5.3.10 (tar.gz)\",\"md5\":\"2b3d2d0ff22175685978fb6a5cbcdc13\",\"date\":\"02 February 2012\"}],\"date\":\"02 February 2012\",\"museum\":true},\"5.3.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_9.php\"},\"source\":[{\"filename\":\"php-5.3.9.tar.bz2\",\"name\":\"PHP 5.3.9 (tar.bz2)\",\"md5\":\"dd3288ed5c08cd61ac5bf619cb357521\",\"date\":\"10 January 2012\"},{\"filename\":\"php-5.3.9.tar.gz\",\"name\":\"PHP 5.3.9 (tar.gz)\",\"md5\":\"c79e374c61423beb64a69da1eb5526b7\",\"date\":\"10 January 2012\"}],\"date\":\"10 January 2012\",\"museum\":true},\"5.3.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_8.php\"},\"source\":[{\"filename\":\"php-5.3.8.tar.bz2\",\"name\":\"PHP 5.3.8 (tar.bz2)\",\"md5\":\"704cd414a0565d905e1074ffdc1fadfb\",\"date\":\"23 August 2011\"},{\"filename\":\"php-5.3.8.tar.gz\",\"name\":\"PHP 5.3.8 (tar.gz)\",\"md5\":\"f4ce40d5d156ca66a996dbb8a0e7666a\",\"date\":\"23 August 2011\"}],\"date\":\"23 August 2011\",\"museum\":true},\"5.3.7\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_7.php\"},\"source\":[{\"filename\":\"php-5.3.7.tar.bz2\",\"name\":\"PHP 5.3.7 (tar.bz2)\",\"md5\":\"2d47d003c96de4e88863ff38da61af33\",\"date\":\"18 August 2011\"},{\"filename\":\"php-5.3.7.tar.gz\",\"name\":\"PHP 5.3.7 (tar.gz)\",\"md5\":\"1ec460bf3a40cea4079ee80076558d51\",\"date\":\"18 August 2011\"}],\"date\":\"18 August 2011\",\"museum\":true},\"5.3.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_6.php\"},\"source\":[{\"filename\":\"php-5.3.6.tar.bz2\",\"name\":\"PHP 5.3.6 (tar.bz2)\",\"md5\":\"2286f5a82a6e8397955a0025c1c2ad98\",\"date\":\"19 March 2011\"},{\"filename\":\"php-5.3.6.tar.gz\",\"name\":\"PHP 5.3.6 (tar.gz)\",\"md5\":\"88a2b00047bc53afbbbdf10ebe28a57e\",\"date\":\"19 March 2011\"}],\"date\":\"19 March 2011\",\"museum\":true},\"5.3.5\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_5.php\"},\"source\":[{\"filename\":\"php-5.3.5.tar.bz2\",\"name\":\"PHP 5.3.5 (tar.bz2)\",\"md5\":\"8aaf20c95e91f25c5b6a591e5d6d61b9\",\"date\":\"06 January 2011\"},{\"filename\":\"php-5.3.5.tar.gz\",\"name\":\"PHP 5.3.5 (tar.gz)\",\"md5\":\"fb727a3ac72bf0ce37e1a20468a7bb81\",\"date\":\"06 January 2011\"}],\"date\":\"06 January 2011\",\"museum\":true},\"5.3.4\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_4.php\"},\"source\":[{\"filename\":\"php-5.3.4.tar.bz2\",\"name\":\"PHP 5.3.4 (tar.bz2)\",\"md5\":\"2c069d8f690933e3bf6a8741ed818150\",\"date\":\"09 December 2010\"},{\"filename\":\"php-5.3.4.tar.gz\",\"name\":\"PHP 5.3.4 (tar.gz)\",\"md5\":\"b69b36132899c5ca3bf155efa0218676\",\"date\":\"09 December 2010\"}],\"date\":\"09 December 2010\",\"museum\":true},\"5.2.17\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_17.php\"},\"source\":[{\"filename\":\"php-5.2.17.tar.bz2\",\"name\":\"PHP 5.2.17 (tar.bz2)\",\"md5\":\"b27947f3045220faf16e4d9158cbfe13\",\"date\":\"06 January 2011\"},{\"filename\":\"php-5.2.17.tar.gz\",\"name\":\"PHP 5.2.17 (tar.gz)\",\"md5\":\"04d321d5aeb9d3a051233dbd24220ef1\",\"date\":\"06 January 2011\"}],\"date\":\"06 January 2011\",\"museum\":true},\"5.2.16\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_16.php\"},\"source\":[{\"filename\":\"php-5.2.16.tar.bz2\",\"name\":\"PHP 5.2.16 (tar.bz2)\",\"md5\":\"3b0bd012bd53bac9a5fefca61eccd5c6\",\"date\":\"16 December 2010\"},{\"filename\":\"php-5.2.16.tar.gz\",\"name\":\"PHP 5.2.16 (tar.gz)\",\"md5\":\"68f2c92b5b33d131b1ea70ece9fc40ad\",\"date\":\"16 December 2010\"}],\"date\":\"16 December 2010\",\"museum\":true},\"5.2.15\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_15.php\"},\"source\":[{\"filename\":\"php-5.2.15.tar.bz2\",\"name\":\"PHP 5.2.15 (tar.bz2)\",\"md5\":\"d4ccad187b12835024980a0cea362893\",\"date\":\"09 December 2010\"},{\"filename\":\"php-5.2.15.tar.gz\",\"name\":\"PHP 5.2.15 (tar.gz)\",\"md5\":\"dbbb2beed6b51e05d134744f137091a9\",\"date\":\"09 December 2010\"}],\"date\":\"09 December 2010\",\"museum\":true},\"5.3.3\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_3.php\"},\"source\":[{\"filename\":\"php-5.3.3.tar.bz2\",\"name\":\"PHP 5.3.3 (tar.bz2)\",\"md5\":\"21ceeeb232813c10283a5ca1b4c87b48\",\"date\":\"22 July 2010\"},{\"filename\":\"php-5.3.3.tar.gz\",\"name\":\"PHP 5.3.3 (tar.gz)\",\"md5\":\"5adf1a537895c2ec933fddd48e78d8a2\",\"date\":\"22 July 2010\"}],\"date\":\"22 July 2010\",\"museum\":true},\"5.2.14\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_14.php\"},\"source\":[{\"filename\":\"php-5.2.14.tar.bz2\",\"name\":\"PHP 5.2.14 (tar.bz2)\",\"md5\":\"21ceeeb232813c10283a5ca1b4c87b48\",\"date\":\"22 July 2010\"},{\"filename\":\"php-5.2.14.tar.gz\",\"name\":\"PHP 5.2.14 (tar.gz)\",\"md5\":\"5adf1a537895c2ec933fddd48e78d8a2\",\"date\":\"22 July 2010\"}],\"date\":\"22 July 2010\",\"museum\":true},\"5.3.2\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_2.php\"},\"source\":[{\"filename\":\"php-5.3.2.tar.bz2\",\"name\":\"PHP 5.3.2 (tar.bz2)\",\"md5\":\"46f500816125202c48a458d0133254a4\",\"date\":\"04 Mar 2010\"},{\"filename\":\"php-5.3.2.tar.gz\",\"name\":\"PHP 5.3.2 (tar.gz)\",\"md5\":\"4480d7c6d6b4a86de7b8ec8f0c2d1871\",\"date\":\"04 Mar 2010\"}],\"date\":\"04 Mar 2010\",\"museum\":true},\"5.2.13\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_13.php\"},\"source\":[{\"filename\":\"php-5.2.13.tar.bz2\",\"name\":\"PHP 5.2.13 (tar.bz2)\",\"md5\":\"eb4d0766dc4fb9667f05a68b6041e7d1\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-5.2.13.tar.gz\",\"name\":\"PHP 5.2.13 (tar.gz)\",\"md5\":\"cdf95cdc1ebccccce9c96653fd593dd4\",\"date\":\"25 Feb 2010\"}],\"windows\":[{\"filename\":\"php-5.2.13-Win32.zip\",\"name\":\"PHP 5.2.13 zip package\",\"md5\":\"3074bad887d613acf992ebdfea0e4465\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-5.2.13-win32-installer.msi\",\"name\":\"PHP 5.2.13 installer\",\"md5\":\"891e3262428851ebe71d5432a97be6d5\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.13-Win32.zip\",\"name\":\"PHP 5.2.13 Win32 Debug Pack\",\"md5\":\"e3382d5acbb527d21b768766f563a75d\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-5.2.13-nts-Win32.zip\",\"name\":\"PHP 5.2.13 Non-thread-safe zip package\",\"md5\":\"a7bd052e7a1413b743c07ae37171980d\",\"date\":\"25 Feb 2010\",\"note\":\"\"},{\"filename\":\"php-5.2.13-nts-win32-installer.msi\",\"name\":\"PHP 5.2.13 Non-thread-safe installer\",\"md5\":\"d0e502db99565afde77b4f58f13fbad2\",\"date\":\"25 Feb 2010\"},{\"filename\":\"php-debug-pack-5.2.13-nts-Win32.zip\",\"name\":\"PHP 5.2.13 Non-thread-safe Win32 Debug Pack\",\"md5\":\"3693478973cd41752e2c0a1c3cddb997\",\"date\":\"25 Feb 2010\"}],\"date\":\"25 Feb 2010\",\"museum\":true},\"5.3.1\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_1.php\"},\"source\":[{\"filename\":\"php-5.3.1.tar.bz2\",\"name\":\"PHP 5.3.1 (tar.bz2)\",\"md5\":\"63e97ad450f0f7259e785100b634c797\",\"date\":\"19 Nov 2009\"},{\"filename\":\"php-5.3.1.tar.gz\",\"name\":\"PHP 5.3.1 (tar.gz)\",\"md5\":\"41fbb368d86acb13fc3519657d277681\",\"date\":\"19 Nov 2009\"}],\"date\":\"19 Nov 2009\",\"museum\":true},\"5.2.12\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_12.php\"},\"source\":[{\"filename\":\"php-5.2.12.tar.bz2\",\"name\":\"PHP 5.2.12 (tar.bz2)\",\"md5\":\"5b7077e366c7eeab34da31dd860a1923\",\"date\":\"17 December 2009\"},{\"filename\":\"php-5.2.12.tar.gz\",\"name\":\"PHP 5.2.12 (tar.gz)\",\"md5\":\"e6d6cc6570c77f60d8d4c99565d42ffd\",\"date\":\"17 December 2009\"}],\"windows\":[{\"filename\":\"php-5.2.12-Win32.zip\",\"name\":\"PHP 5.2.12 zip package\",\"md5\":\"e04f2944175dc19d7d007b5e889690b4\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.12-win32-installer.msi\",\"name\":\"PHP 5.2.12 installer\",\"md5\":\"df73529935bb855842e38afda8a295d7\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.12-Win32.zip\",\"name\":\"PHP 5.2.12 Win32 Debug Pack\",\"md5\":\"b21a5abb9e5bae4c657d0983986c4434\",\"date\":\"17 December 2009\"},{\"filename\":\"php-5.2.12-nts-Win32.zip\",\"name\":\"PHP 5.2.12 Non-thread-safe zip package\",\"md5\":\"ff0c67bb622c062f0820598e8d6bc12c\",\"date\":\"17 December 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.12-nts-win32-installer.msi\",\"name\":\"PHP 5.2.12 Non-thread-safe installer\",\"md5\":\"418656307a52c99f2175c748da31a9d8\",\"date\":\"17 December 2009\"},{\"filename\":\"php-debug-pack-5.2.12-nts-Win32.zip\",\"name\":\"PHP 5.2.12 Non-thread-safe Win32 Debug Pack\",\"md5\":\"e2620df81442ddefc0c3450be58540f9\",\"date\":\"17 December 2009\"}],\"date\":\"17 December 2009\",\"museum\":true},\"5.2.11\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_11.php\"},\"source\":[{\"filename\":\"php-5.2.11.tar.bz2\",\"name\":\"PHP 5.2.11 (tar.bz2)\",\"md5\":\"286bf34630f5643c25ebcedfec5e0a09\",\"date\":\"17 September 2009\"},{\"filename\":\"php-5.2.11.tar.gz\",\"name\":\"PHP 5.2.11 (tar.gz)\",\"md5\":\"0223d71f0d6987c06c54b7557ff47f1d\",\"date\":\"17 September 2009\"}],\"windows\":[{\"filename\":\"php-5.2.11-Win32.zip\",\"name\":\"PHP 5.2.11 zip package\",\"md5\":\"adac50ae1449b76f10ff1865bb4f94f1\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.11-win32-installer.msi\",\"name\":\"PHP 5.2.11 installer\",\"md5\":\"3cedc71fc90f88239d629cdb735d87c0\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.11-Win32.zip\",\"name\":\"PHP 5.2.11 Win32 Debug Pack\",\"md5\":\"38cb1b783dd08dff41f445b582d2ffed\",\"date\":\"17 September 2009\"},{\"filename\":\"php-5.2.11-nts-Win32.zip\",\"name\":\"PHP 5.2.11 Non-thread-safe zip package\",\"md5\":\"b724475450a13af4cd99c518fd495340\",\"date\":\"17 September 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.11-nts-win32-installer.msi\",\"name\":\"PHP 5.2.11 Non-thread-safe installer\",\"md5\":\"4fe1344093e26c2a51a82094bac131ad\",\"date\":\"17 September 2009\"},{\"filename\":\"php-debug-pack-5.2.11-nts-Win32.zip\",\"name\":\"PHP 5.2.11 Non-thread-safe Win32 Debug Pack\",\"md5\":\"19d026d6e4322dc64694010ae254e978\",\"date\":\"17 September 2009\"}],\"date\":\"17 September 2009\",\"museum\":true},\"5.3.0\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_3_0.php\"},\"source\":[{\"filename\":\"php-5.3.0.tar.bz2\",\"name\":\"PHP 5.3.0 (tar.bz2)\",\"md5\":\"846760cd655c98dfd86d6d97c3d964b0\",\"date\":\"30 June 2009\"},{\"filename\":\"php-5.3.0.tar.gz\",\"name\":\"PHP 5.3.0 (tar.gz)\",\"md5\":\"f4905eca4497da3f0beb5c96863196b4\",\"date\":\"30 June 2009\"}],\"date\":\"30 June 2009\",\"museum\":true},\"5.2.10\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_10.php\"},\"source\":[{\"filename\":\"php-5.2.10.tar.bz2\",\"name\":\"PHP 5.2.10 (tar.bz2)\",\"md5\":\"15c7b5a87f57332d6fc683528e28247b\",\"date\":\"18 June 2009\"},{\"filename\":\"php-5.2.10.tar.gz\",\"name\":\"PHP 5.2.10 (tar.gz)\",\"md5\":\"85753ba2909ac9fae5bca516adbda9e9\",\"date\":\"18 June 2009\"}],\"windows\":[{\"filename\":\"php-5.2.10-Win32.zip\",\"name\":\"PHP 5.2.10 zip package\",\"md5\":\"95ae7ccfcd05b6c81c93aa2e9e792f9e\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.10-win32-installer.msi\",\"name\":\"PHP 5.2.10 installer\",\"md5\":\"38b65bc57f64c66ff73f6f4e2db2cbb4\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.10-Win32.zip\",\"name\":\"PHP 5.2.10 Win32 Debug Pack\",\"md5\":\"f6bdea0e1f71ca46f78e78c86e86606\",\"date\":\"18 June 2009\"},{\"filename\":\"php-5.2.10-nts-Win32.zip\",\"name\":\"PHP 5.2.10 Non-thread-safe zip package\",\"md5\":\"b1c53e6f525133647e621a9c95b09e65\",\"date\":\"18 June 2009\",\"note\":\"\"},{\"filename\":\"php-5.2.10-nts-win32-installer.msi\",\"name\":\"PHP 5.2.10 Non-thread-safe installer\",\"md5\":\"e341deb2872d3f8f4589593da88bbede\",\"date\":\"18 June 2009\"},{\"filename\":\"php-debug-pack-5.2.10-nts-Win32.zip\",\"name\":\"PHP 5.2.10 Non-thread-safe Win32 Debug Pack\",\"md5\":\"760a141c861a789f928b91c655c9d58\",\"date\":\"18 June 2009\"}],\"date\":\"18 June 2009\",\"museum\":true},\"5.2.9\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_9.php\"},\"source\":[{\"filename\":\"php-5.2.9.tar.bz2\",\"name\":\"PHP 5.2.9 (tar.bz2)\",\"md5\":\"280d6cda7f72a4fc6de42fda21ac2db7\",\"date\":\"26 February 2009\"},{\"filename\":\"php-5.2.9.tar.gz\",\"name\":\"PHP 5.2.9 (tar.gz)\",\"md5\":\"98b647561dc664adefe296106056cf11\",\"date\":\"26 February 2009\"}],\"windows\":[{\"filename\":\"php-5.2.9-2-Win32.zip\",\"name\":\"PHP 5.2.9-2 zip package\",\"md5\":\"316b9c81bab08e6547a730315ea2abfd\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-5.2.9-2-win32-installer.msi\",\"name\":\"PHP 5.2.9-2 installer\",\"md5\":\"e2162faa3467aed01651df4269aa6944\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-debug-pack-5.2.9-2-Win32.zip\",\"name\":\"PHP 5.2.9 Win32 Debug Pack\",\"md5\":\"b52e9a152e105c7391c832fdfe0fa06f\",\"date\":\"8 April 2009\"},{\"filename\":\"php-5.2.9-2-nts-Win32.zip\",\"name\":\"PHP 5.2.9-2 Non-thread-safe zip package\",\"md5\":\"8f85777941f7722fcbfe08e7de358f7d\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-5.2.9-2-nts-win32-installer.msi\",\"name\":\"PHP 5.2.9-2 Non-thread-safe installer\",\"md5\":\"4e7a1bec2b268d3d2d28cb89f629b680\",\"date\":\"8 April 2009\",\"note\":\"Updated 9th of April: Added the missing oci8 DLL\"},{\"filename\":\"php-debug-pack-5.2.9-2-nts-Win32.zip\",\"name\":\"PHP 5.2.9 Non-thread-safe Win32 Debug Pack\",\"md5\":\"4b7b695a257527f2896312f98dc30fd3\",\"date\":\"8 April 2009\"}],\"date\":\"26 February 2009\",\"museum\":true},\"5.2.8\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_8.php\"},\"source\":[{\"filename\":\"php-5.2.8.tar.bz2\",\"name\":\"PHP 5.2.8 (tar.bz2)\",\"md5\":\"8760a833cf10433d3e72271ab0d0eccf\",\"date\":\"08 December 2008\"},{\"filename\":\"php-5.2.8.tar.gz\",\"name\":\"PHP 5.2.8 (tar.gz)\",\"md5\":\"e748cace3cfecb66fb6de9a945f98e2a\",\"date\":\"08 December 2008\"}],\"windows\":[{\"filename\":\"php-5.2.8-Win32.zip\",\"name\":\"PHP 5.2.8 zip package\",\"md5\":\"71511834881753ea0906f2bca91632b9\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-5.2.8-win32-installer.msi\",\"name\":\"PHP 5.2.8 installer\",\"md5\":\"159def484800411060a9eacccafd2253\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-debug-pack-5.2.8-Win32.zip\",\"name\":\"PHP 5.2.8 Win32 Debug Pack\",\"md5\":\"fabc6e79c1c66dc80320165336b5ed54\",\"date\":\"08 December 2008\"},{\"filename\":\"php-5.2.8-nts-Win32.zip\",\"name\":\"PHP 5.2.8 Non-thread-safe zip package\",\"md5\":\"207abb02054c5ce996bc350352224acc\",\"date\":\"08 December 2008\",\"note\":\"\"},{\"filename\":\"php-5.2.8-nts-win32-installer.msi\",\"name\":\"PHP 5.2.8 Non-thread-safe installer\",\"md5\":\"d4490964818542c416644b3d67f5b350\",\"date\":\"08 December 2008\"},{\"filename\":\"php-debug-pack-5.2.8-nts-Win32.zip\",\"name\":\"PHP 5.2.8 Non-thread-safe Win32 Debug Pack\",\"md5\":\"240566ce66761ab076ae9901547b7ce2\",\"date\":\"08 December 2008\"}],\"date\":\"08 December 2008\",\"museum\":true},\"5.2.6\":{\"announcement\":{\"English\":\"\\\/releases\\\/5_2_6.php\"},\"source\":[{\"filename\":\"php-5.2.6.tar.bz2\",\"name\":\"PHP 5.2.6 (tar.bz2)\",\"md5\":\"7380ffecebd95c6edb317ef861229ebd\",\"date\":\"01 May 2008\"},{\"filename\":\"php-5.2.6.tar.gz\",\"name\":\"PHP 5.2.6 (tar.gz)\",\"md5\":\"1720f95f26c506338f0dba3a51906bbd\",\"date\":\"01 May 2008\"}],\"windows\":[{\"filename\":\"php-5.2.6-Win32.zip\",\"name\":\"PHP 5.2.6 zip package\",\"md5\":\"c7e5010114f58282858d7d78e6509cdc\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-win32-installer.msi\",\"name\":\"PHP 5.2.6 installer\",\"md5\":\"94e551037e7c9c056f90179f351c0560\",\"date\":\"6 May 2008\",\"note\":\"Update May 6th: Added missing XSL and IMAP extension\"},{\"filename\":\"pecl-5.2.6-Win32.zip\",\"name\":\"PECL 5.2.6 Win32 binaries\",\"md5\":\"f0e7b245589d705eef731b51142d5def\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-debug-pack-5.2.6-Win32.zip\",\"name\":\"PHP 5.2.6 Win32 Debug Pack\",\"md5\":\"24dde2726e3e0cefbb83c0c375ea1f84\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-nts-Win32.zip\",\"name\":\"PHP 5.2.6 Non-thread-safe zip package\",\"md5\":\"1d3661a086f352ec7e318e7c2eeba4de\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"php-5.2.6-nts-win32-installer.msi\",\"name\":\"PHP 5.2.6 Non-thread-safe installer\",\"md5\":\"96a2326b16bda488734d3956a48201b7\",\"date\":\"6 May 2008\",\"note\":\"Update May 6th: Added missing XSL and IMAP extension\"},{\"filename\":\"php-debug-pack-5.2.6-nts-Win32.zip\",\"name\":\"PHP 5.2.6 Win32 Debug Pack\",\"md5\":\"4c1fd96c8a78e1896d37da81467ff70d\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"},{\"filename\":\"pecl-5.2.6-nts-Win32.zip\",\"name\":\"PECL 5.2.6 Non-thread-safe Win32 binaries\",\"md5\":\"62b102221920092dfefc08756aa3e926\",\"date\":\"3 May 2008\",\"note\":\"Update May 3rd: Added missing XSL and IMAP extension\"}],\"date\":\"01 May 2008\",\"museum\":true},\"5.2.5\":{\"date\":\"08 November 2007\",\"source\":[{\"filename\":\"php-5.2.5.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"1fe14ca892460b09f06729941a1bb605\"},{\"filename\":\"php-5.2.5.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"61a0e1661b70760acc77bc4841900b7a\"}],\"windows\":[{\"filename\":\"php-5.2.5-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"a1e31c0d872ab030a2256b1cd6d3b7d1\"},{\"filename\":\"pecl-5.2.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.5\",\"md5\":\"a3553b61c9332d08a5044cf9bf89f2df\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_5.php\"},\"museum\":true},\"5.2.4\":{\"date\":\"30 August 2007\",\"source\":[{\"filename\":\"php-5.2.4.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"55c97a671fdabf462cc7a82971a656d2\"},{\"filename\":\"php-5.2.4.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"0826e231c3148b29fd039d7a8c893ad3\"}],\"windows\":[{\"filename\":\"php-5.2.4-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"979b8a305b028b296b97ed72322026b2\"},{\"filename\":\"pecl-5.2.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.4\",\"md5\":\"dd98dfe607ceb98e727c394d5bd679fb\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_4.php\"},\"museum\":true},\"5.2.3\":{\"date\":\"31 May 2007\",\"source\":[{\"filename\":\"php-5.2.3.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"eb50b751c8e1ced05bd012d5a0e4dec3\"},{\"filename\":\"php-5.2.3.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"df79b04d63fc4c1ccb6d8ea58a9cf3ac\"}],\"windows\":[{\"filename\":\"php-5.2.3-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"ff6e5dc212823009e68f26d66d85cbac\"},{\"filename\":\"pecl-5.2.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.3\",\"md5\":\"0480ffaf5a5333e83d90d75cece54748\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_3.php\"},\"museum\":true},\"5.2.2\":{\"date\":\"03 May 2007\",\"source\":[{\"filename\":\"php-5.2.2.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"d084337867d70b50a10322577be0e44e\"},{\"filename\":\"php-5.2.2.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"7a920d0096900b2b962b21dc5c55fe3c\"}],\"windows\":[{\"filename\":\"php-5.2.2-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"634cf45c34f80dfb1284cabf1bbb1417\"},{\"filename\":\"pecl-5.2.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.2\",\"md5\":\"5d206368799dfbac983d83954328ae3a\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_2.php\"},\"museum\":true},\"5.2.1\":{\"date\":\"08 Feb 2007\",\"source\":[{\"filename\":\"php-5.2.1.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"261218e3569a777dbd87c16a15f05c8d\"},{\"filename\":\"php-5.2.1.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"604eaee2b834bb037d2c83e53e300d3f\"}],\"windows\":[{\"filename\":\"php-5.2.1-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"682dd66fb03c7dd24c522f474e1b04b6\"},{\"filename\":\"pecl-5.2.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.1\",\"md5\":\"dc8b394146faf7effa6f26df02e8e534\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_1.php\"},\"museum\":true},\"5.2.0\":{\"date\":\"02 Nov 2006\",\"source\":[{\"filename\":\"php-5.2.0.tar.bz2\",\"name\":\"Source (tar.bz2)\",\"md5\":\"e6029fafcee029edcfa2ceed7a005333\"},{\"filename\":\"php-5.2.0.tar.gz\",\"name\":\"Source (tar.gz)\",\"md5\":\"52d7e8b3d8d7573e75c97340f131f988\"}],\"windows\":[{\"filename\":\"php-5.2.0-Win32.zip\",\"name\":\"Windows binary\",\"md5\":\"910734e96f41190020272d80b82ce553\"},{\"filename\":\"pecl-5.2.0-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.2.0\",\"md5\":\"638f5997884ae3ce35d2b3ec12f399b2\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_2_0.php\"},\"museum\":true},\"5.1.6\":{\"date\":\"24 Aug 2006\",\"source\":[{\"filename\":\"php-5.1.6.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.6.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.6-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"pecl-5.1.6-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.6\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_6.php\"},\"museum\":true},\"5.1.5\":{\"date\":\"17 Aug 2006\",\"source\":[{\"filename\":\"php-5.1.5.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.5.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.5-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.5\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_5.php\"},\"museum\":true},\"5.1.4\":{\"date\":\"04 May 2006\",\"source\":[{\"filename\":\"php-5.1.4.tar.bz2\",\"name\":\"Source (tar.bz2)\"},{\"filename\":\"php-5.1.4.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.4-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.4-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.4\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_4.php\"},\"museum\":true},\"5.1.3\":{\"date\":\"02 May 2006\",\"source\":[{\"filename\":\"php-5.1.3.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.3-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.3-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.3\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_3.php\"},\"museum\":true},\"5.1.2\":{\"date\":\"12 Jan 2006\",\"source\":[{\"filename\":\"php-5.1.2.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.2-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.2-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.2\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_2.php\"},\"museum\":true},\"5.1.1\":{\"date\":\"28 Nov 2005\",\"source\":[{\"filename\":\"php-5.1.1.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.1-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.1-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.1.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.1.1\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_1.php\"},\"museum\":true},\"5.1.0\":{\"date\":\"24 Nov 2005\",\"source\":[{\"filename\":\"php-5.1.0.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.1.0-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.1.0-installer.exe\",\"name\":\"Windows installer\"}],\"announcement\":{\"English\":\"\\\/releases\\\/5_1_0.php\"},\"museum\":true},\"5.0.5\":{\"date\":\"05 Sep 2005\",\"source\":[{\"filename\":\"php-5.0.5.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.5-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.5-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.5-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.5\"}],\"museum\":true},\"5.0.4\":{\"date\":\"31 Mar 2005\",\"source\":[{\"filename\":\"php-5.0.4.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.4-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.4-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.4-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.4\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/55\"},\"museum\":true},\"5.0.3\":{\"date\":\"15 Dec 2004\",\"source\":[{\"filename\":\"php-5.0.3.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.3-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.3-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.3-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.3\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/54\"},\"museum\":true},\"5.0.2\":{\"date\":\"23 Sep 2004\",\"source\":[{\"filename\":\"php-5.0.2.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.2-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.2-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.2-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.2\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/53\"},\"museum\":true},\"5.0.1\":{\"date\":\"12 Aug 2004\",\"source\":[{\"filename\":\"php-5.0.1.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.1-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"pecl-5.0.1-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.1\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/51\"},\"museum\":true},\"5.0.0\":{\"date\":\"13 July 2004\",\"source\":[{\"filename\":\"php-5.0.0.tar.gz\",\"name\":\"Source (tar.gz)\"}],\"windows\":[{\"filename\":\"php-5.0.0-Win32.zip\",\"name\":\"Windows binary\"},{\"filename\":\"php-5.0.0-installer.exe\",\"name\":\"Windows installer\"},{\"filename\":\"pecl-5.0.0-Win32.zip\",\"name\":\"Collection of PECL modules for PHP 5.0.0\"}],\"announcement\":{\"English\":\"http:\\\/\\\/news.php.net\\\/php.announce\\\/50\"},\"museum\":true}}" + } +}] \ No newline at end of file diff --git a/tests/fixtures/vcr_cassettes/Downloader/DownloaderTest b/tests/fixtures/vcr_cassettes/Downloader/DownloaderTest new file mode 100644 index 000000000..ac8d688e1 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/Downloader/DownloaderTest @@ -0,0 +1,30 @@ +[{ + "request": { + "method": "GET", + "url": "http:\/\/httpbin.org\/", + "headers": { + "Host": "httpbin.org" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Credentials": "true", + "Access-Control-Allow-Origin": "*", + "Content-Type": "text\/html; charset=utf-8", + "Date": "Sun, 08 Dec 2019 06:46:39", + "Referrer-Policy": "no-referrer-when-downgrade", + "Server": "nginx", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "DENY", + "X-XSS-Protection": "1; mode=block", + "Content-Length": "9593", + "Connection": "keep-alive" + }, + "body": "\n\n\n\n \n httpbin.org<\/title>\n <link href=\"https:\/\/fonts.googleapis.com\/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700\"\n rel=\"stylesheet\">\n <link rel=\"stylesheet\" type=\"text\/css\" href=\"\/flasgger_static\/swagger-ui.css\">\n <link rel=\"icon\" type=\"image\/png\" href=\"\/static\/favicon.ico\" sizes=\"64x64 32x32 16x16\" \/>\n <style>\n html {\n box-sizing: border-box;\n overflow: -moz-scrollbars-vertical;\n overflow-y: scroll;\n }\n\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n body {\n margin: 0;\n background: #fafafa;\n }\n <\/style>\n<\/head>\n\n<body>\n <a href=\"https:\/\/github.com\/requests\/httpbin\" class=\"github-corner\" aria-label=\"View source on Github\">\n <svg width=\"80\" height=\"80\" viewBox=\"0 0 250 250\" style=\"fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;\"\n aria-hidden=\"true\">\n <path d=\"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z\"><\/path>\n <path d=\"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2\"\n fill=\"currentColor\" style=\"transform-origin: 130px 106px;\" class=\"octo-arm\"><\/path>\n <path d=\"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z\"\n fill=\"currentColor\" class=\"octo-body\"><\/path>\n <\/svg>\n <\/a>\n <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" style=\"position:absolute;width:0;height:0\">\n <defs>\n <symbol viewBox=\"0 0 20 20\" id=\"unlocked\">\n <path d=\"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z\"><\/path>\n <\/symbol>\n\n <symbol viewBox=\"0 0 20 20\" id=\"locked\">\n <path d=\"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z\"\n \/>\n <\/symbol>\n\n <symbol viewBox=\"0 0 20 20\" id=\"close\">\n <path d=\"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z\"\n \/>\n <\/symbol>\n\n <symbol viewBox=\"0 0 20 20\" id=\"large-arrow\">\n <path d=\"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z\"\n \/>\n <\/symbol>\n\n <symbol viewBox=\"0 0 20 20\" id=\"large-arrow-down\">\n <path d=\"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z\"\n \/>\n <\/symbol>\n\n\n <symbol viewBox=\"0 0 24 24\" id=\"jump-to\">\n <path d=\"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z\" \/>\n <\/symbol>\n\n <symbol viewBox=\"0 0 24 24\" id=\"expand\">\n <path d=\"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z\" \/>\n <\/symbol>\n\n <\/defs>\n <\/svg>\n\n\n <div id=\"swagger-ui\">\n <div data-reactroot=\"\" class=\"swagger-ui\">\n <div>\n <div class=\"information-container wrapper\">\n <section class=\"block col-12\">\n <div class=\"info\">\n <hgroup class=\"main\">\n <h2 class=\"title\">httpbin.org\n <small>\n <pre class=\"version\">0.9.2<\/pre>\n <\/small>\n <\/h2>\n <pre class=\"base-url\">[ Base URL: httpbin.org\/ ]<\/pre>\n <\/hgroup>\n <div class=\"description\">\n <div class=\"markdown\">\n <p>A simple HTTP Request & Response Service.\n <br>\n <br>\n <b>Run locally: <\/b>\n <code>$ docker run -p 80:80 kennethreitz\/httpbin<\/code>\n <\/p>\n <\/div>\n <\/div>\n <div>\n <div>\n <a href=\"https:\/\/kennethreitz.org\" target=\"_blank\">the developer - Website<\/a>\n <\/div>\n <a href=\"mailto:me@kennethreitz.org\">Send email to the developer<\/a>\n <\/div>\n <\/div>\n <!-- ADDS THE LOADER SPINNER -->\n <div class=\"loading-container\">\n <div class=\"loading\"><\/div>\n <\/div>\n\n <\/section>\n <\/div>\n <\/div>\n <\/div>\n <\/div>\n\n\n <div class='swagger-ui'>\n <div class=\"wrapper\">\n <section class=\"clear\">\n <span style=\"float: right;\">\n [Powered by\n <a target=\"_blank\" href=\"https:\/\/github.com\/rochacbruno\/flasgger\">Flasgger<\/a>]\n <br>\n <\/span>\n <\/section>\n <\/div>\n <\/div>\n\n\n\n <script src=\"\/flasgger_static\/swagger-ui-bundle.js\"> <\/script>\n <script src=\"\/flasgger_static\/swagger-ui-standalone-preset.js\"> <\/script>\n <script src='\/flasgger_static\/lib\/jquery.min.js' type='text\/javascript'><\/script>\n <script>\n\n window.onload = function () {\n \n\n fetch(\"\/spec.json\")\n .then(function (response) {\n response.json()\n .then(function (json) {\n var current_protocol = window.location.protocol.slice(0, -1);\n if (json.schemes[0] != current_protocol) {\n \/\/ Switches scheme to the current in use\n var other_protocol = json.schemes[0];\n json.schemes[0] = current_protocol;\n json.schemes[1] = other_protocol;\n\n }\n json.host = window.location.host; \/\/ sets the current host\n\n const ui = SwaggerUIBundle({\n spec: json,\n validatorUrl: null,\n dom_id: '#swagger-ui',\n deepLinking: true,\n jsonEditor: true,\n docExpansion: \"none\",\n apisSorter: \"alpha\",\n \/\/operationsSorter: \"alpha\",\n presets: [\n SwaggerUIBundle.presets.apis,\n \/\/ yay ES6 modules \u2198\n Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default\n ],\n plugins: [\n SwaggerUIBundle.plugins.DownloadUrl\n ],\n \n \/\/ layout: \"StandaloneLayout\" \/\/ uncomment to enable the green top header\n })\n\n window.ui = ui\n\n \/\/ uncomment to rename the top brand if layout is enabled\n \/\/ $(\".topbar-wrapper .link span\").replaceWith(\"<span>httpbin<\/span>\");\n })\n })\n}\n <\/script> <div class='swagger-ui'>\n <div class=\"wrapper\">\n <section class=\"block col-12 block-desktop col-12-desktop\">\n <div>\n\n <h2>Other Utilities<\/h2>\n\n <ul>\n <li>\n <a href=\"\/forms\/post\">HTML form<\/a> that posts to \/post \/forms\/post<\/li>\n <\/ul>\n\n <br \/>\n <br \/>\n <\/div>\n <\/section>\n <\/div>\n<\/div>\n<\/body>\n\n<\/html>" + } +}] diff --git a/tests/fixtures/vcr_cassettes/Extension/KnownCommandTest b/tests/fixtures/vcr_cassettes/Extension/KnownCommandTest new file mode 100644 index 000000000..23ac745f1 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/Extension/KnownCommandTest @@ -0,0 +1,107 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/pecl.php.net\/rest\/r\/xdebug\/allreleases.xml", + "headers": { + "Host": "pecl.php.net" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Date": "Sun, 08 Dec 2019 06:51:14 GMT", + "Server": "Apache\/2.4.25 (Debian)", + "Last-Modified": "Mon, 02 Dec 2019 10:52:52 GMT", + "ETag": "\"be5-598b6619cd7a1\"", + "Accept-Ranges": "bytes", + "Content-Length": "3045", + "Vary": "Accept-Encoding", + "Strict-Transport-Security": "max-age=31536000", + "Content-Type": "application\/xml" + }, + "body": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<a xmlns=\"http:\/\/pear.php.net\/dtd\/rest.allreleases\"\n xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xsi:schemaLocation=\"http:\/\/pear.php.net\/dtd\/rest.allreleases\n http:\/\/pear.php.net\/dtd\/rest.allreleases.xsd\">\n <p>xdebug<\/p>\n <c>pecl.php.net<\/c>\n <r><v>2.8.1<\/v><s>stable<\/s><\/r>\n <r><v>2.8.0<\/v><s>stable<\/s><\/r>\n <r><v>2.8.0beta2<\/v><s>beta<\/s><\/r>\n <r><v>2.8.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>2.8.0alpha1<\/v><s>beta<\/s><\/r>\n <r><v>2.7.2<\/v><s>stable<\/s><\/r>\n <r><v>2.7.1<\/v><s>stable<\/s><\/r>\n <r><v>2.7.0<\/v><s>stable<\/s><\/r>\n <r><v>2.7.0RC2<\/v><s>beta<\/s><\/r>\n <r><v>2.7.0RC1<\/v><s>beta<\/s><\/r>\n <r><v>2.7.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>2.6.1<\/v><s>stable<\/s><\/r>\n <r><v>2.7.0alpha1<\/v><s>beta<\/s><\/r>\n <r><v>2.6.0<\/v><s>stable<\/s><\/r>\n <r><v>2.6.0RC2<\/v><s>beta<\/s><\/r>\n <r><v>2.6.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>2.6.0alpha1<\/v><s>beta<\/s><\/r>\n <r><v>2.5.5<\/v><s>stable<\/s><\/r>\n <r><v>2.5.4<\/v><s>stable<\/s><\/r>\n <r><v>2.5.3<\/v><s>stable<\/s><\/r>\n <r><v>2.5.2<\/v><s>stable<\/s><\/r>\n <r><v>2.5.1<\/v><s>stable<\/s><\/r>\n <r><v>2.5.0<\/v><s>stable<\/s><\/r>\n <r><v>2.5.0RC1<\/v><s>stable<\/s><\/r>\n <r><v>2.4.1<\/v><s>stable<\/s><\/r>\n <r><v>2.4.0<\/v><s>stable<\/s><\/r>\n <r><v>2.4.0RC4<\/v><s>beta<\/s><\/r>\n <r><v>2.4.0RC3<\/v><s>beta<\/s><\/r>\n <r><v>2.4.0RC2<\/v><s>beta<\/s><\/r>\n <r><v>2.4.0RC1<\/v><s>beta<\/s><\/r>\n <r><v>2.4.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>2.3.3<\/v><s>stable<\/s><\/r>\n <r><v>2.3.2<\/v><s>stable<\/s><\/r>\n <r><v>2.3.1<\/v><s>stable<\/s><\/r>\n <r><v>2.3.0<\/v><s>stable<\/s><\/r>\n <r><v>2.2.7<\/v><s>stable<\/s><\/r>\n <r><v>2.2.6<\/v><s>stable<\/s><\/r>\n <r><v>2.2.5<\/v><s>stable<\/s><\/r>\n <r><v>2.2.4<\/v><s>stable<\/s><\/r>\n <r><v>2.2.3<\/v><s>stable<\/s><\/r>\n <r><v>2.2.2<\/v><s>stable<\/s><\/r>\n <r><v>2.2.1<\/v><s>stable<\/s><\/r>\n <r><v>2.2.0<\/v><s>stable<\/s><\/r>\n <r><v>2.2.0RC2<\/v><s>stable<\/s><\/r>\n <r><v>2.2.0RC1<\/v><s>stable<\/s><\/r>\n <r><v>2.1.4<\/v><s>stable<\/s><\/r>\n <r><v>2.1.3<\/v><s>stable<\/s><\/r>\n <r><v>2.1.2<\/v><s>stable<\/s><\/r>\n <r><v>2.1.1<\/v><s>stable<\/s><\/r>\n <r><v>2.1.1RC1<\/v><s>beta<\/s><\/r>\n <r><v>2.1.0<\/v><s>stable<\/s><\/r>\n <r><v>2.1.0RC1<\/v><s>beta<\/s><\/r>\n <r><v>2.1.0beta3<\/v><s>beta<\/s><\/r>\n <r><v>2.1.0beta2<\/v><s>beta<\/s><\/r>\n <r><v>2.1.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>2.0.5<\/v><s>stable<\/s><\/r>\n <r><v>2.0.4<\/v><s>stable<\/s><\/r>\n <r><v>2.0.3<\/v><s>stable<\/s><\/r>\n <r><v>2.0.2<\/v><s>stable<\/s><\/r>\n <r><v>2.0.1<\/v><s>stable<\/s><\/r>\n <r><v>2.0.0<\/v><s>stable<\/s><\/r>\n <r><v>2.0.0RC4<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0RC3<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0RC2<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0RC1<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta6<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta5<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta4<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta3<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta2<\/v><s>beta<\/s><\/r>\n <r><v>2.0.0beta1<\/v><s>beta<\/s><\/r>\n <r><v>1.3.2<\/v><s>stable<\/s><\/r>\n <r><v>1.3.1<\/v><s>stable<\/s><\/r>\n <r><v>1.3.0<\/v><s>stable<\/s><\/r>\n <r><v>1.3.0rc2<\/v><s>beta<\/s><\/r>\n <r><v>1.3.0rc1<\/v><s>beta<\/s><\/r>\n <r><v>1.2.0<\/v><s>stable<\/s><\/r>\n<\/a>" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tags", + "headers": { + "Host": "api.github.com" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Date": "Sun, 08 Dec 2019 06:51:14 GMT", + "Content-Type": "application\/json; charset=utf-8", + "Content-Length": "13351", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "57", + "X-RateLimit-Reset": "1575791474", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": "Accept, Accept-Encoding", + "ETag": "\"d1c4b980211e7439383903dd9bc8f767\"", + "Last-Modified": "Sat, 07 Dec 2019 18:41:39 GMT", + "X-GitHub-Media-Type": "github.v3; format=json", + "Link": "<https:\/\/api.github.com\/repositories\/2854337\/tags?page=2>; rel=\"next\", <https:\/\/api.github.com\/repositories\/2854337\/tags?page=4>; rel=\"last\"", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "E43E:3C08:3CC2912:48006DE:5DEC9D62" + }, + "body": "[\n {\n \"name\": \"v4.0.0-rc.3\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-rc.3\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-rc.3\",\n \"commit\": {\n \"sha\": \"c4a804a70c9b89728f010b23935f450c79690bd7\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/c4a804a70c9b89728f010b23935f450c79690bd7\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtcmMuMw==\"\n },\n {\n \"name\": \"v4.0.0-rc.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-rc.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-rc.2\",\n \"commit\": {\n \"sha\": \"95484a06ff9f1f4624b83761aba4d9222026788f\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/95484a06ff9f1f4624b83761aba4d9222026788f\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtcmMuMg==\"\n },\n {\n \"name\": \"v4.0.0-rc.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-rc.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-rc.1\",\n \"commit\": {\n \"sha\": \"a48b31967a1ce27c10cbed61bee42e0c90addc86\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/a48b31967a1ce27c10cbed61bee42e0c90addc86\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtcmMuMQ==\"\n },\n {\n \"name\": \"v4.0.0-beta.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-beta.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-beta.2\",\n \"commit\": {\n \"sha\": \"3d76cdaee5898d9566f59b8996c4ddbe4b29f729\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/3d76cdaee5898d9566f59b8996c4ddbe4b29f729\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYmV0YS4y\"\n },\n {\n \"name\": \"v4.0.0-beta.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-beta.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-beta.1\",\n \"commit\": {\n \"sha\": \"a0b25edcfc143b780ec69d5b92cae9c0c37c1987\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/a0b25edcfc143b780ec69d5b92cae9c0c37c1987\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYmV0YS4x\"\n },\n {\n \"name\": \"v4.0.0-alpha.5\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-alpha.5\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-alpha.5\",\n \"commit\": {\n \"sha\": \"43261b6b18d52f121b58e006dd08a8fb3d1f8771\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/43261b6b18d52f121b58e006dd08a8fb3d1f8771\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYWxwaGEuNQ==\"\n },\n {\n \"name\": \"v4.0.0-alpha.4\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-alpha.4\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-alpha.4\",\n \"commit\": {\n \"sha\": \"03c89eb39f9155f7b38f0ee65d1d7cb00d73ff10\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/03c89eb39f9155f7b38f0ee65d1d7cb00d73ff10\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYWxwaGEuNA==\"\n },\n {\n \"name\": \"v4.0.0-alpha.3\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-alpha.3\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-alpha.3\",\n \"commit\": {\n \"sha\": \"9fae862af1f2685872f9f2d1ed2489eff7e9c535\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/9fae862af1f2685872f9f2d1ed2489eff7e9c535\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYWxwaGEuMw==\"\n },\n {\n \"name\": \"v4.0.0-alpha.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-alpha.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-alpha.2\",\n \"commit\": {\n \"sha\": \"d6da8d8c8256523c94292e8d927d268f5ce8c3b0\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/d6da8d8c8256523c94292e8d927d268f5ce8c3b0\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYWxwaGEuMg==\"\n },\n {\n \"name\": \"v4.0.0-alpha1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v4.0.0-alpha1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v4.0.0-alpha1\",\n \"commit\": {\n \"sha\": \"cb9c6ae919481d0a3df824d927fb54acbc4593bd\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/cb9c6ae919481d0a3df824d927fb54acbc4593bd\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2NC4wLjAtYWxwaGEx\"\n },\n {\n \"name\": \"v3.4.5\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.5\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.5\",\n \"commit\": {\n \"sha\": \"3ef7dbbfb43df4d1e68bd5b578e966f87bea77a1\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/3ef7dbbfb43df4d1e68bd5b578e966f87bea77a1\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjU=\"\n },\n {\n \"name\": \"v3.4.4\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.4\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.4\",\n \"commit\": {\n \"sha\": \"cc0cde0eb28faef05e9074e03c07e55d8ff0ed34\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/cc0cde0eb28faef05e9074e03c07e55d8ff0ed34\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjQ=\"\n },\n {\n \"name\": \"v3.4.3\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.3\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.3\",\n \"commit\": {\n \"sha\": \"08e7bfc7091250349bcbb39f22f99399ad0c09c4\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/08e7bfc7091250349bcbb39f22f99399ad0c09c4\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjM=\"\n },\n {\n \"name\": \"v3.4.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.2\",\n \"commit\": {\n \"sha\": \"2f55ebb91a37cdcd2bc0709c0cb313dc139bf91c\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/2f55ebb91a37cdcd2bc0709c0cb313dc139bf91c\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjI=\"\n },\n {\n \"name\": \"v3.4.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.1\",\n \"commit\": {\n \"sha\": \"caeac66e7db02fd54c44a27cf22a6381654af2ee\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/caeac66e7db02fd54c44a27cf22a6381654af2ee\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjE=\"\n },\n {\n \"name\": \"v3.4.0\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.4.0\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.4.0\",\n \"commit\": {\n \"sha\": \"65183349743e899977adc643f103b887612ffe98\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/65183349743e899977adc643f103b887612ffe98\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My40LjA=\"\n },\n {\n \"name\": \"v3.3.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.3.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.3.2\",\n \"commit\": {\n \"sha\": \"9073ca32cd23c19f958cabd8373575a22db56d02\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/9073ca32cd23c19f958cabd8373575a22db56d02\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4zLjI=\"\n },\n {\n \"name\": \"v3.3.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.3.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.3.1\",\n \"commit\": {\n \"sha\": \"a33c1874754d7c89f2affb2051256095f212eefd\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/a33c1874754d7c89f2affb2051256095f212eefd\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4zLjE=\"\n },\n {\n \"name\": \"v3.3.0\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.3.0\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.3.0\",\n \"commit\": {\n \"sha\": \"f0732e9c2ac4c234afa30fcd4dff1b94d24fe24a\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/f0732e9c2ac4c234afa30fcd4dff1b94d24fe24a\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4zLjA=\"\n },\n {\n \"name\": \"v3.2.4\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.2.4\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.2.4\",\n \"commit\": {\n \"sha\": \"a0560cb3174b37d3b45a46986f5ac7aa1c7ffd81\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/a0560cb3174b37d3b45a46986f5ac7aa1c7ffd81\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4yLjQ=\"\n },\n {\n \"name\": \"v3.2.3\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.2.3\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.2.3\",\n \"commit\": {\n \"sha\": \"a8635777097ac4b3ad6c51ec6bc1fe5fb86ca90e\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/a8635777097ac4b3ad6c51ec6bc1fe5fb86ca90e\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4yLjM=\"\n },\n {\n \"name\": \"v3.2.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.2.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.2.2\",\n \"commit\": {\n \"sha\": \"44ce3c6d5d00cfe0626ff09c0ce4b825e39389d0\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/44ce3c6d5d00cfe0626ff09c0ce4b825e39389d0\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4yLjI=\"\n },\n {\n \"name\": \"v3.2.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.2.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.2.1\",\n \"commit\": {\n \"sha\": \"2d3aa171588d2d82ed26ade076c70d77ca07e2a3\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/2d3aa171588d2d82ed26ade076c70d77ca07e2a3\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4yLjE=\"\n },\n {\n \"name\": \"v3.2.0\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.2.0\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.2.0\",\n \"commit\": {\n \"sha\": \"084fbce9f88c970a4fee64d22911f44dc720f944\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/084fbce9f88c970a4fee64d22911f44dc720f944\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4yLjA=\"\n },\n {\n \"name\": \"v3.1.2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.1.2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.1.2\",\n \"commit\": {\n \"sha\": \"47b23351bf16b8fcece3424e9b2371d89773c753\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/47b23351bf16b8fcece3424e9b2371d89773c753\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4xLjI=\"\n },\n {\n \"name\": \"v3.1.1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.1.1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.1.1\",\n \"commit\": {\n \"sha\": \"ff96793a6836fa87a4680bb19ec1bb3ae3401c74\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/ff96793a6836fa87a4680bb19ec1bb3ae3401c74\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4xLjE=\"\n },\n {\n \"name\": \"v3.1.0\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.1.0\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.1.0\",\n \"commit\": {\n \"sha\": \"60ed9dd842015a05cfd7e0360c972154d85b3172\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/60ed9dd842015a05cfd7e0360c972154d85b3172\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4xLjA=\"\n },\n {\n \"name\": \"v3.1.0-alpha2\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.1.0-alpha2\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.1.0-alpha2\",\n \"commit\": {\n \"sha\": \"821af04960e9ea3b748331a7d07a6450d698f7de\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/821af04960e9ea3b748331a7d07a6450d698f7de\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4xLjAtYWxwaGEy\"\n },\n {\n \"name\": \"v3.1.0-alpha1\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.1.0-alpha1\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.1.0-alpha1\",\n \"commit\": {\n \"sha\": \"65f07c0902ef291492db56625a483ffa7e0f887b\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/65f07c0902ef291492db56625a483ffa7e0f887b\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4xLjAtYWxwaGEx\"\n },\n {\n \"name\": \"v3.0.4\",\n \"zipball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/zipball\/v3.0.4\",\n \"tarball_url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/tarball\/v3.0.4\",\n \"commit\": {\n \"sha\": \"2f52d45cdc1dfb9d9dac40a63a7ca333d785e68c\",\n \"url\": \"https:\/\/api.github.com\/repos\/phalcon\/cphalcon\/commits\/2f52d45cdc1dfb9d9dac40a63a7ca333d785e68c\"\n },\n \"node_id\": \"MDM6UmVmMjg1NDMzNzp2My4wLjQ=\"\n }\n]\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/bitbucket.org\/api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags", + "headers": { + "Host": "bitbucket.org" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Server": "nginx", + "Vary": "Authorization, Accept-Encoding", + "Cache-Control": "max-age=900", + "Content-Type": "application\/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Date": "Sun, 08 Dec 2019 06:45:12 GMT", + "X-Served-By": "app-1131", + "Accept-Ranges": "bytes", + "ETag": "\"47f1840ebf01dfeed4a52bf420a6c391\"", + "X-Static-Version": "abd48467d96e", + "X-Content-Type-Options": "nosniff", + "X-Accepted-OAuth-Scopes": "repository", + "X-Render-Time": "0.330988883972", + "Connection": "Keep-Alive", + "X-Reads-Before-Write-From": "default", + "X-Request-Count": "1156", + "X-Version": "abd48467d96e", + "X-Frame-Options": "SAMEORIGIN", + "X-Cache-Info": "cached", + "Content-Length": "29732" + }, + "body": "{\"pagelen\": 10, \"values\": [{\"name\": \"2.0.0\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.0.0\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.0.0\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.0.0\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"8509f0573897f5a533a854f3ae57c8789ecea1cb\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8509f0573897f5a533a854f3ae57c8789ecea1cb\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8509f0573897f5a533a854f3ae57c8789ecea1cb\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/8509f0573897f5a533a854f3ae57c8789ecea1cb\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/8509f0573897f5a533a854f3ae57c8789ecea1cb\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/8509f0573897f5a533a854f3ae57c8789ecea1cb\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8509f0573897f5a533a854f3ae57c8789ecea1cb\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8509f0573897f5a533a854f3ae57c8789ecea1cb\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"c9814f5e37807494a15987358ef26769af563cd1\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/c9814f5e37807494a15987358ef26769af563cd1\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/c9814f5e37807494a15987358ef26769af563cd1\"}}}], \"date\": \"2016-03-01T03:12:05+00:00\", \"message\": \"Updated metadata\\n\", \"type\": \"commit\"}}, {\"name\": \"2.0.1\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.0.1\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.0.1\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.0.1\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"9590a2f5c480d098f1ecff968ccd132ef4010090\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9590a2f5c480d098f1ecff968ccd132ef4010090\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9590a2f5c480d098f1ecff968ccd132ef4010090\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/9590a2f5c480d098f1ecff968ccd132ef4010090\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/9590a2f5c480d098f1ecff968ccd132ef4010090\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/9590a2f5c480d098f1ecff968ccd132ef4010090\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9590a2f5c480d098f1ecff968ccd132ef4010090\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9590a2f5c480d098f1ecff968ccd132ef4010090\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"940bd7dab30cde398a166c53779760af9f2ce50d\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/940bd7dab30cde398a166c53779760af9f2ce50d\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/940bd7dab30cde398a166c53779760af9f2ce50d\"}}}], \"date\": \"2016-03-17T05:11:30+00:00\", \"message\": \"PHP7: Protected user callbacks from destruction within libevent callbacks\\n\", \"type\": \"commit\"}}, {\"name\": \"2.0.3\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.0.3\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.0.3\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.0.3\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"683cc83cf9f6504a311c59dd66115f5326620488\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/683cc83cf9f6504a311c59dd66115f5326620488\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/683cc83cf9f6504a311c59dd66115f5326620488\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/683cc83cf9f6504a311c59dd66115f5326620488\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/683cc83cf9f6504a311c59dd66115f5326620488\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/683cc83cf9f6504a311c59dd66115f5326620488\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/683cc83cf9f6504a311c59dd66115f5326620488\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/683cc83cf9f6504a311c59dd66115f5326620488\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"1d043cc449c2bb685a1605f092d65a8496dbf4cb\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/1d043cc449c2bb685a1605f092d65a8496dbf4cb\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/1d043cc449c2bb685a1605f092d65a8496dbf4cb\"}}}], \"date\": \"2016-04-21T05:58:13+00:00\", \"message\": \"version bump\\n\", \"type\": \"commit\"}}, {\"name\": \"2.0.4\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.0.4\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.0.4\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.0.4\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"a4b9a6589f067ceb6fc587820b42b4fe45da968a\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/a4b9a6589f067ceb6fc587820b42b4fe45da968a\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"2442e4f883bef90e14ce9409b212d1ce73165efe\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/2442e4f883bef90e14ce9409b212d1ce73165efe\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/2442e4f883bef90e14ce9409b212d1ce73165efe\"}}}], \"date\": \"2016-04-22T05:04:21+00:00\", \"message\": \"Fixed version number\\n\", \"type\": \"commit\"}}, {\"name\": \"2.1.0\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.1.0\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.1.0\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.1.0\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"d008d29048cf9e183161cfa23dc846d31db7596e\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/d008d29048cf9e183161cfa23dc846d31db7596e\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/d008d29048cf9e183161cfa23dc846d31db7596e\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/d008d29048cf9e183161cfa23dc846d31db7596e\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/d008d29048cf9e183161cfa23dc846d31db7596e\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/d008d29048cf9e183161cfa23dc846d31db7596e\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/d008d29048cf9e183161cfa23dc846d31db7596e\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/d008d29048cf9e183161cfa23dc846d31db7596e\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"70cc3c0e76ee6c48e3b95a5470d19832d3e26fbf\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/70cc3c0e76ee6c48e3b95a5470d19832d3e26fbf\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/70cc3c0e76ee6c48e3b95a5470d19832d3e26fbf\"}}}], \"date\": \"2016-06-08T14:22:37+00:00\", \"message\": \"Fix: PHP 7.1.0alpha1 build errors\\n\", \"type\": \"commit\"}}, {\"name\": \"2.2.0\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.2.0\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.2.0\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.2.0\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"5916931cf21bd91e7665e527c202db4ec3e3a80f\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/5916931cf21bd91e7665e527c202db4ec3e3a80f\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/5916931cf21bd91e7665e527c202db4ec3e3a80f\"}}}], \"date\": \"2016-08-08T08:27:23+00:00\", \"message\": \"Fixes\\n\\nFix: issue #30 where building without SSL3 failed\\nFix: the class property names were wrapped in double quotes\\n\", \"type\": \"commit\"}}, {\"name\": \"2.2.1\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.2.1\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.2.1\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.2.1\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"9a48c131ae7a05cba159d0fa2faae059a75a0941\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9a48c131ae7a05cba159d0fa2faae059a75a0941\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9a48c131ae7a05cba159d0fa2faae059a75a0941\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9a48c131ae7a05cba159d0fa2faae059a75a0941\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/3077ac30c29007ba7aeb4d40d2dc061ffbe7647c\"}}}], \"date\": \"2016-09-26T09:26:28+00:00\", \"message\": \"Fix: issue #31 where numeric file descriptor caused segmentation fault\\n\", \"type\": \"commit\"}}, {\"name\": \"2.3.0\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.3.0\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.3.0\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.3.0\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"8db61b4049a06580fbc8d3e02b53b6b5f3887246\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/8db61b4049a06580fbc8d3e02b53b6b5f3887246\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"41be9821b69ce996d59b750ecdbd9c07dffe192b\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/41be9821b69ce996d59b750ecdbd9c07dffe192b\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/41be9821b69ce996d59b750ecdbd9c07dffe192b\"}}}], \"date\": \"2017-03-26T09:22:42+00:00\", \"message\": \"Fixed build errors with LibreSSL\\n\", \"type\": \"commit\"}}, {\"name\": \"2.3.0RC1\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.3.0RC1\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.3.0RC1\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.3.0RC1\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"4cea13603650202fa3462efb29fb37d29661bdc3\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/4cea13603650202fa3462efb29fb37d29661bdc3\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/4cea13603650202fa3462efb29fb37d29661bdc3\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/4cea13603650202fa3462efb29fb37d29661bdc3\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/4cea13603650202fa3462efb29fb37d29661bdc3\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/4cea13603650202fa3462efb29fb37d29661bdc3\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/4cea13603650202fa3462efb29fb37d29661bdc3\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/4cea13603650202fa3462efb29fb37d29661bdc3\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"9a48c131ae7a05cba159d0fa2faae059a75a0941\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/9a48c131ae7a05cba159d0fa2faae059a75a0941\"}}}], \"date\": \"2016-11-10T16:41:40+00:00\", \"message\": \"Support for OpenSSL versions 1.0.0 and 1.1.0\\n\\n Add: EventSslContext methods: setMinProtoVersion and setMaxProtoVersion (OpenSSL >= 1.1.0).\\n Add: EventSslContext constants: OPENSSL_VERSION_NUMBER and OPENSSL_VERSION_TEXT.\\n Fix: compilation warnings with OpenSSL features deprecated in the version 1.0.0 and newer.\\n Deprecated: EventSslContext protocol version options (OpenSSL >= 1.1.0).\\n Use the new setMinProtoVersion and setMaxProtoVersion methods instead.\\n Fix: build failed with custom OpenSSL setup (non-standard --with-openssl-dir configure option)\\n\", \"type\": \"commit\"}}, {\"name\": \"2.4.0\", \"links\": {\"commits\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commits\/2.4.0\"}, \"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags\/2.4.0\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/tag\/2.4.0\"}}, \"tagger\": null, \"date\": null, \"message\": null, \"type\": \"tag\", \"target\": {\"hash\": \"1e60996b1987d8fcb91971091e705d951775805c\", \"repository\": {\"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\"}, \"avatar\": {\"href\": \"https:\/\/bytebucket.org\/ravatar\/%7B769445c9-cc66-4718-b9a6-af0070bf668c%7D?ts=239962\"}}, \"type\": \"repository\", \"name\": \"pecl-event\", \"full_name\": \"osmanov\/pecl-event\", \"uuid\": \"{769445c9-cc66-4718-b9a6-af0070bf668c}\"}, \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/1e60996b1987d8fcb91971091e705d951775805c\"}, \"comments\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/1e60996b1987d8fcb91971091e705d951775805c\/comments\"}, \"patch\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/patch\/1e60996b1987d8fcb91971091e705d951775805c\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/1e60996b1987d8fcb91971091e705d951775805c\"}, \"diff\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/diff\/1e60996b1987d8fcb91971091e705d951775805c\"}, \"approve\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/1e60996b1987d8fcb91971091e705d951775805c\/approve\"}, \"statuses\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/1e60996b1987d8fcb91971091e705d951775805c\/statuses\"}}, \"author\": {\"raw\": \"Ruslan Osmanov <rrosmanov@gmail.com>\", \"type\": \"author\", \"user\": {\"display_name\": \"Ruslan Osmanov\", \"uuid\": \"{ddd3e2e6-734b-4148-bf1b-84c137268c73}\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/users\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/%7Bddd3e2e6-734b-4148-bf1b-84c137268c73%7D\/\"}, \"avatar\": {\"href\": \"https:\/\/avatar-management--avatars.us-west-2.prod.public.atl-paas.net\/557058:f880401f-66e0-460b-b246-7e1564ddbbda\/9f2bec8d-024b-4968-a5c9-adbb29d24407\/128\"}}, \"nickname\": \"Ruslan Osmanov\", \"type\": \"user\", \"account_id\": \"557058:f880401f-66e0-460b-b246-7e1564ddbbda\"}}, \"parents\": [{\"hash\": \"558ee0eca5050f535a4aa933c3b318587a208f06\", \"type\": \"commit\", \"links\": {\"self\": {\"href\": \"https:\/\/bitbucket.org\/!api\/2.0\/repositories\/osmanov\/pecl-event\/commit\/558ee0eca5050f535a4aa933c3b318587a208f06\"}, \"html\": {\"href\": \"https:\/\/bitbucket.org\/osmanov\/pecl-event\/commits\/558ee0eca5050f535a4aa933c3b318587a208f06\"}}}], \"date\": \"2018-08-10T07:18:46+00:00\", \"message\": \"Updated package version\\n\", \"type\": \"commit\"}}], \"page\": 1, \"next\": \"https:\/\/bitbucket.org\/api\/2.0\/repositories\/osmanov\/pecl-event\/refs\/tags?page=8xhd\"}" + } +}] \ No newline at end of file diff --git a/todo.md b/todo.md deleted file mode 100644 index feae732e2..000000000 --- a/todo.md +++ /dev/null @@ -1,48 +0,0 @@ -# Todo - -- Ability to specify the default prefix, for example: - Macports uses /opt/local - Homebrew uses /usr/local - Ubuntu use /usr - - Users can specify the prefer one when running init command. - - phpbrew init --prefer-prefix=macports - - When configuring php - -- Ability to switch curl, wget or pure php downloader. -- Smarter build tasks - - xdebug (enable zend extension with absolute path) - - build with extensions -- Mirror option -- Separate install command to sub-tasks, so we can run tasks separately - - Fetch command. - - Build command. - - Install command. - - Test command. -- Inherit option - - Copy variants from previous install. - - Copy config file from previous install. -- Extra variants: Add extra variant type for non-configure options: - - phpunit variant - - zendframework variant - - pyrus variant - - xdebug variant - - apc variant -- Fallback handler when DOMDocument is not found. -- pure bash support. - -- PHP 5.2 compatibility (or pure bash script?) - Phar requires PHP 5.2.0 or newer. Additional features - require the SPL extension in order to take advantage of - iteration and array access to a Phar's file contents. The - phar stream does not require any additional extensions to - function. - -# Done - -x variant sets -x Extension Builder -x Extension disable/enable command -x `--patch={file}` option support.